bfd/
authorAlan Modra <amodra@gmail.com>
Tue, 8 Nov 2011 13:06:03 +0000 (13:06 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 8 Nov 2011 13:06:03 +0000 (13:06 +0000)
commit560c8763d325c11cf9cd29c54c55a653f780845a
treebcba52293ffc230988ab616af13082dc564e8409
parentd3895d7d29f0063fdae6bc1a78a23fcfb2570fed
bfd/
* elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename
ha_relocs_not_using_r2 to unexpected_toc_insn.
(ok_lo_toc_insn): New function.
(ppc64_elf_edit_toc): Check insn on lo toc reloc.  Emit warning.
(ppc64_elf_relocate_section): Don't check insn on lo toc reloc here.
Handle addic on lo toc reloc.
ld/testsuite/
* ld-powerpc/powerpc.exp: Expect ld warnings for tocopt test.
* ld-powerpc/tocopt.out: New file.
bfd/ChangeLog
bfd/elf64-ppc.c
ld/testsuite/ChangeLog
ld/testsuite/ld-powerpc/powerpc.exp
ld/testsuite/ld-powerpc/tocopt.out [new file with mode: 0644]