summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objcopy/section-index-unsupported.test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/llvm-objcopy/section-index-unsupported.test')
-rw-r--r--llvm/test/tools/llvm-objcopy/section-index-unsupported.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objcopy/section-index-unsupported.test b/llvm/test/tools/llvm-objcopy/section-index-unsupported.test
new file mode 100644
index 00000000000..f2d32b6dd5e
--- /dev/null
+++ b/llvm/test/tools/llvm-objcopy/section-index-unsupported.test
@@ -0,0 +1,15 @@
+# RUN: yaml2obj %s > %t
+# RUN: not llvm-objcopy %t %t2 2>&1 >/dev/null | FileCheck %s
+
+!ELF
+FileHeader:
+ Class: ELFCLASS64
+ Data: ELFDATA2LSB
+ Type: ET_EXEC
+ Machine: EM_X86_64
+Symbols:
+ Global:
+ - Name: test
+ Index: 0xff05
+
+# CHECK: [[_:.*]] Symbol 'test' has unsupported value greater than or equal to SHN_LORESERVE: 65285
OpenPOWER on IntegriCloud