mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
3def145413
Add the entry symbol, _main, to fix: FAIL: ld-elf/64ksec FAIL: ld-elf/comm-data4 FAIL: ld-elf/comm-data5 FAIL: ld-elf/eh5 FAIL: ld-elf/empty FAIL: ld-elf/empty2 FAIL: ld-elf/endsym FAIL: ld-elf/exclude3a FAIL: ld-elf/linkonce2 FAIL: ld-elf/orphan3 FAIL: ld-elf/pr12851 FAIL: ld-elf/pr14156a FAIL: ld-elf/pr14156b FAIL: ld-elf/pr14926 FAIL: ld-elf/pr20513a FAIL: ld-elf/pr20513b FAIL: ld-elf/stab FAIL: ld-elf/var1 FAIL: ld-elf/warn3 FAIL: section size overflow for i386-lynxos target. * testsuite/ld-checks/over2.s: Add "_main" for LynxOS targets. * testsuite/ld-elf/comm-data4.s: Likewise. * testsuite/ld-elf/comm-data5.s: Likewise. * testsuite/ld-elf/eh5b.s: Likewise. * testsuite/ld-elf/empty.s: Likewise. * testsuite/ld-elf/empty2.s: Likewise. * testsuite/ld-elf/exclude3.s: Likewise. * testsuite/ld-elf/fini0.s: Likewise. * testsuite/ld-elf/init0.s: Likewise. * testsuite/ld-elf/linkonce1b.s: Likewise. * testsuite/ld-elf/orphan3a.s: Likewise. * testsuite/ld-elf/pr14926.s: Likewise. * testsuite/ld-elf/pr20513a.s: Likewise. * testsuite/ld-elf/sec64k.exp: Likewise. * testsuite/ld-elf/start.s: Likewise. * testsuite/ld-elf/var1.s: Likewise.
34 lines
463 B
ArmAsm
34 lines
463 B
ArmAsm
.globl main
|
|
.globl _main
|
|
.globl start
|
|
.globl _start
|
|
.globl __start
|
|
.text
|
|
main:
|
|
_main:
|
|
start:
|
|
_start:
|
|
__start:
|
|
.byte 0
|
|
.globl var3
|
|
.section .data.var3,"aw",%progbits
|
|
.p2align 2
|
|
.type var3, %object
|
|
.size var3, 4
|
|
var3:
|
|
.zero 4
|
|
.globl var2
|
|
.section .data.var2,"aw",%progbits
|
|
.p2align 4
|
|
.type var2, %object
|
|
.size var2, 16
|
|
var2:
|
|
.zero 16
|
|
.globl var1
|
|
.section .data.var1,"aw",%progbits
|
|
.p2align 2
|
|
.type var1, %object
|
|
.size var1, 4
|
|
var1:
|
|
.zero 4
|