summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/tools/llvm-objcopy/Inputs/pt-phdr.elfbin0 -> 8808 bytes
-rw-r--r--llvm/test/tools/llvm-objcopy/sectionless-segment.test4
2 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objcopy/Inputs/pt-phdr.elf b/llvm/test/tools/llvm-objcopy/Inputs/pt-phdr.elf
new file mode 100644
index 00000000000..cede0e7e404
--- /dev/null
+++ b/llvm/test/tools/llvm-objcopy/Inputs/pt-phdr.elf
Binary files differ
diff --git a/llvm/test/tools/llvm-objcopy/sectionless-segment.test b/llvm/test/tools/llvm-objcopy/sectionless-segment.test
new file mode 100644
index 00000000000..054e84f6066
--- /dev/null
+++ b/llvm/test/tools/llvm-objcopy/sectionless-segment.test
@@ -0,0 +1,4 @@
+# RUN: llvm-objcopy -O binary %p/Inputs/pt-phdr.elf %t
+# RUN: wc -c < %t | FileCheck %s
+
+# CHECK: 4110
OpenPOWER on IntegriCloud