mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
92a9c616e4
bfd/ * elf64-ppc.c (toc_adjusting_stub_needed): Use the symbol value plus addend rather than the original st_value when looking up entries in opd->adjust. ld/testsuite/ * ld-powerpc/tocopt6-inc.s, ld-powerpc/tocopt6a.s, ld-powerpc/tocopt6b.s, ld-powerpc/tocopt6c.s, ld-powerpc/tocopt6.d: New test. * ld-powerpc/powerpc.exp (ppc64elftests): Add it.
21 lines
176 B
ArmAsm
21 lines
176 B
ArmAsm
.include "tocopt6-inc.s"
|
|
in123
|
|
in23
|
|
gobblegot f3
|
|
|
|
.section .text
|
|
.globl main
|
|
start main
|
|
bl f1
|
|
nop
|
|
bl f2
|
|
nop
|
|
bl f3
|
|
nop
|
|
bl g2
|
|
nop
|
|
bl in23
|
|
nop
|
|
li 3, 0
|
|
end main
|