mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
sim: fix text-segment not taking effect
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
@@ -260,6 +260,10 @@ ifeq ($(CONFIG_HOST_MACOS),y)
|
|||||||
LDFLAGS += -Wl,-dead_strip
|
LDFLAGS += -Wl,-dead_strip
|
||||||
else
|
else
|
||||||
LDFLAGS += -Wl,--gc-sections
|
LDFLAGS += -Wl,--gc-sections
|
||||||
|
|
||||||
|
# Let the symbol table link from 0x400000
|
||||||
|
# which is more convenient for debugging.
|
||||||
|
LDFLAGS += -Wl,-Ttext-segment=0x400000
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_SIM_M32),y)
|
ifeq ($(CONFIG_SIM_M32),y)
|
||||||
@@ -268,10 +272,3 @@ ifeq ($(CONFIG_SIM_M32),y)
|
|||||||
LDMODULEFLAGS += -melf_i386
|
LDMODULEFLAGS += -melf_i386
|
||||||
LDELFFLAGS += -melf_i386
|
LDELFFLAGS += -melf_i386
|
||||||
endif
|
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user