[PATCH] Bug 18582 - Offset overflow on calling __chkstk and __alloca on x64
anton at korobeynikov.info
Thu Jan 29 07:03:01 PST 2015
In http://reviews.llvm.org/D6856#115156, @belleyb wrote:
> I believe that this should be performed in all memory models.
> In fact, I now believe that it is probably also affecting non-JIT usage. Windows 8 and 10 performs some address space randomization (DLL loading and memory allocations), probably for security reasons. This makes it more likely to that an inter-DLL function call is located more than 2GB away. 32-bit PC relative relocation cannot be used to perform an inter-DLL function call (unless going through the PLT). This is true for all memory models.
Is there any documentation that Windows 8 and 10 indeed use large code model?
More information about the llvm-commits