560c8763d3
* 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.
4 lines
76 B
Text
4 lines
76 B
Text
.*
|
|
\(\.text\+0x14\): .* 0x3fa00000 .*
|
|
.*
|
|
\(\.text\+0x34\): .* 0x3fa00010 .*
|