search for: getstubalign

Displaying 3 results from an estimated 3 matches for "getstubalign".

2013 Apr 14
1
[LLVMdev] [RFC/PATCH][1/4] New SystemZ backend: LLVM code changes
...ht to be straightfoward. The second patch adds changes to LLVM common code required to support the SystemZ ELF object format, including relocation types and processing and the runtime loader. There is one change to common code that it not solely SystemZ related: the patch adds a new routine "getStubAlignment", which a target can use to inform common code that JIT stubs require a certain alignment. Note that common code will not actually perform that alignment, but it will add enough extra space when allocating text sections to enable platform code to align its stubs accordingly. [ This new r...
2013 Oct 15
1
[LLVMdev] A weird, reproducable problem with MCJIT
If I spoke incorrectly about what systems this problem/change effects I apologize. I'll leave it to Andrew to determine that. Best, .Chris. "Kaylor, Andrew" <andrew.kaylor at intel.com> writes: > Yes, you are correct Yaron.  Before we commit this we ought to put a > check in to see what the target OS is.  I just suggested the change > below as a quick and easy way
2015 Jan 26
2
[LLVMdev] [llvm] r188726 - Adding PIC support for ELF on x86_64 platforms
...;< " Stub function found\n"); + } else { + // Create a new stub function (equivalent to a PLT entry). + DEBUG(dbgs() << " Create a new stub function\n"); + + uintptr_t BaseAddress = uintptr_t(Section.Address); + uintptr_t StubAlignment = getStubAlignment(); + StubAddress = (BaseAddress + Section.StubOffset + + StubAlignment - 1) & -StubAlignment; + unsigned StubOffset = StubAddress - BaseAddress; + Stubs[Value] = StubOffset; + createStubFunction((uint8_t *)StubAddress); + + // Create a...