Re: [PATCH v2] arch: um: Mark the stack non-executable to fix a binutils warning

2022-09-21 Thread David Gow
On Thu, Sep 22, 2022 at 1:47 AM 'Nick Desaulniers' via KUnit Development wrote: > > On Tue, Sep 20, 2022 at 11:49 PM David Gow wrote: > > > > Since binutils 2.39, ld will print a warning if any stack section is > > executable, which is the default for stack sections on files without a > > .note.G

Re: [PATCH v2] arch: um: Mark the stack non-executable to fix a binutils warning

2022-09-21 Thread Nick Desaulniers
On Tue, Sep 20, 2022 at 11:49 PM David Gow wrote: > > Since binutils 2.39, ld will print a warning if any stack section is > executable, which is the default for stack sections on files without a > .note.GNU-stack section. > > This was fixed for x86 in commit ffcf9c5700e4 ("x86: link vdso and boot

Re: [PATCH v2] arch: um: Mark the stack non-executable to fix a binutils warning

2022-09-21 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "davidgow" > > Changes since v1: > http://lists.infradead.org/pipermail/linux-um/2022-August/004234.html > - Pass the -z noexecstack and --no-warn-rwx-segments flags as LDFLAGS, > rather than as CFLAGS via -Wl > - Check that --no-warn-rwx-segments exists wit

[PATCH v2] arch: um: Mark the stack non-executable to fix a binutils warning

2022-09-20 Thread David Gow
Since binutils 2.39, ld will print a warning if any stack section is executable, which is the default for stack sections on files without a .note.GNU-stack section. This was fixed for x86 in commit ffcf9c5700e4 ("x86: link vdso and boot with -z noexecstack --no-warn-rwx-segments"), but remained b