Messages in this thread | | | From | Linus Torvalds <> | Date | Mon, 8 Aug 2022 14:08:17 -0700 | Subject | Re: [PATCH] x86: assemble with -Wa,--noexecstack to avoid BFD 2.39 warning |
| |
On Mon, Aug 8, 2022 at 1:32 PM Nick Desaulniers <ndesaulniers@google.com> wrote: > > Thanks for the link; I recall Ard mentioning the ELF segments are > ignored by the kernels loader in another thread.
Yeah, the kernel loader is not some generic ELF loader thing.
> Perhaps we should be adding > --no-warn-execstack > wrapped in an ld-option check to KBUILD_LDFLAGS at the top level?
I think both the linker flag and the assembler flag are the "correct" thing to do.
And yes, I don't think there is anything architecture-specific about it, and the top-level Makefile is likely the right thing to modify.
I'm a tiny bit worried about "what versions of as/ld accept those flags", though.
Linus
| |