llvm.org GIT mirror llvm / 99fc4ea
Re-apply r364600 with fixes. Fix: MachO/X86_64_RELOC_GOT is a 32-bit reloc, so only compare 32 bits. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364672 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 1 year, 4 months ago
1 changed file(s) with 12 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
128128 Lanon_minuend_long:
129129 .long Lanon_minuend_long - named_data + 2
130130
131 # Check X86_64_RELOC_GOT handling.
132 # X86_64_RELOC_GOT is the data-section counterpart to X86_64_RELOC_GOTLD. It is
133 # handled exactly the same way, including having an implicit PC-rel offset of -4
134 # (despite this not making sense in a data section, and requiring an explicit
135 # +4 addend to cancel it out and get the correct result).
136 #
137 # jitlink-check: *{4}test_got = (got_addr(macho_reloc.o, external_data) - test_got)[31:0]
138 .globl test_got
139 .p2align 2
140 test_got:
141 .long external_data@GOTPCREL + 4
142
131143 # Named quad storage target (first named atom in __data).
132144 .globl named_data
133145 .p2align 3