Blame sysdeps/generic/dl-sysdep.h

Packit 6c4009
/* System-specific settings for dynamic linker code.  Generic version.
Packit 6c4009
   Copyright (C) 2002-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public
Packit 6c4009
   License as published by the Free Software Foundation; either
Packit 6c4009
   version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library; if not, see
Packit 6c4009
   <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
/* No multiple inclusion protection need here because it's just macros.
Packit 6c4009
   We don't want to use _DL_SYSDEP_H in case we are #include_next'd.  */
Packit 6c4009
Packit 6c4009
/* This macro must be defined to either 0 or 1.
Packit 6c4009
Packit 6c4009
   If 1, then an errno global variable hidden in ld.so will work right with
Packit 6c4009
   all the errno-using libc code compiled for ld.so, and there is never a
Packit 6c4009
   need to share the errno location with libc.  This is appropriate only if
Packit 6c4009
   all the libc functions that ld.so uses are called without PLT and always
Packit 6c4009
   get the versions linked into ld.so rather than the libc ones.  */
Packit 6c4009
Packit 6c4009
#if IS_IN (rtld)
Packit 6c4009
# define RTLD_PRIVATE_ERRNO 1
Packit 6c4009
#else
Packit 6c4009
# define RTLD_PRIVATE_ERRNO 0
Packit 6c4009
#endif