This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new d063ca46c7 sim: fix asan address space conflict
d063ca46c7 is described below
commit d063ca46c7d61af6c67e53eb7c92788e91f1e830
Author: yinshengkai <[email protected]>
AuthorDate: Tue Oct 22 21:02:50 2024 +0800
sim: fix asan address space conflict
Modify the starting position of the elf segment to 0x5000000
==2561587==Shadow memory range interleaves with an existing memory mapping.
ASan cannot proceed correctly. ABORTING.
==2561587==ASan shadow was supposed to be located in the
[0x1ffff000-0x3fffffff] range.
==2561587==Process memory map follows:
Signed-off-by: yinshengkai <[email protected]>
---
boards/sim/sim/sim/scripts/Make.defs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/boards/sim/sim/sim/scripts/Make.defs
b/boards/sim/sim/sim/scripts/Make.defs
index 399facc8df..6ab41bc8ba 100644
--- a/boards/sim/sim/sim/scripts/Make.defs
+++ b/boards/sim/sim/sim/scripts/Make.defs
@@ -287,9 +287,9 @@ ifeq ($(CONFIG_HOST_MACOS),y)
else
LDFLAGS += -Wl,--gc-sections
- # Let the symbol table link from 0x400000
+ # Let the symbol table link from 0x50000000
# which is more convenient for debugging.
- LDFLAGS += -Wl,-Ttext-segment=0x400000
+ LDFLAGS += -Wl,-Ttext-segment=0x50000000
endif
ifeq ($(CONFIG_DEBUG_LINK_MAP),y)