mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00: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:
parent
ace40bfbfc
commit
8121b88666
3 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue