[lld] r263723 - [COFF] Fix invalid alignment in tests

David Majnemer via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 17 09:56:31 PDT 2016


Author: majnemer
Date: Thu Mar 17 11:56:31 2016
New Revision: 263723

URL: http://llvm.org/viewvc/llvm-project?rev=263723&view=rev
Log:
[COFF] Fix invalid alignment in tests

Some COFF tests used INT_MIN for the alignment of the directive section.
This is invalid; replace the alignment with something more sensible: 1.

Modified:
    lld/trunk/test/COFF/Inputs/include1a.yaml
    lld/trunk/test/COFF/Inputs/include1b.yaml
    lld/trunk/test/COFF/alternatename.test
    lld/trunk/test/COFF/entry-inference2.test
    lld/trunk/test/COFF/include.test

Modified: lld/trunk/test/COFF/Inputs/include1a.yaml
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/Inputs/include1a.yaml?rev=263723&r1=263722&r2=263723&view=diff
==============================================================================
--- lld/trunk/test/COFF/Inputs/include1a.yaml (original)
+++ lld/trunk/test/COFF/Inputs/include1a.yaml Thu Mar 17 11:56:31 2016
@@ -9,7 +9,7 @@ sections:
     SectionData:     B800000000506800000000680000000050E80000000050E800000000
   - Name:            .drectve
     Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
-    Alignment:       2147483648
+    Alignment:       1
     SectionData:     2f696e636c7564653a666f6f00  # /include:foo
 symbols:
   - Name:            .text

Modified: lld/trunk/test/COFF/Inputs/include1b.yaml
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/Inputs/include1b.yaml?rev=263723&r1=263722&r2=263723&view=diff
==============================================================================
--- lld/trunk/test/COFF/Inputs/include1b.yaml (original)
+++ lld/trunk/test/COFF/Inputs/include1b.yaml Thu Mar 17 11:56:31 2016
@@ -9,7 +9,7 @@ sections:
     SectionData:     B800000000506800000000680000000050E80000000050E800000000
   - Name:            .drectve
     Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
-    Alignment:       2147483648
+    Alignment:       1
     SectionData:     2f696e636c7564653a62617200  # /include:bar
 symbols:
   - Name:            .text

Modified: lld/trunk/test/COFF/alternatename.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/alternatename.test?rev=263723&r1=263722&r2=263723&view=diff
==============================================================================
--- lld/trunk/test/COFF/alternatename.test (original)
+++ lld/trunk/test/COFF/alternatename.test Thu Mar 17 11:56:31 2016
@@ -25,7 +25,7 @@ sections:
     SectionData:     ''
   - Name:            .drectve
     Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
-    Alignment:       2147483648
+    Alignment:       1
     SectionData:     2f616c7465726e6174656e616d653a666f6f3d6d61696e00  # /alternatename:foo=main
 symbols:
   - Name:            '.text$mn'

Modified: lld/trunk/test/COFF/entry-inference2.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/entry-inference2.test?rev=263723&r1=263722&r2=263723&view=diff
==============================================================================
--- lld/trunk/test/COFF/entry-inference2.test (original)
+++ lld/trunk/test/COFF/entry-inference2.test Thu Mar 17 11:56:31 2016
@@ -15,7 +15,7 @@ sections:
     SectionData:     B82A000000C3
   - Name:            .drectve
     Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
-    Alignment:       2147483648
+    Alignment:       1
     SectionData:     2f616c7465726e6174656e616d653a6d61696e3d57696e4d61696e00  # /alternatename:main=WinMain
 symbols:
   - Name:            .text

Modified: lld/trunk/test/COFF/include.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/include.test?rev=263723&r1=263722&r2=263723&view=diff
==============================================================================
--- lld/trunk/test/COFF/include.test (original)
+++ lld/trunk/test/COFF/include.test Thu Mar 17 11:56:31 2016
@@ -33,7 +33,7 @@ sections:
     SectionData:     B82A000000C3
   - Name:            .drectve
     Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
-    Alignment:       2147483648
+    Alignment:       1
     SectionData:     2f696e636c7564653a7573656400  # /include:used
 symbols:
   - Name:            '.text$mn'




More information about the llvm-commits mailing list