This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Ld option -z mistreat (new tests ld-elf/commonpage1 ld-elf/maxpage1 fail for cris-elf arm-elf)
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: amodra at bigpond dot net dot au
- Cc: hans-peter dot nilsson at axis dot com, hongjiu dot lu at intel dot com, binutils at sourceware dot org
- Date: Wed, 31 May 2006 16:30:40 +0200
- Subject: Re: Ld option -z mistreat (new tests ld-elf/commonpage1 ld-elf/maxpage1 fail for cris-elf arm-elf)
> Date: Wed, 31 May 2006 23:07:41 +0930
> From: Alan Modra <amodra@bigpond.net.au>
> On Wed, May 31, 2006 at 12:05:45PM +0200, Hans-Peter Nilsson wrote:
> > ./ld-new: unrecognized option '-z'
> > ./ld-new: use the --help option for usage information
>
> The failure is because cris-elf
And arm-elf, and...
> doesn't support shared libs.
> GENERATE_SHLIB_SCRIPT isn't set.
Inferring that all run_dump-tests using -z options should use
"#target:" or "#notarget:".
Tested cris-elf, arm-elf native i686-pc-linux-gnu and cross to
cris-axis-linux-gnu. Ok to commit?
ld/testsuite:
* ld-elf/commonpage1.d, ld-elf/maxpage1.d: Restrict to target
*-*-linux*.
Index: ld-elf/commonpage1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/commonpage1.d,v
retrieving revision 1.1
diff -u -p -r1.1 commonpage1.d
--- ld-elf/commonpage1.d 30 May 2006 16:45:32 -0000 1.1
+++ ld-elf/commonpage1.d 31 May 2006 14:28:40 -0000
@@ -1,5 +1,6 @@
#source: maxpage1.s
#ld: -z max-page-size=0x200000 -z common-page-size=0x100000
+#target: *-*-linux*
#readelf: -l --wide
#...
Index: ld-elf/maxpage1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/maxpage1.d,v
retrieving revision 1.1
diff -u -p -r1.1 maxpage1.d
--- ld-elf/maxpage1.d 30 May 2006 16:45:32 -0000 1.1
+++ ld-elf/maxpage1.d 31 May 2006 14:28:40 -0000
@@ -1,5 +1,6 @@
#source: maxpage1.s
#ld: -z max-page-size=0x200000
+#target: *-*-linux*
#readelf: -l --wide
#...
brgds, H-P