diff options
author | Nick Clifton <nickc@redhat.com> | 2013-04-29 13:38:59 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-04-29 13:38:59 +0000 |
commit | b40bf0a25574c43114b906ba151b7895b2348794 (patch) | |
tree | 7964a382ed4b6f081640dd260954b27a7c17625e /ld | |
parent | 09526ec1c28f4f31b38c271c259b7dea0993d5b0 (diff) | |
download | gdb-b40bf0a25574c43114b906ba151b7895b2348794.zip gdb-b40bf0a25574c43114b906ba151b7895b2348794.tar.gz gdb-b40bf0a25574c43114b906ba151b7895b2348794.tar.bz2 |
* elflink.c (_bfd_elf_gc_mark_extra_sections): Remove mark from
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.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/scripttempl/DWARF.sc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 5ba44bb..7317e43 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2013-04-29 Nick Clifton <nickc@redhat.com> + + * scripttempl/DWARF.sc: Add support for .debug_line.* and + .debug_line_end. + 2013-04-29 Yaakov Selkowitz <yselkowitz@users.sourceforge.net> * emultempl/pe.em [cygwin]: Do not merge rdata with v2 diff --git a/ld/scripttempl/DWARF.sc b/ld/scripttempl/DWARF.sc index 008a9a1..89ff919 100644 --- a/ld/scripttempl/DWARF.sc +++ b/ld/scripttempl/DWARF.sc @@ -18,7 +18,7 @@ cat <<EOF /* DWARF 2 */ .debug_info 0 : { *(.debug_info${RELOCATING+ .gnu.linkonce.wi.*}) } .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } + .debug_line 0 : { *(.debug_line .debug_line.* .debug_line_end ) } .debug_frame 0 : { *(.debug_frame) } .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } |