buildroot/package/chicken/0001-xtensa-text-section-li...

31 lines
800 B
Diff

From e8d177f4d4e1c6bc41787ea1621e323ff4ad493e Mon Sep 17 00:00:00 2001
From: Woodrow Douglass <wdouglass@carnegierobotics.com>
Date: Mon, 22 Jul 2024 08:50:37 -0400
Subject: [PATCH] Move literals into text section for xtensa architecture
Upstream: https://bugs.call-cc.org/ticket/1840
Signed-off-by: Woodrow Douglass <wdouglass@carnegierobotics.com>
---
Makefile.linux | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Makefile.linux b/Makefile.linux
index b628cda4..e97c2b94 100644
--- a/Makefile.linux
+++ b/Makefile.linux
@@ -52,6 +52,11 @@ USES_SONAME = yes
# architectures
+ifeq ($(ARCH),xtensa)
+C_COMPILER_OPTIONS += -mtext-section-literals
+LINKER_OPTIONS += -mtext-section-literals
+endif
+
ifeq ($(ARCH),x32)
C_COMPILER_OPTIONS += -mx32
LINKER_OPTIONS += -mx32
--
2.39.2