forked from nuttx/nuttx-update
Unify the linking options for 32-bit and 64-bit to text-segment=0x30000000.
In order to be compatible with 32-bit and 64-bit compilation, set the text-segment to 0x30000000. Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
This commit is contained in:
parent
feb38c43f2
commit
f0e03f6c3c
2 changed files with 3 additions and 3 deletions
|
@ -196,5 +196,5 @@ if(APPLE)
|
|||
add_link_options(-Wl,-dead_strip)
|
||||
else()
|
||||
add_link_options(-Wl,--gc-sections)
|
||||
add_link_options(-Wl,-Ttext-segment=0x40000000)
|
||||
add_link_options(-Wl,-Ttext-segment=0x30000000)
|
||||
endif()
|
||||
|
|
|
@ -296,9 +296,9 @@ ifeq ($(CONFIG_HOST_MACOS),y)
|
|||
else
|
||||
LDFLAGS += -Wl,--gc-sections
|
||||
|
||||
# Let the symbol table link from 0x50000000
|
||||
# Let the symbol table link from 0x30000000
|
||||
# which is more convenient for debugging.
|
||||
LDFLAGS += -Wl,-Ttext-segment=0x50000000
|
||||
LDFLAGS += -Wl,-Ttext-segment=0x30000000
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_LINK_MAP),y)
|
||||
|
|
Loading…
Reference in a new issue