aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/lib/ld.exp
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/lib/ld.exp')
-rw-r--r--ld/testsuite/lib/ld.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/lib/ld.exp b/ld/testsuite/lib/ld.exp
index 55994d0..a6dfdb0 100644
--- a/ld/testsuite/lib/ld.exp
+++ b/ld/testsuite/lib/ld.exp
@@ -96,6 +96,11 @@ proc default_ld_simple_link { ld target objects } {
catch "exec $ld -o $target $objects" exec_output
set exec_output [prune_system_crud $host_triplet $exec_output]
+
+ # We don't care if we get a warning about a non-existent start
+ # symbol, since the default linker script might use ENTRY.
+ regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
+
if [string match "" $exec_output] then {
return 1
} else {