cmake/elf: Fix ELF entry point from __start to _start

__start is the kernel boot entry for each chip, while _start (defined
in crt0.c) is the correct C runtime entry point for ELF executables.

Signed-off-by: leisiji <2265215145@qq.com>
This commit is contained in:
leisiji
2026-06-08 16:03:21 +08:00
committed by Xiang Xiao
parent ace40bfbfc
commit 8121b88666
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -46,4 +46,4 @@ if(CONFIG_DEBUG_OPT_UNUSED_SECTIONS)
endif()
endif()
nuttx_elf_link_options(-e __start)
nuttx_elf_link_options(-e _start)
+1 -1
View File
@@ -32,4 +32,4 @@ nuttx_elf_link_options_ifdef(CONFIG_BUILD_KERNEL -Bstatic)
nuttx_elf_link_options_ifdef(CONFIG_DEBUG_OPT_UNUSED_SECTIONS --gc-sections)
nuttx_elf_link_options(-e __start)
nuttx_elf_link_options(-e _start)
+1 -1
View File
@@ -30,4 +30,4 @@ nuttx_mod_link_options(-r)
nuttx_elf_link_options_ifdef(CONFIG_DEBUG_OPT_UNUSED_SECTIONS --gc-sections)
nuttx_elf_link_options(-e __start)
nuttx_elf_link_options(-e _start)