diff options
author | Alan Modra <amodra@gmail.com> | 2009-07-10 10:04:20 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2009-07-10 10:04:20 +0000 |
commit | 7ae26bc141a487736f8590300fa40cf58daf4123 (patch) | |
tree | cbcebca2c4f34eb9be735a0715f403eab5c98d39 /bfd/elf32-i386.c | |
parent | af7b385cb919238f308d411e029defe23179aadb (diff) | |
download | gdb-7ae26bc141a487736f8590300fa40cf58daf4123.zip gdb-7ae26bc141a487736f8590300fa40cf58daf4123.tar.gz gdb-7ae26bc141a487736f8590300fa40cf58daf4123.tar.bz2 |
* elf-bfd.h (struct elf_link_hash_entry): Clarify ref_regular
and ref_regular_nonweak comment.
* elflink.c (elf_link_output_extsym): Special case ifunc syms
when def_regular, not ref_regular.
(elf_link_add_object_symbols): Don't set needs_plt on ifunc syms,..
* elf32-i386.c (elf_i386_check_relocs): ..set it here instead..
* elf64-x86-64.c (elf64_x86_64_check_relocs): ..and here.
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r-- | bfd/elf32-i386.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index 5ce7b27..c86d00d 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -1366,6 +1366,7 @@ elf_i386_check_relocs (bfd *abfd, { /* It is referenced by a non-shared object. */ h->ref_regular = 1; + h->needs_plt = 1; /* STT_GNU_IFUNC symbol must go through PLT. */ h->plt.refcount += 1; |