OLD | NEW |
1 /* BFD back-end for os9000 i386 binaries. | 1 /* BFD back-end for os9000 i386 binaries. |
2 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2001, 2002, | 2 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2001, 2002, |
3 2004, 2005, 2006, 2007, 2009, 2011 Free Software Foundation, Inc. | 3 2004, 2005, 2006, 2007, 2009, 2011, 2012 Free Software Foundation, Inc. |
4 Written by Cygnus Support. | 4 Written by Cygnus Support. |
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 113 |
114 return abfd->xvec; | 114 return abfd->xvec; |
115 } | 115 } |
116 | 116 |
117 static const bfd_target * | 117 static const bfd_target * |
118 os9k_object_p (bfd *abfd) | 118 os9k_object_p (bfd *abfd) |
119 { | 119 { |
120 struct internal_exec anexec; | 120 struct internal_exec anexec; |
121 mh_com exec_bytes; | 121 mh_com exec_bytes; |
122 | 122 |
123 if (bfd_bread ((PTR) &exec_bytes, (bfd_size_type) MHCOM_BYTES_SIZE, abfd) | 123 if (bfd_bread (&exec_bytes, (bfd_size_type) MHCOM_BYTES_SIZE, abfd) |
124 != MHCOM_BYTES_SIZE) | 124 != MHCOM_BYTES_SIZE) |
125 { | 125 { |
126 if (bfd_get_error () != bfd_error_system_call) | 126 if (bfd_get_error () != bfd_error_system_call) |
127 bfd_set_error (bfd_error_wrong_format); | 127 bfd_set_error (bfd_error_wrong_format); |
128 return 0; | 128 return 0; |
129 } | 129 } |
130 | 130 |
131 anexec.a_info = H_GET_16 (abfd, exec_bytes.m_sync); | 131 anexec.a_info = H_GET_16 (abfd, exec_bytes.m_sync); |
132 if (N_BADMAG (anexec)) | 132 if (N_BADMAG (anexec)) |
133 { | 133 { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 _bfd_write_archive_contents, bfd_false}, | 211 _bfd_write_archive_contents, bfd_false}, |
212 | 212 |
213 BFD_JUMP_TABLE_GENERIC (aout_32), | 213 BFD_JUMP_TABLE_GENERIC (aout_32), |
214 BFD_JUMP_TABLE_COPY (_bfd_generic), | 214 BFD_JUMP_TABLE_COPY (_bfd_generic), |
215 BFD_JUMP_TABLE_CORE (_bfd_nocore), | 215 BFD_JUMP_TABLE_CORE (_bfd_nocore), |
216 BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_bsd), | 216 BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_bsd), |
217 BFD_JUMP_TABLE_SYMBOLS (aout_32), | 217 BFD_JUMP_TABLE_SYMBOLS (aout_32), |
218 BFD_JUMP_TABLE_RELOCS (aout_32), | 218 BFD_JUMP_TABLE_RELOCS (aout_32), |
219 BFD_JUMP_TABLE_WRITE (aout_32), | 219 BFD_JUMP_TABLE_WRITE (aout_32), |
220 BFD_JUMP_TABLE_LINK (os9k), | 220 BFD_JUMP_TABLE_LINK (os9k), |
error: old chunk mismatch |
None
OLD | NEW |