From: Jan Kiszka <[email protected]>

Executable stacks are not needed, and this switch resolves warnings of
latest binutils, e.g. under Debian bookworm:

/usr/bin/ld: warning: ./drivers/watchdog/init_array_end.o: missing 
.note.GNU-stack section implies executable stack
/usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future 
version of the linker

Reported-by: Tobias Schmidl <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
---
 Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.am b/Makefile.am
index 856908f..3c529cc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -226,6 +226,7 @@ efi_ldflags = \
        -shared \
        -Bsymbolic \
        -nostdlib \
+       -znoexecstack \
        -znocombreloc \
        --warn-common \
        --no-undefined \
-- 
2.35.3

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/b37bfd82afbc1301f0436b92168abb5ce814ef2f.1658901190.git.jan.kiszka%40siemens.com.

Reply via email to