Work-around of running Genode with PaX enabled

Thanks to Torsten Hilbrich for reporting. Fixes #91.
This commit is contained in:
Norman Feske 2012-02-08 19:30:55 +01:00
parent ec09842fc7
commit b11bbd30c2
3 changed files with 20 additions and 0 deletions

View File

@ -75,3 +75,9 @@ L(pseudo_end):
.cfi_endproc
/*
* Allow stacks to be mapped executable (needed because Genode does not
* offer an API to handle non-execute mappings yet).
*/
.section .note.GNU-stack, "", @progbits

View File

@ -14,3 +14,10 @@
lx_restore_rt:
movq $SYS_rt_sigreturn, %rax
syscall
/*
* Allow stacks to be mapped executable (needed because Genode does not
* offer an API to handle non-execute mappings yet).
*/
.section .note.GNU-stack, "", @progbits

View File

@ -27,3 +27,10 @@ lx_syscall:
syscall /* Do the system call. */
L(pseudo_end):
ret /* Return to caller. */
/*
* Allow stacks to be mapped executable (needed because Genode does not
* offer an API to handle non-execute mappings yet).
*/
.section .note.GNU-stack, "", @progbits