Commit | Line | Data |
---|---|---|
a394c00f NC |
1 | #; $ as -o test.o gas-cfi-test.s && gcc -nostdlib -o test test.o |
2 | ||
3 | .file "a.c" | |
4 | .text | |
5 | .align 2 | |
6 | .global foo | |
7 | .type foo, %function | |
8 | foo: | |
9 | .cfi_startproc | |
10 | mov ip, sp | |
11 | .cfi_def_cfa ip, 0 | |
12 | stmfd sp!, {r0, r1, r2, r3} | |
13 | .cfi_def_cfa sp, 16 | |
14 | stmfd sp!, {fp, ip, lr, pc} | |
15 | .cfi_adjust_cfa_offset 16 | |
16 | .cfi_rel_offset r11, 0 | |
17 | .cfi_rel_offset lr, 8 | |
18 | sub fp, ip, #20 | |
19 | .cfi_def_cfa fp, 16 | |
20 | nop | |
21 | ldmea fp, {fp, sp, pc} | |
22 | .cfi_endproc | |
23 | .size foo, .-foo |