]>
Commit | Line | Data |
---|---|---|
a7de96f0 | 1 | Index: gdb-7.4.50.20120703/gdb/gdb_bfd.c |
f412e1b4 | 2 | =================================================================== |
a7de96f0 PS |
3 | --- gdb-7.4.50.20120703.orig/gdb/gdb_bfd.c 2012-07-03 17:30:07.356754655 +0200 |
4 | +++ gdb-7.4.50.20120703/gdb/gdb_bfd.c 2012-07-03 17:43:52.565762454 +0200 | |
5 | @@ -26,12 +26,14 @@ | |
6ed6bacf AM |
6 | #ifdef HAVE_ZLIB_H |
7 | #include <zlib.h> | |
8 | #endif | |
9 | +#ifndef __sparc__ | |
10 | #ifdef HAVE_MMAP | |
11 | #include <sys/mman.h> | |
12 | #ifndef MAP_FAILED | |
13 | #define MAP_FAILED ((void *) -1) | |
14 | #endif | |
15 | #endif | |
16 | +#endif | |
17 | ||
a7de96f0 PS |
18 | /* An object of this type is stored in the section's user data when |
19 | mapping a section. */ | |
20 | @@ -181,6 +183,7 @@ free_one_bfd_section (bfd *abfd, asectio | |
6ed6bacf | 21 | |
a7de96f0 PS |
22 | if (sect != NULL && sect->data != NULL) |
23 | { | |
6ed6bacf AM |
24 | +#ifndef __sparc__ |
25 | #ifdef HAVE_MMAP | |
a7de96f0 PS |
26 | if (sect->map_addr != NULL) |
27 | { | |
28 | @@ -191,6 +194,7 @@ free_one_bfd_section (bfd *abfd, asectio | |
6ed6bacf | 29 | } |
a7de96f0 | 30 | else |
6ed6bacf AM |
31 | #endif |
32 | +#endif | |
a7de96f0 PS |
33 | xfree (sect->data); |
34 | } | |
35 | } | |
36 | @@ -425,6 +429,7 @@ gdb_bfd_map_section (asection *sectp, bf | |
37 | } | |
38 | } | |
6ed6bacf | 39 | |
6ed6bacf AM |
40 | +#ifndef __sparc__ |
41 | #ifdef HAVE_MMAP | |
a7de96f0 PS |
42 | { |
43 | /* The page size, used when mmapping. */ | |
44 | @@ -458,6 +463,7 @@ gdb_bfd_map_section (asection *sectp, bf | |
45 | } | |
46 | } | |
47 | #endif /* HAVE_MMAP */ | |
6ed6bacf | 48 | +#endif |
a7de96f0 PS |
49 | |
50 | /* If we get here, we are a normal, not-compressed section. */ | |
6ed6bacf | 51 |