[PATCH] D100804: [lld-macho] Support subtractor relocations that reference sections

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 19 16:55:24 PDT 2021


int3 added inline comments.


================
Comment at: lld/MachO/Arch/X86_64.cpp:97
                          uint64_t relocVA) const {
-  value += r.addend;
   if (r.pcrel) {
----------------
I hoisted this into the caller for uniformity (because in the case of subtractor relocs we need to handle the minuend's addend in the caller.)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100804



More information about the llvm-commits mailing list