This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]