Skip to content

Commit

Permalink
LoongArch: Disable executable stack by default
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
chenhuacai committed Jul 29, 2022
1 parent 3a3a4f7 commit 317980e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/loongarch/include/asm/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,6 @@ struct arch_elf_state {
.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,
bool is_interp, struct arch_elf_state *state);

Expand Down

0 comments on commit 317980e

Please sign in to comment.