aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-04-11 11:56:50 +0930
committerAlan Modra <amodra@gmail.com>2024-04-11 17:05:16 +0930
commitaf925905211930677751678183f43c1bda13e013 (patch)
tree4003f40a03ceebde7ac611aa9d7a1dc0dcd72d8a /bfd/bfd-in2.h
parentde9dc65bd45c118d56600bbf1786322284fde795 (diff)
downloadgdb-af925905211930677751678183f43c1bda13e013.zip
gdb-af925905211930677751678183f43c1bda13e013.tar.gz
gdb-af925905211930677751678183f43c1bda13e013.tar.bz2
Remove bfdwin.c
In commit b86d3af60ffc and 0ab0435fe672 I fixed SIGBUS errors found by oss-fuzz now that --with-mmap defaults to enabled. It turns out there are further problems with the aout mmap code: aout_read_minisymbols returns the external symbol array, which is later freed by nm.c. If the array is mmaped you can't free it. Now this could be fixed by making aout minisymbols an array of pointers, but I figure there's not much point in expending effort on that. So delete the aout mmap support along with bfdwin.c and get_section_contents_in_window.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r--bfd/bfd-in2.h37
1 files changed, 4 insertions, 33 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index d107a22..109de76 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1,9 +1,8 @@
/* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically
generated from "bfd-in.h", "libbfd.c", "hash.c", "section.c",
- "syms.c", "archive.c", "archures.c", "bfd.c", "bfdio.c", "bfdwin.c",
- "cache.c", "compress.c", "corefile.c", "format.c", "linker.c",
- "opncls.c", "reloc.c", "simple.c", "stab-syms.c", "stabs.c" and
- "targets.c".
+ "syms.c", "archive.c", "archures.c", "bfd.c", "bfdio.c", "cache.c",
+ "compress.c", "corefile.c", "format.c", "linker.c", "opncls.c",
+ "reloc.c", "simple.c", "stab-syms.c", "stabs.c" and "targets.c".
Run "make headers" in your build bfd/ to regenerate. */
/* Main header file for the bfd library -- portable access to object files.
@@ -2812,31 +2811,6 @@ ATTRIBUTE_WARN_UNUSED_RESULT;
time_t bfd_get_current_time (time_t now);
-/* Extracted from bfdwin.c. */
-struct _bfd_window_internal;
-
-typedef struct _bfd_window
-{
- /* What the user asked for. */
- void *data;
- bfd_size_type size;
- /* The actual window used by BFD. Small user-requested read-only
- regions sharing a page may share a single window into the object
- file. Read-write versions shouldn't until I've fixed things to
- keep track of which portions have been claimed by the
- application; don't want to give the same region back when the
- application wants two writable copies! */
- struct _bfd_window_internal *i;
-}
-bfd_window;
-
-void bfd_init_window (bfd_window *);
-
-void bfd_free_window (bfd_window *);
-
-bool bfd_get_file_window
- (bfd *, file_ptr, bfd_size_type, bfd_window *, bool /*writable*/);
-
/* Extracted from cache.c. */
bool bfd_cache_close (bfd *abfd);
@@ -7703,8 +7677,7 @@ typedef struct bfd_target
NAME##_close_and_cleanup, \
NAME##_bfd_free_cached_info, \
NAME##_new_section_hook, \
- NAME##_get_section_contents, \
- NAME##_get_section_contents_in_window
+ NAME##_get_section_contents
/* Called when the BFD is being closed to do any necessary cleanup. */
bool (*_close_and_cleanup) (bfd *);
@@ -7715,8 +7688,6 @@ typedef struct bfd_target
/* Read the contents of a section. */
bool (*_bfd_get_section_contents) (bfd *, sec_ptr, void *, file_ptr,
bfd_size_type);
- bool (*_bfd_get_section_contents_in_window) (bfd *, sec_ptr, bfd_window *,
- file_ptr, bfd_size_type);
/* Entry points to copy private data. */
#define BFD_JUMP_TABLE_COPY(NAME) \