aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-11-09 14:37:16 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-11-09 14:37:16 +0000
commit57ca8ac797dc72c1949722ab9b11820e3ea8989b (patch)
tree040805399b147e6849bd4ed74439dd4129918211 /bfd/elflink.c
parent46b5151381235cc34bdbfab5bfdfd4d4b9d55d42 (diff)
downloadgdb-57ca8ac797dc72c1949722ab9b11820e3ea8989b.zip
gdb-57ca8ac797dc72c1949722ab9b11820e3ea8989b.tar.gz
gdb-57ca8ac797dc72c1949722ab9b11820e3ea8989b.tar.bz2
Don't return on STT_GNU_IFUNC symbol when stripping.
bfd/ 2009-11-09 H.J. Lu <hongjiu.lu@intel.com> PR ld/10911 * elflink.c (elf_link_output_extsym): Don't return on STT_GNU_IFUNC symbol when stripping. ld/testsuite/ 2009-11-09 H.J. Lu <hongjiu.lu@intel.com> PR ld/10911 * ld-ifunc/ifunc-4a-x86.d: New.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index cd016b7..0153411 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -8639,9 +8639,11 @@ elf_link_output_extsym (struct elf_link_hash_entry *h, void *data)
strip = FALSE;
/* If we're stripping it, and it's not a dynamic symbol, there's
- nothing else to do unless it is a forced local symbol. */
+ nothing else to do unless it is a forced local symbol or a
+ STT_GNU_IFUNC symbol. */
if (strip
&& h->dynindx == -1
+ && h->type != STT_GNU_IFUNC
&& !h->forced_local)
return TRUE;