This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] ld: provide __ehdr_start magic symbol
On Sun, Jun 24, 2012 at 3:03 PM, Hans-Peter Nilsson
<hans-peter.nilsson@axis.com> wrote:
> 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 default layout does not put the
headers in the address space, so this test cannot succeed. I added a
"#notarget:" line for those. For mipsisa32r2el-unknown-linux-gnu, it was
indeed just the entry symbol warning, which I fixed with an explicit -e.
Here's what I'm committing.
Thanks,
Roland
ld/testsuite/
2012-06-25 Roland McGrath <mcgrathr@google.com>
* ld-elf/ehdr_start.d (ld): Add explicit -e _start.
(notarget): Add arm*-*-eabi* cris-*-*.
diff --git a/ld/testsuite/ld-elf/ehdr_start.d b/ld/testsuite/ld-elf/ehdr_start.d
index 3965eeb..05c6a07 100644
--- a/ld/testsuite/ld-elf/ehdr_start.d
+++ b/ld/testsuite/ld-elf/ehdr_start.d
@@ -1,6 +1,7 @@
#source: ehdr_start.s
-#ld:
+#ld: -e _start
#nm: -n
+#notarget: arm*-*-eabi* cris-*-*
#...
[0-9a-f]*000 [ADRT] __ehdr_start