diff options
author | Nick Clifton <nickc@redhat.com> | 2009-06-24 10:37:35 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2009-06-24 10:37:35 +0000 |
commit | 336832265972000794f3076e982ca0b465c81adf (patch) | |
tree | 918e40356a50300fb3023a63e2b674223849276e /binutils/dwarf.c | |
parent | 8ae22dc243acc2f9e50d4032b3465b1274c27345 (diff) | |
download | binutils-redhat-336832265972000794f3076e982ca0b465c81adf.tar.gz |
* dwarf.c (display_debug_lines_raw): Include the name of the
section in warning message.
(struct debug_display): Enable reloc processing for .debug_line
and .debug_ranges sections.
* readelf.c: Add --relocated-dump command line option to dump the
relocated contents of a specified section.
(request_dump): New function.
(parse_args): Use it.
(dump_section_as_bytes): Add parameter to indicate whether the
contents should be relocated.
(target_specific_reloc_handling): Add code for a R_MN10300_16
reloc found after a R_MN10300_SYM_DIFF reloc.
(debug_apply_relocations): Rename to apply_relocations.
(get_section_contents): New function. Replaces common code found
in dump_section_as_strings and dump_section_as_bytes.
* doc/binutils.texi: Document new command line option.
* NEWS: Mention the new feature.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index b524d17930..1a01e009a5 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -2145,7 +2145,8 @@ display_debug_lines_raw (struct dwarf_section *section, if (info.li_length + initial_length_size > section->size) { warn - (_("The line info appears to be corrupt - the section is too small\n")); + (_("The information in section %s appears to be corrupt - the section is too small\n"), + section->name); return 0; } @@ -4872,7 +4873,7 @@ struct dwarf_section_display debug_displays[] = { { ".debug_info", ".zdebug_info", NULL, NULL, 0, 0 }, display_debug_info, &do_debug_info, 1, 0 }, { { ".debug_line", ".zdebug_line", NULL, NULL, 0, 0 }, - display_debug_lines, &do_debug_lines, 0, 0 }, + display_debug_lines, &do_debug_lines, 1, 0 }, { { ".debug_pubnames", ".zdebug_pubnames", NULL, NULL, 0, 0 }, display_debug_pubnames, &do_debug_pubnames, 0, 0 }, { { ".eh_frame", "", NULL, NULL, 0, 0 }, @@ -4886,7 +4887,7 @@ struct dwarf_section_display debug_displays[] = { { ".debug_pubtypes", ".zdebug_pubtypes", NULL, NULL, 0, 0 }, display_debug_pubnames, &do_debug_pubnames, 0, 0 }, { { ".debug_ranges", ".zdebug_ranges", NULL, NULL, 0, 0 }, - display_debug_ranges, &do_debug_ranges, 0, 0 }, + display_debug_ranges, &do_debug_ranges, 1, 0 }, { { ".debug_static_func", ".zdebug_static_func", NULL, NULL, 0, 0 }, display_debug_not_supported, NULL, 0, 0 }, { { ".debug_static_vars", ".zdebug_static_vars", NULL, NULL, 0, 0 }, |