aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr20828.ver
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2017-01-23 11:19:46 +0000
committerMaciej W. Rozycki <macro@imgtec.com>2017-01-23 11:26:06 +0000
commitfda46c417ff8324960ca305141df5fc6c2f580af (patch)
tree8b511ac20f9d4c368fdc7cc749106b6f3ed0b3d3 /ld/testsuite/ld-elf/pr20828.ver
parentadcbdc63e5ccf663dacc8493cec63a95b653285e (diff)
downloadgdb-fda46c417ff8324960ca305141df5fc6c2f580af.zip
gdb-fda46c417ff8324960ca305141df5fc6c2f580af.tar.gz
gdb-fda46c417ff8324960ca305141df5fc6c2f580af.tar.bz2
PR ld/20828: Remove leading `_' from symbols used in tests
Complement commit 81ff47b3a546 ("PR ld/20828: Fix linker script symbols wrongly forced local with section GC") and remove the leading underscore from `_fdata' and `_edata' symbols used in tests, fixing a: FAIL: PR ld/20828 dynamic symbols with section GC (version script) failure with targets such as: `bfin-elf', `bfin-uclinux', `metag-elf', `metag-linux' `mn10300-elf', `sh-elf', `sh64-elf', and possibly other ones, that have `_' set (with `elf_symbol_leading_char') as the leading character for symbols. As from commit 93252b1cf41a ("bfd/ld: handle ABI prefixes in version scripts") these targets strip the leading underscore before applying version script rules, because the (default) syntax for symbol names is that of the C language rather than their low-level symbol table encoding. ld/ PR ld/20828 * testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to `fdata' and `edata' respectively. * testsuite/ld-elf/pr20828.ver: Adjust accordingly. * testsuite/ld-elf/pr20828-a.sd: Likewise. * testsuite/ld-elf/pr20828-b.sd: Likewise. * testsuite/ld-elf/pr20828-c.sd: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elf/pr20828.ver')
-rw-r--r--ld/testsuite/ld-elf/pr20828.ver2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-elf/pr20828.ver b/ld/testsuite/ld-elf/pr20828.ver
index 7d0fa22..bbc0ebd 100644
--- a/ld/testsuite/ld-elf/pr20828.ver
+++ b/ld/testsuite/ld-elf/pr20828.ver
@@ -1 +1 @@
-{ global: _edata; local: *; };
+{ global: edata; local: *; };