You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/05/15 21:05:58 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6276: Move "-nostartfiles -nodefaultlibs" from Make.defs to Toolchian.defs

xiaoxiang781216 commented on code in PR #6276:
URL: https://github.com/apache/incubator-nuttx/pull/6276#discussion_r873226438


##########
arch/arm/src/arm/Toolchain.defs:
##########
@@ -153,7 +155,6 @@ ifeq ($(CONFIG_LTO_FULL),y)
     NM := $(CROSSDEV)gcc-nm
     ARCHOPTIMIZATION += -fuse-linker-plugin
     ARCHOPTIMIZATION += -fno-builtin
-    ARCHOPTIMIZATION += -nodefaultlibs

Review Comment:
   since we provide the start files, and link the libgcc etc explicitly, it should be fine to always link with -nostdlib(-nostartfiles and -nodefaultlibs).



-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org