search for: 95415edd

Displaying 1 result from an estimated 1 matches for "95415edd".

2020 Aug 20
0
[klibc:execstack-fixes] alpha: Set sa_restorer for signals and disable executable stack
...1c0000000 -# Kernel uses stack trampoline for signal return unless we set -# sa_restorer -KLIBCEXECSTACK := y +# Kernel uses our sa_restorer for signal return +KLIBCEXECSTACK := n diff --git a/usr/klibc/arch/alpha/sigreturn.S b/usr/klibc/arch/alpha/sigreturn.S new file mode 100644 index 00000000..95415edd --- /dev/null +++ b/usr/klibc/arch/alpha/sigreturn.S @@ -0,0 +1,16 @@ +/* + * arch/alpha/sigreturn.S + */ + +#include <asm/unistd.h> + + .text + .align 3 + .type __sigreturn, at function + .ent __sigreturn,0 + .globl __sigreturn +__sigreturn: + mov sp,a0 ; struct sigcontext on stack + lda v...