[all-commits] [llvm/llvm-project] 5d0374: [RISCV] Make empty name symbols SF_FormatSpecific ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Mar 16 14:12:39 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d037458a318db4a15a7732513ab7d88bde04dc6
      https://github.com/llvm/llvm-project/commit/5d037458a318db4a15a7732513ab7d88bde04dc6
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-03-16 (Tue, 16 Mar 2021)

  Changed paths:
    M llvm/include/llvm/Object/ELFObjectFile.h
    A llvm/test/DebugInfo/Symbolize/ELF/riscv-empty-name-symbol.s

  Log Message:
  -----------
  [RISCV] Make empty name symbols SF_FormatSpecific so that llvm-symbolizer ignores them for symbolization

On RISC-V, clang emits empty name symbols used for label differences. (In GCC the symbols are typically `.L0`)
After D95916, the empty name symbols can show up in llvm-symbolizer's symbolization output.
They have no names and thus not useful. Set `SF_FormatSpecific` so that llvm-symbolizer will ignore them.

`SF_FormatSpecific` is also used in LTO but that case should not matter.

Corresponding addr2line problem: https://sourceware.org/bugzilla/show_bug.cgi?id=27585

Reviewed By: luismarques

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




More information about the All-commits mailing list