llvm-project/lld/MachO/Arch
Daniel Bertalan d1e40f4d58 [lld-macho] Add LOH_ARM64_ADRP_ADD_LDR optimization hint support
This hint instructs the linker to optimize an adrp+add+ldr sequence used
for loading from a local symbol's address by loading directly if it's
close enough, or with an adrp(p)+ldr sequence if it's not.

This transformation is the same as what's done for ADRP_LDR_GOT_LDR when
the symbol is local. The logic for acting on this hint is therefore
moved to a new function which will be called from the existing
applyAdrpLdrGotLdr() function.

Differential Revision: https://reviews.llvm.org/D130505
2022-07-28 10:45:28 +02:00
..
ARM.cpp [lld-macho] Devirtualize TargetInfo::getRelocAttrs 2022-07-18 19:32:58 +02:00
ARM64.cpp [lld-macho] Add LOH_ARM64_ADRP_ADD_LDR optimization hint support 2022-07-28 10:45:28 +02:00
ARM64Common.cpp [lld-macho] Handle user-provided dtrace symbols to avoid linking failure 2022-07-11 15:32:26 -04:00
ARM64Common.h [lld-macho] Handle user-provided dtrace symbols to avoid linking failure 2022-07-11 15:32:26 -04:00
ARM64_32.cpp [lld-macho] Devirtualize TargetInfo::getRelocAttrs 2022-07-18 19:32:58 +02:00
X86_64.cpp [lld-macho] Devirtualize TargetInfo::getRelocAttrs 2022-07-18 19:32:58 +02:00