objdump: set address of debug sections.

This patche fixes the values of FDE pc in output of objdump -Wf. They now
match readelf ones.

binutils/
	* objdump.c (load_specific_debug_section): Set address of section.
This commit is contained in:
Tristan Gingold 2014-03-24 12:37:32 +01:00
parent 467637ade6
commit 595330b7ce
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,10 @@
* od-macho.c (bfd_mach_o_cpu_name): Add BFD_MACH_O_CPU_TYPE_ARM64.
2014-03-24 Tristan Gingold <gingold@adacore.com>
* objdump.c (load_specific_debug_section): Set address of section.
2014-03-24 Tristan Gingold <gingold@adacore.com>
* od-macho.c (dump_unwind_encoding_x86): Set the factor.

View File

@ -2259,7 +2259,7 @@ load_specific_debug_section (enum dwarf_section_display_enum debug,
if (section->start != NULL)
return 1;
section->address = 0;
section->address = bfd_get_section_vma (abfd, sec);
section->size = bfd_get_section_size (sec);
section->start = NULL;
ret = bfd_get_full_section_contents (abfd, sec, &section->start);