mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
4a421c53cf
bfd/ * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for R_PPC64_GOT_PCREL34. (xlate_pcrel_opt): New function. (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34. (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation. ld/ * testsuite/ld-powerpc/pcrelopt.s, * testsuite/ld-powerpc/pcrelopt.d, * testsuite/ld-powerpc/pcrelopt.sec: New test. * testsuite/ld-powerpc/powerpc.exp: Run it.
7 lines
149 B
Plaintext
7 lines
149 B
Plaintext
# check for just one GOT entry
|
|
#...
|
|
.* \.rela\.dyn +RELA +[0-9a-f]+ [0-9a-f]+ 000018 .*
|
|
#...
|
|
.* \.got +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000010 .*
|
|
#pass
|