[PATCH] D95121: [lld-macho][NFC] refactor relocation handling

Greg McGary via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 21 02:39:48 PST 2021


gkm created this revision.
gkm added a reviewer: lld-macho.
gkm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Add per-reloc-type attribute bits and migrate code from per-target file into target independent code, driven by reloc attributes.

Many cleanups


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95121

Files:
  lld/MachO/Arch/X86_64.cpp
  lld/MachO/Driver.cpp
  lld/MachO/InputFiles.cpp
  lld/MachO/InputSection.cpp
  lld/MachO/OutputSegment.cpp
  lld/MachO/Target.cpp
  lld/MachO/Target.h
  lld/MachO/Writer.cpp
  lld/test/MachO/invalid/bad-got-to-dylib-tlv-reference.s
  lld/test/MachO/invalid/bad-got-to-tlv-reference.s
  lld/test/MachO/invalid/bad-tlv-def.s
  lld/test/MachO/invalid/bad-tlv-opcode.s
  lld/test/MachO/invalid/bad-tlv-relocation.s
  lld/test/MachO/invalid/invalid-relocation-length.yaml
  lld/test/MachO/invalid/invalid-relocation-pcrel.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95121.318137.patch
Type: text/x-patch
Size: 30417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210121/ebbcc598/attachment-0001.bin>


More information about the llvm-commits mailing list