[PATCH] D35792: [lld] [COFF, ARM64] Handle ADRP immediate offsets in relocations

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 24 04:08:16 PDT 2017


mstorsjo created this revision.
Herald added subscribers: kristof.beyls, javed.absar, aemerson.

Also handle overflow correctly in LDR/STR relocations. Even if the offset range of a 8 byte LDR instruction is 15 bit (even if the immediate itself is 12 bit) due to a 3 bit shift, only include up to 12 bits of offset after doing the relocation.


https://reviews.llvm.org/D35792

Files:
  COFF/Chunks.cpp
  test/COFF/arm64-symbol-offset.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35792.107880.patch
Type: text/x-patch
Size: 11148 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170724/00e461c6/attachment.bin>


More information about the llvm-commits mailing list