Ingo Molnar | 3a99e6d | 2016-03-09 10:40:01 +0100 | [diff] [blame] | 1 | |
| 2 | /* Various wrappers to make the kernel .S file build in user-space: */ |
| 3 | |
Jan Beulich | 9ea8119 | 2012-01-18 13:28:13 +0000 | [diff] [blame] | 4 | #define memcpy MEMCPY /* don't hide glibc's memcpy() */ |
Jan Beulich | 800eb01 | 2012-01-18 13:28:56 +0000 | [diff] [blame] | 5 | #define altinstr_replacement text |
| 6 | #define globl p2align 4; .globl |
Ingo Molnar | 3a99e6d | 2016-03-09 10:40:01 +0100 | [diff] [blame] | 7 | #define _ASM_EXTABLE_FAULT(x, y) |
| 8 | |
Arnaldo Carvalho de Melo | 7d7d1bf | 2016-07-11 12:36:41 -0300 | [diff] [blame] | 9 | #include "../../arch/x86/lib/memcpy_64.S" |
Jiri Olsa | 7a0153e | 2012-02-06 18:54:06 -0200 | [diff] [blame] | 10 | /* |
| 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 |