Remove non-standard PT_LOAD segment containing ELF headers from libraries
commit22bc6531faadb9070836ed14b715b8f2ba516588
authorMark Seaborn <mrs@mythic-beasts.com>
Wed, 20 Jan 2010 17:11:56 +0000 (20 17:11 +0000)
committerMark Seaborn <mrs@mythic-beasts.com>
Wed, 20 Jan 2010 17:11:56 +0000 (20 17:11 +0000)
treecd47f52d6043d5dfb90ad8bc92f7e963b1e6eb84
parent07a7048420310f30d73b065662bc161b7801a755
Remove non-standard PT_LOAD segment containing ELF headers from libraries

PHDRs will not be mapped.  It turns out ld.so is fine with this.

This means we can remove the support for this segment from sel_ldr.

First segment is now PROT_EXEC.  Change ld.so to cope with this.
It wants to map a larger area as PROT_EXEC in order to reserve the
address space, but we cannot do this under NaCl.
elf/dl-load.c
ld/ldscripts/elf_nacl.xs