Skip to content

Commit e02dc0f

Browse files
committed
bug fix pic:elf do not generate unwind table
modlib_read: Read 64 bytes from offset 192665 modlib_symvalue: ERROR: SHN_UNDEF: Exported symbol "__gnu_Unwind_Find_exidx" not found modlib_relocate: ERROR: Section 2 reloc 12: Failed to get value of symbol[246]: -2 elf_loadbinary: Failed to bind symbols program binary: -2 builtin_loadbinary: Loading file: /pic/hello Signed-off-by: anjiahao <anjiahao@xiaomi.com>
1 parent 2b092ad commit e02dc0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/arm/src/common/Toolchain.defs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,11 @@ LDMODULEFLAGS = -r -T $(call CONVERT_PATH,$(TOPDIR)/libs/libc/elf/gnu-elf.ld)
552552
CELFFLAGS = $(CFLAGS) -fvisibility=hidden -mlong-calls # --target1-abs
553553
CXXELFFLAGS = $(CXXFLAGS)-fvisibility=hidden -mlong-calls
554554

555+
ifeq ($(CONFIG_UNWINDER_ARM),y)
556+
CELFFLAGS += -fno-unwind-tables -fno-asynchronous-unwind-tables
557+
CXXELFFLAGS += -fno-unwind-tables -fno-asynchronous-unwind-tables
558+
endif
559+
555560
ifeq ($(CONFIG_PIC),y)
556561
CFLAGS += --fixed-r10
557562
CELFFLAGS += $(PICFLAGS) -mpic-register=r10

0 commit comments

Comments
 (0)