aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gold/testsuite')
-rw-r--r--gold/testsuite/arm_exidx_test.s15
1 files changed, 14 insertions, 1 deletions
diff --git a/gold/testsuite/arm_exidx_test.s b/gold/testsuite/arm_exidx_test.s
index e4f8c8b..14dcc94 100644
--- a/gold/testsuite/arm_exidx_test.s
+++ b/gold/testsuite/arm_exidx_test.s
@@ -1,12 +1,25 @@
.syntax unified
.arch armv5te
- .text
+ .section .text.answer,"ax",%progbits
.align 2
.global answer
.type answer, %function
answer:
.fnstart
+ .cantunwind
mov r0, #42
bx lr
.fnend
.size answer, .-answer
+
+# Check that we can handle an empty .text section
+ .section .text.empty,"ax",%progbits
+ .align 2
+ .global empty
+ .type empty, %function
+empty:
+ .fnstart
+ .cantunwind
+ .fnend
+ .size empty, .-empty
+