[all-commits] [llvm/llvm-project] 814dff: [llvm-objcopy][MachO] Support LC_LINKER_OPTIMIZATI...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jun 29 18:48:08 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 814dffa4b7edb36d3b05c6b96591330e33a82204
      https://github.com/llvm/llvm-project/commit/814dffa4b7edb36d3b05c6b96591330e33a82204
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-06-29 (Tue, 29 Jun 2021)

  Changed paths:
    A llvm/test/tools/llvm-objcopy/MachO/lc-linker-optimization-hint.s
    M llvm/tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp
    M llvm/tools/llvm-objcopy/MachO/MachOReader.cpp
    M llvm/tools/llvm-objcopy/MachO/MachOReader.h
    M llvm/tools/llvm-objcopy/MachO/MachOWriter.cpp
    M llvm/tools/llvm-objcopy/MachO/MachOWriter.h
    M llvm/tools/llvm-objcopy/MachO/Object.cpp
    M llvm/tools/llvm-objcopy/MachO/Object.h

  Log Message:
  -----------
  [llvm-objcopy][MachO] Support LC_LINKER_OPTIMIZATION_HINT load command

The load command is currently specific to arm64 and holds information
for instruction rewriting, e.g.  converting a GOT load to an ADR to
compute a local address.
(On ELF the information is usually conveyed by relocations, e.g.
R_X86_64_REX_GOTPCRELX, R_PPC64_TOC16_HA)

Reviewed By: alexander-shaposhnikov

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




More information about the All-commits mailing list