[PATCH] D88629: [lld-macho] Add ARM64 target arch
    Thorsten via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sat Oct  3 14:04:50 PDT 2020
    
    
  
tschuett added a comment.
Sorry for being slow.
For every adrp instruction you call fixupPage21.
  inline uint64_t fixupPage21(uint64_t encoding, uint64_t va) {
    return (encoding | bitField(va, 12, 2, 29) | bitField(va, 14, 19, 5));
  }
According to the ARMARM. the PC relative address is encoded into two sections. One starting at offset 5 and the width is 19. The second one starts at offset 29 and the width is 2. That matches the 2 and 29 and the 19 and 5 in fixupPage 21. I don't know yet how the explain the 12 and 14.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88629/new/
https://reviews.llvm.org/D88629
    
    
More information about the llvm-commits
mailing list