1b2441318SGreg Kroah-Hartman/* SPDX-License-Identifier: GPL-2.0 */
2*7f02ce62SArnaldo Carvalho de Melo// memset_orig is being defined as SYM_L_LOCAL but we need it
3db1a8b97SArnaldo Carvalho de Melo#define SYM_FUNC_START_LOCAL(name)                      \
4db1a8b97SArnaldo Carvalho de Melo        SYM_START(name, SYM_L_GLOBAL, SYM_A_ALIGN)
5be3de80dSJan Beulich#define memset MEMSET /* don't hide glibc's memset() */
6be3de80dSJan Beulich#define altinstr_replacement text
7be3de80dSJan Beulich#define globl p2align 4; .globl
87d7d1bf1SArnaldo Carvalho de Melo#include "../../arch/x86/lib/memset_64.S"
9e89cef13SJiri Olsa
10e89cef13SJiri Olsa/*
11e89cef13SJiri Olsa * We need to provide note.GNU-stack section, saying that we want
12e89cef13SJiri Olsa * NOT executable stack. Otherwise the final linking will assume that
13e89cef13SJiri Olsa * the ELF stack should not be restricted at all and set it RWX.
14e89cef13SJiri Olsa */
15e89cef13SJiri Olsa.section .note.GNU-stack,"",@progbits
16