OLD | NEW |
1 /* BFD backend for SunOS binaries. | 1 /* BFD backend for SunOS binaries. |
2 Copyright 1990, 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | 2 Copyright 1990, 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
3 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2011 | 3 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2011, 2012 |
4 Free Software Foundation, Inc. | 4 Free Software Foundation, Inc. |
5 Written by Cygnus Support. | 5 Written by Cygnus Support. |
6 | 6 |
7 This file is part of BFD, the Binary File Descriptor library. | 7 This file is part of BFD, the Binary File Descriptor library. |
8 | 8 |
9 This program is free software; you can redistribute it and/or modify | 9 This program is free software; you can redistribute it and/or modify |
10 it under the terms of the GNU General Public License as published by | 10 it under the terms of the GNU General Public License as published by |
11 the Free Software Foundation; either version 3 of the License, or | 11 the Free Software Foundation; either version 3 of the License, or |
12 (at your option) any later version. | 12 (at your option) any later version. |
13 | 13 |
14 This program is distributed in the hope that it will be useful, | 14 This program is distributed in the hope that it will be useful, |
15 but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 GNU General Public License for more details. | 17 GNU General Public License for more details. |
18 | 18 |
19 You should have received a copy of the GNU General Public License | 19 You should have received a copy of the GNU General Public License |
20 along with this program; if not, write to the Free Software | 20 along with this program; if not, write to the Free Software |
21 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | 21 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
22 MA 02110-1301, USA. */ | 22 MA 02110-1301, USA. */ |
23 | 23 |
24 #define TARGETNAME "a.out-sunos-big" | 24 #define TARGETNAME "a.out-sunos-big" |
25 | 25 |
26 /* Do not "beautify" the CONCAT* macro args. Traditional C will not | 26 /* Do not "beautify" the CONCAT* macro args. Traditional C will not |
27 remove whitespace added here, and thus will fail to concatenate | 27 remove whitespace added here, and thus will fail to concatenate |
28 the tokens. */ | 28 the tokens. */ |
29 #define MY(OP) CONCAT2 (sunos_big_,OP) | 29 #define MY(OP) CONCAT2 (sunos_big_,OP) |
30 | 30 |
| 31 #include "sysdep.h" |
31 #include "bfd.h" | 32 #include "bfd.h" |
32 #include "bfdlink.h" | 33 #include "bfdlink.h" |
33 #include "libaout.h" | 34 #include "libaout.h" |
34 | 35 |
35 /* ??? Where should this go? */ | 36 /* ??? Where should this go? */ |
36 #define MACHTYPE_OK(mtype) \ | 37 #define MACHTYPE_OK(mtype) \ |
37 (((mtype) == M_SPARC && bfd_lookup_arch (bfd_arch_sparc, 0) != NULL) \ | 38 (((mtype) == M_SPARC && bfd_lookup_arch (bfd_arch_sparc, 0) != NULL) \ |
38 || ((mtype) == M_SPARCLET \ | 39 || ((mtype) == M_SPARCLET \ |
39 && bfd_lookup_arch (bfd_arch_sparc, bfd_mach_sparc_sparclet) != NULL) \ | 40 && bfd_lookup_arch (bfd_arch_sparc, bfd_mach_sparc_sparclet) != NULL) \ |
40 || ((mtype) == M_SPARCLITE_LE \ | 41 || ((mtype) == M_SPARCLITE_LE \ |
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 asection *s; | 738 asection *s; |
738 | 739 |
739 if (! sunos_hash_table (info)->dynamic_sections_created) | 740 if (! sunos_hash_table (info)->dynamic_sections_created) |
740 { | 741 { |
741 flagword flags; | 742 flagword flags; |
742 | 743 |
743 sunos_hash_table (info)->dynobj = abfd; | 744 sunos_hash_table (info)->dynobj = abfd; |
744 | 745 |
745 flags = (SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS | SEC_IN_MEMORY | 746 flags = (SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS | SEC_IN_MEMORY |
746 | SEC_LINKER_CREATED); | 747 | SEC_LINKER_CREATED); |
error: old chunk mismatch |
None
OLD | NEW |