aboutsummaryrefslogtreecommitdiff
path: root/bfd/doc
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/doc
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/doc')
-rw-r--r--bfd/doc/bfdint.texi9
-rw-r--r--bfd/doc/local.mk5
2 files changed, 1 insertions, 13 deletions
diff --git a/bfd/doc/bfdint.texi b/bfd/doc/bfdint.texi
index 94aa840..e63d2d9 100644
--- a/bfd/doc/bfdint.texi
+++ b/bfd/doc/bfdint.texi
@@ -527,15 +527,6 @@ based on the section's @samp{filepos} field and a @samp{bfd_read}. The
corresponding field in the target vector is named
@samp{_bfd_get_section_contents}.
-@item _get_section_contents_in_window
-Set a @samp{bfd_window} to hold the contents of a section. This is
-called from @samp{bfd_get_section_contents_in_window}. The
-@samp{bfd_window} idea never really caught on, and I don't think this is
-ever called. Pretty much all targets implement this as
-@samp{bfd_generic_get_section_contents_in_window}, which uses
-@samp{bfd_get_section_contents} to do the right thing. The
-corresponding field in the target vector is named
-@samp{_bfd_get_section_contents_in_window}.
@end table
@node BFD target vector copy
diff --git a/bfd/doc/local.mk b/bfd/doc/local.mk
index d18bbf0..5e8f486 100644
--- a/bfd/doc/local.mk
+++ b/bfd/doc/local.mk
@@ -24,7 +24,6 @@ DOCFILES = \
%D%/bfdio.texi \
%D%/bfdt.texi \
%D%/bfdver.texi \
- %D%/bfdwin.texi \
%D%/cache.texi \
%D%/coffcode.texi \
%D%/corefile.texi \
@@ -47,7 +46,6 @@ DOCFILES = \
SRCDOC = \
$(srcdir)/aoutx.h $(srcdir)/archive.c \
$(srcdir)/archures.c $(srcdir)/bfd.c \
- $(srcdir)/bfdio.c $(srcdir)/bfdwin.c \
$(srcdir)/cache.c $(srcdir)/coffcode.h \
$(srcdir)/corefile.c $(srcdir)/elf.c \
$(srcdir)/elfcode.h $(srcdir)/format.c \
@@ -60,13 +58,12 @@ SRCDOC = \
SRCPROT = $(srcdir)/archive.c $(srcdir)/archures.c \
$(srcdir)/bfd.c $(srcdir)/coffcode.h $(srcdir)/corefile.c \
$(srcdir)/format.c $(srcdir)/libbfd.c \
- $(srcdir)/bfdio.c $(srcdir)/bfdwin.c \
$(srcdir)/opncls.c $(srcdir)/reloc.c \
$(srcdir)/section.c $(srcdir)/syms.c \
$(srcdir)/targets.c
SRCIPROT = $(srcdir)/cache.c $(srcdir)/libbfd.c \
- $(srcdir)/bfdio.c $(srcdir)/bfdwin.c \
+ $(srcdir)/bfdio.c \
$(srcdir)/reloc.c $(srcdir)/cpu-h8300.c \
$(srcdir)/archures.c