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

This change adds a test that checks the an error is produced when a hexagon
specific reserved section index is used but e_machine is not EM_HEXAGON.

Differential Revision: https://reviews.llvm.org/D38017

llvm-svn: 313661
diff --git a/llvm/test/tools/llvm-objcopy/section-index-unsupported.test b/llvm/test/tools/llvm-objcopy/section-index-unsupported.test
index f2d32b6..1a69757 100644
--- a/llvm/test/tools/llvm-objcopy/section-index-unsupported.test
+++ b/llvm/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