mirror of
https://github.com/apache/nuttx.git
synced 2026-09-22 06:04:28 +08:00
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:
@@ -46,4 +46,4 @@ if(CONFIG_DEBUG_OPT_UNUSED_SECTIONS)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
nuttx_elf_link_options(-e __start)
|
||||
nuttx_elf_link_options(-e _start)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user