diff options
author | Alan Modra <amodra@bigpond.net.au> | 2009-07-10 10:04:20 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2009-07-10 10:04:20 +0000 |
commit | 18cc15110a16d20d7c9420f83015bda06097283c (patch) | |
tree | 0defb956d097ecfb294a3c1531e72b5484df5b47 /bfd/elf32-i386.c | |
parent | 8f549acc0662504c8ad7f034e000221991d20231 (diff) | |
download | binutils-redhat-18cc15110a16d20d7c9420f83015bda06097283c.tar.gz |
* 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 5ce7b2740c..c86d00da17 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; |