Fix SHMODULEFLAGS so that we link dynamically correctly
* arch/risc-v/src/common/Toolchain.defs arch/xtensa/src/lx6/Toolchain.defs arch/xtensa/src/lx7/Toolchain.defs - Define SHMODULEFLAGS etc. for sotest/dynload - Add --entry=__start to SHMODULEFLAGS * boards/arm64/qemu/qemu-armv8a/scripts/Make.defs boards/sim/sim/sim/scripts/Make.defs - Define SHMODULEFLAGS etc. for sotest/dynload
This commit is contained in:
parent
71c9f4e094
commit
73b15a87dc
@ -114,8 +114,11 @@ ifneq ($(CONFIG_CXX_RTTI),y)
|
||||
ARCHCXXFLAGS += -fno-rtti
|
||||
endif
|
||||
|
||||
SHMODULEFLAGS = -Bsymbolic -G -Bdynamic --entry=__start
|
||||
|
||||
ifeq ($(CONFIG_ARCH_RV32),y)
|
||||
LDFLAGS += -melf32lriscv
|
||||
SHMODULEFLAGS += -melf32lriscv
|
||||
else
|
||||
LDFLAGS += -melf64lriscv
|
||||
endif
|
||||
|
@ -134,6 +134,8 @@ endif
|
||||
|
||||
LDFLAGS += -nostdlib
|
||||
|
||||
SHMODULEFLAGS = -Bsymbolic -G -Bdynamic --entry=__start
|
||||
|
||||
# Optimization of unused sections
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_OPT_UNUSED_SECTIONS),y)
|
||||
|
@ -138,6 +138,8 @@ endif
|
||||
|
||||
LDFLAGS += -nostdlib
|
||||
|
||||
SHMODULEFLAGS = -Bsymbolic -G -Bdynamic --entry=__start
|
||||
|
||||
# Optimization of unused sections
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_OPT_UNUSED_SECTIONS),y)
|
||||
|
@ -46,6 +46,8 @@ CMODULEFLAGS = $(CFLAGS)
|
||||
LDMODULEFLAGS = -r -e module_initialize
|
||||
LDMODULEFLAGS += -T $(call CONVERT_PATH,$(TOPDIR)/libs/libc/modlib/gnu-elf.ld)
|
||||
|
||||
SHMODULEFLAGS = -Bsymbolic -G -Bdynamic
|
||||
|
||||
CELFFLAGS = $(CFLAGS) -mlong-calls # --target1-abs
|
||||
CXXELFFLAGS = $(CXXFLAGS) -mlong-calls # --target1-abs
|
||||
|
||||
|
@ -290,7 +290,7 @@ ifeq ($(CONFIG_DEBUG_LINK_MAP),y)
|
||||
endif
|
||||
|
||||
SHCCFLAGS = -fPIC -fPIE -fvisibility=default
|
||||
SHLDFLAGS = -shared -Bsymbolic -Bdynamic -G
|
||||
SHMODULEFLAGS = -shared -Bsymbolic -Bdynamic -G
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_LINK_MAP),y)
|
||||
ifeq ($(CONFIG_HOST_MACOS),)
|
||||
@ -302,6 +302,6 @@ ifeq ($(CONFIG_SIM_M32),y)
|
||||
LDLINKFLAGS += -melf_i386
|
||||
LDFLAGS += -m32
|
||||
LDMODULEFLAGS += -melf_i386
|
||||
SHLDFLAGS += -melf_i386
|
||||
SHMODULEFLAGS += -melf_i386
|
||||
LDELFFLAGS += -melf_i386
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user