test: fix tests/buildbots
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 1 Jan 2015 03:39:48 +0000 (03:39 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 1 Jan 2015 03:39:48 +0000 (03:39 +0000)
Correct the yaml definition for the object.  Adjust the symbol storage class
which was flipped for the two symbols, resulting in the link failure due to the
symbol missing.  Adjust the virtual address of the section.  This ripples into
the test case, since the data has been shifted up by 4 bytes.

llvm-svn: 225058

lld/test/pecoff/Inputs/armnt-addr32.obj.yaml
lld/test/pecoff/armnt-addr32.test

index b130263..62ae2c6 100644 (file)
@@ -8,7 +8,7 @@ sections:
     Alignment:       4
     SectionData:     '0000000000000000'
     Relocations:
-      - VirtualAddress:  4
+      - VirtualAddress:  0
         SymbolName:      i
         Type:            1
 symbols:
@@ -29,11 +29,11 @@ symbols:
     SectionNumber:   1
     SimpleType:      IMAGE_SYM_TYPE_NULL
     ComplexType:     IMAGE_SYM_DTYPE_NULL
-    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
+    StorageClass:    IMAGE_SYM_CLASS_STATIC
   - Name:            is
     Value:           4
     SectionNumber:   1
     SimpleType:      IMAGE_SYM_TYPE_NULL
     ComplexType:     IMAGE_SYM_DTYPE_NULL
-    StorageClass:    IMAGE_SYM_CLASS_STATIC
+    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
 ...
index b586beb..716217d 100644 (file)
@@ -7,5 +7,5 @@ BEFORE: Contents of section .rdata:
 BEFORE:  0000 00000000 00000000
 
 AFTER: Contents of section .rdata:
-AFTER:  1000 00000000 00104000
+AFTER:  1000 00104000 00000000