• Nick Clifton's avatar
    * elflink.c (_bfd_elf_gc_mark_extra_sections): Remove mark from · b40bf0a2
    Nick Clifton authored
    	fragmented .debug_line sections associated with unmarked code
    	sections.
    
    	* dwarf.c (read_debug_line_header): New function.  Reads in a
    	header in a .debug_line section.
    	(display_debug_lines_raw): Use new function.  Handle fragmentary
    	.debug_line sections.
    	(display_debug_lines_decoded): Likewise.
    	* readelf.c (process_section_headers): Handle fragmenatry
    	.debug_line sections.
    	(display_debug_section): Likewise.
    
    	* as.c (Options): Add -gdwarf-sections.
    	(parse_args): Likewise.
    	* as.h (flag_dwarf_sections): Declare.
    	* dwarf2dbg.c (emit_fixed_inc_line_addr): Skip section changes.
    	(process_entries): When -gdwarf-sections is enabled generate
    	fragmentary .debug_line sections.
    	(out_debug_line): Set the section for the .debug_line section end
    	symbol.
    	* doc/as.texinfo: Document -gdwarf-sections.
    	* NEWS: Mention -gdwarf-sections.
    
    	* gas/elf/dwarf2-3.d: Fix expected readelf output.
    
    	* scripttempl/DWARF.sc: Add support for .debug_line.* and
    	.debug_line_end.
    b40bf0a2
dwarf.c 185 KB