2012-07-03 18:54:05 +00:00
|
|
|
Index: gdb-7.4.50.20120703/gdb/gdb_bfd.c
|
2011-07-22 22:41:56 +00:00
|
|
|
===================================================================
|
2012-07-03 18:54:05 +00:00
|
|
|
--- gdb-7.4.50.20120703.orig/gdb/gdb_bfd.c 2012-07-03 17:30:07.356754655 +0200
|
|
|
|
+++ gdb-7.4.50.20120703/gdb/gdb_bfd.c 2012-07-03 17:43:52.565762454 +0200
|
|
|
|
@@ -26,12 +26,14 @@
|
2011-03-30 12:08:36 +00:00
|
|
|
#ifdef HAVE_ZLIB_H
|
|
|
|
#include <zlib.h>
|
|
|
|
#endif
|
|
|
|
+#ifndef __sparc__
|
|
|
|
#ifdef HAVE_MMAP
|
|
|
|
#include <sys/mman.h>
|
|
|
|
#ifndef MAP_FAILED
|
|
|
|
#define MAP_FAILED ((void *) -1)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
+#endif
|
|
|
|
|
2012-07-03 18:54:05 +00:00
|
|
|
/* An object of this type is stored in the section's user data when
|
|
|
|
mapping a section. */
|
|
|
|
@@ -181,6 +183,7 @@ free_one_bfd_section (bfd *abfd, asectio
|
2011-03-30 12:08:36 +00:00
|
|
|
|
2012-07-03 18:54:05 +00:00
|
|
|
if (sect != NULL && sect->data != NULL)
|
|
|
|
{
|
2011-03-30 12:08:36 +00:00
|
|
|
+#ifndef __sparc__
|
|
|
|
#ifdef HAVE_MMAP
|
2012-07-03 18:54:05 +00:00
|
|
|
if (sect->map_addr != NULL)
|
|
|
|
{
|
|
|
|
@@ -191,6 +194,7 @@ free_one_bfd_section (bfd *abfd, asectio
|
2011-03-30 12:08:36 +00:00
|
|
|
}
|
2012-07-03 18:54:05 +00:00
|
|
|
else
|
2011-03-30 12:08:36 +00:00
|
|
|
#endif
|
|
|
|
+#endif
|
2012-07-03 18:54:05 +00:00
|
|
|
xfree (sect->data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@@ -425,6 +429,7 @@ gdb_bfd_map_section (asection *sectp, bf
|
|
|
|
}
|
|
|
|
}
|
2011-03-30 12:08:36 +00:00
|
|
|
|
|
|
|
+#ifndef __sparc__
|
|
|
|
#ifdef HAVE_MMAP
|
2012-07-03 18:54:05 +00:00
|
|
|
{
|
|
|
|
/* The page size, used when mmapping. */
|
|
|
|
@@ -458,6 +463,7 @@ gdb_bfd_map_section (asection *sectp, bf
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif /* HAVE_MMAP */
|
2011-03-30 12:08:36 +00:00
|
|
|
+#endif
|
2012-07-03 18:54:05 +00:00
|
|
|
|
|
|
|
/* If we get here, we are a normal, not-compressed section. */
|
2011-03-30 12:08:36 +00:00
|
|
|
|