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

Side by Side Diff: bfd/coff-ia64.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/coff-i960.c ('k') | bfd/coff-m68k.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* BFD back-end for HP/Intel IA-64 COFF files. 1 /* BFD back-end for HP/Intel IA-64 COFF files.
2 Copyright 1999, 2000, 2001, 2002, 2005, 2007, 2008, 2009, 2011 2 Copyright 1999, 2000, 2001, 2002, 2005, 2007, 2008, 2009, 2011, 2012
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 Contributed by David Mosberger <davidm@hpl.hp.com> 4 Contributed by David Mosberger <davidm@hpl.hp.com>
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
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 # define PEAOUTHDR PEPAOUTHDR 47 # define PEAOUTHDR PEPAOUTHDR
48 #endif 48 #endif
49 49
50 #define RTYPE2HOWTO(cache_ptr, dst) \ 50 #define RTYPE2HOWTO(cache_ptr, dst) \
51 (cache_ptr)->howto = howto_table + (dst)->r_type; 51 (cache_ptr)->howto = howto_table + (dst)->r_type;
52 52
53 #ifdef COFF_WITH_PE 53 #ifdef COFF_WITH_PE
54 /* Return TRUE if this relocation should 54 /* Return TRUE if this relocation should
55 appear in the output .reloc section. */ 55 appear in the output .reloc section. */
56 56
57 static bfd_boolean in_reloc_p PARAMS ((bfd *, reloc_howto_type *));
58
59 static bfd_boolean 57 static bfd_boolean
60 in_reloc_p(abfd, howto) 58 in_reloc_p (bfd * abfd ATTRIBUTE_UNUSED,
61 bfd * abfd ATTRIBUTE_UNUSED; 59 » reloc_howto_type *howto ATTRIBUTE_UNUSED)
62 reloc_howto_type *howto ATTRIBUTE_UNUSED;
63 { 60 {
64 return FALSE; /* We don't do relocs for now... */ 61 return FALSE; /* We don't do relocs for now... */
65 } 62 }
66 #endif 63 #endif
67 64
68 #ifndef bfd_pe_print_pdata 65 #ifndef bfd_pe_print_pdata
69 #define bfd_pe_print_pdata NULL 66 #define bfd_pe_print_pdata NULL
70 #endif 67 #endif
71 68
72 #include "coffcode.h" 69 #include "coffcode.h"
73 70
74 static const bfd_target *ia64coff_object_p PARAMS ((bfd *));
75
76 static const bfd_target * 71 static const bfd_target *
77 ia64coff_object_p (abfd) 72 ia64coff_object_p (bfd *abfd)
78 bfd *abfd;
79 { 73 {
80 #ifdef COFF_IMAGE_WITH_PE 74 #ifdef COFF_IMAGE_WITH_PE
81 { 75 {
82 struct external_PEI_DOS_hdr dos_hdr; 76 struct external_PEI_DOS_hdr dos_hdr;
83 struct external_PEI_IMAGE_hdr image_hdr; 77 struct external_PEI_IMAGE_hdr image_hdr;
84 file_ptr offset; 78 file_ptr offset;
85 79
86 if (bfd_seek (abfd, (file_ptr) 0, SEEK_SET) != 0 80 if (bfd_seek (abfd, (file_ptr) 0, SEEK_SET) != 0
87 || (bfd_bread (&dos_hdr, (bfd_size_type) sizeof (dos_hdr), abfd) 81 || (bfd_bread (&dos_hdr, (bfd_size_type) sizeof (dos_hdr), abfd)
88 != sizeof (dos_hdr))) 82 != sizeof (dos_hdr)))
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 BFD_JUMP_TABLE_SYMBOLS (coff), 194 BFD_JUMP_TABLE_SYMBOLS (coff),
201 BFD_JUMP_TABLE_RELOCS (coff), 195 BFD_JUMP_TABLE_RELOCS (coff),
202 BFD_JUMP_TABLE_WRITE (coff), 196 BFD_JUMP_TABLE_WRITE (coff),
203 BFD_JUMP_TABLE_LINK (coff), 197 BFD_JUMP_TABLE_LINK (coff),
204 BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), 198 BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic),
205 199
206 NULL, 200 NULL,
207 201
208 COFF_SWAP_TABLE 202 COFF_SWAP_TABLE
209 }; 203 };
OLDNEW
« no previous file with comments | « bfd/coff-i960.c ('k') | bfd/coff-m68k.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698