[all-commits] [llvm/llvm-project] 6939fe: [lld-macho] Support X86_64_RELOC_SIGNED_{1, 2, 4}

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon May 4 15:15:55 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6939fe6e0853638c2f25569e4b42a1363914d7f9
      https://github.com/llvm/llvm-project/commit/6939fe6e0853638c2f25569e4b42a1363914d7f9
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-05-04 (Mon, 04 May 2020)

  Changed paths:
    M lld/MachO/Arch/X86_64.cpp
    A lld/test/MachO/x86-64-reloc-signed.s

  Log Message:
  -----------
  [lld-macho] Support X86_64_RELOC_SIGNED_{1,2,4}

We currently only support extern relocations.
`X86_64_RELOC_SIGNED_{1,2,4}` are like X86_64_RELOC_SIGNED, but with the
implicit addend fixed to 1, 2, and 4, respectively.
See the comment in `lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp RecordX86_64Relocation`.

Reviewed By: int3

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




More information about the All-commits mailing list