summaryrefslogtreecommitdiff
path: root/binutils/dwarf.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-02-15 12:04:11 +1030
committerAlan Modra <amodra@gmail.com>2021-02-15 13:34:08 +1030
commit208599d928a42813e1e64e7b1fe318b84d7eb351 (patch)
tree3f1d57e54f0bbe3a0c8b449011650b25db6bb8a5 /binutils/dwarf.h
parent1781a9d0f3d0319abeeae73b1f1f78fbf3778739 (diff)
downloadbinutils-gdb-208599d928a42813e1e64e7b1fe318b84d7eb351.tar.gz
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/dwarf.h')
-rw-r--r--binutils/dwarf.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/binutils/dwarf.h b/binutils/dwarf.h
index 756a5606fd2..98fbef8183d 100644
--- a/binutils/dwarf.h
+++ b/binutils/dwarf.h
@@ -143,8 +143,6 @@ struct dwarf_section
/* Used by clients to help them implement the reloc_at callback. */
void * reloc_info;
unsigned long num_relocs;
- /* A spare field for random use. */
- void * user_data;
};
/* A structure containing the name of a debug section