]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hppa/ia64: _dl_unmap: make it hidden
authorMike Frysinger <vapier@gentoo.org>
Wed, 15 Jul 2015 11:40:56 +0000 (07:40 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 16 Jul 2015 13:03:46 +0000 (09:03 -0400)
This symbol is only used by DL_UNMAP which in turn is only used by
_dl_close_worker in dl-close.c, and _dl_close_worker itself is marked
hidden as it is only used by the ldso.  That means _dl_unmap should
be marked hidden.  Without this, the elf/check-localplt test fails.

ChangeLog
sysdeps/hppa/Versions
sysdeps/hppa/dl-lookupcfg.h
sysdeps/ia64/Versions
sysdeps/ia64/dl-lookupcfg.h

index 47e88edebe1cd70abbd2329bd44f0a1af913d651..1630c1d582794f147aa67fc93850a60a2c233bac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-07-16  Mike Frysinger  <vapier@gentoo.org>
+
+       * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
+       * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
+       * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
+       * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
+
 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
 
        * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
index 2ae3cbdf1774a588b29989dfc468a08b2613837d..c9723b474645d4f72044c76e9e6f12089bef10a0 100644 (file)
@@ -1,7 +1,7 @@
 ld {
   GLIBC_PRIVATE {
     # hppa specific functions in the dynamic linker, but used by libc.so.
-    _dl_symbol_address; _dl_unmap; _dl_lookup_address;
+    _dl_symbol_address; _dl_lookup_address;
     _dl_function_address;
   }
 }
index cd0d6b15b36a2e7c8023a505a2f6149283efa091..c36928cc0d02fb91290bbded52db345f42e47a19 100644 (file)
@@ -35,7 +35,7 @@ Elf32_Addr _dl_lookup_address (const void *address);
 #define DL_LOOKUP_ADDRESS(addr) \
   (_dl_lookup_address ((void *)((unsigned long)addr & ~3)))
 
-void _dl_unmap (struct link_map *map);
+void attribute_hidden _dl_unmap (struct link_map *map);
 
 #define DL_UNMAP(map) _dl_unmap (map)
 
index 56b417d614800aaf7b408781eb4fd16382201b5b..ac3bff9b780888c2d7ae287e473ac942c1189aa4 100644 (file)
@@ -1,7 +1,7 @@
 ld {
   GLIBC_PRIVATE {
     # ia64 specific functions in the dynamic linker, but used by libc.so.
-    _dl_symbol_address; _dl_unmap; _dl_lookup_address;
+    _dl_symbol_address; _dl_lookup_address;
     _dl_function_address;
   }
 }
index edf26359f6b3f933139328ab1664f60e506479ac..3c55e08a44fe3c2f20e421ad2b6c069c742d9300 100644 (file)
@@ -36,7 +36,7 @@ extern Elf64_Addr _dl_lookup_address (const void *address);
 
 #define DL_LOOKUP_ADDRESS(addr) _dl_lookup_address (addr)
 
-extern void _dl_unmap (struct link_map *map);
+extern void attribute_hidden _dl_unmap (struct link_map *map);
 
 #define DL_UNMAP(map) _dl_unmap (map)