From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1386) id D768C3858C53; Fri, 5 Aug 2022 09:52:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D768C3858C53 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jan Beulich To: bfd-cvs@sourceware.org Subject: [binutils-gdb] gas: fix a testcase broken by new ZSTD support X-Act-Checkin: binutils-gdb X-Git-Author: Tsukasa OI X-Git-Refname: refs/heads/master X-Git-Oldrev: 5858ac626e548772407c038b09b7837550b127dd X-Git-Newrev: 8005415fe923df328546c844729f11d9ed28e270 Message-Id: <20220805095220.D768C3858C53@sourceware.org> Date: Fri, 5 Aug 2022 09:52:20 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2022 09:52:21 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D8005415fe923= df328546c844729f11d9ed28e270 commit 8005415fe923df328546c844729f11d9ed28e270 Author: Tsukasa OI Date: Fri Aug 5 11:52:09 2022 +0200 gas: fix a testcase broken by new ZSTD support =20 The commit 1369522f36eece1b37139a81f7f2139ba3915172 ("Recognize the new= ELF compression type for ZSTD.") added the new ELF compression type but it accidentally broke a GAS testcase. Since testing for the section type "2048" (SHF_COMPRESSED) is not going to be portable in the long term, it now tests SHF_LINK_ORDER ("128") instead. =20 Using SHF_LINK_ORDER (with possibly sh_link =3D=3D 0) is an idea by Jan= Beulich. =20 gas/ChangeLog: =20 * testsuite/gas/elf/section10.s: Use SHF_LINK_ORDER to test mixed numeric and alpha values. * testsuite/gas/elf/section10.d: Reflect the change above. Diff: --- gas/testsuite/gas/elf/section10.d | 3 +-- gas/testsuite/gas/elf/section10.s | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gas/testsuite/gas/elf/section10.d b/gas/testsuite/gas/elf/sect= ion10.d index d51bd4e36e5..6aa57d42943 100644 --- a/gas/testsuite/gas/elf/section10.d +++ b/gas/testsuite/gas/elf/section10.d @@ -13,8 +13,7 @@ [ ]*\[.*6000000\]: OS \(.*6000000\) [ ]*\[.*\][ ]+sec2 [ ]*PROGBITS.* -[ ]*\[0+00806\]: ALLOC, EXEC, COMPRESSED -[ ]*\[: 0x[0-9]+\], .* +[ ]*\[0+00086\]: ALLOC, EXEC, LINK ORDER #... [ ]*\[.*\][ ]+sec3 [ ]*PROGBITS.* diff --git a/gas/testsuite/gas/elf/section10.s b/gas/testsuite/gas/elf/sect= ion10.s index d52b3458fb1..e617bad609c 100644 --- a/gas/testsuite/gas/elf/section10.s +++ b/gas/testsuite/gas/elf/section10.s @@ -3,7 +3,7 @@ .word 1 =20 # Make sure that a numeric value can be mixed with alpha values. - .section sec2, "a2048x" + .section sec2, "a128x" .word 2 =20 # Make sure that specifying further arguments to .sections is still suppo= rted