[COMMITTED PATCH] tweak ehdr-start test case to use rodata
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.
2012-11-30 Roland McGrath <email@example.com>
* ld-elf/ehdr_start.s: Put reference in .rodata section, not .data.
@@ -3,7 +3,7 @@
+ .section .rodata,"a"
More information about the Binutils