aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-08-18 13:21:33 +0930
committerAlan Modra <amodra@gmail.com>2021-08-18 13:36:57 +0930
commita86733d63d40fd8d3a7a2640ebcc048414fb465f (patch)
tree2a19fd5794b71ae7d613dbeec1bcaf5773c01677 /gas
parent89c905a342d2cb35ebc4d66ad7cdca581b5134c3 (diff)
downloadgdb-a86733d63d40fd8d3a7a2640ebcc048414fb465f.zip
gdb-a86733d63d40fd8d3a7a2640ebcc048414fb465f.tar.gz
gdb-a86733d63d40fd8d3a7a2640ebcc048414fb465f.tar.bz2
Re: as: Replace the removed symbol with the versioned symbol
Some targets, typically embedded without shared libraries, replace the relocation symbol with a section symbol (see tc_fix_adjustable). Allow the test to pass for such targets. Fixes the following. avr-elf +FAIL: symver symver16 d10v-elf +FAIL: symver symver16 dlx-elf +FAIL: symver symver16 ip2k-elf +FAIL: symver symver16 m68k-elf +FAIL: symver symver16 mcore-elf +FAIL: symver symver16 pj-elf +FAIL: symver symver16 s12z-elf +FAIL: symver symver16 visium-elf +FAIL: symver symver16 z80-elf +FAIL: symver symver16 PR gas/28157 * testsuite/gas/symver/symver16.d: Relax reloc match.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/symver/symver16.d4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/testsuite/gas/symver/symver16.d b/gas/testsuite/gas/symver/symver16.d
index cdf0ddd..ef335d5 100644
--- a/gas/testsuite/gas/symver/symver16.d
+++ b/gas/testsuite/gas/symver/symver16.d
@@ -4,9 +4,9 @@
#...
Relocation section .*
#...
-[0-9a-f]+[ \t]+[0-9a-f]+[ \t]+R_.*[ \t]+[0-9a-f]+[ \t]+foo@@VERS_1.*
+[0-9a-f]+[ \t]+[0-9a-f]+[ \t]+R_.*[ \t]+[0-9a-f]+[ \t]+(foo@@VERS_1|\.data).*
#...
-[0-9a-f]+[ \t]+[0-9a-f]+[ \t]+R_.*[ \t]+[0-9a-f]+[ \t]+bar@VERS_1.*
+[0-9a-f]+[ \t]+[0-9a-f]+[ \t]+R_.*[ \t]+[0-9a-f]+[ \t]+(bar@VERS_1|\.data).*
#...
+[0-9]+: 0+ +1 +OBJECT +GLOBAL +DEFAULT +[0-9]+ +foo@@VERS_1
+[0-9]+: 0+1 +1 +OBJECT +GLOBAL +DEFAULT +[0-9]+ +bar@VERS_1