[all-commits] [llvm/llvm-project] cc0ec3: [llvm-objcopy][MachO] Fix MachO::relocation_info u...

lhames via All-commits all-commits at lists.llvm.org
Thu Apr 16 18:28:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cc0ec3fdb9d1dccfc6bf6d511163cb595c8760eb
      https://github.com/llvm/llvm-project/commit/cc0ec3fdb9d1dccfc6bf6d511163cb595c8760eb
  Author: Lang Hames <lhames at gmail.com>
  Date:   2020-04-16 (Thu, 16 Apr 2020)

  Changed paths:
    M llvm/tools/llvm-objcopy/MachO/MachOReader.cpp
    M llvm/tools/llvm-objcopy/MachO/MachOWriter.cpp
    M llvm/tools/llvm-objcopy/MachO/Object.h

  Log Message:
  -----------
  [llvm-objcopy][MachO] Fix MachO::relocation_info use after 386f1c114d5.

Use shift/mask operations to access r_symbolnum rather than relying on
MachO::relocation_info. This should fix the big-endian bot failures that were
caused by 386f1c114d5.




More information about the All-commits mailing list