mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user