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

Richard Weinberger richard at nod.at
Mon Sep 19 13:56:44 PDT 2022


----- Ursprüngliche Mail -----
> Von: "Randy Dunlap" <rdunlap at infradead.org>
>> Link:
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ffcf9c5700e49c0aee42dcba9a12ba21338e8136
>> Link:
>> https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ba951afb99912da01a6e8434126b8fac7aa75107
>> Signed-off-by: David Gow <davidgow at google.com>
> 
> Acked-by: Randy Dunlap <rdunlap at infradead.org> # build-tested

This patch causes a build error on one of my systems:

/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: unrecognized option '--no-warn-rwx-segments'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status

Just like in commit ffcf9c5700e4 ("x86: link vdso and boot with -z noexecstack --no-warn-rwx-segments") you need to
test for it.

Thanks,
//richard



More information about the linux-um mailing list