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] ld: provide __ehdr_start magic symbol


> From: Roland McGrath <mcgrathr@google.com>
> Date: Thu, 21 Jun 2012 18:48:39 +0200

> ld/testsuite/
> 2012-06-21  Roland McGrath  <mcgrathr@google.com>
> 
> 	* ld-elf/ehdr_start.s: New file.
> 	* ld-elf/ehdr_start.d: New file.

This new test fails for arm-unknown-eabi,
mipsisa32r2el-unknown-linux-gnu and cris-axis-elf, probably
others.

For arm-unknown-eabi and cris-axis-elf, the nm regexp just
doesn't match:

Executing on host: sh -c {/tmp/hpautotest-binutils/arm-unknown-eabi/ld/../binutils/nm-new  -n tmpdir/dump > tmpdir/dump.out 2>ld.tmp}  /dev/null  (timeout = 300)
extra regexps in /tmp/hpautotest-binutils/bsrc/src/ld/testsuite/ld-elf/ehdr_start.d starting with "^[0-9a-f]*000 [ADRT] __ehdr_start$"
EOF from tmpdir/dump.out
FAIL: ld-elf/ehdr_start

For mipsisa32r2el-unknown-linux-gnu, the linker complains; I
think you need to add __start:

Executing on host: sh -c {./ld-new  -L/tmp/hpautotest-binutils/bsrc/src/ld/testsuite/ld-elf   -o tmpdir/dump tmpdir/dump0.o  2>&1}  /dev/null ld.tmp (timeout = 300)
./ld-new: warning: cannot find entry symbol __start; defaulting to 0000000000400090
succeeded with: <./ld-new: warning: cannot find entry symbol __start; defaulting to 0000000000400090>, expected: <>

brgds, H-P


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