Blob Blame History Raw
Index: gdb-7.9.50.20150520/gdb/gdb_bfd.c
===================================================================
--- gdb-7.9.50.20150520.orig/gdb/gdb_bfd.c	2015-05-31 17:02:57.742303086 +0200
+++ gdb-7.9.50.20150520/gdb/gdb_bfd.c	2015-05-31 17:03:20.145444480 +0200
@@ -24,12 +24,14 @@
 #include "hashtab.h"
 #include "filestuff.h"
 #include "vec.h"
+#ifndef __sparc__
 #ifdef HAVE_MMAP
 #include <sys/mman.h>
 #ifndef MAP_FAILED
 #define MAP_FAILED ((void *) -1)
 #endif
 #endif
+#endif
 #include "target.h"
 #include "gdb/fileio.h"
 
@@ -408,6 +410,7 @@ free_one_bfd_section (bfd *abfd, asectio
 
   if (sect != NULL && sect->data != NULL)
     {
+#ifndef __sparc__
 #ifdef HAVE_MMAP
       if (sect->map_addr != NULL)
 	{
@@ -418,6 +421,7 @@ free_one_bfd_section (bfd *abfd, asectio
 	}
       else
 #endif
+#endif
 	xfree (sect->data);
     }
 }
@@ -569,6 +573,7 @@ gdb_bfd_map_section (asection *sectp, bf
   if (descriptor->data != NULL)
     goto done;
 
+#ifndef __sparc__
 #ifdef HAVE_MMAP
   if (!bfd_is_section_compressed (abfd, sectp))
     {
@@ -603,6 +608,7 @@ gdb_bfd_map_section (asection *sectp, bf
 	}
     }
 #endif /* HAVE_MMAP */
+#endif
 
   /* Handle compressed sections, or ordinary uncompressed sections in
      the no-mmap case.  */