aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvsb
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-09-24 07:07:22 +0000
committerAlan Modra <amodra@gmail.com>2004-09-24 07:07:22 +0000
commit1ba54ee0206e3d32ee062d24d8342cd713ab4a0a (patch)
tree371f2e8f556d79b4586c1190306581fdcda8d595 /ld/testsuite/ld-elfvsb
parent5efb626185b9820d357696c1ade63ec19b24a80d (diff)
bfd/
* dwarf2.c (_bfd_dwarf2_find_nearest_line): Add output section vma and output offset to address. * simple.c (simple_save_output_info): Only set output section and offset for debug sections, or those not already set up by the linker. (bfd_simple_get_relocated_section_contents): Update comment. ld/testsuite/ * ld-elfvsb/elfvsb.exp: Remove file name from "undefined ref" string.
Diffstat (limited to 'ld/testsuite/ld-elfvsb')
-rw-r--r--ld/testsuite/ld-elfvsb/elfvsb.exp20
1 files changed, 10 insertions, 10 deletions
diff --git a/ld/testsuite/ld-elfvsb/elfvsb.exp b/ld/testsuite/ld-elfvsb/elfvsb.exp
index 0b87c77105..3208f8e1bc 100644
--- a/ld/testsuite/ld-elfvsb/elfvsb.exp
+++ b/ld/testsuite/ld-elfvsb/elfvsb.exp
@@ -117,12 +117,12 @@ proc visibility_test { visibility progname testname main sh1 sh2 dat args } {
}
if {![ld_simple_link $CC $tmpdir/$progname.so "$shared $shldflags $tmpdir/$sh1 $tmpdir/$sh2"]} {
if { [ string match $visibility "hidden_undef" ]
- && [regexp ".*/sh1.c.*: undefined reference to \`\.?visibility\'" $link_output]
- && [regexp ".*/sh1.c.*: undefined reference to \`visibility_var\'" $link_output] } {
+ && [regexp "undefined reference to \`\.?visibility\'" $link_output]
+ && [regexp "undefined reference to \`visibility_var\'" $link_output] } {
pass "$testname"
} else { if { [ string match $visibility "protected_undef" ]
- && [regexp ".*/sh1.c.*: undefined reference to \`\.?visibility\'" $link_output]
- && [regexp ".*/sh1.c.*: undefined reference to \`visibility_var\'" $link_output] } {
+ && [regexp "undefined reference to \`\.?visibility\'" $link_output]
+ && [regexp "undefined reference to \`visibility_var\'" $link_output] } {
pass "$testname"
} else {
fail "$testname"
@@ -140,14 +140,14 @@ proc visibility_test { visibility progname testname main sh1 sh2 dat args } {
}
if ![ld_simple_link $CC $tmpdir/$progname "-Wl,-rpath,$rpath $tmpdir/$main $tmpdir/$progname.so"] {
if { [ string match $visibility "hidden" ]
- && [regexp ".*/main.c.*: undefined reference to \`\.?visibility\'" $link_output]
- && [regexp ".*/main.c.*: undefined reference to \`visibility_var\'" $link_output] } {
+ && [regexp "undefined reference to \`\.?visibility\'" $link_output]
+ && [regexp "undefined reference to \`visibility_var\'" $link_output] } {
pass "$testname"
} else { if { [ string match $visibility "hidden_undef_def" ]
- && [regexp ".*/main.c.*: undefined reference to \`\.?visibility\'" $link_output]
- && [regexp ".*/main.c.*: undefined reference to \`visibility_def\'" $link_output]
- && [regexp ".*/main.c.*: undefined reference to \`\.?visibility_func\'" $link_output]
- && [regexp ".*/main.c.*: undefined reference to \`visibility_var\'" $link_output] } {
+ && [regexp "undefined reference to \`\.?visibility\'" $link_output]
+ && [regexp "undefined reference to \`visibility_def\'" $link_output]
+ && [regexp "undefined reference to \`\.?visibility_func\'" $link_output]
+ && [regexp "undefined reference to \`visibility_var\'" $link_output] } {
pass "$testname"
} else {
fail "$testname"