mirror of
https://github.com/apache/nuttx.git
synced 2026-05-15 12:36:49 +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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user