sim: fix text-segment not taking effect

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai
2023-09-18 15:45:53 +08:00
committed by Xiang Xiao
parent 88193d3ad5
commit 49093b1400
+4 -7
View File
@@ -260,6 +260,10 @@ ifeq ($(CONFIG_HOST_MACOS),y)
LDFLAGS += -Wl,-dead_strip
else
LDFLAGS += -Wl,--gc-sections
# Let the symbol table link from 0x400000
# which is more convenient for debugging.
LDFLAGS += -Wl,-Ttext-segment=0x400000
endif
ifeq ($(CONFIG_SIM_M32),y)
@@ -268,10 +272,3 @@ ifeq ($(CONFIG_SIM_M32),y)
LDMODULEFLAGS += -melf_i386
LDELFFLAGS += -melf_i386
endif
# Let the symbol table link from 0x400000
# which is more convenient for debugging.
ifeq ($(CONFIG_HOST_MACOS),n)
LDFLAGS += -Wl,-Ttext-segment=0x400000
endif