diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-11-08 11:41:29 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-11-08 11:48:54 +0100 |
commit | a4b49c69c3ad1cf0e92943921a699fbe586b5706 (patch) | |
tree | cc12e4eac97cf4afa441180442361534abf4b43e /include | |
parent | 99878ae30e4fe5cba5d80f67082e5c3c5478e9ed (diff) | |
download | barebox-a4b49c69c3ad1cf0e92943921a699fbe586b5706.tar.gz barebox-a4b49c69c3ad1cf0e92943921a699fbe586b5706.tar.xz |
Kbuild: link with -z noexecstack and --no-warn-rwx-segments
Users of GNU ld (BFD) from binutils 2.39+ will observe multiple
instances of a new warning when linking barebox and PBL in the form:
ld: warning: defaultenv/defaultenv-2-dfu.bbenv.o: missing .note.GNU-stack section implies executable stack
ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
ld: warning: .tmp_barebox1 has a LOAD segment with RWX permissions
We don't need executable stack, so disable with -z noexecstack. We also
do not use the permissions from ELF segments, so disable the warning
with --no-warn-rwx-segments.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions