Jan Kratochvil ae96b4a
Index: gdb-7.9.90.20150709/gdb/gdb_bfd.c
Jan Kratochvil 3b55f78
===================================================================
Jan Kratochvil ae96b4a
--- gdb-7.9.90.20150709.orig/gdb/gdb_bfd.c	2015-07-09 18:23:59.344017882 +0200
Jan Kratochvil ae96b4a
+++ gdb-7.9.90.20150709/gdb/gdb_bfd.c	2015-07-09 18:24:06.986083071 +0200
Jan Kratochvil 32f92b2
@@ -24,12 +24,14 @@
Jan Kratochvil 32f92b2
 #include "hashtab.h"
Jan Kratochvil 32f92b2
 #include "filestuff.h"
Jan Kratochvil 32f92b2
 #include "vec.h"
1cd4f38
+#ifndef __sparc__
1cd4f38
 #ifdef HAVE_MMAP
1cd4f38
 #include <sys/mman.h>
1cd4f38
 #ifndef MAP_FAILED
1cd4f38
 #define MAP_FAILED ((void *) -1)
1cd4f38
 #endif
1cd4f38
 #endif
1cd4f38
+#endif
Jan Kratochvil 32f92b2
 #include "target.h"
Jan Kratochvil 32f92b2
 #include "gdb/fileio.h"
Jan Kratochvil ae96b4a
 #include "inferior.h"
Jan Kratochvil ae96b4a
@@ -397,6 +399,7 @@ free_one_bfd_section (bfd *abfd, asectio
1cd4f38
 
Jan Kratochvil 11eae30
   if (sect != NULL && sect->data != NULL)
Jan Kratochvil 11eae30
     {
1cd4f38
+#ifndef __sparc__
1cd4f38
 #ifdef HAVE_MMAP
Jan Kratochvil 11eae30
       if (sect->map_addr != NULL)
Jan Kratochvil 11eae30
 	{
Jan Kratochvil ae96b4a
@@ -407,6 +410,7 @@ free_one_bfd_section (bfd *abfd, asectio
1cd4f38
 	}
Jan Kratochvil 11eae30
       else
1cd4f38
 #endif
1cd4f38
+#endif
Jan Kratochvil 11eae30
 	xfree (sect->data);
Jan Kratochvil 11eae30
     }
Jan Kratochvil 11eae30
 }
Jan Kratochvil ae96b4a
@@ -558,6 +562,7 @@ gdb_bfd_map_section (asection *sectp, bf
Jan Kratochvil 556378e
   if (descriptor->data != NULL)
Jan Kratochvil 556378e
     goto done;
1cd4f38
 
1cd4f38
+#ifndef __sparc__
1cd4f38
 #ifdef HAVE_MMAP
Jan Kratochvil 556378e
   if (!bfd_is_section_compressed (abfd, sectp))
Jan Kratochvil 556378e
     {
Jan Kratochvil ae96b4a
@@ -592,6 +597,7 @@ gdb_bfd_map_section (asection *sectp, bf
Jan Kratochvil 556378e
 	}
Jan Kratochvil 556378e
     }
Jan Kratochvil 11eae30
 #endif /* HAVE_MMAP */
1cd4f38
+#endif
Jan Kratochvil 11eae30
 
Jan Kratochvil 556378e
   /* Handle compressed sections, or ordinary uncompressed sections in
Jan Kratochvil 556378e
      the no-mmap case.  */