Path: blob/master/tools/perf/bench/mem-memcpy-x86-64-asm.S
26282 views
/* SPDX-License-Identifier: GPL-2.0 */12/* Various wrappers to make the kernel .S file build in user-space: */34// memcpy_orig is being defined as SYM_L_LOCAL but we need it5#define SYM_FUNC_START_LOCAL(name) \6SYM_START(name, SYM_L_GLOBAL, SYM_A_ALIGN)7#define memcpy MEMCPY /* don't hide glibc's memcpy() */8#define altinstr_replacement text9#define globl p2align 4; .globl10#define _ASM_EXTABLE_FAULT(x, y)11#define _ASM_EXTABLE(x, y)1213#include "../../arch/x86/lib/memcpy_64.S"14/*15* We need to provide note.GNU-stack section, saying that we want16* NOT executable stack. Otherwise the final linking will assume that17* the ELF stack should not be restricted at all and set it RWX.18*/19.section .note.GNU-stack,"",@progbits202122