[PATCH] D38017: [llvm-objcopy] Add test to check that architecture specific values are not used on wrong architecture.

Jake Ehrlich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 12:07:00 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL313661: [llvm-objcopy] Add test to check that architecture specific values are not used… (authored by jakehehrlich).

Changed prior to commit:
  https://reviews.llvm.org/D38017?vs=115770&id=115880#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D38017

Files:
  llvm/trunk/test/tools/llvm-objcopy/hexagon-unsupported-on-x86.test
  llvm/trunk/test/tools/llvm-objcopy/section-index-unsupported.test


Index: llvm/trunk/test/tools/llvm-objcopy/section-index-unsupported.test
===================================================================
--- llvm/trunk/test/tools/llvm-objcopy/section-index-unsupported.test
+++ llvm/trunk/test/tools/llvm-objcopy/section-index-unsupported.test
@@ -12,4 +12,4 @@
     - Name:     test
       Index:    0xff05
 
-# CHECK: [[_:.*]] Symbol 'test' has unsupported value greater than or equal to SHN_LORESERVE: 65285
+# CHECK: Symbol 'test' has unsupported value greater than or equal to SHN_LORESERVE: 65285
Index: llvm/trunk/test/tools/llvm-objcopy/hexagon-unsupported-on-x86.test
===================================================================
--- llvm/trunk/test/tools/llvm-objcopy/hexagon-unsupported-on-x86.test
+++ llvm/trunk/test/tools/llvm-objcopy/hexagon-unsupported-on-x86.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:    SHN_HEXAGON_SCOMMON
+
+# CHECK: Symbol 'test' has unsupported value greater than or equal to SHN_LORESERVE: 65280


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38017.115880.patch
Type: text/x-patch
Size: 1245 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170919/61e10d5b/attachment.bin>


More information about the llvm-commits mailing list