mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
[AsmPrinter][TLOF] ARM64 MachO support for replacing GOT equivalents
Follow up r230264 and add ARM64 support for replacing global GOT equivalent symbol accesses by references to the GOT entry for the final symbol instead, example: -- before .globl _foo _foo: .long 42 .globl _gotequivalent _gotequivalent: .quad _foo .globl _delta _delta: .long _gotequivalent-_delta -- after .globl _foo _foo: .long 42 .globl _delta Ltmp3: .long _foo@GOT-Ltmp3 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231474 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -52,7 +52,7 @@ MCSymbol *X86_64MachoTargetObjectFile::getCFIPersonalitySymbol(
|
||||
}
|
||||
|
||||
const MCExpr *X86_64MachoTargetObjectFile::getIndirectSymViaGOTPCRel(
|
||||
const MCSymbol *Sym, int64_t Offset) const {
|
||||
const MCSymbol *Sym, int64_t Offset, MCStreamer &Streamer) const {
|
||||
// On Darwin/X86-64, we need to use foo@GOTPCREL+4 to access the got entry
|
||||
// from a data section. In case there's an additional offset, then use
|
||||
// foo@GOTPCREL+4+<offset>.
|
||||
|
Reference in New Issue
Block a user