File tree Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change 1+ /// Test that R_ARM_SBREL32 relocations in debug info are relocated as if the
2+ /// static base register (r9) is zero. Real DWARF info will use an expression to
3+ /// add this to the real value of the static base at runtime.
4+
15// REQUIRES: arm
26// RUN: rm -rf %t && split-file %s %t && cd %t
37
1620// DISASM-NEXT: ...
1721// DISASM-NEXT: 104: 00002000
1822
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.
22-
2323//--- lds.ld
2424SECTIONS {
2525 data1 0x1000 : { *(data1) }
@@ -28,27 +28,27 @@ SECTIONS {
2828
2929//--- asm.s
3030 .text
31- .type _start,%function
32- .globl _start
31+ .type _start,%function
32+ .globl _start
3333_start:
3434 bx lr
3535 .size _start, .-_start
3636
37- .section data1, "aw" , %progbits
38- .type rw,%object
39- .globl rw
37+ .section data1, "aw" , %progbits
38+ .type rw,%object
39+ .globl rw
4040rw:
41- .long 42
42- .size rw, 4
41+ .long 42
42+ .size rw, 4
4343
44- .section data2, "aw" , %progbits
45- .type rw2,%object
46- .globl rw2
44+ .section data2, "aw" , %progbits
45+ .type rw2,%object
46+ .globl rw2
4747rw2:
48- .long 1234
49- .size rw2, 4
48+ .long 1234
49+ .size rw2, 4
5050
51- .section .debug_something, "", %progbits
52- .long rw(sbrel)
51+ .section .debug_something, "", %progbits
52+ .long rw(sbrel)
5353 .space 0x100
54- .long rw2(sbrel)
54+ .long rw2(sbrel)
You can’t perform that action at this time.
0 commit comments