Back to index

glibc  2.9
Defines
dl-librecon.h File Reference
#include <sysdeps/unix/sysv/linux/dl-librecon.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DISTINGUISH_LIB_VERSIONS
#define EXTRA_LD_ENVVARS
#define EXTRA_UNSECURE_ENVVARS

Define Documentation

Value:
do                                                                   \
    {                                                                \
      /* We have to find out whether the binary is linked against           \
        libc 5 or glibc.  We do this by looking at all the DT_NEEDED        \
        entries.  If one is libc.so.5 this is a libc 5 linked binary.  */    \
      if (main_map->l_info[DT_NEEDED])                                      \
       {                                                             \
         /* We have dependencies.  */                                       \
         const ElfW(Dyn) *d;                                                \
         const char *strtab;                                                \
                                                                     \
         strtab = (const char *) D_PTR (main_map, l_info[DT_STRTAB]);       \
                                                                     \
         for (d = main_map->l_ld; d->d_tag != DT_NULL; ++d)                 \
           if (d->d_tag == DT_NEEDED                                        \
              && strcmp (strtab + d->d_un.d_val, "libc.so.5") == 0)         \
             break;                                                  \
                                                                     \
         /* We print a `5' or `6' depending on the outcome.  */             \
         _dl_printf (d->d_tag != DT_NULL ? "5\n" : "6\n");                  \
       }                                                             \
    }                                                                \
  while (0)

Definition at line 25 of file dl-librecon.h.

Value:
case 15:                                                             \
    if (memcmp (envline, "LIBRARY_VERSION", 15) == 0)                       \
      GLRO(dl_correct_cache_id) = envline[16] == '5' ? 2 : 3;               \
    break;                                                           \

Definition at line 49 of file dl-librecon.h.

Value:
"LD_AOUT_LIBRARY_PATH\0"                                             \
  "LD_AOUT_PRELOAD\0"

Definition at line 57 of file dl-librecon.h.