diff options
author | Alan Modra <amodra@gmail.com> | 2021-02-15 12:04:11 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-02-15 13:34:08 +1030 |
commit | 208599d928a42813e1e64e7b1fe318b84d7eb351 (patch) | |
tree | 3f1d57e54f0bbe3a0c8b449011650b25db6bb8a5 /binutils/readelf.c | |
parent | 1781a9d0f3d0319abeeae73b1f1f78fbf3778739 (diff) | |
download | gdb-208599d928a42813e1e64e7b1fe318b84d7eb351.zip gdb-208599d928a42813e1e64e7b1fe318b84d7eb351.tar.gz gdb-208599d928a42813e1e64e7b1fe318b84d7eb351.tar.bz2 |
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.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 77e450a..755634d 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -14898,7 +14898,6 @@ load_specific_debug_section (enum dwarf_section_display_enum debug, snprintf (buf, sizeof (buf), _("%s section data"), section->name); section->address = sec->sh_addr; - section->user_data = NULL; section->filename = filedata->file_name; section->start = (unsigned char *) get_data (NULL, filedata, sec->sh_offset, 1, |