[all-commits] [llvm/llvm-project] 241f62: [lld-macho] Fix assertion when two symbols at same...

Jez Ng via All-commits all-commits at lists.llvm.org
Thu Jul 21 06:46:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 241f62d8d30f0d846cbb5ec4ec65f1476ebc63fe
      https://github.com/llvm/llvm-project/commit/241f62d8d30f0d846cbb5ec4ec65f1476ebc63fe
  Author: Jez Ng <jezng at fb.com>
  Date:   2022-07-21 (Thu, 21 Jul 2022)

  Changed paths:
    M lld/MachO/InputFiles.cpp
    M lld/MachO/UnwindInfoSection.cpp
    A lld/test/MachO/Inputs/double-unwind-info.yaml
    A lld/test/MachO/double-unwind-info.s

  Log Message:
  -----------
  [lld-macho] Fix assertion when two symbols at same addr have unwind info

If there are multiple symbols at the same address, our unwind info
implementation assumes that we always register unwind entries to a
single canonical symbol.

This assumption was violated by the `registerEhFrame` code.

Fixes #56570.

Reviewed By: #lld-macho, thakis

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




More information about the All-commits mailing list