Files
clang-p2996/llvm/test/ExecutionEngine/JITLink/X86/Inputs/MachO_GOTAndStubsOptimizationHelper.s
Lang Hames 27a79b7216 [JITLink] Add a MachO x86-64 GOT and Stub bypass optimization.
This optimization bypasses GOT loads and calls/branches through stubs when the
ultimate target of the access/branch is found to be within range of the
reference.

Extra debugging output is also added to the generic JITLink algorithm and
basic GOT and Stubs builder utility to aid debugging.
2020-02-23 23:38:31 -08:00

9 lines
183 B
ArmAsm

.section __TEXT,__text,regular,pure_instructions
.macosx_version_min 10, 14
.globl bypass_got
.p2align 4, 0x90
bypass_got:
movq _x@GOTPCREL(%rip), %rax
.subsections_via_symbols