From: David Majnemer Date: Thu, 17 Mar 2016 16:56:31 +0000 (+0000) Subject: [COFF] Fix invalid alignment in tests X-Git-Tag: llvmorg-3.9.0-rc1~11528 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07f7fe5a4c44fae94a2fed1ffaba437bb0fd73b0;p=platform%2Fupstream%2Fllvm.git [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. llvm-svn: 263723 --- diff --git a/lld/test/COFF/Inputs/include1a.yaml b/lld/test/COFF/Inputs/include1a.yaml index 7fca983..caa313d 100644 --- a/lld/test/COFF/Inputs/include1a.yaml +++ b/lld/test/COFF/Inputs/include1a.yaml @@ -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 diff --git a/lld/test/COFF/Inputs/include1b.yaml b/lld/test/COFF/Inputs/include1b.yaml index e4151be..091deb1 100644 --- a/lld/test/COFF/Inputs/include1b.yaml +++ b/lld/test/COFF/Inputs/include1b.yaml @@ -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 diff --git a/lld/test/COFF/alternatename.test b/lld/test/COFF/alternatename.test index 5b9dc47..d035596 100644 --- a/lld/test/COFF/alternatename.test +++ b/lld/test/COFF/alternatename.test @@ -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' diff --git a/lld/test/COFF/entry-inference2.test b/lld/test/COFF/entry-inference2.test index afac808..c568d94 100644 --- a/lld/test/COFF/entry-inference2.test +++ b/lld/test/COFF/entry-inference2.test @@ -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 diff --git a/lld/test/COFF/include.test b/lld/test/COFF/include.test index b9e5f49..d3ae4e7 100644 --- a/lld/test/COFF/include.test +++ b/lld/test/COFF/include.test @@ -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'