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

Side by Side Diff: bfd/ticoff.h

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/targets.c ('k') | bfd/trad-core.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 /* Copyright 2002, 2005, 2007, 2009 Free Software Foundation, Inc. 1 /* Copyright 2002, 2005, 2007, 2009 Free Software Foundation, Inc.
2 2
3 This file is part of BFD, the Binary File Descriptor library. 3 This file is part of BFD, the Binary File Descriptor library.
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or 7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. 13 GNU General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software 16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, 17 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
18 MA 02110-1301, USA. */ 18 MA 02110-1301, USA. */
19 19
20 #undef F_LSYMS 20 #undef F_LSYMS
21 #define F_LSYMS F_LSYMS_TICOFF 21 #define F_LSYMS F_LSYMS_TICOFF
22 22
23 static bfd_boolean 23 static bfd_boolean
24 ticoff0_bad_format_hook (abfd, filehdr) 24 ticoff0_bad_format_hook (bfd * abfd,
25 bfd *abfd; 25 » » » void * filehdr)
26 PTR filehdr;
27 { 26 {
28 struct internal_filehdr *internal_f = (struct internal_filehdr *) filehdr; 27 struct internal_filehdr *internal_f = (struct internal_filehdr *) filehdr;
29 28
30 if (COFF0_BADMAG (*internal_f)) 29 if (COFF0_BADMAG (*internal_f))
31 return FALSE; 30 return FALSE;
32 31
33 return TRUE; 32 return TRUE;
34 } 33 }
35 34
36 static bfd_boolean 35 static bfd_boolean
37 ticoff1_bad_format_hook (abfd, filehdr) 36 ticoff1_bad_format_hook (bfd * abfd ATTRIBUTE_UNUSED,
38 bfd *abfd ATTRIBUTE_UNUSED; 37 » » » void * filehdr)
39 PTR filehdr;
40 { 38 {
41 struct internal_filehdr *internal_f = (struct internal_filehdr *) filehdr; 39 struct internal_filehdr *internal_f = (struct internal_filehdr *) filehdr;
42 40
43 if (COFF1_BADMAG (*internal_f)) 41 if (COFF1_BADMAG (*internal_f))
44 return FALSE; 42 return FALSE;
45 43
46 return TRUE; 44 return TRUE;
47 } 45 }
48 46
49 /* Replace the stock _bfd_coff_is_local_label_name 47 /* Replace the stock _bfd_coff_is_local_label_name
50 to recognize TI COFF local labels. */ 48 to recognize TI COFF local labels. */
51 static bfd_boolean 49 static bfd_boolean
52 ticoff_bfd_is_local_label_name (abfd, name) 50 ticoff_bfd_is_local_label_name (bfd *abfd ATTRIBUTE_UNUSED,
53 bfd *abfd ATTRIBUTE_UNUSED; 51 » » » » const char *name)
54 const char *name;
55 { 52 {
56 if (TICOFF_LOCAL_LABEL_P(name)) 53 if (TICOFF_LOCAL_LABEL_P(name))
57 return TRUE; 54 return TRUE;
58 return FALSE; 55 return FALSE;
59 } 56 }
60 57
61 #define coff_bfd_is_local_label_name ticoff_bfd_is_local_label_name 58 #define coff_bfd_is_local_label_name ticoff_bfd_is_local_label_name
62 59
63 /* Customize coffcode.h; the default coff_ functions are set up to use COFF2; 60 /* Customize coffcode.h; the default coff_ functions are set up to use COFF2;
64 coff_bad_format_hook uses BADMAG, so set that for COFF2. The COFF1 61 coff_bad_format_hook uses BADMAG, so set that for COFF2. The COFF1
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 coff_SWAP_reloc_in, ticoff1_bad_format_hook, coff_set_arch_mach_hook, 112 coff_SWAP_reloc_in, ticoff1_bad_format_hook, coff_set_arch_mach_hook,
116 coff_mkobject_hook, styp_to_sec_flags, coff_set_alignment_hook, 113 coff_mkobject_hook, styp_to_sec_flags, coff_set_alignment_hook,
117 coff_slurp_symbol_table, symname_in_debug_hook, coff_pointerize_aux_hook, 114 coff_slurp_symbol_table, symname_in_debug_hook, coff_pointerize_aux_hook,
118 coff_print_aux, coff_reloc16_extra_cases, coff_reloc16_estimate, 115 coff_print_aux, coff_reloc16_extra_cases, coff_reloc16_estimate,
119 coff_classify_symbol, coff_compute_section_file_positions, 116 coff_classify_symbol, coff_compute_section_file_positions,
120 coff_start_final_link, coff_relocate_section, coff_rtype_to_howto, 117 coff_start_final_link, coff_relocate_section, coff_rtype_to_howto,
121 coff_adjust_symndx, coff_link_add_one_symbol, 118 coff_adjust_symndx, coff_link_add_one_symbol,
122 coff_link_output_has_begun, coff_final_link_postscript 119 coff_link_output_has_begun, coff_final_link_postscript
123 }; 120 };
124 121
OLDNEW
« no previous file with comments | « bfd/targets.c ('k') | bfd/trad-core.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698