From: Jan Kiszka <[email protected]>

We currently cannot resolve them better, and systemd-boot does the same.

Signed-off-by: Jan Kiszka <[email protected]>
---
 Makefile.am  | 2 ++
 configure.ac | 5 +++++
 2 files changed, 7 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index 3c529cc..48c560f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -241,6 +241,8 @@ else
 # hence set subsystem 0xa (EFI application) and binary format.
 objcopy_format = -O binary
 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
+# Also suppress RWX segment warnings until we have a better solution
+efi_ldflags += $(LDFLAGS_NO_WARN_RWX_SEGMENTS)
 endif
 
 efi_objects_pre1 = $(efi_sources:.c=.o)
diff --git a/configure.ac b/configure.ac
index d39b5fa..27c1b27 100644
--- a/configure.ac
+++ b/configure.ac
@@ -112,6 +112,11 @@ AX_CHECK_COMPILE_FLAG([-mgeneral-regs-only],
        [CFLAGS_MGENERAL_REGS_ONLY=])
 AC_SUBST([CFLAGS_MGENERAL_REGS_ONLY])
 
+AX_CHECK_LINK_FLAG([-Wl,--no-warn-rwx-segments],
+       [LDFLAGS_NO_WARN_RWX_SEGMENTS=--no-warn-rwx-segments],
+       [LDFLAGS_NO_WARN_RWX_SEGMENTS=])
+AC_SUBST([LDFLAGS_NO_WARN_RWX_SEGMENTS])
+
 # Checks from autoscan:
 AC_CHECK_FUNCS([getmntent])
 AC_CHECK_FUNCS([memset])
-- 
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/b062196936e0963907181d4b43022964b447c32d.1658901190.git.jan.kiszka%40siemens.com.

Reply via email to