Commit 317980e6 authored by Huacai Chen's avatar Huacai Chen

LoongArch: Disable executable stack by default

Disable executable stack for LoongArch by default, as all modern
architectures do.
Reported-by: default avatarAndreas Schwab <schwab@suse.de>
Suggested-by: default avatarWANG Xuerui <git@xen0n.name>
Link: https://sourceware.org/pipermail/binutils/2022-July/121992.htmlTested-by: default avatarWANG Xuerui <git@xen0n.name>
Tested-by: default avatarXi Ruoyao <xry111@xry111.site>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent 3a3a4f7a
...@@ -288,8 +288,6 @@ struct arch_elf_state { ...@@ -288,8 +288,6 @@ struct arch_elf_state {
.interp_fp_abi = LOONGARCH_ABI_FP_ANY, \ .interp_fp_abi = LOONGARCH_ABI_FP_ANY, \
} }
#define elf_read_implies_exec(ex, exec_stk) (exec_stk == EXSTACK_DEFAULT)
extern int arch_elf_pt_proc(void *ehdr, void *phdr, struct file *elf, extern int arch_elf_pt_proc(void *ehdr, void *phdr, struct file *elf,
bool is_interp, struct arch_elf_state *state); bool is_interp, struct arch_elf_state *state);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment