aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/lib
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-01-31 03:57:52 +0000
committerAlan Modra <amodra@gmail.com>2002-01-31 03:57:52 +0000
commitdbc37f892b730f7fb0177770be3e3eb67ad36149 (patch)
treeb53b8010f294a6de74b93fcd368b6931730ba7ca /ld/testsuite/lib
parent1a70374818c962c98ac3e43f516887abc87fc6b6 (diff)
downloadgdb-dbc37f892b730f7fb0177770be3e3eb67ad36149.zip
gdb-dbc37f892b730f7fb0177770be3e3eb67ad36149.tar.gz
gdb-dbc37f892b730f7fb0177770be3e3eb67ad36149.tar.bz2
* ld-scripts/crossref.exp: Allow foo to have a leading dot.
* ld-scripts/cross1.t: Add .opd. * ld-undefined/undefined.exp: Allow leading dot on sym names. * lib/ld-lib.exp (default_ld_nm): Strip leading dots from syms.
Diffstat (limited to 'ld/testsuite/lib')
-rw-r--r--ld/testsuite/lib/ld-lib.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 841b14b..06583e5 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -307,7 +307,7 @@ proc default_ld_nm { nm nmflags object } {
set file [open tmpdir/nm.out r]
while { [gets $file line] != -1 } {
verbose "$line" 2
- if [regexp "^(\[0-9a-fA-F\]+) \[a-zA-Z0-9\] (.+)$" $line whole value name] {
+ if [regexp "^(\[0-9a-fA-F\]+) \[a-zA-Z0-9\] \\.*(.+)$" $line whole value name] {
set name [string trimleft $name "_"]
verbose "Setting nm_output($name) to 0x$value" 2
set nm_output($name) 0x$value