Jan Kratochvil 2c55a54
Index: gdb-7.6.90.20140127/gdb/gdb_bfd.c
Jan Kratochvil 3b55f78
===================================================================
Jan Kratochvil 2c55a54
--- gdb-7.6.90.20140127.orig/gdb/gdb_bfd.c	2014-02-06 17:39:46.370096290 +0100
Jan Kratochvil 2c55a54
+++ gdb-7.6.90.20140127/gdb/gdb_bfd.c	2014-02-06 17:40:14.996127247 +0100
Jan Kratochvil 2c55a54
@@ -29,12 +29,14 @@
1cd4f38
 #ifdef HAVE_ZLIB_H
1cd4f38
 #include <zlib.h>
1cd4f38
 #endif
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
1cd4f38
 
Jan Kratochvil 2c55a54
 typedef bfd *bfdp;
Jan Kratochvil 2c55a54
 DEF_VEC_P (bfdp);
Jan Kratochvil 2c55a54
@@ -210,6 +212,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 2c55a54
@@ -220,6 +223,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 2c55a54
@@ -371,6 +375,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 2c55a54
@@ -405,6 +410,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.  */