Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 
0003 /* Various wrappers to make the kernel .S file build in user-space: */
0004 
0005 // memcpy_orig and memcpy_erms are being defined as SYM_L_LOCAL but we need it
0006 #define SYM_FUNC_START_LOCAL(name)                      \
0007         SYM_START(name, SYM_L_GLOBAL, SYM_A_ALIGN)
0008 #define memcpy MEMCPY /* don't hide glibc's memcpy() */
0009 #define altinstr_replacement text
0010 #define globl p2align 4; .globl
0011 #define _ASM_EXTABLE_FAULT(x, y)
0012 #define _ASM_EXTABLE(x, y)
0013 
0014 #include "../../arch/x86/lib/memcpy_64.S"
0015 /*
0016  * We need to provide note.GNU-stack section, saying that we want
0017  * NOT executable stack. Otherwise the final linking will assume that
0018  * the ELF stack should not be restricted at all and set it RWX.
0019  */
0020 .section .note.GNU-stack,"",@progbits