22// RUN: rm -rf %t && split-file %s %t && cd %t
33
44// RUN: llvm-mc -filetype=obj -triple=armv7a asm.s -o obj.o
5- // RUN: ld.lld -T lds.ld obj.o -o exe.elf -e main 2>&1 | FileCheck %s --implicit-check-not=warning: --allow-empty
5+ // RUN: ld.lld -T lds.ld obj.o -o exe.elf 2>&1 | FileCheck %s --implicit-check-not=warning: --allow-empty
66// RUN: llvm-objdump -D exe.elf | FileCheck --check-prefix=DISASM %s
77
8- // DISASM: Disassembly of section data1:
9- // DISASM: 00001000 <rw>:
10- // DISASM-NEXT: 1000: 0000002a
8+ // DISASM-LABEL: <rw>:
9+ // DISASM-NEXT: 1000: 0000002a
1110
12- // DISASM: Disassembly of section data2:
13- // DISASM: 00002000 <rw2>:
14- // DISASM-NEXT: 2000: 000004d2
11+ // DISASM-LABEL: <rw2>:
12+ // DISASM-NEXT: 2000: 000004d2
1513
16- // DISASM: Disassembly of section .debug_something:
17- // DISASM: 00000000 <.debug_something>:
18- // DISASM-NEXT: 0: 00001000
19- // DISASM-NEXT: ...
20- // DISASM-NEXT: 104: 00002000
14+ // DISASM-LABEL: <.debug_something>:
15+ // DISASM-NEXT: 0: 00001000
16+ // DISASM-NEXT: ...
17+ // DISASM-NEXT: 104: 00002000
2118
22- // Test that R_ARM_SBREL32 relocations in debug info are relocated as if the
23- // static base register (r9) is zero. Real DWARF info will use an expression to
24- // add this to the real value of the static base at runtime.
19+ /// Test that R_ARM_SBREL32 relocations in debug info are relocated as if the
20+ /// static base register (r9) is zero. Real DWARF info will use an expression to
21+ /// add this to the real value of the static base at runtime.
2522
2623//--- lds.ld
2724SECTIONS {
@@ -31,11 +28,11 @@ SECTIONS {
3128
3229//--- asm.s
3330 .text
34- .type main ,%function
35- .globl main
36- main :
31+ .type _start ,%function
32+ .globl _start
33+ _start :
3734 bx lr
38- .size main , .-main
35+ .size _start , .-_start
3936
4037 .section data1, "aw" , %progbits
4138 .type rw,%object
0 commit comments