Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(969)

Side by Side Diff: bfd/i386os9k.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « bfd/i386msdos.c ('k') | bfd/irix-core.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
None
OLDNEW
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
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
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

OLDNEW
« no previous file with comments | « bfd/i386msdos.c ('k') | bfd/irix-core.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698