]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas: fix a testcase broken by new ZSTD support
authorTsukasa OI <research_trasio@irq.a4lg.com>
Fri, 5 Aug 2022 09:52:09 +0000 (11:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 5 Aug 2022 09:52:09 +0000 (11:52 +0200)
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.

Using SHF_LINK_ORDER (with possibly sh_link == 0) is an idea by Jan Beulich.

gas/ChangeLog:

* 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.

gas/testsuite/gas/elf/section10.d
gas/testsuite/gas/elf/section10.s

index d51bd4e36e56ca9c6a7a1eab1cec853d87bf194c..6aa57d4294316e76342c54db8dc821138ddecf0e 100644 (file)
@@ -13,8 +13,7 @@
 [      ]*\[.*6000000\]: OS \(.*6000000\)
 [      ]*\[.*\][       ]+sec2
 [      ]*PROGBITS.*
-[      ]*\[0+00806\]: ALLOC, EXEC, COMPRESSED
-[      ]*\[<unknown>: 0x[0-9]+\], .*
+[      ]*\[0+00086\]: ALLOC, EXEC, LINK ORDER
 #...
 [      ]*\[.*\][       ]+sec3
 [      ]*PROGBITS.*
index d52b3458fb1279cdaea4025ed98a366d840ca3d6..e617bad609cb7c2aef907d2eb2fd9afad9610fbb 100644 (file)
@@ -3,7 +3,7 @@
        .word 1
 
        # Make sure that a numeric value can be mixed with alpha values.
-       .section sec2, "a2048x"
+       .section sec2, "a128x"
        .word 2
 
        # Make sure that specifying further arguments to .sections is still supported