aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-10-21 09:06:07 +0000
committerAlan Modra <amodra@gmail.com>2012-10-21 09:06:07 +0000
commit8a72cc6e7e9e329b50b18cdc62b281ee1a5473f1 (patch)
tree69a86b195310afc299537c9f0f8ec5b576705893 /binutils
parent1e9d6fc2630d2b72281d58c3fb0807799513f3ff (diff)
downloadgdb-8a72cc6e7e9e329b50b18cdc62b281ee1a5473f1.zip
gdb-8a72cc6e7e9e329b50b18cdc62b281ee1a5473f1.tar.gz
gdb-8a72cc6e7e9e329b50b18cdc62b281ee1a5473f1.tar.bz2
bfd/
* compress.c (bfd_cache_section_contents): New function. * bfd-in2.h: Regenerate. binutils/ * objdump.c (load_specific_debug_section): Use bfd_cache_section_contents.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/objdump.c8
2 files changed, 6 insertions, 7 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 9c091f2..a3cfcd0 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-21 Alan Modra <amodra@gmail.com>
+
+ * objdump.c (load_specific_debug_section): Use
+ bfd_cache_section_contents.
+
2012-10-18 Kai Tietz <ktietz@redhat.com>
* objdump.c (dump_bfd): Call dump headers after
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 44e857a..3b8f282 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -2272,13 +2272,7 @@ load_specific_debug_section (enum dwarf_section_display_enum debug,
if (is_relocatable && debug_displays [debug].relocate)
{
- /* We want to relocate the data we've already read (and
- decompressed), so we store a pointer to the data in
- the bfd_section, and tell it that the contents are
- already in memory. */
- sec->contents = section->start;
- sec->flags |= SEC_IN_MEMORY;
- sec->size = section->size;
+ bfd_cache_section_contents (sec, section->start);
ret = bfd_simple_get_relocated_section_contents (abfd,
sec,