diff --git a/rtl/linux/i386/prt0.as b/rtl/linux/i386/prt0.as index 7da5dcd9d2..9dd0566b2d 100644 --- a/rtl/linux/i386/prt0.as +++ b/rtl/linux/i386/prt0.as @@ -73,6 +73,9 @@ _haltproc2: # GAS <= 2.15 bug: generates larger jump if a label is e movl $252,%eax /* exit_group */ movzwl operatingsystem_result,%ebx int $0x80 + movl $1,%eax /* exit */ + movzwl operatingsystem_result,%ebx + int $0x80 jmp _haltproc2 .data