[X86_64][test] check that interp section is not emitted when building dynamic libraries
authorShankar Easwaran <shankare@codeaurora.org>
Wed, 20 Mar 2013 23:34:36 +0000 (23:34 +0000)
committerShankar Easwaran <shankare@codeaurora.org>
Wed, 20 Mar 2013 23:34:36 +0000 (23:34 +0000)
llvm-svn: 177603

lld/test/elf/X86_64/Inputs/no-interp-section.c [new file with mode: 0644]
lld/test/elf/X86_64/Inputs/no-interp-section.o [new file with mode: 0644]
lld/test/elf/X86_64/dynlib-nointerp-section.test [new file with mode: 0644]

diff --git a/lld/test/elf/X86_64/Inputs/no-interp-section.c b/lld/test/elf/X86_64/Inputs/no-interp-section.c
new file mode 100644 (file)
index 0000000..3981c03
--- /dev/null
@@ -0,0 +1 @@
+int c = 10;
diff --git a/lld/test/elf/X86_64/Inputs/no-interp-section.o b/lld/test/elf/X86_64/Inputs/no-interp-section.o
new file mode 100644 (file)
index 0000000..ea38394
Binary files /dev/null and b/lld/test/elf/X86_64/Inputs/no-interp-section.o differ
diff --git a/lld/test/elf/X86_64/dynlib-nointerp-section.test b/lld/test/elf/X86_64/dynlib-nointerp-section.test
new file mode 100644 (file)
index 0000000..e41a781
--- /dev/null
@@ -0,0 +1,5 @@
+RUN: lld -core -target x86_64 %p/Inputs/no-interp-section.o -output=%t \
+RUN: -noinhibit-exec -output-type=shared
+RUN: llvm-objdump -section-headers %t | FileCheck %s
+
+CHECK-NOT: .interp