)]}' { "commit": "1f49db5f25cdd4e43825c9bcc0575070b80f628c", "tree": "60ce958fd006ffa31dc9b7496239542b8375b8e5", "parents": [ "a5f09cf7052ab6abb171400d377eecb1efac1a9b" ], "author": { "name": "Marco Felsch", "email": "m.felsch@pengutronix.de", "time": "Wed Nov 09 12:59:09 2022 +0100" }, "committer": { "name": "Marco Felsch", "email": "m.felsch@pengutronix.de", "time": "Mon Mar 13 10:55:50 2023 +0100" }, "message": "feat(build): add support for new binutils versions\n\nUsers of GNU ld (BPF) from binutils 2.39+ will observe multiple instaces\nof a new warning when linking the bl*.elf in the form:\n\n ld.bfd: warning: stm32mp1_helper.o: missing .note.GNU-stack section implies executable stack\n ld.bfd: NOTE: This behaviour is deprecated and will be removed in a future version of the linker\n ld.bfd: warning: bl2.elf has a LOAD segment with RWX permissions\n ld.bfd: warning: bl32.elf has a LOAD segment with RWX permissions\n\nThese new warnings are enbaled by default to secure elf binaries:\n - https://sourceware.org/git/?p\u003dbinutils-gdb.git;a\u003dcommit;h\u003dba951afb99912da01a6e8434126b8fac7aa75107\n - https://sourceware.org/git/?p\u003dbinutils-gdb.git;a\u003dcommit;h\u003d0d38576a34ec64a1b4500c9277a8e9d0f07e6774\n\nFix it in a similar way to what the Linux kernel does, see:\nhttps://lore.kernel.org/all/20220810222442.2296651-1-ndesaulniers@google.com/\n\nFollowing the reasoning there, we set \"-z noexecstack\" for all linkers\n(although LLVM\u0027s LLD defaults to it) and optional add\n--no-warn-rwx-segments since this a ld.bfd related.\n\nSigned-off-by: Marco Felsch \u003cm.felsch@pengutronix.de\u003e\nSigned-off-by: Robert Schwebel \u003cr.schwebel@pengutronix.de\u003e\nChange-Id: I9430f5fa5036ca88da46cd3b945754d62616b617\n", "tree_diff": [ { "type": "modify", "old_id": "a69bfbb3b090db82c053137ae635ac3ce366a93c", "old_mode": 33188, "old_path": "Makefile", "new_id": "04b75fe590b883045faa638455e2715752d2c31e", "new_mode": 33188, "new_path": "Makefile" } ] }