Skip to content
  • Alexey Samsonov's avatar
    Remove wild .debug_aranges entries generated from unimportant labels · 4436bf03
    Alexey Samsonov authored
    r191052 added emitting .debug_aranges to Clang, but this
    functionality is broken: it uses all MC labels added in DWARF Asm
    printer, including the labels for build relocations between
    different DWARF sections, like .Lsection_line or .Ldebug_loc0.
    
    As a result, if any DIE .debug_info would contain "DW_AT_location=0x123"
    attribute, .debug_aranges would also contain a range starting from 0x123,
    breaking tools that rely on this section.
    
    This patch fixes this by using only MC labels that corresponds to the
    addresses in the user program.
    
    llvm-svn: 191884
    4436bf03
Loading