[all-commits] [llvm/llvm-project] 9b3af5: [dsymutil] Apply relocations present in Swift refl...

Augusto Noronha via All-commits all-commits at lists.llvm.org
Thu Mar 17 10:23:49 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b3af5e7b70239516cbe56f82fb195f8a55d3a2e
      https://github.com/llvm/llvm-project/commit/9b3af5e7b70239516cbe56f82fb195f8a55d3a2e
  Author: Augusto Noronha <augusto2112 at me.com>
  Date:   2022-03-17 (Thu, 17 Mar 2022)

  Changed paths:
    M llvm/include/llvm/Object/MachO.h
    M llvm/include/llvm/Object/ObjectFile.h
    M llvm/lib/Object/MachOObjectFile.cpp
    M llvm/lib/Object/ObjectFile.cpp
    M llvm/test/tools/dsymutil/X86/reflection-dump.test
    M llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
    M llvm/tools/dsymutil/DwarfLinkerForBinary.h
    M llvm/tools/dsymutil/MachOUtils.cpp
    M llvm/tools/dsymutil/MachOUtils.h

  Log Message:
  -----------
  [dsymutil] Apply relocations present in Swift reflection sections

The strippable Swift reflection sections contain subtractor relocations
that need to be applied. There are two situations we need to support.
1) Both symbols used in the relocation come from the .o file (for
   example, one symbol lives in __swift5_fieldmd and the second in
   __swift5_reflstr).
2) One symbol comes from th .o file and the second from the main
   binary (for example, __swift5_fieldmd and __swift5_typeref).

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




More information about the All-commits mailing list