commit | ce372779a0b9958ed34de61a63a7ce058f43fb2a | [log] [tgz] |
---|---|---|
author | Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com> | Fri Apr 21 11:40:22 2023 +0100 |
committer | Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com> | Thu May 04 14:41:44 2023 +0100 |
tree | 88a64cef3b6f3c3c903a4f47053b89e9f9cf1b92 | |
parent | 968c95f4e9e33e2504db42c41670ab021bd5bdb0 [diff] |
feat(build): add support for new binutils versions Users of GNU ld (BFD) from binutils 2.39+ will observe multiple instaces of a new warning when linking the tftf.elf in the form: ld.bfd: warning: tftf.elf has a LOAD segment with RWX permissions These new warnings are enbaled by default to secure elf binaries: - https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ba951afb99912da01a6e8434126b8fac7aa75107 - https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=0d38576a34ec64a1b4500c9277a8e9d0f07e6774 Linux kernel fixed it as listed here: https://lore.kernel.org/all/20220810222442.2296651-1-ndesaulniers@google.com/ Following this, we have resolved the same in TF-A as well: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/19401 Replicating the same for TFTF as well, by adding --no-warn-rwx-segments since this a ld.bfd related. Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com> Change-Id: I191e6c62ca6e437ea8c696d823b44d6c6da48ab6