2016-03-09 12:40:01 +03:00
|
|
|
|
|
|
|
/* Various wrappers to make the kernel .S file build in user-space: */
|
|
|
|
|
2012-01-18 17:28:13 +04:00
|
|
|
#define memcpy MEMCPY /* don't hide glibc's memcpy() */
|
2012-01-18 17:28:56 +04:00
|
|
|
#define altinstr_replacement text
|
|
|
|
#define globl p2align 4; .globl
|
2016-03-09 12:40:01 +03:00
|
|
|
#define _ASM_EXTABLE_FAULT(x, y)
|
|
|
|
|
2016-07-11 18:36:41 +03:00
|
|
|
#include "../../arch/x86/lib/memcpy_64.S"
|
2012-02-07 00:54:06 +04:00
|
|
|
/*
|
|
|
|
* 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
|