diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-07-15 07:37:47 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-07-16 09:03:08 -0400 |
commit | 2a6ad8142d14c998e6c5eb51418aac1f598b621e (patch) | |
tree | 29a2e0c65d1e11564b0f4d17066e0d07471ef511 /sysdeps | |
parent | e591758b38a606f6197cfdd0f8382fa8397b5e77 (diff) | |
download | glibc-2a6ad8142d14c998e6c5eb51418aac1f598b621e.tar.gz glibc-2a6ad8142d14c998e6c5eb51418aac1f598b621e.tar.xz glibc-2a6ad8142d14c998e6c5eb51418aac1f598b621e.zip |
hppa/ia64: _dl_symbol_address: add PLT bypass for rtld
This symbol is defined in the ldso, and is used both there and libc.so. There is no hidden symbol for it though which leads to relocations in the ldso and the elf/check-localplt test failing. Add a hidden def for rtld to fix all of that. This function/file is only used by hppa & ia64, so no testing is needed for other arches.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/hppa/dl-lookupcfg.h | 1 | ||||
-rw-r--r-- | sysdeps/ia64/dl-lookupcfg.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/hppa/dl-lookupcfg.h b/sysdeps/hppa/dl-lookupcfg.h index 8fcdebd27e..cd0d6b15b3 100644 --- a/sysdeps/hppa/dl-lookupcfg.h +++ b/sysdeps/hppa/dl-lookupcfg.h @@ -25,6 +25,7 @@ struct link_map; void *_dl_symbol_address (struct link_map *map, const ElfW(Sym) *ref); +rtld_hidden_proto (_dl_symbol_address) #define DL_SYMBOL_ADDRESS(map, ref) _dl_symbol_address(map, ref) diff --git a/sysdeps/ia64/dl-lookupcfg.h b/sysdeps/ia64/dl-lookupcfg.h index 8796a71674..edf26359f6 100644 --- a/sysdeps/ia64/dl-lookupcfg.h +++ b/sysdeps/ia64/dl-lookupcfg.h @@ -28,6 +28,7 @@ struct link_map; extern void *_dl_symbol_address (struct link_map *map, const Elf64_Sym *ref); +rtld_hidden_proto (_dl_symbol_address) #define DL_SYMBOL_ADDRESS(map, ref) _dl_symbol_address(map, ref) |