aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2022-09-03 19:21:12 +0200
committerDaniel Bertalan <dani@danielbertalan.dev>2022-09-05 16:58:51 +0200
commit1b65d20961d3f7c30fe2fc75aac0e924e902cca3 (patch)
tree8287eceaf4bb1f6afbbf78d77334e7649d859e4b /llvm/lib/Object/COFFObjectFile.cpp
parent41c79d0b6d4ce1461f025cfb065619ba469ca96d (diff)
downloadllvm-1b65d20961d3f7c30fe2fc75aac0e924e902cca3.zip
llvm-1b65d20961d3f7c30fe2fc75aac0e924e902cca3.tar.gz
llvm-1b65d20961d3f7c30fe2fc75aac0e924e902cca3.tar.bz2
[lld-macho] Diagnose unaligned arm64 PAGEOFF12 relocations
The LDR and STR instructions store their immediate offsets as a multiple of the load/store's size. Therefore, if the target address is not aligned, the relocation is not representable. We now emit an error if that happens, similarly to ld64. This commit removes a test case from loh-adrp-ldr.s that contained an unaligned LDR. Differential Revision: https://reviews.llvm.org/D133269
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions