summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvers/vers30.dsym
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-12-10 06:08:10 +0000
committerMike Frysinger <vapier@gentoo.org>2010-12-10 06:08:10 +0000
commit70978925b81fec0f8a8db61b9de73ead19bdc73a (patch)
treeb5a963f135b0cd4a6be10bec197dd0364356eb71 /ld/testsuite/ld-elfvers/vers30.dsym
parent9dd76e75eb534a70027ac66abfdfa9d90a649401 (diff)
downloadbinutils-redhat-70978925b81fec0f8a8db61b9de73ead19bdc73a.tar.gz
ld: elfvers tests: support symbol prefixed targets
The symbol versioning tests mix C-visible symbols and linker-visible symbols in order to verify .symver behavior. This works for most people, but fail for targets that have a symbol prefix. So add a helper file with macros that expand gcc's __USER_LABEL_PREFIX__ as necessary and convert all .symver users over to it. Now that the tests are usable on prefixed targets, update the tests to take into account an optional leading underscore. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'ld/testsuite/ld-elfvers/vers30.dsym')
-rw-r--r--ld/testsuite/ld-elfvers/vers30.dsym8
1 files changed, 4 insertions, 4 deletions
diff --git a/ld/testsuite/ld-elfvers/vers30.dsym b/ld/testsuite/ld-elfvers/vers30.dsym
index ddb21eb38b..5762f01843 100644
--- a/ld/testsuite/ld-elfvers/vers30.dsym
+++ b/ld/testsuite/ld-elfvers/vers30.dsym
@@ -1,5 +1,5 @@
0+ g DO \*ABS\* 0+ VERS_30\.0 VERS_30\.0
-[0-9a-f]+ g DF (\.text|\.opd|\*ABS\*) [0-9a-f]+ VERS_30\.0 global
-[0-9a-f]+ g DF (\.text|\.opd|\*ABS\*) [0-9a-f]+ VERS_30\.0 foo
-[0-9a-f]+ g DF (\.text|\.opd|\*ABS\*) [0-9a-f]+ VERS_30\.0 info
-[0-9a-f]+ g DF (\.text|\.opd|\*ABS\*) [0-9a-f]+ VERS_30\.0 extern
+[0-9a-f]+ g DF (\.text|\.opd|\*ABS\*) [0-9a-f]+ VERS_30\.0 _?global
+[0-9a-f]+ g DF (\.text|\.opd|\*ABS\*) [0-9a-f]+ VERS_30\.0 _?foo
+[0-9a-f]+ g DF (\.text|\.opd|\*ABS\*) [0-9a-f]+ VERS_30\.0 _?info
+[0-9a-f]+ g DF (\.text|\.opd|\*ABS\*) [0-9a-f]+ VERS_30\.0 _?extern