[ARM] 5404/1: Fix condition in arm_elf_read_implies_exec() to set READ_IMPLIES_EXEC
authorMakito SHIOKAWA <lkhmkt@gmail.com>
Thu, 19 Feb 2009 14:34:59 +0000 (15:34 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 19 Feb 2009 14:45:27 +0000 (14:45 +0000)
commit9da616fb9946c8d65387052e5a538b8f54ddb292
tree91fa682e64047f197a2d9f55713d6df2a8a38cf8
parent41f3103fcfffff096c34f5267d7c9a26b44d89d3
[ARM] 5404/1: Fix condition in arm_elf_read_implies_exec() to set READ_IMPLIES_EXEC

READ_IMPLIES_EXEC must be set when:
o binary _is_ an executable stack (i.e. not EXSTACK_DISABLE_X)
o processor architecture is _under_ ARMv6 (XN bit is supported from ARMv6)

Signed-off-by: Makito SHIOKAWA <lkhmkt@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/elf.c