summaryrefslogtreecommitdiff
path: root/rt/start-freebsd.s
diff options
context:
space:
mode:
Diffstat (limited to 'rt/start-freebsd.s')
-rw-r--r--rt/start-freebsd.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/rt/start-freebsd.s b/rt/start-freebsd.s
index 9f5dd2d..396674c 100644
--- a/rt/start-freebsd.s
+++ b/rt/start-freebsd.s
@@ -53,6 +53,9 @@ _start:
pushq %rsi
pushq %rdx
+ /* call pre-main initializers */
+ call __init__
+
/* enter the main program */
call main
/* exit(0) */