[llvm-commits] Bug in "call __chkstak" on 64 bit OS

Anton Korobeynikov anton at korobeynikov.info
Sun Feb 19 07:00:36 PST 2012


> The "__chkstk" function is in ntdll.dll. In my OS, the JIT is loaded to an address which is more than 2Gb away from the ntdll.dll, thus the call to this function fails. I will investigate other system calls as well. But regardless of other calls, this fix is needed.  The definition of W64ALLOCA (below) assumes that we use an i32 immediate, thus we can’t use it.
Surely the fix is needed. It just needs to be done in proper way.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University




More information about the llvm-commits mailing list