pkarashchenko commented on code in PR #10671:
URL: https://github.com/apache/nuttx/pull/10671#discussion_r1328398703
##########
boards/sim/sim/sim/scripts/Make.defs:
##########
@@ -259,6 +259,9 @@ LDELFFLAGS += -T $(call
CONVERT_PATH,$(TOPDIR)/binfmt/libelf/gnu-elf.ld)
ifeq ($(CONFIG_HOST_MACOS),y)
LDFLAGS += -Wl,-dead_strip
else
+ # Let the symbol table link from 0x400000
+ # which is more convenient for debugging.
+ LDFLAGS += -Wl,-Ttext-segment=0x400000
LDFLAGS += -Wl,--gc-sections
Review Comment:
```suggestion
LDFLAGS += -Wl,--gc-sections
# Let the symbol table link from 0x400000
# which is more convenient for debugging.
LDFLAGS += -Wl,-Ttext-segment=0x400000
```
Just to have better visibility that `LDFLAGS += -Wl,-dead_strip` is same as
`LDFLAGS += -Wl,--gc-sections` and comment section is not related to `LDFLAGS
+= -Wl,--gc-sections`
--
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]