diff options
author | Alan Modra <amodra@gmail.com> | 2011-09-30 05:11:04 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2011-09-30 05:11:04 +0000 |
commit | 9852805258de4c870df1f723bf22f21b41ebd6a7 (patch) | |
tree | 77b6ab2b4e26df33a38edf57d216e1be13637d52 /ld/testsuite/ld-powerpc/powerpc.exp | |
parent | 723b724b171ec32ce7005c43fc7da4f5206f7190 (diff) | |
download | gdb-9852805258de4c870df1f723bf22f21b41ebd6a7.zip gdb-9852805258de4c870df1f723bf22f21b41ebd6a7.tar.gz gdb-9852805258de4c870df1f723bf22f21b41ebd6a7.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite/ld-powerpc/powerpc.exp')
-rw-r--r-- | ld/testsuite/ld-powerpc/powerpc.exp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/testsuite/ld-powerpc/powerpc.exp b/ld/testsuite/ld-powerpc/powerpc.exp index 5ec36b2..7f9e7fa 100644 --- a/ld/testsuite/ld-powerpc/powerpc.exp +++ b/ld/testsuite/ld-powerpc/powerpc.exp @@ -211,6 +211,8 @@ set ppc64elftests { {{objdump -s tocopt3.d}} "tocopt3"} {"TOC opt4" "-melf64ppc -no-keep-memory --defsym x=2" "-a64" {tocopt4a.s tocopt4b.s} {{objdump -s tocopt4.d}} "tocopt4"} + {"TOC opt5" "-melf64ppc" "-a64" {tocopt5.s} + {{objdump -s tocopt5.d}} "tocopt5"} } |