mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
arch: Add --whole-archive linker option for some of architectures
Add Kconfig option that enable --whole-archive linker option for some of architectures Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
This commit is contained in:
@@ -2483,6 +2483,14 @@ config DEBUG_OPT_UNUSED_SECTIONS
|
||||
linker by compiling with " -ffunction-sections -fdata-sections ", and
|
||||
linking with " --gc-sections ".
|
||||
|
||||
config DEBUG_LINK_WHOLE_ARCHIVE
|
||||
bool "Force every object to be included in the resulting shared library."
|
||||
default n
|
||||
depends on DEBUG_OPT_UNUSED_SECTIONS
|
||||
---help---
|
||||
Selecting this option will pass "--whole-archive" to ld
|
||||
when linking NuttX ELF.
|
||||
|
||||
config DEBUG_LINK_MAP
|
||||
bool "Generate link map file"
|
||||
default y
|
||||
|
||||
Reference in New Issue
Block a user