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/08/09 19:12:20 UTC

[GitHub] [incubator-nuttx] pkarashchenko commented on a diff in pull request #6800: Use GCC for LD on MIPS processors

pkarashchenko commented on code in PR #6800:
URL: https://github.com/apache/incubator-nuttx/pull/6800#discussion_r941713824


##########
arch/mips/src/mips32/Toolchain.defs:
##########
@@ -245,14 +245,14 @@ endif
 # Optimization of unused sections
 
 ifeq ($(CONFIG_DEBUG_OPT_UNUSED_SECTIONS),y)
-  LDFLAGS          += --gc-sections
+  LDFLAGS          += -Wl,--gc-sections

Review Comment:
   I think there was an automated way of adding -Wl in case if gcc is used for linking in case of ARM. Maybe the same approach can be used



-- 
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