diff options
Diffstat (limited to 'ortho/mcode/ortho_code-x86-abi.adb')
-rw-r--r-- | ortho/mcode/ortho_code-x86-abi.adb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ortho/mcode/ortho_code-x86-abi.adb b/ortho/mcode/ortho_code-x86-abi.adb index 1515c2e..db22384 100644 --- a/ortho/mcode/ortho_code-x86-abi.adb +++ b/ortho/mcode/ortho_code-x86-abi.adb @@ -716,6 +716,9 @@ package body Ortho_Code.X86.Abi is function Muldi3 (A, B : Long_Integer) return Long_Integer; pragma Import (C, Muldi3, "__muldi3"); + procedure Chkstk (Sz : Integer); + pragma Import (C, Chkstk, "_chkstk"); + procedure Link_Intrinsics is begin @@ -727,5 +730,7 @@ package body Ortho_Code.X86.Abi is (Ortho_Code.X86.Emits.Intrinsics_Symbol (Ortho_Code.X86.Intrinsic_Div_Ov_I64), Divdi3'Address); + Binary_File.Memory.Set_Symbol_Address + (Ortho_Code.X86.Emits.Chkstk_Symbol, Chkstk'Address); end Link_Intrinsics; end Ortho_Code.X86.Abi; |