powerpc: ppc32 needs elf_read_implies_exec()
authorKumar Gala <galak@kernel.crashing.org>
Fri, 17 Apr 2009 08:03:01 +0000 (08:03 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 28 Apr 2009 03:52:19 +0000 (13:52 +1000)
commit2e8aead1b57ede7979bd4e24797c77e181775d9c
tree3094205053e674d29a1fdef05f5ed2488fd1b9b8
parentde60fba2bb5ba0622058d422ab211f3cfd38ed7b
powerpc: ppc32 needs elf_read_implies_exec()

On ppc64 we implemented elf_read_implies_exec() for 32-bit binaries
because old toolchains had bugs where they didn't mark program
segments executable that needed to be.  For some reason we didn't do
this on ppc32 builds.  This hadn't been an issue until commit 8d30c14c
("powerpc/mm: Rework I$/D$ coherency (v3)"), which had as a side
effect that we are now enforcing execute permissions to some extent on
32-bit 4xx and Book E processors.

This fixes it by defining elf_read_implies_exec on 32-bit to turn on
the read-implies-exec behaviour on programs that are sufficiently old
that they don't have a PT_GNU_STACK program header.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/include/asm/elf.h