xiaoxiang781216 commented on code in PR #12022:
URL: https://github.com/apache/nuttx/pull/12022#discussion_r1680726280
##########
CMakeLists.txt:
##########
@@ -758,8 +758,14 @@ if(CONFIG_BUILD_PROTECTED)
OUTPUT_VARIABLE nuttx_user_libgcc)
# reset link options for userspace to prevent sections from being
accidentally
- # deleted
- set_target_properties(nuttx_user PROPERTIES LINK_OPTIONS "")
+ # deleted Toolchain link options
+ get_target_property(nuttx_user_LINK_OPTIONS nuttx_user LINK_OPTIONS)
+ list(REMOVE_ITEM nuttx_user_LINK_OPTIONS "-Wl,--gc-sections")
Review Comment:
@xuxin930 let's split the hack to a new pr
--
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]