This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: "tail +140" no longer works.
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 27 Feb 2009 12:46:34 +1030
- Subject: Re: "tail +140" no longer works.
- References: <49A639A6.2070703@gmail.com>
On Thu, Feb 26, 2009 at 06:41:42AM +0000, Dave Korn wrote:
> Index: ld/testsuite/ld-bootstrap/bootstrap.exp
> ===================================================================
> RCS file: /cvs/src/src/ld/testsuite/ld-bootstrap/bootstrap.exp,v
> retrieving revision 1.15
> diff -u -p -r1.15 bootstrap.exp
> --- ld/testsuite/ld-bootstrap/bootstrap.exp 6 Jul 2007 14:09:42 -0000 1.15
> +++ ld/testsuite/ld-bootstrap/bootstrap.exp 26 Feb 2009 04:44:23 -0000
> @@ -152,8 +152,8 @@ foreach flags {"" "strip" "--static" "--
> # 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
> + exec tail -n +140 tmpdir/ld2 >tmpdir/ld2tail
> + exec tail -n +140 tmpdir/ld3 >tmpdir/ld3tail
> catch "exec cmp tmpdir/ld2tail tmpdir/ld3tail" exec_output
> exec rm tmpdir/ld2tail tmpdir/ld3tail
> } else {
>
It seems very odd to me that we are skipping 140 lines. tail -c +140
makes more sense, which is one past external_PEI_filehdr.f_timdat.
However, I think you will need to skip PEAOUTHDR.CheckSum as well, so
tail -c +220.
Hmm, during configure I see
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
I wonder can you use that somehow? Err, it's interesting that the
default is "tail +16c" which doesn't work the latest coreutils, so
maybe you have something to fix there too...
--
Alan Modra
Australia Development Lab, IBM