diff options
author | Tristan Gingold <tristan.gingold@adacore.com> | 2014-03-24 12:37:32 +0100 |
---|---|---|
committer | Tristan Gingold <tristan.gingold@adacore.com> | 2014-03-27 09:35:10 +0100 |
commit | 595330b7cedfac2b073e9ffc6a815221b7121f0c (patch) | |
tree | fd7c02e788cefd58f5cc5c379ab2b12058933b1f /binutils/objdump.c | |
parent | 467637ade646c54bac41721df4f3509cc98103e4 (diff) | |
download | gdb-595330b7cedfac2b073e9ffc6a815221b7121f0c.zip gdb-595330b7cedfac2b073e9ffc6a815221b7121f0c.tar.gz gdb-595330b7cedfac2b073e9ffc6a815221b7121f0c.tar.bz2 |
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.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r-- | binutils/objdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |