[all-commits] [llvm/llvm-project] 95685c: [BOLT] Retain certain local symbols (#184074)

YongKang Zhu via All-commits all-commits at lists.llvm.org
Thu Mar 5 00:34:57 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95685ca52ee89ab6df9872f1ade1bb9bfa5ce9ba
      https://github.com/llvm/llvm-project/commit/95685ca52ee89ab6df9872f1ade1bb9bfa5ce9ba
  Author: YongKang Zhu <yongzhu at fb.com>
  Date:   2026-03-05 (Thu, 05 Mar 2026)

  Changed paths:
    M bolt/include/bolt/Core/BinaryContext.h
    M bolt/lib/Core/BinaryContext.cpp
    M bolt/lib/Rewrite/RewriteInstance.cpp
    M bolt/test/AArch64/compare-and-branch-inversion.S
    M bolt/test/AArch64/compare-and-branch-reorder-blocks.S
    A bolt/test/AArch64/retain-local-symbols.s
    M bolt/test/X86/avx512-trap.test
    M bolt/test/X86/dynamic-relocs-on-entry.s

  Log Message:
  -----------
  [BOLT] Retain certain local symbols (#184074)

BOLT currently strips all STT_NOTYPE STB_LOCAL zero-sized symbols
that fall inside function bodies. Certain such symbols are named
labels (loop markers and subroutine entry points) or local function
symbols in hand-written assembly. We now keep them in local symbol
table in BOLT processed binaries for better symbolication.



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