mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
cmake kernel build(bugfix): remove unused section in elf link
this will reduce the size of elf Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
@@ -33,3 +33,5 @@ nuttx_elf_link_options_ifdef(
|
||||
nuttx_elf_link_options_ifdef(CONFIG_BINFMT_ELF_RELOCATABLE -r)
|
||||
|
||||
nuttx_elf_link_options_ifdef(CONFIG_BUILD_KERNEL -Bstatic)
|
||||
|
||||
nuttx_elf_link_options_ifdef(CONFIG_DEBUG_OPT_UNUSED_SECTIONS --gc-sections)
|
||||
|
||||
@@ -25,3 +25,5 @@ nuttx_elf_compile_options(-fvisibility=hidden)
|
||||
nuttx_elf_link_options_ifdef(CONFIG_BINFMT_ELF_RELOCATABLE -r)
|
||||
|
||||
nuttx_elf_link_options_ifdef(CONFIG_BUILD_KERNEL -Bstatic)
|
||||
|
||||
nuttx_elf_link_options_ifdef(CONFIG_DEBUG_OPT_UNUSED_SECTIONS --gc-sections)
|
||||
|
||||
Reference in New Issue
Block a user