diff options
author | Alan Modra <amodra@bigpond.net.au> | 2012-10-21 09:06:06 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2012-10-21 09:06:06 +0000 |
commit | 16bf045b1bea9ff86866e4bad2f896d33c85c23a (patch) | |
tree | f6ccc18027799c349e420d5bfe37d3e98eba96b8 /binutils/objdump.c | |
parent | 838b6189ca28186c1ed18eb589a44261fed390f7 (diff) | |
download | binutils-redhat-16bf045b1bea9ff86866e4bad2f896d33c85c23a.tar.gz |
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/objdump.c')
-rw-r--r-- | binutils/objdump.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c index 44e857a03f..3b8f282677 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, |