diff options
author | Nick Clifton <nickc@redhat.com> | 2001-11-14 11:18:42 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-11-14 11:18:42 +0000 |
commit | 58e82cfea7f31f28ab17ec8fea49c9073fd967a8 (patch) | |
tree | fba156b7faea881bbc271bcc9983ed6fcacd0070 /ld/testsuite/ld-bootstrap | |
parent | 28e14576b107bba1b78b22563dbbb04a98254bc0 (diff) | |
download | binutils-redhat-58e82cfea7f31f28ab17ec8fea49c9073fd967a8.tar.gz |
Only scan tail of executable for PE targets.
Diffstat (limited to 'ld/testsuite/ld-bootstrap')
-rw-r--r-- | ld/testsuite/ld-bootstrap/bootstrap.exp | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/ld/testsuite/ld-bootstrap/bootstrap.exp b/ld/testsuite/ld-bootstrap/bootstrap.exp index 0e82a6abc9..69d30883e1 100644 --- a/ld/testsuite/ld-bootstrap/bootstrap.exp +++ b/ld/testsuite/ld-bootstrap/bootstrap.exp @@ -129,15 +129,22 @@ foreach flags {"" "strip" "--static" "--traditional-format" "--no-keep-memory"} send_log "compare (tail of) tmpdir/ld2 tmpdir/ld3\n" verbose "compare (tail of) tmpdir/ld2 tmpdir/ld3" - # Trim off the date present in PE binaries by only looking - # at the ends of the files - # Although this works, a way to set the date would be better. - # Removing or zeroing the date stamp in the binary produced by - # the linker is not possible as it is required by the target OS. - exec tail +140 tmpdir/ld2 >tmpdir/ld2tail - exec tail +140 tmpdir/ld3 >tmpdir/ld3tail - catch "exec cmp tmpdir/ld2tail tmpdir/ld3tail" exec_output - exec rm tmpdir/ld2tail tmpdir/ld3tail + if {[istarget "*-*-pe"] + || [istarget "*-*-wince"]} { + # Trim off the date present in PE binaries by only looking + # at the ends of the files + # Although this works, a way to set the date would be better. + # Removing or zeroing the date stamp in the binary produced by + # the linker is not possible as it is required by the target OS. + exec tail +140 tmpdir/ld2 >tmpdir/ld2tail + exec tail +140 tmpdir/ld3 >tmpdir/ld3tail + catch "exec cmp tmpdir/ld2tail tmpdir/ld3tail" exec_output + exec rm tmpdir/ld2tail tmpdir/ld3tail + } else { + send_log "cmp tmpdir/ld2 tmpdir/ld3\n" + verbose "cmp tmpdir/ld2 tmpdir/ld3" + catch "exec cmp tmpdir/ld2 tmpdir/ld3" exec_output + } set exec_output [prune_warnings $exec_output] if [string match "" $exec_output] then { |