This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 3411e5c6db95f645c88a110fe2b2e8bf4124fdc5
Author: anjiahao <anjia...@xiaomi.com>
AuthorDate: Mon Feb 10 11:44:40 2025 +0800

    arm:elf module need long call aviod jump addr over length
    
    Signed-off-by: anjiahao <anjia...@xiaomi.com>
---
 arch/arm/src/common/Toolchain.defs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/common/Toolchain.defs 
b/arch/arm/src/common/Toolchain.defs
index 104d887a37..71db67818f 100644
--- a/arch/arm/src/common/Toolchain.defs
+++ b/arch/arm/src/common/Toolchain.defs
@@ -536,7 +536,7 @@ LDMODULEFLAGS = -r -T $(call 
CONVERT_PATH,$(TOPDIR)/libs/libc/modlib/gnu-elf.ld)
 # ELF module definitions
 
 CELFFLAGS = $(CFLAGS) -fvisibility=hidden -mlong-calls # --target1-abs
-CXXELFFLAGS = $(CXXFLAGS)-fvisibility=hidden
+CXXELFFLAGS = $(CXXFLAGS)-fvisibility=hidden -mlong-calls
 
 ifeq ($(CONFIG_PIC),y)
   CFLAGS += --fixed-r10

Reply via email to