162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci// memset_orig is being defined as SYM_L_LOCAL but we need it
362306a36Sopenharmony_ci#define SYM_FUNC_START_LOCAL(name)                      \
462306a36Sopenharmony_ci        SYM_START(name, SYM_L_GLOBAL, SYM_A_ALIGN)
562306a36Sopenharmony_ci#define memset MEMSET /* don't hide glibc's memset() */
662306a36Sopenharmony_ci#define altinstr_replacement text
762306a36Sopenharmony_ci#define globl p2align 4; .globl
862306a36Sopenharmony_ci#include "../../arch/x86/lib/memset_64.S"
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci/*
1162306a36Sopenharmony_ci * We need to provide note.GNU-stack section, saying that we want
1262306a36Sopenharmony_ci * NOT executable stack. Otherwise the final linking will assume that
1362306a36Sopenharmony_ci * the ELF stack should not be restricted at all and set it RWX.
1462306a36Sopenharmony_ci */
1562306a36Sopenharmony_ci.section .note.GNU-stack,"",@progbits
16