PR ld/13235
authorAlan Modra <amodra@gmail.com>
Fri, 30 Sep 2011 05:11:04 +0000 (05:11 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 30 Sep 2011 05:11:04 +0000 (05:11 +0000)
commit9852805258de4c870df1f723bf22f21b41ebd6a7
tree77b6ab2b4e26df33a38edf57d216e1be13637d52
parent723b724b171ec32ce7005c43fc7da4f5206f7190
PR ld/13235
bfd/
* elf64-ppc.c (struct ppc64_elf_obj_tdata): Add ha_relocs_not_using_r2.
(ppc64_elf_edit_toc): Check HA relocs.
(ha_reloc_match): Delete function.
(ppc64_elf_relocate_section): Remove delayed HA nop optimization.
Instead do it and low part optimization based on
ha_relocs_not_using_r2.
ld/testsuite/
* ld-powerpc/tocopt.d: Update.
* ld-powerpc/tocopt5.d, * ld-powerpc/tocopt5.s: New test.
* ld-powerpc/powerpc.exp: Run new test.
bfd/ChangeLog
bfd/elf64-ppc.c
ld/testsuite/ChangeLog
ld/testsuite/ld-powerpc/powerpc.exp
ld/testsuite/ld-powerpc/tocopt.d
ld/testsuite/ld-powerpc/tocopt5.d [new file with mode: 0644]
ld/testsuite/ld-powerpc/tocopt5.s [new file with mode: 0644]