forked from luck/tmp_suning_uos_patched
7d7d1bf1d1
We can't access kernel files directly from tools/, so copy the required bits, and make sure that we detect when the original files, in the kernel, gets modified. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-z7e76274ch5j4nugv048qacb@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
16 lines
517 B
ArmAsm
16 lines
517 B
ArmAsm
|
|
/* Various wrappers to make the kernel .S file build in user-space: */
|
|
|
|
#define memcpy MEMCPY /* don't hide glibc's memcpy() */
|
|
#define altinstr_replacement text
|
|
#define globl p2align 4; .globl
|
|
#define _ASM_EXTABLE_FAULT(x, y)
|
|
|
|
#include "../../arch/x86/lib/memcpy_64.S"
|
|
/*
|
|
* We need to provide note.GNU-stack section, saying that we want
|
|
* NOT executable stack. Otherwise the final linking will assume that
|
|
* the ELF stack should not be restricted at all and set it RWX.
|
|
*/
|
|
.section .note.GNU-stack,"",@progbits
|