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


The following commit(s) were added to refs/heads/master by this push:
     new 6f95251ca49 libs/libc: Export atexit() in the system symbol table.
6f95251ca49 is described below

commit 6f95251ca496ae9de428f093900b39fa5a68bf22
Author: raiden00pl <[email protected]>
AuthorDate: Thu Nov 5 08:38:10 2026 +0100

    libs/libc: Export atexit() in the system symbol table.
    
    With CONFIG_LIBC_MAX_EXITFUNS > 0 the crt0 of an ELF program calls
    atexit(), but libc.csv does not list it.  A flat build that resolves
    programs through the system symbol table then cannot load any program:
    exec() fails with ENOENT.
    
    Assisted-by: Claude:claude-opus-5-5
    Signed-off-by: raiden00pl <[email protected]>
---
 libs/libc/libc.csv | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libs/libc/libc.csv b/libs/libc/libc.csv
index 3e13e11c85b..0a40e57cc2a 100644
--- a/libs/libc/libc.csv
+++ b/libs/libc/libc.csv
@@ -24,6 +24,7 @@
 "arc4random","stdlib.h","","uint32_t"
 "arc4random_buf","stdlib.h","","void","FAR void *","size_t"
 "asprintf","stdio.h","","int","FAR char **","FAR const IPTR char *","..."
+"atexit","stdlib.h","CONFIG_LIBC_MAX_EXITFUNS > 0","int","CODE void (*)(void)"
 "atof","stdlib.h","defined(CONFIG_HAVE_DOUBLE)","double","FAR const char *"
 "atoi","stdlib.h","","int","FAR const char *"
 "atol","stdlib.h","","long","FAR const char *"

Reply via email to