aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/empty-pack-dyn-relocs.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/empty-pack-dyn-relocs.s')
-rw-r--r--test/ELF/empty-pack-dyn-relocs.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ELF/empty-pack-dyn-relocs.s b/test/ELF/empty-pack-dyn-relocs.s
new file mode 100644
index 000000000000..b74a89d66d46
--- /dev/null
+++ b/test/ELF/empty-pack-dyn-relocs.s
@@ -0,0 +1,11 @@
+// REQUIRES: x86
+
+// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
+// RUN: ld.lld -pie --pack-dyn-relocs=relr %t.o -o %t
+// RUN: llvm-readobj -sections %t | FileCheck %s
+
+.global _start
+_start:
+ nop
+
+# CHECK-NOT: Name: .relr.dyn