about summary refs log tree commit diff
path: root/sysdeps/x86_64/tlsdesc.c
diff options
context:
space:
mode:
authorWill Newton <will.newton@linaro.org>2014-07-07 15:14:26 +0100
committerWill Newton <will.newton@linaro.org>2014-07-09 09:26:07 +0100
commit82374e65d745c3c94258ad81c38f8af34b9f9113 (patch)
treefd5e15e5b29c5b73fcfb883c9c88ffa61502c573 /sysdeps/x86_64/tlsdesc.c
parent6ee3eab42979fdd5bb971a40fec32e04bb9dd2ad (diff)
downloadglibc-82374e65d745c3c94258ad81c38f8af34b9f9113.tar.gz
glibc-82374e65d745c3c94258ad81c38f8af34b9f9113.tar.xz
glibc-82374e65d745c3c94258ad81c38f8af34b9f9113.zip
Fix -Wundef warnings for SHARED
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.
Diffstat (limited to 'sysdeps/x86_64/tlsdesc.c')
-rw-r--r--sysdeps/x86_64/tlsdesc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86_64/tlsdesc.c b/sysdeps/x86_64/tlsdesc.c
index c1c5e033c0..451f7be2d0 100644
--- a/sysdeps/x86_64/tlsdesc.c
+++ b/sysdeps/x86_64/tlsdesc.c
@@ -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,