pkarashchenko commented on code in PR #17444:
URL: https://github.com/apache/nuttx/pull/17444#discussion_r2617307516
##########
libs/libc/string/lib_memset.c:
##########
@@ -53,6 +53,7 @@
#if !defined(CONFIG_LIBC_ARCH_MEMSET) && defined(LIBC_BUILD_MEMSET)
#undef memset
no_builtin("memset")
+used_code
Review Comment:
@xiaoxiang781216 I was not using C++ at all. My issue appears in
https://github.com/apache/nuttx/issues/17443 when I was compiling
`same70-xplained:mcuboot-loader` config with LTO enabled with
`arm-none-eabi-gcc (GCC) 15.2.0` on MAC installed from `brew`. I was able to
fix it with adding `-u memset` to `LDFLAGS` as an alternative to `used`
attribute proposed here
--
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]