Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 657
b: refs/heads/master
c: a2f95a5
h: refs/heads/master
i:
  655: fe3aed1
v: v3
  • Loading branch information
Anton Blanchard authored and Linus Torvalds committed May 1, 2005
1 parent dcd4c80 commit d4bc28e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d03853d566fb32c6bb8cab4bf2ecf53e692f001c
refs/heads/master: a2f95a5ae99eb8209ad8d9faeaada00600bd8027
8 changes: 6 additions & 2 deletions trunk/include/asm-ppc64/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,13 @@ do { \

/*
* An executable for which elf_read_implies_exec() returns TRUE will
* have the READ_IMPLIES_EXEC personality flag set automatically.
* have the READ_IMPLIES_EXEC personality flag set automatically. This
* is only required to work around bugs in old 32bit toolchains. Since
* the 64bit ABI has never had these issues dont enable the workaround
* even if we have an executable stack.
*/
#define elf_read_implies_exec(ex, exec_stk) (exec_stk != EXSTACK_DISABLE_X)
#define elf_read_implies_exec(ex, exec_stk) (test_thread_flag(TIF_32BIT) ? \
(exec_stk != EXSTACK_DISABLE_X) : 0)

#endif

Expand Down
15 changes: 12 additions & 3 deletions trunk/include/asm-ppc64/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,19 @@ extern u64 ppc64_pft_size; /* Log 2 of page table size */

/*
* This is the default if a program doesn't have a PT_GNU_STACK
* program header entry.
* program header entry. The PPC64 ELF ABI has a non executable stack
* stack by default, so in the absense of a PT_GNU_STACK program header
* we turn execute permission off.
*/
#define VM_STACK_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
#define VM_STACK_DEFAULT_FLAGS32 (VM_READ | VM_WRITE | VM_EXEC | \
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)

#define VM_STACK_DEFAULT_FLAGS64 (VM_READ | VM_WRITE | \
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)

#define VM_STACK_DEFAULT_FLAGS \
(test_thread_flag(TIF_32BIT) ? \
VM_STACK_DEFAULT_FLAGS32 : VM_STACK_DEFAULT_FLAGS64)

#endif /* __KERNEL__ */
#endif /* _PPC64_PAGE_H */

0 comments on commit d4bc28e

Please sign in to comment.