mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +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.
26 lines
353 B
Makefile
26 lines
353 B
Makefile
#source: symtocbase-1.s
|
|
#source: symtocbase-2.s
|
|
#as: -a64
|
|
#ld: -shared -melf64ppc
|
|
#objdump: -dj.data -z
|
|
#target: powerpc64*-*-*
|
|
|
|
.*
|
|
|
|
Disassembly of section \.data:
|
|
|
|
.* <i>:
|
|
#...
|
|
.* \.long 0x28000
|
|
.* \.long 0x0
|
|
.* \.long 0x28000
|
|
.* \.long 0x0
|
|
.* \.long 0x38000
|
|
#...
|
|
.* \.long 0x38000
|
|
.* \.long 0x0
|
|
.* \.long 0x28000
|
|
.* \.long 0x0
|
|
.* \.long 0x38000
|
|
#pass
|