From 595330b7cedfac2b073e9ffc6a815221b7121f0c Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 24 Mar 2014 12:37:32 +0100 Subject: [PATCH] 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. --- binutils/ChangeLog | 4 ++++ binutils/objdump.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 0d9648c..b9fa77d 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -4,6 +4,10 @@ 2014-03-24 Tristan Gingold + * objdump.c (load_specific_debug_section): Set address of section. + +2014-03-24 Tristan Gingold + * od-macho.c (dump_unwind_encoding_x86): Set the factor. (dump_exe_compact_unwind): Change the condition. Improve indentation. diff --git a/binutils/objdump.c b/binutils/objdump.c index 20e3b09..14f4122 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -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, §ion->start); -- 2.7.4