leisiji opened a new pull request, #19043:
URL: https://github.com/apache/nuttx/pull/19043
## Summary
* In SPLIT build mode, compile options (-fno-builtin, NO_LTO) were applied
to the mm target (system library) instead of the kmm target (kernel library),
causing kasan hook.c to be compiled without the intended flags.
* nuttx_add_kernel_library(mm SPLIT) creates two targets: mm and kmm.
target_compile_options(mm ...) only affects the system library, not the kernel
library where kasan code resides.
* Changed target_compile_options(mm ...) to target_compile_options(kmm
...) in mm/kasan/CMakeLists.txt so FLAGS are correctly applied to the kernel
target.
## Impact
* Is new feature added? Is existing feature changed? NO.
* Impact on user (will user need to adapt to change)? NO.
* Impact on build (will build process change)? NO.
* Impact on hardware (will arch(s) / board(s) / driver(s) change)? NO.
* Impact on documentation (is update required / provided)? NO.
* Impact on security (any sort of implications)? NO.
* Impact on compatibility (backward/forward/interoperability)? NO.
## Testing
* Build Host: Linux, x86_64, GCC
* Target: arm/qemu/qemu-armv7a:knsh
## PR verification Self-Check
* [x] This PR introduces only one functional change.
* [x] I have updated all required description fields above.
* [x] My PR adheres to Contributing Guidelines and Documentation.
* [ ] My PR is still work in progress (not ready for review).
* [x] My PR is ready for review and can be safely merged into a codebase.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]