mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
In RuntimeDyldImpl::emitSection, make Allocate (section size to be allocated) a
uintptr_t. An unsigned could overflow for large sections. No test case - anything big enough to overflow an unsigned is going to take an appreciable time to zero when the test passes. The choice of uintptr_t was made to match the RTDyldMemoryManager APIs, but these should probably be hardcoded to uint64_ts: It is legitimate to JIT for 64-bit targets from a 32-bit host/compiler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201127 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
35c474d251
commit
a70e3fca1a
@ -298,7 +298,7 @@ unsigned RuntimeDyldImpl::emitSection(ObjectImage &Obj,
|
||||
if (Name == ".eh_frame")
|
||||
PaddingSize = 4;
|
||||
|
||||
unsigned Allocate;
|
||||
uintptr_t Allocate;
|
||||
unsigned SectionID = Sections.size();
|
||||
uint8_t *Addr;
|
||||
const char *pData = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user