]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix NEED_DL_SYSINFO_DSO conditionals.
authorRoland McGrath <roland@hack.frob.com>
Fri, 1 Mar 2013 22:44:44 +0000 (14:44 -0800)
committerRoland McGrath <roland@hack.frob.com>
Fri, 1 Mar 2013 22:44:44 +0000 (14:44 -0800)
ChangeLog
elf/dl-hwcaps.c
elf/dl-support.c
elf/dl-sysdep.c
elf/rtld.c
elf/setup-vdso.h
sysdeps/generic/ldsodefs.h
sysdeps/unix/sysv/linux/dl-sysdep.c

index 46edfc0bea91246fdef863305cec0859c0e75356..b826b91e87c8834d03d412a775cfeed212dbbe8b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2013-03-01  Roland McGrath  <roland@hack.frob.com>
+
+       * elf/dl-hwcaps.c (_dl_important_hwcaps):
+       Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
+       to just [NEED_DL_SYSINFO_DSO].
+       * elf/dl-support.c: Likewise.
+       * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
+       * elf/rtld.c (dl_main): Likewise.
+       * elf/setup-vdso.h (setup_vdso): Likewise.
+       * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
+       * sysdeps/unix/sysv/linux/dl-sysdep.c
+       (_dl_discover_osversion): Likewise.
+
 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
 
        * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
index d3214e5dc490a55fa36dc62246fc646185cec0d5..8d49383d764e40a3714697452e435a6e8a567ecd 100644 (file)
@@ -51,7 +51,7 @@ _dl_important_hwcaps (const char *platform, size_t platform_len, size_t *sz,
     if ((masked & (1ULL << n)) != 0)
       ++cnt;
 
-#if defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO
+#ifdef NEED_DL_SYSINFO_DSO
   /* The system-supplied DSO can contain a note of type 2, vendor "GNU".
      This gives us a list of names to treat as fake hwcap bits.  */
 
@@ -104,7 +104,7 @@ _dl_important_hwcaps (const char *platform, size_t platform_len, size_t *sz,
   /* Create temporary data structure to generate result table.  */
   struct r_strlenpair temp[cnt];
   m = 0;
-#if defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO
+#ifdef NEED_DL_SYSINFO_DSO
   if (dsocaps != NULL)
     {
       const ElfW(Word) mask = ((const ElfW(Word) *) dsocaps)[-1];
index 507568784b464031cb5f4ee19bdf925f70dd3cd2..b2bf31264e484110a5ac371d6e70911d7276939c 100644 (file)
@@ -158,7 +158,7 @@ struct dl_scope_free_list *_dl_scope_free_list;
 /* Needed for improved syscall handling on at least x86/Linux.  */
 uintptr_t _dl_sysinfo = DL_SYSINFO_DEFAULT;
 #endif
-#if defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO
+#ifdef NEED_DL_SYSINFO_DSO
 /* Address of the ELF headers in the vsyscall page.  */
 const ElfW(Ehdr) *_dl_sysinfo_dso;
 
@@ -217,7 +217,7 @@ _dl_aux_init (ElfW(auxv_t) *av)
        GL(dl_sysinfo) = av->a_un.a_val;
        break;
 #endif
-#if defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO
+#ifdef NEED_DL_SYSINFO_DSO
       case AT_SYSINFO_EHDR:
        GL(dl_sysinfo_dso) = (void *) av->a_un.a_val;
        break;
index 42bc8145d7ae78f1ee52a6ea14c8bbc6dcfb7366..d8f3dd2fb9f80de26fdc17c3e375bf4ad6917991 100644 (file)
@@ -167,7 +167,7 @@ _dl_sysdep_start (void **start_argptr,
        new_sysinfo = av->a_un.a_val;
        break;
 #endif
-#if defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO
+#ifdef NEED_DL_SYSINFO_DSO
       case AT_SYSINFO_EHDR:
        GLRO(dl_sysinfo_dso) = (void *) av->a_un.a_val;
        break;
index 4014ef10423f45ef4554a4a491992cf7c4fe27c9..23238ad3fcb6687eae15a77d2a6eafb3a5c81869 100644 (file)
@@ -1768,7 +1768,7 @@ ERROR: ld.so: object '%s' cannot be loaded as audit interface: %s; ignored.\n",
          GL(dl_rtld_map).l_next = (i + 1 < main_map->l_searchlist.r_nlist
                                    ? main_map->l_searchlist.r_list[i + 1]
                                    : NULL);
-#if defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO
+#ifdef NEED_DL_SYSINFO_DSO
          if (GLRO(dl_sysinfo_map) != NULL
              && GL(dl_rtld_map).l_prev->l_next == GLRO(dl_sysinfo_map)
              && GL(dl_rtld_map).l_next != GLRO(dl_sysinfo_map))
@@ -1880,7 +1880,7 @@ ERROR: ld.so: object '%s' cannot be loaded as audit interface: %s; ignored.\n",
              if (dyn->d_tag == DT_NEEDED)
                {
                  l = l->l_next;
-#if defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO
+#ifdef NEED_DL_SYSINFO_DSO
                  /* Skip the VDSO since it's not part of the list
                     of objects we brought in via DT_NEEDED entries.  */
                  if (l == GLRO(dl_sysinfo_map))
index 1878fae151e92c9b1e11e203884e6b2c59c0779b..a98dfeca33ced97edc19b1de6f3b1f589f2d3527 100644 (file)
@@ -20,7 +20,7 @@ static inline void __attribute__ ((always_inline))
 setup_vdso (struct link_map *main_map __attribute__ ((unused)),
            struct link_map ***first_preload __attribute__ ((unused)))
 {
-#if defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO
+#ifdef NEED_DL_SYSINFO_DSO
   if (GLRO(dl_sysinfo_dso) == NULL)
     return;
 
index 01a2712f333390602aea132fc60aad5eb7b91740..408737afd89573a5a5fb9c5a9544aced00276196 100644 (file)
@@ -538,7 +538,7 @@ struct rtld_global_ro
   EXTERN uintptr_t _dl_sysinfo;
 #endif
 
-#if defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO
+#ifdef NEED_DL_SYSINFO_DSO
   /* The vsyscall page is a virtual DSO pre-mapped by the kernel.
      This points to its ELF header.  */
   EXTERN const ElfW(Ehdr) *_dl_sysinfo_dso;
index a4ca119d8b7ef7424727004cb09c7a6037ad1b68..e80cb8d9f0e0eba1f7accf78e1ec64c02d662e82 100644 (file)
@@ -43,7 +43,7 @@ int
 attribute_hidden
 _dl_discover_osversion (void)
 {
-#if (defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO) && defined SHARED
+#if defined NEED_DL_SYSINFO_DSO && defined SHARED
   if (GLRO(dl_sysinfo_map) != NULL)
     {
       /* If the kernel-supplied DSO contains a note indicating the kernel's