[all-commits] [llvm/llvm-project] e183bf: [lld-macho][reland] Initial support for EH Frames

Jez Ng via All-commits all-commits at lists.llvm.org
Mon Jun 13 04:47:38 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e183bf8e1599d98bade8fe4a5774c23b9a67655b
  Author: Jez Ng <jezng at fb.com>
  Date:   2022-06-13 (Mon, 13 Jun 2022)

  Changed paths:
    M lld/MachO/Arch/ARM64.cpp
    M lld/MachO/Arch/ARM64_32.cpp
    M lld/MachO/Arch/X86_64.cpp
    M lld/MachO/CMakeLists.txt
    M lld/MachO/Config.h
    M lld/MachO/Driver.cpp
    A lld/MachO/EhFrame.cpp
    A lld/MachO/EhFrame.h
    M lld/MachO/ICF.cpp
    M lld/MachO/InputFiles.cpp
    M lld/MachO/InputFiles.h
    M lld/MachO/InputSection.cpp
    M lld/MachO/InputSection.h
    M lld/MachO/Relocations.h
    M lld/MachO/Symbols.h
    M lld/MachO/Target.h
    M lld/MachO/UnwindInfoSection.cpp
    M lld/MachO/Writer.cpp
    A lld/test/MachO/Inputs/eh-frame-x86_64-r.o
    A lld/test/MachO/eh-frame.s
    A lld/test/MachO/invalid/eh-frame.s
    M lld/test/MachO/obj-file-with-stabs.s
    M lld/test/MachO/tools/generate-cfi-funcs.py

  Log Message:
  [lld-macho][reland] Initial support for EH Frames

This reverts commit 942f4e3a7cc9a9f8b2654817cff12907d1276031.

The additional change required to avoid the assertion errors seen
previously is:

  --- a/lld/MachO/ICF.cpp
  +++ b/lld/MachO/ICF.cpp
  @@ -443,7 +443,9 @@ void macho::foldIdenticalSections() {
           isec->data = copy;
  -    } else {
  +    } else if (!isEhFrameSection(isec)) {
  +      // EH frames are gathered as hashables from unwindEntry above; give a
  +      // unique ID to everything else.
         isec->icfEqClass[0] = ++icfUniqueID;

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

  Commit: b422dac240f1475999a2c1b5fc242a0ef2e08727
  Author: Jez Ng <jezng at fb.com>
  Date:   2022-06-13 (Mon, 13 Jun 2022)

  Changed paths:
    M lld/MachO/InputFiles.cpp
    A lld/test/MachO/Inputs/eh-frame-arm64-r.o
    M lld/test/MachO/eh-frame.s

  Log Message:
  [lld-macho][reland] Support EH frames under arm64

This reverts commit 10641a42e2286679e0d36ca827e1a40d95ae8ef1.

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

Compare: https://github.com/llvm/llvm-project/compare/e4a21e1644f2...b422dac240f1

More information about the All-commits mailing list