]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix -Wundef warnings for SHARED
authorWill Newton <will.newton@linaro.org>
Mon, 7 Jul 2014 14:14:26 +0000 (15:14 +0100)
committerWill Newton <will.newton@linaro.org>
Wed, 9 Jul 2014 08:26:07 +0000 (09:26 +0100)
The definition of SHARED is tested with #ifdef pretty much everywhere
apart from these few places. The tlsdesc.c code seems to be copy and
pasted to a few architectures and there is one instance in the hppa
startup code.

ChangeLog:

2014-07-09  Will Newton  <will.newton@linaro.org>

* sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
* sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
* sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
* sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
* sysdeps/hppa/start.S (_start): Likewise.

ChangeLog
sysdeps/aarch64/tlsdesc.c
sysdeps/arm/tlsdesc.c
sysdeps/hppa/start.S
sysdeps/i386/tlsdesc.c
sysdeps/x86_64/tlsdesc.c

index 0773d7ce18a95d977a0f281c76b80d56f44d5765..2ac8b8a6356a998414dc6282f274cbd147be7948 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2014-07-09  Will Newton  <will.newton@linaro.org>
+
+       * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
+       * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
+       * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
+       * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
+       * sysdeps/hppa/start.S (_start): Likewise.
+
 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
        * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
index 1b4181956c360929bc15a428634a040dc8fe36ec..7e8cf65eacd2cad68244dffd2958a8f00d6fbf83 100644 (file)
@@ -147,7 +147,7 @@ _dl_unmap (struct link_map *map)
 {
   _dl_unmap_segments (map);
 
-#if SHARED
+#ifdef SHARED
   if (map->l_mach.tlsdesc_table)
     htab_delete (map->l_mach.tlsdesc_table);
 #endif
index e52034ded6fa26a72d91691c9fc37965879c4900..ad74a239ba8667166e3fd3e155cf7d4c20148839 100644 (file)
@@ -149,7 +149,7 @@ _dl_unmap (struct link_map *map)
 {
   _dl_unmap_segments (map);
 
-#if SHARED
+#ifdef SHARED
   /* _dl_unmap is only called for dlopen()ed libraries, for which
      calling free() is safe, or before we've completed the initial
      relocation, in which case calling free() is probably pointless,
index 0998270afd34825e4010256b30ea80d593dc1220..7254a75703bfcaaa890a7faf34d2b75d275bb0bc 100644 (file)
@@ -93,7 +93,7 @@ _start:
        stw     %r23, -56(%sp)
        /* Need to setup 1, 4, 5, and 7th arguments */
 
-#if SHARED
+#ifdef SHARED
        /* load main (1st argument) */
        addil   LT'.Lpmain, %r19
        ldw     RT'.Lpmain(%r1), %r26
index ef4a1ddf98cf9bcae90e14aa68c4131b0b8d4d41..19a8788b8ff31ccc16b5283bfc7602c718519846 100644 (file)
@@ -261,7 +261,7 @@ _dl_unmap (struct link_map *map)
 {
   _dl_unmap_segments (map);
 
-#if SHARED
+#ifdef SHARED
   if (map->l_mach.tlsdesc_table)
     htab_delete (map->l_mach.tlsdesc_table);
 #endif
index c1c5e033c0d2a400d4b8b940f350553de5921904..451f7be2d0c4ad3f44d5da3efbfbefc1d4e48c5a 100644 (file)
@@ -139,7 +139,7 @@ _dl_unmap (struct link_map *map)
 {
   _dl_unmap_segments (map);
 
-#if SHARED
+#ifdef SHARED
   /* _dl_unmap is only called for dlopen()ed libraries, for which
      calling free() is safe, or before we've completed the initial
      relocation, in which case calling free() is probably pointless,