[COMMITTED PATCH] tweak ehdr-start test case to use rodata
Roland McGrath
mcgrathr@google.com
Fri Nov 30 21:15:00 GMT 2012
After recent fixes, the test for __ehdr_start began failing on *-*-nacl*
targets. That's because it created an object with no .rodata-like sections
at all, which means there is no segment that contains the ELF headers and
so __ehdr_start is not set. This fixes the test to put the reference to
__ehdr_start in .rodata rather than .data so there will always be a
read-only data segment even if it's not the executable one.
I'm committing this to trunk and 2.23 now.
Thanks,
Roland
ld/testsuite/
2012-11-30 Roland McGrath <mcgrathr@google.com>
* ld-elf/ehdr_start.s: Put reference in .rodata section, not .data.
--- a/ld/testsuite/ld-elf/ehdr_start.s
+++ b/ld/testsuite/ld-elf/ehdr_start.s
@@ -3,7 +3,7 @@
_start:
.space 16
- .data
+ .section .rodata,"a"
.globl foo
foo:
.weak __ehdr_start
More information about the Binutils
mailing list