1
0
Fork 0
forked from nuttx/nuttx-update
local-nuttx-update/arch/sim
cuiziwei 8e58245524 sim: Fix sim m32 start up crash issue.
After compilation, when starting nsh, the following crash occurs.
==2500151==Shadow memory range interleaves with an existing memory mapping. ASan cannot proceed correctly. ABORTING.
==2500151==ASan shadow was supposed to be located in the [0x1ffff000-0x3fffffff] range.
==2500151==Process memory map follows:
0x30000000-0x33dd4000 /nuttx/nuttx

To avoid overlaps, change the starting address of the text segment.

Using Ttext-segment=0x30000000 causes a crash when starting the 32-bit SIM.
Using -Ttext-segment=0x50000000 causes a crash when starting the 64-bit SIM.
Setting -Ttext-segment=0x40000000 resolves all issues perfectly.

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-11-23 01:47:34 +08:00
..
include nuttx/sim: Remove math.h in sim. 2024-11-06 02:56:24 +08:00
src sim: Fix sim m32 start up crash issue. 2024-11-23 01:47:34 +08:00
CMakeLists.txt cmake:fix windows build break 2024-10-01 21:34:26 +08:00
Kconfig sim: Add compiler selection 2024-11-15 01:05:16 +08:00