mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
When CONFIG_MM_KASAN_GLOBAL is enabled, hook.c is also linked into libmm.a. However, g_global_region (defined in global.c) is only injected into the nuttx ELF by kasan_global.py — it does not process the app binary. This causes undefined symbol errors when linking an app against libmm.a. Guard the inclusion of global.c with __KERNEL__ so that only kernel builds pull in the global KASAN region, while app builds fall back to the no-op stub. Signed-off-by: leisiji <2265215145@qq.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| generic.c | ||
| global.c | ||
| hook.c | ||
| hw_tags.c | ||
| Kconfig | ||
| Make.defs | ||
| sw_tags.c | ||