[all-commits] [llvm/llvm-project] f2c7f7: [lld-macho] Support creating N_SO stab for DWARF5 ...

Daniel Bertalan via All-commits all-commits at lists.llvm.org
Thu Jul 28 01:00:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f2c7f75f61bdc1009129ee33600d574cac9214d9
      https://github.com/llvm/llvm-project/commit/f2c7f75f61bdc1009129ee33600d574cac9214d9
  Author: Daniel Bertalan <dani at danielbertalan.dev>
  Date:   2022-07-28 (Thu, 28 Jul 2022)

  Changed paths:
    M lld/MachO/Dwarf.cpp
    M lld/MachO/Dwarf.h
    M lld/MachO/InputSection.h
    A lld/test/MachO/stabs-dwarf5.s

  Log Message:
  -----------
  [lld-macho] Support creating N_SO stab for DWARF5 compile units

In DWARF5, the `DW_AT_name` and `DW_AT_comp_dir` attributes are encoded
using the `strx*` forms, which specify an index into `__debug_str_offs`.
This commit adds that section to DwarfObject, so the debug info parser
can resolve these references.

The test case was manually adapted from stabs-icf.s.

Fixes #51668

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




More information about the All-commits mailing list