diff options
author | Tsukasa OI <research_trasio@irq.a4lg.com> | 2022-08-05 11:52:09 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2022-08-05 11:52:09 +0200 |
commit | 8005415fe923df328546c844729f11d9ed28e270 (patch) | |
tree | adf3b15cb54701ef0f5ef94232bfc6a98a8ae9ad | |
parent | 5858ac626e548772407c038b09b7837550b127dd (diff) | |
download | gdb-8005415fe923df328546c844729f11d9ed28e270.zip gdb-8005415fe923df328546c844729f11d9ed28e270.tar.gz gdb-8005415fe923df328546c844729f11d9ed28e270.tar.bz2 |
gas: fix a testcase broken by new ZSTD support
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.
-rw-r--r-- | gas/testsuite/gas/elf/section10.d | 3 | ||||
-rw-r--r-- | 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/section10.d index d51bd4e..6aa57d4 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 -[ ]*\[<unknown>: 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/section10.s index d52b345..e617bad 100644 --- a/gas/testsuite/gas/elf/section10.s +++ b/gas/testsuite/gas/elf/section10.s @@ -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 |