aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2003-11-22 10:45:44 +0000
committerJakub Jelinek <jakub@redhat.com>2003-11-22 10:45:44 +0000
commitc6585bbb101d8e377478a01b64d75d9d415dbd01 (patch)
tree384d6c3a25ee4722262bd804935dbb182400c7d0 /bfd/elf.c
parentf22b3cafc9a10cda728946d2fa7cc37ff905136f (diff)
downloadgdb-c6585bbb101d8e377478a01b64d75d9d415dbd01.zip
gdb-c6585bbb101d8e377478a01b64d75d9d415dbd01.tar.gz
gdb-c6585bbb101d8e377478a01b64d75d9d415dbd01.tar.bz2
2003-11-22 Jakub Jelinek <jakub@redhat.com>
* elf-bfd.h (ELF_LINK_POINTER_EQUALITY_NEEDED): Define new flag. * elf.c (_bfd_elf_link_hash_copy_indirect): Copy it. * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise. (elf_i386_check_relocs): Set it. (elf_i386_finish_dynamic_symbol): If it is not set, clear st_value of SHN_UNDEF symbol.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index e6965af..31003d7 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -1359,7 +1359,8 @@ _bfd_elf_link_hash_copy_indirect (const struct elf_backend_data *bed,
| ELF_LINK_HASH_REF_REGULAR
| ELF_LINK_HASH_REF_REGULAR_NONWEAK
| ELF_LINK_NON_GOT_REF
- | ELF_LINK_HASH_NEEDS_PLT));
+ | ELF_LINK_HASH_NEEDS_PLT
+ | ELF_LINK_POINTER_EQUALITY_NEEDED));
if (ind->root.type != bfd_link_hash_indirect)
return;