search for: finaladdress

Displaying 7 results from an estimated 7 matches for "finaladdress".

2013 Jan 29
3
[LLVMdev] Assertions in RuntimeDyldELF in ExecutionEngine/MCJIT tests
...sSanitizer replaces system malloc with its own allocator, which allocates memory at "unusual" parts of heap and the difference between pointers can be significant (and doesn't fit in 32 bytes). I add debug output to calculation of RealOffset in resolveX86_64Relocation: uint64_t FinalAddress = Section.LoadAddress + Offset; int64_t RealOffset = *Placeholder + Value + Addend - FinalAddress; fprintf(stderr, "%x + %lx + %lx - %lx = %lx\n", *Placeholder, Value, Addend, FinalAddress, RealOffset); assert(RealOffset <= INT32_MAX && RealOffset >=...
2013 Jan 30
2
[LLVMdev] Assertions in RuntimeDyldELF in ExecutionEngine/MCJIT tests
..."unusual" parts of heap and the difference between > pointers can be significant**** > > (and doesn't fit in 32 bytes).**** > > ** ** > > I add debug output to calculation of RealOffset in resolveX86_64Relocation: > **** > > ** ** > > uint64_t FinalAddress = Section.LoadAddress + Offset;**** > > int64_t RealOffset = *Placeholder + Value + Addend - FinalAddress;**** > > fprintf(stderr, "%x + %lx + %lx - %lx = %lx\n",**** > > *Placeholder, Value, Addend, FinalAddress, RealOffset);**** > > assert...
2013 Jan 29
0
[LLVMdev] Assertions in RuntimeDyldELF in ExecutionEngine/MCJIT tests
...sSanitizer replaces system malloc with its own allocator, which allocates memory at "unusual" parts of heap and the difference between pointers can be significant (and doesn't fit in 32 bytes). I add debug output to calculation of RealOffset in resolveX86_64Relocation: uint64_t FinalAddress = Section.LoadAddress + Offset; int64_t RealOffset = *Placeholder + Value + Addend - FinalAddress; fprintf(stderr, "%x + %lx + %lx - %lx = %lx\n", *Placeholder, Value, Addend, FinalAddress, RealOffset); assert(RealOffset <= INT32_MAX && RealOffset >=...
2013 Jan 31
2
[LLVMdev] Assertions in RuntimeDyldELF in ExecutionEngine/MCJIT tests
..."unusual" parts of heap and the difference between > pointers can be significant**** > > (and doesn't fit in 32 bytes).**** > > **** > > I add debug output to calculation of RealOffset in resolveX86_64Relocation: > **** > > **** > > uint64_t FinalAddress = Section.LoadAddress + Offset;**** > > int64_t RealOffset = *Placeholder + Value + Addend - FinalAddress;**** > > fprintf(stderr, "%x + %lx + %lx - %lx = %lx\n",**** > > *Placeholder, Value, Addend, FinalAddress, RealOffset);**** > > assert...
2013 Jan 30
0
[LLVMdev] Assertions in RuntimeDyldELF in ExecutionEngine/MCJIT tests
...sSanitizer replaces system malloc with its own allocator, which allocates memory at "unusual" parts of heap and the difference between pointers can be significant (and doesn't fit in 32 bytes). I add debug output to calculation of RealOffset in resolveX86_64Relocation: uint64_t FinalAddress = Section.LoadAddress + Offset; int64_t RealOffset = *Placeholder + Value + Addend - FinalAddress; fprintf(stderr, "%x + %lx + %lx - %lx = %lx\n", *Placeholder, Value, Addend, FinalAddress, RealOffset); assert(RealOffset <= INT32_MAX && RealOffset >=...
2013 Jan 31
0
[LLVMdev] Assertions in RuntimeDyldELF in ExecutionEngine/MCJIT tests
...sSanitizer replaces system malloc with its own allocator, which allocates memory at "unusual" parts of heap and the difference between pointers can be significant (and doesn't fit in 32 bytes). I add debug output to calculation of RealOffset in resolveX86_64Relocation: uint64_t FinalAddress = Section.LoadAddress + Offset; int64_t RealOffset = *Placeholder + Value + Addend - FinalAddress; fprintf(stderr, "%x + %lx + %lx - %lx = %lx\n", *Placeholder, Value, Addend, FinalAddress, RealOffset); assert(RealOffset <= INT32_MAX && RealOffset >=...
2015 Jan 26
2
[LLVMdev] [llvm] r188726 - Adding PIC support for ELF on x86_64 platforms
...ay have overwritten the loaded version + uint64_t *Placeholder = reinterpret_cast<uint64_t*>(Section.ObjAddress + + Offset); + uint64_t *Target = reinterpret_cast<uint64_t*>(Section.Address + Offset); + uint64_t FinalAddress = Section.LoadAddress + Offset; + *Target = *Placeholder + Value + Addend - FinalAddress; + break; I''d like to make my new JIT APIs more aggressive about freeing the ObjectFile instances (ideally we'd be able to free immediately after a call to loadObject), but at the moment I h...