diff options
author | Alan Modra <amodra@gmail.com> | 2017-10-27 15:04:25 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-10-30 11:03:50 +1030 |
commit | d336fa6d820f50235c271ea327fadbf4ff6e1edd (patch) | |
tree | ebc4d2e681fb60129acfd0c690908f30b4edafa6 /bfd/ChangeLog | |
parent | 2b2d16760741356447ae10acc93695678db5e5ee (diff) | |
download | gdb-d336fa6d820f50235c271ea327fadbf4ff6e1edd.zip gdb-d336fa6d820f50235c271ea327fadbf4ff6e1edd.tar.gz gdb-d336fa6d820f50235c271ea327fadbf4ff6e1edd.tar.bz2 |
Fix hppa-linux pr22269-1 fail
Adds UNDEFWEAK_NO_DYNAMIC_RELOC in the rest of places needed in this
file, reduces dynamic relocations in a number of cases, and removes
some bogus code that was attempting to handle dynamic common symbols
specially.
PR 22269
* elf32-hppa.c (elf32_hppa_check_relocs): Move SEC_ALLOC test to
ensure non_got_ref is not set due to debug references.
(elf32_hppa_adjust_dynamic_symbol): Tidy plabel handling. Use
SYMBOL_CALLS_LOCAL and UNDEFWEAK_NO_DYNAMIC_RELOC when determining
need for a plt entry.
(allocate_dynrelocs): Similarly for got entries. Tidy code discarding
dynamic relocs when pic. Remove bogus code attempting to handle
commons.
(elf32_hppa_relocate_section): Similarly. Delete resolved_to_zero
and simplify.
(elf32_hppa_finish_dynamic_symbol): Use UNDEFWEAK_NO_DYNAMIC_RELOC
and SYMBOL_REFERENCES_LOCAL in GOT handling.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 07ad2b8..c56e1cf 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,19 @@ +2017-10-30 Alan Modra <amodra@gmail.com> + + PR 22269 + * elf32-hppa.c (elf32_hppa_check_relocs): Move SEC_ALLOC test to + ensure non_got_ref is not set due to debug references. + (elf32_hppa_adjust_dynamic_symbol): Tidy plabel handling. Use + SYMBOL_CALLS_LOCAL and UNDEFWEAK_NO_DYNAMIC_RELOC when determining + need for a plt entry. + (allocate_dynrelocs): Similarly for got entries. Tidy code discarding + dynamic relocs when pic. Remove bogus code attempting to handle + commons. + (elf32_hppa_relocate_section): Similarly. Delete resolved_to_zero + and simplify. + (elf32_hppa_finish_dynamic_symbol): Use UNDEFWEAK_NO_DYNAMIC_RELOC + and SYMBOL_REFERENCES_LOCAL in GOT handling. + 2017-10-28 Alan Modra <amodra@gmail.com> PR 22300 |