commit 0c191e78c88dcf53bc4c7133a625b6c9cb64c7ad
parent 1e039a8411948564b53fe53483afe4af6cf78b22
Author: Drew DeVault <sir@cmpwn.com>
Date: Fri, 4 Nov 2022 09:28:50 +0100
rt+libc+test: add __fini_start & __fini_end symbols
Signed-off-by: Drew DeVault <sir@cmpwn.com>
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/rt/start+test+libc.ha b/rt/start+test+libc.ha
@@ -3,6 +3,9 @@
export fn init() void = void;
+const @symbol("__fini_array_start") fini_start: [*]*fn() void;
+const @symbol("__fini_array_end") fini_end: [*]*fn() void;
+
// Run all global finalization functions.
export fn fini() void = {
const nfini = (&fini_end: uintptr - &fini_start: uintptr): size