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)