Skip to content

Commit 35a4d82

Browse files
authored
[libc] Add atexit to baremetal entrypoints (#147290)
Part of #145349. Requires #145358. Required by #146863. Once the mutex has been implemented, we can register functions to be called for exit with `atexit`.
1 parent 82bddc3 commit 35a4d82

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

libc/config/baremetal/aarch64/entrypoints.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ set(TARGET_LIBC_ENTRYPOINTS
218218
libc.src.stdlib.abort
219219
libc.src.stdlib.abs
220220
libc.src.stdlib.aligned_alloc
221+
libc.src.stdlib.atexit
221222
libc.src.stdlib.atof
222223
libc.src.stdlib.atoi
223224
libc.src.stdlib.atol

libc/config/baremetal/arm/entrypoints.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ set(TARGET_LIBC_ENTRYPOINTS
218218
libc.src.stdlib.abort
219219
libc.src.stdlib.abs
220220
libc.src.stdlib.aligned_alloc
221+
libc.src.stdlib.atexit
221222
libc.src.stdlib.atof
222223
libc.src.stdlib.atoi
223224
libc.src.stdlib.atol

libc/config/baremetal/riscv/entrypoints.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ set(TARGET_LIBC_ENTRYPOINTS
218218
libc.src.stdlib.abort
219219
libc.src.stdlib.abs
220220
libc.src.stdlib.aligned_alloc
221+
libc.src.stdlib.atexit
221222
libc.src.stdlib.atof
222223
libc.src.stdlib.atoi
223224
libc.src.stdlib.atol

0 commit comments

Comments
 (0)