OLD | NEW |
1 /* BFD backend for CRIS a.out binaries. | 1 /* BFD backend for CRIS a.out binaries. |
2 Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2009 | 2 Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2009, 2012 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 Contributed by Axis Communications AB. | 4 Contributed by Axis Communications AB. |
5 Written by Hans-Peter Nilsson. | 5 Written by Hans-Peter Nilsson. |
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. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 /* The definition here seems not used; just provided as a convention. */ | 60 /* The definition here seems not used; just provided as a convention. */ |
61 #define DEFAULT_ARCH bfd_arch_cris | 61 #define DEFAULT_ARCH bfd_arch_cris |
62 | 62 |
63 /* Do not "beautify" the CONCAT* macro args. Traditional C will not | 63 /* Do not "beautify" the CONCAT* macro args. Traditional C will not |
64 remove whitespace added here, and thus will fail to concatenate | 64 remove whitespace added here, and thus will fail to concatenate |
65 the tokens. */ | 65 the tokens. */ |
66 #define MY(OP) CONCAT2 (cris_aout_,OP) | 66 #define MY(OP) CONCAT2 (cris_aout_,OP) |
67 #define NAME(x, y) CONCAT3 (cris_aout,_32_,y) | 67 #define NAME(x, y) CONCAT3 (cris_aout,_32_,y) |
68 | 68 |
| 69 #include "sysdep.h" |
69 #include "bfd.h" | 70 #include "bfd.h" |
70 | 71 |
71 /* Version 1 of the header. */ | 72 /* Version 1 of the header. */ |
72 #define MY_exec_hdr_flags 1 | 73 #define MY_exec_hdr_flags 1 |
73 | 74 |
74 #define MY_write_object_contents MY (write_object_contents) | 75 #define MY_write_object_contents MY (write_object_contents) |
75 static bfd_boolean MY (write_object_contents) (bfd *); | 76 static bfd_boolean MY (write_object_contents) (bfd *); |
76 | 77 |
77 /* Forward this, so we can use a pointer to it in PARAMS. */ | 78 /* Forward this, so we can use a pointer to it in PARAMS. */ |
78 struct reloc_ext_external; | 79 struct reloc_ext_external; |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 | 281 |
281 /* ... except for that we have the extended reloc. The alternative | 282 /* ... except for that we have the extended reloc. The alternative |
282 would be to add a check on bfd_arch_cris in NAME (aout, | 283 would be to add a check on bfd_arch_cris in NAME (aout, |
283 set_arch_mach) in aoutx.h, but I don't want to do that since | 284 set_arch_mach) in aoutx.h, but I don't want to do that since |
284 target-specific things should not be added there. */ | 285 target-specific things should not be added there. */ |
285 | 286 |
286 obj_reloc_entry_size (abfd) = RELOC_EXT_SIZE; | 287 obj_reloc_entry_size (abfd) = RELOC_EXT_SIZE; |
287 | 288 |
288 return TRUE; | 289 return TRUE; |
289 } | 290 } |
OLD | NEW |