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: PATCH: PR ld/11998: Bogus linker warning


> Date: Thu, 9 Sep 2010 12:19:50 -0700
> From: "H.J. Lu" <hongjiu.lu@intel.com>

> This patch removes bugos linker warning on zero LMA adjustment.  I
> verified that linker generates the same output as binutils 2.20.

Causing, for cris-elf:

Executing on host: sh -c {./ld-new  -L/tmp/hpautotest-binutils/bsrc/src/ld/testsuite/ld-scripts  -T rgn-at5.t -z max-pag
e-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
failed with: <./ld-new: unrecognized option '-z'
./ld-new: use the --help option for usage information>, expected: <>
FAIL: rgn-at5


> I
> am checking it in as an obvious fix.

Me too!  Same restriction as on other -z max-page-size=... usage:

ld/testsuite:
	* ld-scripts/rgn-at5.d: Restrict to *-*-linux*.

Index: ld-scripts/rgn-at5.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/rgn-at5.d,v
retrieving revision 1.1
diff -p -u -r1.1 rgn-at5.d
--- ld-scripts/rgn-at5.d	9 Sep 2010 19:22:29 -0000	1.1
+++ ld-scripts/rgn-at5.d	10 Sep 2010 00:59:12 -0000
@@ -2,6 +2,7 @@
 # source: rgn-at5.s
 # ld: -T rgn-at5.t -z max-page-size=0x1000
 # objdump: -w -h
+# target: *-*-linux*
 # xfail: rx-*-*
 #   FAILS on the RX because the linker has to set LMA == VMA for the
 #   Renesas loader.

brgds, H-P


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