From dbc37f892b730f7fb0177770be3e3eb67ad36149 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 31 Jan 2002 03:57:52 +0000 Subject: * 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. --- ld/testsuite/ld-scripts/cross1.t | 1 + ld/testsuite/ld-scripts/crossref.exp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'ld/testsuite/ld-scripts') diff --git a/ld/testsuite/ld-scripts/cross1.t b/ld/testsuite/ld-scripts/cross1.t index 7636b78..11efa13 100644 --- a/ld/testsuite/ld-scripts/cross1.t +++ b/ld/testsuite/ld-scripts/cross1.t @@ -2,6 +2,7 @@ NOCROSSREFS ( .text .data ) SECTIONS { .toc : { *(.toc) } + .opd : { *(.opd) } .text : { tmpdir/cross1.o } .data : { tmpdir/cross2.o } } diff --git a/ld/testsuite/ld-scripts/crossref.exp b/ld/testsuite/ld-scripts/crossref.exp index a2ba5ce..da5d7ba 100644 --- a/ld/testsuite/ld-scripts/crossref.exp +++ b/ld/testsuite/ld-scripts/crossref.exp @@ -54,7 +54,7 @@ if [string match "" $exec_output] then { fail $test1 } else { verbose -log "$exec_output" - if [regexp "prohibited cross reference from .* to `foo' in" $exec_output] { + if [regexp "prohibited cross reference from .* to `.*foo' in" $exec_output] { pass $test1 } else { fail $test1 -- cgit v1.1