]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/ChangeLog
objdump: don't cache section contents in load_specific_debug_section
authorAlan Modra <amodra@gmail.com>
Mon, 15 Feb 2021 01:34:11 +0000 (12:04 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 15 Feb 2021 03:04:08 +0000 (13:34 +1030)
commit208599d928a42813e1e64e7b1fe318b84d7eb351
tree3f1d57e54f0bbe3a0c8b449011650b25db6bb8a5
parent1781a9d0f3d0319abeeae73b1f1f78fbf3778739
objdump: don't cache section contents in load_specific_debug_section

* objdump.c (load_specific_debug_section): Don't call
bfd_cache_section_contents.  Rearrange so that
bfd_get_full_section_contents is not called on path where
bfd_simple_get_relocated_section_contents is called.
Don't set section->user_data.
(free_debug_section): Always free section->start.  Don't twiddle
section flags.
* readelf.c (load_specific_debug_section): Don't set user_data.
* dwarf.h (struct dwarf_section): Remove use_data field.
* dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
binutils/ChangeLog
binutils/dwarf.c
binutils/dwarf.h
binutils/objdump.c
binutils/readelf.c