summaryrefslogtreecommitdiff
path: root/test/ELF/arm-exidx-sentinel-norelocatable.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/arm-exidx-sentinel-norelocatable.s')
-rw-r--r--test/ELF/arm-exidx-sentinel-norelocatable.s17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/ELF/arm-exidx-sentinel-norelocatable.s b/test/ELF/arm-exidx-sentinel-norelocatable.s
new file mode 100644
index 000000000000..4a5b64d8cd18
--- /dev/null
+++ b/test/ELF/arm-exidx-sentinel-norelocatable.s
@@ -0,0 +1,17 @@
+// RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o %t.o
+// RUN: ld.lld -r %t.o -o %t
+// REQUIRES: arm
+// RUN: llvm-readobj -s %t | FileCheck %s
+// Check that when doing a relocatable link we don't add a terminating entry
+// to the .ARM.exidx section
+ .syntax unified
+ .text
+_start:
+ .fnstart
+ .cantunwind
+ bx lr
+ .fnend
+
+// Expect 1 table entry of size 8
+// CHECK: Name: .ARM.exidx
+// CHECK: Size: 8