android_kernel_xiaomi_sm8350/arch/um/kernel/skas
Paolo 'Blaisorblade' Giarrusso 275e6e1ee2 [PATCH] uml: fix compilation and execution with hardened GCC
To make some half-assembly stubs compile, disable various "hardened" GCC
features:

*) we can't make it build PIC code as we need %ebx to do syscalls and GCC
   wants it free for PIC

*) we can't leave stack protection as the stub is moved (not relocated!) in
   memory so the RIP-relative access to the canary tries reading from an
   unmapped address and causes a segfault, since we move the stub of various
   megabytes (the exact amount will be decided at runtime) away from the
   link-time address.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-05-01 18:17:45 -07:00
..
clone.c [PATCH] uml skas0: stop gcc's insanity 2005-12-18 11:19:44 -08:00
exec_kern.c
Makefile [PATCH] uml: fix compilation and execution with hardened GCC 2006-05-01 18:17:45 -07:00
mem.c
mmu.c [PATCH] uml: move LDT creation 2006-01-18 19:20:18 -08:00
process_kern.c [PATCH] uml: add arch_switch_to for newly forked thread 2006-03-31 12:18:52 -08:00
syscall.c
tlb.c
uaccess.c [PATCH] uml: move libc-dependent utility procedures 2006-01-18 19:20:19 -08:00