ref: f238030498f6b30f6d11e000b053e6f5154e4702
parent: d87c0959d85b40fcf60b9c6dd0a2f2111f888b55
author: Ori Bernstein <ori@markovcorp.com>
date: Tue Feb 26 09:19:46 EST 2019
Hook in __fini__ on 9front.
--- a/lib/sys/sys+plan9-x64.myr
+++ b/lib/sys/sys+plan9-x64.myr
@@ -173,7 +173,6 @@
const atexit : (fn : (-> void) -> void)
- pkglocal const __fini__ : (-> void)
;;
var exitfn : (-> void)[128]
--- a/rt/_myrrt-plan9.s
+++ b/rt/_myrrt-plan9.s
@@ -58,7 +58,7 @@
CALL main(SB)
POPQ DX
POPQ R13
- CALL sys$__fini__(SB)
+ CALL __fini__(SB)
exitloop:
MOVQ $0,8(SP)