Skip to content

Commit 317980e

Browse files
committed
LoongArch: Disable executable stack by default
Disable executable stack for LoongArch by default, as all modern architectures do. Reported-by: Andreas Schwab <[email protected]> Suggested-by: WANG Xuerui <[email protected]> Link: https://sourceware.org/pipermail/binutils/2022-July/121992.html Tested-by: WANG Xuerui <[email protected]> Tested-by: Xi Ruoyao <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent 3a3a4f7 commit 317980e

File tree

1 file changed

+0
-2
lines changed
  • arch/loongarch/include/asm

1 file changed

+0
-2
lines changed

arch/loongarch/include/asm/elf.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,6 @@ struct arch_elf_state {
288288
.interp_fp_abi = LOONGARCH_ABI_FP_ANY, \
289289
}
290290

291-
#define elf_read_implies_exec(ex, exec_stk) (exec_stk == EXSTACK_DEFAULT)
292-
293291
extern int arch_elf_pt_proc(void *ehdr, void *phdr, struct file *elf,
294292
bool is_interp, struct arch_elf_state *state);
295293

0 commit comments

Comments
 (0)