blob: f700369bb0f6ed181b3ccdbd60ce713283776ccc [file] [log] [blame]
Ingo Molnar3a99e6d2016-03-09 10:40:01 +01001
2/* Various wrappers to make the kernel .S file build in user-space: */
3
Jan Beulich9ea81192012-01-18 13:28:13 +00004#define memcpy MEMCPY /* don't hide glibc's memcpy() */
Jan Beulich800eb012012-01-18 13:28:56 +00005#define altinstr_replacement text
6#define globl p2align 4; .globl
Ingo Molnar3a99e6d2016-03-09 10:40:01 +01007#define _ASM_EXTABLE_FAULT(x, y)
8
Arnaldo Carvalho de Melo7d7d1bf2016-07-11 12:36:41 -03009#include "../../arch/x86/lib/memcpy_64.S"
Jiri Olsa7a0153e2012-02-06 18:54:06 -020010/*
11 * We need to provide note.GNU-stack section, saying that we want
12 * NOT executable stack. Otherwise the final linking will assume that
13 * the ELF stack should not be restricted at all and set it RWX.
14 */
15.section .note.GNU-stack,"",@progbits