[all-commits] [llvm/llvm-project] 66e943: [BOLT][DWARF] Fix for .debug_line with DWARF5

Alexander Yermolovich via All-commits all-commits at lists.llvm.org
Thu Jul 6 11:37:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66e943b1a9751db1611f6ba07e4c46899455d686
      https://github.com/llvm/llvm-project/commit/66e943b1a9751db1611f6ba07e4c46899455d686
  Author: Alexander Yermolovich <ayermolo at meta.com>
  Date:   2023-07-06 (Thu, 06 Jul 2023)

  Changed paths:
    M bolt/lib/Core/DebugData.cpp
    A bolt/test/X86/Inputs/dwarf5-debug-line-not-modified-helper-variable.s
    A bolt/test/X86/Inputs/dwarf5-debug-line-not-modified-helper.s
    A bolt/test/X86/Inputs/dwarf5-debug-line-not-modified-main.s
    A bolt/test/X86/dwarf5-debug-line-not-modified.test
    M llvm/include/llvm/MC/MCDwarf.h
    M llvm/lib/MC/MCDwarf.cpp

  Log Message:
  -----------
  [BOLT][DWARF] Fix for .debug_line with DWARF5

There was a bug in a code that pre-populated line string for a case where parts
of .debug_line are not processed by BOLT, but copied as raw data. We were not
switching sections. This resulted in parts of the binary being over-written with
debug data.

Reviewed By: maksfb

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




More information about the All-commits mailing list