diff options
Diffstat (limited to 'ld/testsuite/ld-arm/arm-static-app.s')
-rw-r--r-- | ld/testsuite/ld-arm/arm-static-app.s | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/arm-static-app.s b/ld/testsuite/ld-arm/arm-static-app.s new file mode 100644 index 0000000..99c579f --- /dev/null +++ b/ld/testsuite/ld-arm/arm-static-app.s @@ -0,0 +1,20 @@ + .text + .globl _start +_start: + mov ip, sp + stmdb sp!, {r11, ip, lr, pc} + bl app_func + ldmia sp, {r11, sp, lr} + bx lr + + .globl app_func +app_func: + mov ip, sp + stmdb sp!, {r11, ip, lr, pc} + bl app_func2 + ldmia sp, {r11, sp, lr} + bx lr + + .globl app_func2 +app_func2: + bx lr |