mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
IMX8: fix build error
- 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>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user