mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-12 12:16:04 +08:00
ef5684c2bd
Using a symbol other than .TOC. with @tocbase is an extension to the ABI. It is never valid to use a symbol without a definition in the binary, and symbols on these expressions cannot be overridden. Make this explicit by using ".hidden" in the testcase. * testsuite/ld-powerpc/symtocbase-1.s: Align data. Make function entry symbol hidden. * testsuite/ld-powerpc/symtocbase-2.s: Likewise. * testsuite/ld-powerpc/symtocbase.d: Adjust expected output.
23 lines
281 B
ArmAsm
23 lines
281 B
ArmAsm
.section .toc,"aw",@progbits
|
|
.align 15
|
|
.globl x
|
|
x: .quad .x,.x@tocbase,0
|
|
.LCi: .quad i
|
|
.space 48 * 1024
|
|
|
|
.data
|
|
.p2align 2
|
|
.globl i
|
|
i: .long 0
|
|
.L1bases:
|
|
.quad .TOC.@tocbase
|
|
.quad .x@tocbase
|
|
.quad .y@tocbase
|
|
|
|
.text
|
|
.globl .x
|
|
.hidden .x
|
|
.x:
|
|
ld 9,.LCi@toc(2)
|
|
blr
|