This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 8121b8866604cb4d0447718e4af23404bacfeb69 Author: leisiji <[email protected]> AuthorDate: Sat Jun 6 10:12:37 2026 +0800 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 <[email protected]> --- arch/arm/src/cmake/elf.cmake | 2 +- arch/arm64/src/cmake/elf.cmake | 2 +- arch/x86_64/src/cmake/elf.cmake | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/src/cmake/elf.cmake b/arch/arm/src/cmake/elf.cmake index 48735ec85f8..bd5a4bedef0 100644 --- a/arch/arm/src/cmake/elf.cmake +++ b/arch/arm/src/cmake/elf.cmake @@ -46,4 +46,4 @@ if(CONFIG_DEBUG_OPT_UNUSED_SECTIONS) endif() endif() -nuttx_elf_link_options(-e __start) +nuttx_elf_link_options(-e _start) diff --git a/arch/arm64/src/cmake/elf.cmake b/arch/arm64/src/cmake/elf.cmake index 2e54432f5dc..92e175ddfe0 100644 --- a/arch/arm64/src/cmake/elf.cmake +++ b/arch/arm64/src/cmake/elf.cmake @@ -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) diff --git a/arch/x86_64/src/cmake/elf.cmake b/arch/x86_64/src/cmake/elf.cmake index 302688f9e19..11b350ab2a7 100644 --- a/arch/x86_64/src/cmake/elf.cmake +++ b/arch/x86_64/src/cmake/elf.cmake @@ -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)
