[PATCH] D154544: [BOLT][DWARF] Fix for .debug_line with DWARF5
Alexander Yermolovich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 5 14:05:27 PDT 2023
ayermolo created this revision.
Herald added subscribers: treapster, hoy, modimo, wenlei, hiraditya.
Herald added a reviewer: rafauler.
Herald added a reviewer: Amir.
Herald added a reviewer: maksfb.
Herald added a project: All.
ayermolo requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, jplehr, yota9, sstefan1.
Herald added a project: LLVM.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D154544
Files:
bolt/lib/Core/DebugData.cpp
bolt/test/X86/Inputs/dwarf5-debug-line-not-modified-helper-variable.s
bolt/test/X86/Inputs/dwarf5-debug-line-not-modified-helper.s
bolt/test/X86/Inputs/dwarf5-debug-line-not-modified-main.s
bolt/test/X86/dwarf5-debug-line-not-modified.test
llvm/include/llvm/MC/MCDwarf.h
llvm/lib/MC/MCDwarf.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154544.537489.patch
Type: text/x-patch
Size: 26706 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230705/76f8116f/attachment.bin>
More information about the llvm-commits
mailing list