From af925905211930677751678183f43c1bda13e013 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 11 Apr 2024 11:56:50 +0930 Subject: 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. --- bfd/mmo.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'bfd/mmo.c') diff --git a/bfd/mmo.c b/bfd/mmo.c index 528de1d..8018fc7 100644 --- a/bfd/mmo.c +++ b/bfd/mmo.c @@ -3323,8 +3323,6 @@ mmo_write_object_contents (bfd *abfd) #define mmo_read_minisymbols _bfd_generic_read_minisymbols #define mmo_minisymbol_to_symbol _bfd_generic_minisymbol_to_symbol -#define mmo_get_section_contents_in_window \ - _bfd_generic_get_section_contents_in_window #define mmo_bfd_get_relocated_section_contents \ bfd_generic_get_relocated_section_contents #define mmo_bfd_gc_sections bfd_generic_gc_sections -- cgit v1.1