mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
270f32fc50
Adjust tests to reference __start and __stop syms with an extra leading underscore when appropriate, and run tests on more targets. * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS. Move tests with ELF section directives to is_elf_format block. * testsuite/ld-gc/abi-note.d: Run on more targets. * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails. * testsuite/ld-gc/start.d: Likewise. * testsuite/ld-gc/start2.d: Likewise. * testsuite/ld-gc/stop.d: Likewise. * testsuite/ld-gc/pr19167a.s: Add support for underscore targets. * testsuite/ld-gc/start.s: Likewise. * testsuite/ld-gc/start2.s: Likewise.
13 lines
183 B
ArmAsm
13 lines
183 B
ArmAsm
.globl _start
|
|
_start:
|
|
.ifdef UNDERSCORE
|
|
.weak ___start__foo
|
|
.dc.a ___start__foo
|
|
.else
|
|
.weak __start__foo
|
|
.dc.a __start__foo
|
|
.endif
|
|
.section _foo,"aw",%progbits
|
|
foo:
|
|
.long 1
|