[PATCH] LoongArch: Set defaults to exec stack 0.
Andreas Schwab
schwab@suse.de
Mon Jul 25 08:08:30 GMT 2022
More information about the Binutils mailing list
Mon Jul 25 08:08:30 GMT 2022
- Previous message (by thread): [PATCH] LoongArch: Set defaults to exec stack 0.
- Next message (by thread): [PATCH] LoongArch: Set defaults to exec stack 0.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Jul 25 2022, liuzhensong wrote: > diff --git a/bfd/elfnn-loongarch.c b/bfd/elfnn-loongarch.c > index 4efe3d9370c..43182ead8cd 100644 > --- a/bfd/elfnn-loongarch.c > +++ b/bfd/elfnn-loongarch.c > @@ -132,6 +132,7 @@ struct loongarch_elf_link_hash_table > > #define elf_backend_want_dynrelro 1 > #define elf_backend_rela_normal 1 > +#define elf_backend_default_execstack 0 AFAICS, the loongarch kernel defaults to executable stack: arch/loongarch/include/asm/elf.h:#define elf_read_implies_exec(ex, exec_stk) (exec_stk == EXSTACK_DEFAULT) Which means this change is wrong. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."
- Previous message (by thread): [PATCH] LoongArch: Set defaults to exec stack 0.
- Next message (by thread): [PATCH] LoongArch: Set defaults to exec stack 0.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list