[PATCH] D57277: [COFF, ARM64] Don't put jump table into a separate COFF section for EK_LabelDifference32

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 25 18:26:28 PST 2019


pcc added a comment.

> There is no relocation type for linker to do fixup for this entry correctly if they are in different COFF section.

Looks like there is now. From the PE spec:

> IMAGE_REL_ARM64_REL32 
> 0x0011
>  The 32-bit relative address from the byte following the relocation.

According to archive.org, this was added in the 11/04/2018 revision of the spec. Assuming that support for this was added to the linker recently, we'd probably need to make emitting this conditional on a new enough toolset, though.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57277/new/

https://reviews.llvm.org/D57277





More information about the llvm-commits mailing list