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]

Ld option -z mistreat (new tests ld-elf/commonpage1 ld-elf/maxpage1 fail for cris-elf arm-elf)


My autotester noticed:
Running /h/hp/binutils/cvs_latest/src/ld/testsuite/ld-elf/elf.exp ...
FAIL: ld-elf/commonpage1
FAIL: ld-elf/maxpage1

With the message in ld.log:
Running /h/hp/binutils/cvs_latest/src/ld/testsuite/ld-elf/elf.exp ...
/n/asic_slask/hp/autobinutest/ld/../gas/as-new    -o tmpdir/dump0.o /h/hp/binutils/cvs_latest/src/ld/testsuite/ld-elf/maxpage1.s
./ld-new  -L/h/hp/binutils/cvs_latest/src/ld/testsuite/ld-elf  -z max-page-size=0x200000 -z common-page-size=0x100000 -o tmpdir/dump tmpdir/dump0.o
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
/n/asic_slask/hp/autobinutest/ld/../binutils/readelf  -l --wide tmpdir/dump > tmpdir/dump.out
readelf: Error: 'tmpdir/dump': No such file
FAIL: ld-elf/commonpage1

and similar for maxpage1.

It looked like a port buglet, but it also fails for
--target=arm-elf so apparently not the case.

Is the -z option supposed to be Linux-specific and so a
"target: *-*-linux*" added to the top of the .d files the
obvious solution?  Looking at elf32.em
gld${EMULATION_NAME}_add_options it seems -z should be a general
ELF-option, but de facto not.

FWIW, the
tests pass for native i686-pc-linux-gnu and cross to
cris-axis-linux-gnu.

brgds, H-P


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