mirror of
https://github.com/armbian/build.git
synced 2025-08-16 08:06:59 +02:00
- fixes: unrecognized option '-Wl,--no-warn-rwx-segment' - add a patch to atf that removes the unrecognized linker options Signed-off-by: Martin Schmiedel <Martin.Schmiedel@tq-group.com>
31 lines
898 B
Diff
31 lines
898 B
Diff
From 230e25fbcd0a36dfaaa8f3b9f0ad7d9cd0500736 Mon Sep 17 00:00:00 2001
|
|
From: Martin Schmiedel <Martin.Schmiedel@tq-group.com>
|
|
Date: Wed, 28 May 2025 14:02:39 +0200
|
|
Subject: [PATCH] fix needed by armbian build system
|
|
|
|
remove possibly contained gcc linker flags
|
|
|
|
Signed-off-by: Martin Schmiedel <Martin.Schmiedel@tq-group.com>
|
|
---
|
|
Makefile | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index ea5701347..7a4ff1244 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -343,6 +343,10 @@ GCC_V_OUTPUT := $(shell $(CC) -v 2>&1)
|
|
|
|
TF_LDFLAGS += -z noexecstack
|
|
|
|
+# remove possibly contained gcc linker flags we use the linker directly
|
|
+gcc_linker_flags = -Wl,--no-warn-rwx-segment
|
|
+TF_LDFLAGS := $(filter-out $(gcc_linker_flags), $(TF_LDFLAGS))
|
|
+
|
|
# LD = armlink
|
|
ifneq ($(findstring armlink,$(notdir $(LD))),)
|
|
TF_LDFLAGS += --diag_error=warning --lto_level=O1
|
|
--
|
|
2.43.0
|
|
|