• Kumar Gala's avatar
    powerpc: ppc32 needs elf_read_implies_exec() · 2e8aead1
    Kumar Gala authored
    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: default avatarKumar Gala <galak@kernel.crashing.org>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    2e8aead1
elf.h 18.1 KB