xiaoxiang781216 commented on code in PR #14064: URL: https://github.com/apache/nuttx/pull/14064#discussion_r1795801585
########## arch/risc-v/src/common/Toolchain.defs: ########## @@ -411,8 +411,15 @@ CELFFLAGS = $(CFLAGS) -fvisibility=hidden CXXELFFLAGS = $(CXXFLAGS) -fvisibility=hidden LDELFFLAGS = -r -e main +ifeq ($(CONFIG_ARCH_RV32),y) + LDELFFLAGS += --oformat elf32-littleriscv +else + LDELFFLAGS += --oformat elf64-littleriscv +endif + LDELFFLAGS += -T $(call CONVERT_PATH,$(TOPDIR)$(DELIM)binfmt$(DELIM)libelf$(DELIM)gnu-elf.ld) + Review Comment: remove this line -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
