This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: segment overflow test
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: nathan at codesourcery dot com
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 20 Dec 2007 00:42:34 +0100
- Subject: Re: segment overflow test
> Date: Wed, 19 Dec 2007 10:23:03 +0000
> From: Nathan Sidwell <nathan@codesourcery.com>
> I've added this testcase to make sure we don't regress on my recent patch to
> segment checking:
> 2007-12-19 Nathan Sidwell <nathan@codesourcery.com>
>
> * ld-elf/seg.t: New.
> * ld-elf/seg.d: New.
> * ld-elf/seg.s: New.
Fails on cris-elf. From ld.log:
./ld-new -L/tmp/hpautotest-binutils/bsrc/src/ld/testsuite/ld-elf -T seg.t -z max-page-size=0x1000
-o tmpdir/dump tmpdir/dump0.o
Executing on host: sh -c {./ld-new -L/tmp/hpautotest-binutils/bsrc/src/ld/testsuite/ld-elf -T seg.
t -z max-page-size=0x1000 -o tmpdir/dump tmpdir/dump0.o 2>&1} /dev/null ld.tmp (timeout = 300)
./ld-new: unrecognized option '-z'
./ld-new: use the --help option for usage information
failed with: <./ld-new: unrecognized option '-z'
./ld-new: use the --help option for usage information>, expected: <>
./ld-new: unrecognized option '-z'
./ld-new: use the --help option for usage information
/tmp/hpautotest-binutils/criself/ld/../binutils/readelf -l --wide tmpdir/dump > tmpdir/dump.out
Executing on host: sh -c {/tmp/hpautotest-binutils/criself/ld/../binutils/readelf -l --wide tmpdir/
dump > tmpdir/dump.out 2>ld.tmp} /dev/null (timeout = 300)
readelf: Error: 'tmpdir/dump': No such file
>
> Index: ld-elf/seg.d
> ===================================================================
> RCS file: ld-elf/seg.d
> diff -N ld-elf/seg.d
> *** /dev/null 1 Jan 1970 00:00:00 -0000
> --- ld-elf/seg.d 19 Dec 2007 10:20:40 -0000
> ***************
> *** 0 ****
> --- 1,14 ----
> + #source: seg.s
> + #ld: -T seg.t -z max-page-size=0x1000
> + #readelf: -l --wide
The obvious fix is to qualify with:
! # target: *-*-linux* *-*-vxworks
as quoted from your ld-elf/header.d, which had the same problem
originally. :D
brgds, H-P