[all-commits] [llvm/llvm-project] d9b619: Add support for mach-o symbol stubs. (#225155)

Greg Clayton via All-commits all-commits at lists.llvm.org
Mon Sep 21 15:14:59 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d9b61968481a0cc6fbbef744eeecab16ff9d0c18
      https://github.com/llvm/llvm-project/commit/d9b61968481a0cc6fbbef744eeecab16ff9d0c18
  Author: Greg Clayton <gclayton at fb.com>
  Date:   2026-09-21 (Mon, 21 Sep 2026)

  Changed paths:
    M llvm/lib/DebugInfo/GSYM/ObjectFileTransformer.cpp
    A llvm/test/tools/llvm-gsymutil/X86/macho-symbol-stubs.yaml

  Log Message:
  -----------
  Add support for mach-o symbol stubs. (#225155)

This patch add support for making symbols from the symbol stubs in
mach-o files. Symbol stubs are found in sections that whose type is
S_SYMBOL_STUBS and using these setions along with the indirect symbol
table, we can make symbols for the PLT entries for external functions.
Some crashes occur in these stubs and previous to this fix those
addresses might be incorrecty associated with the last real symbol from
the symbol table and cause confusion and incorrect stack attributions in
symbolication workflows.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list