From: Jan Beulich Date: Mon, 7 Dec 2015 16:52:25 +0000 (+0100) Subject: ld: relax alignment requirements of compressed .debug_* section checks X-Git-Tag: users/ARM/embedded-gdb-2_26-branch-2016q1~6^2~79 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=343a89051f448d29ebd3f00106ce7f9793912a89;p=thirdparty%2Fbinutils-gdb.git ld: relax alignment requirements of compressed .debug_* section checks This fixes a failure of the gabinormal linking test on some distros (where e.g. crt1.o has a .debug_aranges section with larger alignment). Backport from master * ld-elf/gabiend.rt: Accept any alignment. * ld-elf/gabinormal.rt: Likewise. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 2fa9ad37636..edbf9f2f9ea 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2016-03-14 H.J. Lu + + Backport from master + 2015-12-07 Jan Beulich + + * ld-elf/gabiend.rt: Accept any alignment. + * ld-elf/gabinormal.rt: Likewise. + 2016-03-09 H.J. Lu Backport from master diff --git a/ld/testsuite/ld-elf/gabiend.rt b/ld/testsuite/ld-elf/gabiend.rt index 23bc36c8771..75b5ba72138 100644 --- a/ld/testsuite/ld-elf/gabiend.rt +++ b/ld/testsuite/ld-elf/gabiend.rt @@ -1,4 +1,4 @@ #... +\[[0-9a-f]+\]: .*COMPRESSED - +ZLIB, [0-9a-f]+, 1 + +ZLIB, [0-9a-f]+, [1-9][0-9]* #pass diff --git a/ld/testsuite/ld-elf/gabinormal.rt b/ld/testsuite/ld-elf/gabinormal.rt index 23bc36c8771..75b5ba72138 100644 --- a/ld/testsuite/ld-elf/gabinormal.rt +++ b/ld/testsuite/ld-elf/gabinormal.rt @@ -1,4 +1,4 @@ #... +\[[0-9a-f]+\]: .*COMPRESSED - +ZLIB, [0-9a-f]+, 1 + +ZLIB, [0-9a-f]+, [1-9][0-9]* #pass