From: Alan Cox Date: Fri, 16 Jan 2015 16:03:16 +0000 (+0000) Subject: crt0_6502: exit via return implies exit() not _exit() X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=6f73c71cbac66908e952e440bed35e477879b3f7;p=FUZIX.git crt0_6502: exit via return implies exit() not _exit() --- diff --git a/Library/libs/crt0_6502.s b/Library/libs/crt0_6502.s index 1cdca238..262b5ba0 100644 --- a/Library/libs/crt0_6502.s +++ b/Library/libs/crt0_6502.s @@ -9,7 +9,7 @@ .import initlib, donelib .import __CODE_SIZE__, __RODATA_SIZE__ .import __DATA_SIZE__, __BSS_SIZE__ - .import __exit + .import _exit .import _environ .import _main @@ -63,5 +63,5 @@ l1: sta _environ ; Call the module destructors. This is also the exit() entry. _exit: - jmp __exit ; exit syscall, AX holds our return code + jmp _exit ; exit syscall, AX holds our return code ; for a fastcall return to nowhere.