diff options
author | Alan Modra <amodra@gmail.com> | 2017-11-22 21:07:03 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-11-23 22:42:33 +1030 |
commit | 287c7eaf0d90cc1bbb5a5463c665b163c6ee04e7 (patch) | |
tree | 3ba8bdf4004c201e2d8265ebd552e5dbc8ee0967 /README | |
parent | ab2477e15cbe067ff119f1bb5dea05de3cadbdd5 (diff) | |
download | gdb-287c7eaf0d90cc1bbb5a5463c665b163c6ee04e7.zip gdb-287c7eaf0d90cc1bbb5a5463c665b163c6ee04e7.tar.gz gdb-287c7eaf0d90cc1bbb5a5463c665b163c6ee04e7.tar.bz2 |
Don't move weak alias dyn_relocs to weakdef
I did this for powerpc64 a while ago. Not moving weak symbol
dyn_relocs to the strong alias makes for a much simpler test for
dynamic relocs in relocate_section.
This patch implements the change for powerpc and hppa. Other targets
could benefit from similar changes.
* elf32-hppa.c (pc_dynrelocs): Define.
(elf32_hppa_copy_indirect_symbol): Don't copy dyn_relocs to weakdefs.
(alias_readonly_dynrelocs): New function.
(elf32_hppa_adjust_dynamic_symbol): Don't clear non_got_ref to
indicate dyn_relocs should be discarded, discard them here.
Use alias_readonly_dynrelocs.
(allocate_dynrelocs): Don't test or clear non_got_ref.
(elf32_hppa_relocate_section): Simplify test for dynamic relocs.
* elf32-ppc.c (ppc_elf_copy_indirect_symbol): Don't copy dyn_relocs
to weakdefs.
(alias_readonly_dynrelocs, pc_dynrelocs): New functions.
(ppc_elf_adjust_dynamic_symbol): Don't clear non_got_ref to
indicate dyn_relocs should be discarded, discard them here.
Use alias_readonly_dynrelocs.
(allocate_dynrelocs): Don't test or clear non_got_ref.
(ppc_elf_relocate_section): Simplify test for dynamic relocs.
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions