diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-11-15 22:44:56 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-11-15 22:44:56 +0000 |
commit | 1b09c02b1788bb88abd2e325f82600018290dbb3 (patch) | |
tree | e4a9638ce822bfe10aa2d1cb93f31e3dc54f3467 /ld/testsuite/lib | |
parent | d7cde714c1fd98e48ffb94d259ac8156be0ffffa (diff) | |
download | gdb-1b09c02b1788bb88abd2e325f82600018290dbb3.zip gdb-1b09c02b1788bb88abd2e325f82600018290dbb3.tar.gz gdb-1b09c02b1788bb88abd2e325f82600018290dbb3.tar.bz2 |
* ld-srec/srec.exp: New tests.
* ld-srec/sr1.c, ld-srec/sr2.c, ld-srec/sr3.cc: New files.
* lib/ld.exp (ld_simple_link): Discard warnings about not being
able to find the entry symbol.
Diffstat (limited to 'ld/testsuite/lib')
-rw-r--r-- | ld/testsuite/lib/ld.exp | 5 |
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 { |