um: Use CFLAGS_vmlinux
authorPeter Foley <pefoley2@pefoley.com>
Fri, 13 Jan 2023 04:49:10 +0000 (23:49 -0500)
committerRichard Weinberger <richard@nod.at>
Mon, 13 Feb 2023 09:14:20 +0000 (10:14 +0100)
commit6aa56115c73b37270e53aa91984bdb8b60164ec7
treefd648b53e81ae3d7802dc65d8b3273dd3105f50a
parent910dba41239224069c17bb6c30c9d43c1ba229f1
um: Use CFLAGS_vmlinux

link-vmlinux.sh doesn't use LDFLAGS_vmlinux when linking the kernel for
UML. Move the LDFLAGS_EXESTACK options into CFLAGS_vmlinux so they're
actually respected.

e.g.
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: warning: .tmp_vmlinux.kallsyms3.o: missing .note.GNU-stack section implies executable stack
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: warning: vmlinux has a LOAD segment with RWX permissions

Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Peter Foley <pefoley2@pefoley.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/Makefile