pkarashchenko commented on a change in pull request #5756:
URL: https://github.com/apache/incubator-nuttx/pull/5756#discussion_r827838618
##########
File path: boards/sim/sim/sim/scripts/Make.defs
##########
@@ -209,6 +209,11 @@ endif
LDELFFLAGS = -r -e main --gc-sections
LDELFFLAGS += -T $(call
CONVERT_PATH,$(BOARD_DIR)$(DELIM)scripts$(DELIM)gnu-elf.ld)
+LDFLAGS += -Wl,--gc-sections
+
+ifeq ($(CONFIG_HOST_MACOS),y)
+ LDFLAGS += -Wl,-dead_strip
+endif
Review comment:
Probably gc-sections should be in else case
--
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]