[PATCH] D35321: [DWARF] Fix for bug processing the debug_str_offs section on Mach-O

Wolfgang Pieb via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 12 12:53:00 PDT 2017


wolfgangp created this revision.

This is to fix a bug with processing of DWARF v5 indexed strings in Mach-O object files. Mach-O limits section names to 16 characters, but the generic code expects DWARF v5 standard names, some of which are longer than 16 characters. Mapping of Mach-O section names to DWARF v5 standard names was implemented, but the call to the conversion routine was accidentally placed past the place where it was needed and was deemed dead code.

A test for Mach-O was added and the existing test updated.


https://reviews.llvm.org/D35321

Files:
  lib/DebugInfo/DWARF/DWARFContext.cpp
  test/DebugInfo/Inputs/dwarfdump-str-offsets-macho.o
  test/DebugInfo/Inputs/dwarfdump-str-offsets-macho.s
  test/DebugInfo/dwarfdump-str-offsets.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35321.106267.patch
Type: text/x-patch
Size: 17459 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170712/76e67124/attachment.bin>


More information about the llvm-commits mailing list