* elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
relocations with PC32 relocations for undefined or weak symbols. * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise. * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
This commit is contained in:
parent
8fcc723b1c
commit
f9cd911902
4 changed files with 16 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
|||
2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
||||
|
||||
* elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
|
||||
relocations with PC32 relocations for undefined or weak symbols.
|
||||
* elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
|
||||
* elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
|
||||
|
||||
2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
|
||||
|
||||
* elfcore.h (elf_core_file_p): Improve comment for last change.
|
||||
|
|
|
@ -1108,7 +1108,9 @@ elf_i386_adjust_dynamic_symbol (info, h)
|
|||
if (h->plt.refcount <= 0
|
||||
|| (! info->shared
|
||||
&& (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC) == 0
|
||||
&& (h->elf_link_hash_flags & ELF_LINK_HASH_REF_DYNAMIC) == 0))
|
||||
&& (h->elf_link_hash_flags & ELF_LINK_HASH_REF_DYNAMIC) == 0
|
||||
&& h->root.type != bfd_link_hash_undefweak
|
||||
&& h->root.type != bfd_link_hash_undefined))
|
||||
{
|
||||
/* This case can occur if we saw a PLT32 reloc in an input
|
||||
file, but the symbol was never referred to by a dynamic
|
||||
|
|
|
@ -1047,7 +1047,9 @@ elf_s390_adjust_dynamic_symbol (info, h)
|
|||
if (h->plt.refcount <= 0
|
||||
|| (! info->shared
|
||||
&& (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC) == 0
|
||||
&& (h->elf_link_hash_flags & ELF_LINK_HASH_REF_DYNAMIC) == 0))
|
||||
&& (h->elf_link_hash_flags & ELF_LINK_HASH_REF_DYNAMIC) == 0
|
||||
&& h->root.type != bfd_link_hash_undefweak
|
||||
&& h->root.type != bfd_link_hash_undefined))
|
||||
{
|
||||
/* This case can occur if we saw a PLT32 reloc in an input
|
||||
file, but the symbol was never referred to by a dynamic
|
||||
|
|
|
@ -1026,7 +1026,9 @@ elf_s390_adjust_dynamic_symbol (info, h)
|
|||
if (h->plt.refcount <= 0
|
||||
|| (! info->shared
|
||||
&& (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC) == 0
|
||||
&& (h->elf_link_hash_flags & ELF_LINK_HASH_REF_DYNAMIC) == 0))
|
||||
&& (h->elf_link_hash_flags & ELF_LINK_HASH_REF_DYNAMIC) == 0
|
||||
&& h->root.type != bfd_link_hash_undefweak
|
||||
&& h->root.type != bfd_link_hash_undefined))
|
||||
{
|
||||
/* This case can occur if we saw a PLT32 reloc in an input
|
||||
file, but the symbol was never referred to by a dynamic
|
||||
|
|
Loading…
Reference in a new issue