OLD | NEW |
1 /* BFD back-end for linux flavored m68k a.out binaries. | 1 /* BFD back-end for linux flavored m68k a.out binaries. |
2 Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, | 2 Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, |
3 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2011 | 3 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 |
4 Free Software Foundation, Inc. | 4 Free Software Foundation, Inc. |
5 | 5 |
6 This file is part of BFD, the Binary File Descriptor library. | 6 This file is part of BFD, the Binary File Descriptor library. |
7 | 7 |
8 This program is free software; you can redistribute it and/or modify | 8 This program is free software; you can redistribute it and/or modify |
9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
10 the Free Software Foundation; either version 3 of the License, or | 10 the Free Software Foundation; either version 3 of the License, or |
11 (at your option) any later version. | 11 (at your option) any later version. |
12 | 12 |
13 This program is distributed in the hope that it will be useful, | 13 This program is distributed in the hope that it will be useful, |
(...skipping 30 matching lines...) Expand all Loading... |
44 #define MY(OP) CONCAT2 (m68klinux_,OP) | 44 #define MY(OP) CONCAT2 (m68klinux_,OP) |
45 #define TARGETNAME "a.out-m68k-linux" | 45 #define TARGETNAME "a.out-m68k-linux" |
46 | 46 |
47 extern const bfd_target MY(vec); | 47 extern const bfd_target MY(vec); |
48 | 48 |
49 /* We always generate QMAGIC files in preference to ZMAGIC files. It | 49 /* We always generate QMAGIC files in preference to ZMAGIC files. It |
50 would be possible to make this a linker option, if that ever | 50 would be possible to make this a linker option, if that ever |
51 becomes important. */ | 51 becomes important. */ |
52 | 52 |
53 static void MY_final_link_callback | 53 static void MY_final_link_callback |
54 PARAMS ((bfd *, file_ptr *, file_ptr *, file_ptr *)); | 54 (bfd *, file_ptr *, file_ptr *, file_ptr *); |
55 static bfd_boolean m68klinux_bfd_final_link | |
56 PARAMS ((bfd *, struct bfd_link_info *)); | |
57 static bfd_boolean m68klinux_write_object_contents PARAMS ((bfd *)); | |
58 | 55 |
59 static bfd_boolean | 56 static bfd_boolean |
60 m68klinux_bfd_final_link (abfd, info) | 57 m68klinux_bfd_final_link (bfd *abfd, |
61 bfd *abfd; | 58 » » » struct bfd_link_info *info) |
62 struct bfd_link_info *info; | |
63 { | 59 { |
64 obj_aout_subformat (abfd) = q_magic_format; | 60 obj_aout_subformat (abfd) = q_magic_format; |
65 return NAME(aout,final_link) (abfd, info, MY_final_link_callback); | 61 return NAME(aout,final_link) (abfd, info, MY_final_link_callback); |
66 } | 62 } |
67 | 63 |
68 #define MY_bfd_final_link m68klinux_bfd_final_link | 64 #define MY_bfd_final_link m68klinux_bfd_final_link |
69 | 65 |
70 /* Set the machine type correctly. */ | 66 /* Set the machine type correctly. */ |
71 | 67 |
72 static bfd_boolean | 68 static bfd_boolean |
73 m68klinux_write_object_contents (abfd) | 69 m68klinux_write_object_contents (bfd *abfd) |
74 bfd *abfd; | |
75 { | 70 { |
76 struct external_exec exec_bytes; | 71 struct external_exec exec_bytes; |
77 struct internal_exec *execp = exec_hdr (abfd); | 72 struct internal_exec *execp = exec_hdr (abfd); |
78 | 73 |
79 N_SET_MACHTYPE (*execp, M_68020); | 74 N_SET_MACHTYPE (*execp, M_68020); |
80 | 75 |
81 obj_reloc_entry_size (abfd) = RELOC_STD_SIZE; | 76 obj_reloc_entry_size (abfd) = RELOC_STD_SIZE; |
82 | 77 |
83 WRITE_HEADERS(abfd, execp); | 78 WRITE_HEADERS(abfd, execp); |
84 | 79 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 156 |
162 /* First dynamic object found in link. */ | 157 /* First dynamic object found in link. */ |
163 bfd *dynobj; | 158 bfd *dynobj; |
164 | 159 |
165 /* Number of fixups. */ | 160 /* Number of fixups. */ |
166 size_t fixup_count; | 161 size_t fixup_count; |
167 | 162 |
168 /* Number of builtin fixups. */ | 163 /* Number of builtin fixups. */ |
169 size_t local_builtins; | 164 size_t local_builtins; |
170 | 165 |
error: old chunk mismatch |
None
OLD | NEW |