aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/end-abs.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/end-abs.s')
-rw-r--r--test/ELF/end-abs.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ELF/end-abs.s b/test/ELF/end-abs.s
new file mode 100644
index 000000000000..2199ce23ad04
--- /dev/null
+++ b/test/ELF/end-abs.s
@@ -0,0 +1,11 @@
+# REQUIRES: x86
+# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
+# RUN: ld.lld %t.o -o %t -pie
+# RUN: llvm-readobj -r %t | FileCheck %s
+
+# CHECK: Relocations [
+# CHECK-NEXT: ]
+
+.global _start
+_start:
+.long _end - .