[all-commits] [llvm/llvm-project] 3a9d2f: [lld-macho][NFC] refactor relocation handling

Greg McGary via All-commits all-commits at lists.llvm.org
Tue Feb 2 09:55:48 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a9d2f1488f0a767d4e55dc701bbdfc5438bbb3e
      https://github.com/llvm/llvm-project/commit/3a9d2f1488f0a767d4e55dc701bbdfc5438bbb3e
  Author: Greg McGary <gkm at fb.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M lld/MachO/Arch/X86_64.cpp
    M lld/MachO/Driver.cpp
    M lld/MachO/InputFiles.cpp
    M lld/MachO/InputSection.cpp
    M lld/MachO/InputSection.h
    M lld/MachO/SyntheticSections.cpp
    M lld/MachO/Target.cpp
    M lld/MachO/Target.h
    M lld/MachO/Writer.cpp
    M lld/test/MachO/invalid/bad-got-to-dylib-tlv-reference.s
    M lld/test/MachO/invalid/bad-got-to-tlv-reference.s
    M lld/test/MachO/invalid/bad-tlv-def.s
    M lld/test/MachO/invalid/bad-tlv-opcode.s
    M lld/test/MachO/invalid/bad-tlv-relocation.s
    M lld/test/MachO/invalid/invalid-relocation-length.yaml
    M lld/test/MachO/invalid/invalid-relocation-pcrel.yaml
    A lld/test/MachO/x86-64-reloc-subtract.s
    M llvm/include/llvm/BinaryFormat/MachO.h

  Log Message:
  -----------
  [lld-macho][NFC] refactor relocation handling

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

Many cleanups

Differential Revision: https://reviews.llvm.org/D95121




More information about the All-commits mailing list