diff options
-rw-r--r-- | rt/_myrrt-plan9.s | 1 | ||||
-rw-r--r-- | rt/start-freebsd.s | 1 | ||||
-rw-r--r-- | rt/start-linux.s | 1 | ||||
-rw-r--r-- | rt/start-openbsd.s | 1 | ||||
-rw-r--r-- | rt/start-osx.s | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/rt/_myrrt-plan9.s b/rt/_myrrt-plan9.s index 4f21b9c..2f91f2f 100644 --- a/rt/_myrrt-plan9.s +++ b/rt/_myrrt-plan9.s @@ -57,6 +57,7 @@ TEXT _main(SB), 1, $(2*8+NPRIVATES*8) PUSHQ R13 PUSHQ DX + XORQ BP,BP CALL __init__(SB) CALL main(SB) POPQ DX diff --git a/rt/start-freebsd.s b/rt/start-freebsd.s index 54cd0ce..92f5435 100644 --- a/rt/start-freebsd.s +++ b/rt/start-freebsd.s @@ -53,6 +53,7 @@ _start: pushq %rsi pushq %rdx + xorq %rbp,%rbp /* call pre-main initializers */ call __init__ diff --git a/rt/start-linux.s b/rt/start-linux.s index 04c7029..8c72269 100644 --- a/rt/start-linux.s +++ b/rt/start-linux.s @@ -66,6 +66,7 @@ _start: pushq %rsi pushq %rdx + xorq %rbp,%rbp /* call pre-main initializers */ call __init__ /* enter the main program */ diff --git a/rt/start-openbsd.s b/rt/start-openbsd.s index c1d3667..c278ab0 100644 --- a/rt/start-openbsd.s +++ b/rt/start-openbsd.s @@ -75,6 +75,7 @@ _start: pushq %rsi pushq %rdx + xorq %rbp,%rbp /* call pre-main initializers */ call __init__ /* enter the main program */ diff --git a/rt/start-osx.s b/rt/start-osx.s index edf758a..3d7952f 100644 --- a/rt/start-osx.s +++ b/rt/start-osx.s @@ -54,6 +54,7 @@ start: pushq %rsi pushq %rdx + xorq %rbp,%rbp call ___init__ /* enter the main program */ call _main |