/src/binutils-gdb/bfd/coffswap.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* Generic COFF swapping routines, for BFD. |
2 | | Copyright (C) 1990-2025 Free Software Foundation, Inc. |
3 | | Written by Cygnus Support. |
4 | | |
5 | | This file is part of BFD, the Binary File Descriptor library. |
6 | | |
7 | | This program is free software; you can redistribute it and/or modify |
8 | | it under the terms of the GNU General Public License as published by |
9 | | the Free Software Foundation; either version 3 of the License, or |
10 | | (at your option) any later version. |
11 | | |
12 | | This program is distributed in the hope that it will be useful, |
13 | | but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | | GNU General Public License for more details. |
16 | | |
17 | | You should have received a copy of the GNU General Public License |
18 | | along with this program; if not, write to the Free Software |
19 | | Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
20 | | MA 02110-1301, USA. */ |
21 | | |
22 | | /* This file contains routines used to swap COFF data. It is a header |
23 | | file because the details of swapping depend on the details of the |
24 | | structures used by each COFF implementation. This is included by |
25 | | coffcode.h, as well as by the ECOFF backend. |
26 | | |
27 | | Any file which uses this must first include "coff/internal.h" and |
28 | | "coff/CPU.h". The functions will then be correct for that CPU. */ |
29 | | |
30 | | #ifndef GET_FCN_LNNOPTR |
31 | | #define GET_FCN_LNNOPTR(abfd, ext) \ |
32 | 3.21M | H_GET_32 (abfd, ext->x_sym.x_fcnary.x_fcn.x_lnnoptr) |
33 | | #endif |
34 | | |
35 | | #ifndef GET_FCN_ENDNDX |
36 | | #define GET_FCN_ENDNDX(abfd, ext) \ |
37 | 3.21M | H_GET_32 (abfd, ext->x_sym.x_fcnary.x_fcn.x_endndx) |
38 | | #endif |
39 | | |
40 | | #ifndef PUT_FCN_LNNOPTR |
41 | | #define PUT_FCN_LNNOPTR(abfd, in, ext) \ |
42 | 0 | H_PUT_32 (abfd, in, ext->x_sym.x_fcnary.x_fcn.x_lnnoptr) |
43 | | #endif |
44 | | #ifndef PUT_FCN_ENDNDX |
45 | | #define PUT_FCN_ENDNDX(abfd, in, ext) \ |
46 | 0 | H_PUT_32 (abfd, in, ext->x_sym.x_fcnary.x_fcn.x_endndx) |
47 | | #endif |
48 | | #ifndef GET_LNSZ_LNNO |
49 | | #define GET_LNSZ_LNNO(abfd, ext) \ |
50 | 16.6M | H_GET_16 (abfd, ext->x_sym.x_misc.x_lnsz.x_lnno) |
51 | | #endif |
52 | | #ifndef GET_LNSZ_SIZE |
53 | | #define GET_LNSZ_SIZE(abfd, ext) \ |
54 | 14.3M | H_GET_16 (abfd, ext->x_sym.x_misc.x_lnsz.x_size) |
55 | | #endif |
56 | | #ifndef PUT_LNSZ_LNNO |
57 | | #define PUT_LNSZ_LNNO(abfd, in, ext) \ |
58 | 102 | H_PUT_16 (abfd, in, ext->x_sym.x_misc.x_lnsz.x_lnno) |
59 | | #endif |
60 | | #ifndef PUT_LNSZ_SIZE |
61 | | #define PUT_LNSZ_SIZE(abfd, in, ext) \ |
62 | 102 | H_PUT_16 (abfd, in, ext->x_sym.x_misc.x_lnsz.x_size) |
63 | | #endif |
64 | | #ifndef GET_SCN_SCNLEN |
65 | | #define GET_SCN_SCNLEN(abfd, ext) \ |
66 | 18.9k | H_GET_32 (abfd, ext->x_scn.x_scnlen) |
67 | | #endif |
68 | | #ifndef GET_SCN_NRELOC |
69 | | #define GET_SCN_NRELOC(abfd, ext) \ |
70 | 25.7k | H_GET_16 (abfd, ext->x_scn.x_nreloc) |
71 | | #endif |
72 | | #ifndef GET_SCN_NLINNO |
73 | | #define GET_SCN_NLINNO(abfd, ext) \ |
74 | 25.7k | H_GET_16 (abfd, ext->x_scn.x_nlinno) |
75 | | #endif |
76 | | #ifndef PUT_SCN_SCNLEN |
77 | | #define PUT_SCN_SCNLEN(abfd, in, ext) \ |
78 | 0 | H_PUT_32 (abfd, in, ext->x_scn.x_scnlen) |
79 | | #endif |
80 | | #ifndef PUT_SCN_NRELOC |
81 | | #define PUT_SCN_NRELOC(abfd, in, ext) \ |
82 | 0 | H_PUT_16 (abfd, in, ext->x_scn.x_nreloc) |
83 | | #endif |
84 | | #ifndef PUT_SCN_NLINNO |
85 | | #define PUT_SCN_NLINNO(abfd, in, ext) \ |
86 | 0 | H_PUT_16 (abfd, in, ext->x_scn.x_nlinno) |
87 | | #endif |
88 | | #ifndef GET_LINENO_LNNO |
89 | | #define GET_LINENO_LNNO(abfd, ext) \ |
90 | 1.62M | H_GET_16 (abfd, ext->l_lnno); |
91 | | #endif |
92 | | #ifndef PUT_LINENO_LNNO |
93 | | #define PUT_LINENO_LNNO(abfd, val, ext) \ |
94 | 0 | H_PUT_16 (abfd, val, ext->l_lnno); |
95 | | #endif |
96 | | |
97 | | /* The f_symptr field in the filehdr is sometimes 64 bits. */ |
98 | | #ifndef GET_FILEHDR_SYMPTR |
99 | 70.1M | #define GET_FILEHDR_SYMPTR H_GET_32 |
100 | | #endif |
101 | | #ifndef PUT_FILEHDR_SYMPTR |
102 | 5 | #define PUT_FILEHDR_SYMPTR H_PUT_32 |
103 | | #endif |
104 | | |
105 | | /* Some fields in the aouthdr are sometimes 64 bits. */ |
106 | | #ifndef GET_AOUTHDR_TSIZE |
107 | 290k | #define GET_AOUTHDR_TSIZE H_GET_32 |
108 | | #endif |
109 | | #ifndef PUT_AOUTHDR_TSIZE |
110 | 1 | #define PUT_AOUTHDR_TSIZE H_PUT_32 |
111 | | #endif |
112 | | #ifndef GET_AOUTHDR_DSIZE |
113 | 290k | #define GET_AOUTHDR_DSIZE H_GET_32 |
114 | | #endif |
115 | | #ifndef PUT_AOUTHDR_DSIZE |
116 | 1 | #define PUT_AOUTHDR_DSIZE H_PUT_32 |
117 | | #endif |
118 | | #ifndef GET_AOUTHDR_BSIZE |
119 | 290k | #define GET_AOUTHDR_BSIZE H_GET_32 |
120 | | #endif |
121 | | #ifndef PUT_AOUTHDR_BSIZE |
122 | 1 | #define PUT_AOUTHDR_BSIZE H_PUT_32 |
123 | | #endif |
124 | | #ifndef GET_AOUTHDR_ENTRY |
125 | 290k | #define GET_AOUTHDR_ENTRY H_GET_32 |
126 | | #endif |
127 | | #ifndef PUT_AOUTHDR_ENTRY |
128 | 1 | #define PUT_AOUTHDR_ENTRY H_PUT_32 |
129 | | #endif |
130 | | #ifndef GET_AOUTHDR_TEXT_START |
131 | 290k | #define GET_AOUTHDR_TEXT_START H_GET_32 |
132 | | #endif |
133 | | #ifndef PUT_AOUTHDR_TEXT_START |
134 | 1 | #define PUT_AOUTHDR_TEXT_START H_PUT_32 |
135 | | #endif |
136 | | #ifndef GET_AOUTHDR_DATA_START |
137 | 290k | #define GET_AOUTHDR_DATA_START H_GET_32 |
138 | | #endif |
139 | | #ifndef PUT_AOUTHDR_DATA_START |
140 | 1 | #define PUT_AOUTHDR_DATA_START H_PUT_32 |
141 | | #endif |
142 | | |
143 | | /* Some fields in the scnhdr are sometimes 64 bits. */ |
144 | | #ifndef GET_SCNHDR_PADDR |
145 | 131M | #define GET_SCNHDR_PADDR H_GET_32 |
146 | | #endif |
147 | | #ifndef PUT_SCNHDR_PADDR |
148 | 269 | #define PUT_SCNHDR_PADDR H_PUT_32 |
149 | | #endif |
150 | | #ifndef GET_SCNHDR_VADDR |
151 | 131M | #define GET_SCNHDR_VADDR H_GET_32 |
152 | | #endif |
153 | | #ifndef PUT_SCNHDR_VADDR |
154 | 269 | #define PUT_SCNHDR_VADDR H_PUT_32 |
155 | | #endif |
156 | | #ifndef GET_SCNHDR_SIZE |
157 | 118M | #define GET_SCNHDR_SIZE H_GET_32 |
158 | | #endif |
159 | | #ifndef PUT_SCNHDR_SIZE |
160 | 269 | #define PUT_SCNHDR_SIZE H_PUT_32 |
161 | | #endif |
162 | | #ifndef GET_SCNHDR_SCNPTR |
163 | 131M | #define GET_SCNHDR_SCNPTR H_GET_32 |
164 | | #endif |
165 | | #ifndef PUT_SCNHDR_SCNPTR |
166 | 269 | #define PUT_SCNHDR_SCNPTR H_PUT_32 |
167 | | #endif |
168 | | #ifndef GET_SCNHDR_RELPTR |
169 | 131M | #define GET_SCNHDR_RELPTR H_GET_32 |
170 | | #endif |
171 | | #ifndef PUT_SCNHDR_RELPTR |
172 | 269 | #define PUT_SCNHDR_RELPTR H_PUT_32 |
173 | | #endif |
174 | | #ifndef GET_SCNHDR_LNNOPTR |
175 | 131M | #define GET_SCNHDR_LNNOPTR H_GET_32 |
176 | | #endif |
177 | | #ifndef PUT_SCNHDR_LNNOPTR |
178 | 269 | #define PUT_SCNHDR_LNNOPTR H_PUT_32 |
179 | | #endif |
180 | | #ifndef GET_SCNHDR_NRELOC |
181 | 118M | #define GET_SCNHDR_NRELOC H_GET_16 |
182 | | #endif |
183 | | #ifndef MAX_SCNHDR_NRELOC |
184 | 269 | #define MAX_SCNHDR_NRELOC 0xffff |
185 | | #endif |
186 | | #ifndef PUT_SCNHDR_NRELOC |
187 | 269 | #define PUT_SCNHDR_NRELOC H_PUT_16 |
188 | | #endif |
189 | | #ifndef GET_SCNHDR_NLNNO |
190 | 118M | #define GET_SCNHDR_NLNNO H_GET_16 |
191 | | #endif |
192 | | #ifndef MAX_SCNHDR_NLNNO |
193 | 269 | #define MAX_SCNHDR_NLNNO 0xffff |
194 | | #endif |
195 | | #ifndef PUT_SCNHDR_NLNNO |
196 | 269 | #define PUT_SCNHDR_NLNNO H_PUT_16 |
197 | | #endif |
198 | | #ifndef GET_SCNHDR_FLAGS |
199 | 122M | #define GET_SCNHDR_FLAGS H_GET_32 |
200 | | #endif |
201 | | #ifndef PUT_SCNHDR_FLAGS |
202 | 269 | #define PUT_SCNHDR_FLAGS H_PUT_32 |
203 | | #endif |
204 | | |
205 | | #ifndef GET_RELOC_VADDR |
206 | 356k | #define GET_RELOC_VADDR H_GET_32 |
207 | | #endif |
208 | | #ifndef PUT_RELOC_VADDR |
209 | 0 | #define PUT_RELOC_VADDR H_PUT_32 |
210 | | #endif |
211 | | |
212 | | #ifndef NO_COFF_RELOCS |
213 | | |
214 | | static void |
215 | | coff_swap_reloc_in (bfd * abfd, void * src, void * dst) |
216 | 356k | { |
217 | 356k | RELOC *reloc_src = (RELOC *) src; |
218 | 356k | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; |
219 | | |
220 | 356k | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); |
221 | 356k | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); |
222 | 356k | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); |
223 | | |
224 | | #ifdef SWAP_IN_RELOC_OFFSET |
225 | 37.0k | reloc_dst->r_offset = SWAP_IN_RELOC_OFFSET (abfd, reloc_src->r_offset); |
226 | | #endif |
227 | 356k | } coff-x86_64.c:coff_swap_reloc_in Line | Count | Source | 216 | 9.77k | { | 217 | 9.77k | RELOC *reloc_src = (RELOC *) src; | 218 | 9.77k | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 219 | | | 220 | 9.77k | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 221 | 9.77k | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); | 222 | 9.77k | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); | 223 | | | 224 | | #ifdef SWAP_IN_RELOC_OFFSET | 225 | | reloc_dst->r_offset = SWAP_IN_RELOC_OFFSET (abfd, reloc_src->r_offset); | 226 | | #endif | 227 | 9.77k | } |
Unexecuted instantiation: cf-i386lynx.c:coff_swap_reloc_in coff-go32.c:coff_swap_reloc_in Line | Count | Source | 216 | 269k | { | 217 | 269k | RELOC *reloc_src = (RELOC *) src; | 218 | 269k | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 219 | | | 220 | 269k | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 221 | 269k | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); | 222 | 269k | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); | 223 | | | 224 | | #ifdef SWAP_IN_RELOC_OFFSET | 225 | | reloc_dst->r_offset = SWAP_IN_RELOC_OFFSET (abfd, reloc_src->r_offset); | 226 | | #endif | 227 | 269k | } |
Unexecuted instantiation: coff-i386.c:coff_swap_reloc_in coff-sh.c:coff_swap_reloc_in Line | Count | Source | 216 | 4.57k | { | 217 | 4.57k | RELOC *reloc_src = (RELOC *) src; | 218 | 4.57k | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 219 | | | 220 | 4.57k | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 221 | 4.57k | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); | 222 | 4.57k | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); | 223 | | | 224 | 4.57k | #ifdef SWAP_IN_RELOC_OFFSET | 225 | 4.57k | reloc_dst->r_offset = SWAP_IN_RELOC_OFFSET (abfd, reloc_src->r_offset); | 226 | 4.57k | #endif | 227 | 4.57k | } |
coff-stgo32.c:coff_swap_reloc_in Line | Count | Source | 216 | 39.4k | { | 217 | 39.4k | RELOC *reloc_src = (RELOC *) src; | 218 | 39.4k | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 219 | | | 220 | 39.4k | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 221 | 39.4k | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); | 222 | 39.4k | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); | 223 | | | 224 | | #ifdef SWAP_IN_RELOC_OFFSET | 225 | | reloc_dst->r_offset = SWAP_IN_RELOC_OFFSET (abfd, reloc_src->r_offset); | 226 | | #endif | 227 | 39.4k | } |
coff-tic30.c:coff_swap_reloc_in Line | Count | Source | 216 | 2.31k | { | 217 | 2.31k | RELOC *reloc_src = (RELOC *) src; | 218 | 2.31k | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 219 | | | 220 | 2.31k | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 221 | 2.31k | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); | 222 | 2.31k | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); | 223 | | | 224 | 2.31k | #ifdef SWAP_IN_RELOC_OFFSET | 225 | 2.31k | reloc_dst->r_offset = SWAP_IN_RELOC_OFFSET (abfd, reloc_src->r_offset); | 226 | 2.31k | #endif | 227 | 2.31k | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_reloc_in coff-tic54x.c:coff_swap_reloc_in Line | Count | Source | 216 | 150 | { | 217 | 150 | RELOC *reloc_src = (RELOC *) src; | 218 | 150 | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 219 | | | 220 | 150 | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 221 | 150 | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); | 222 | 150 | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); | 223 | | | 224 | | #ifdef SWAP_IN_RELOC_OFFSET | 225 | | reloc_dst->r_offset = SWAP_IN_RELOC_OFFSET (abfd, reloc_src->r_offset); | 226 | | #endif | 227 | 150 | } |
coff-z80.c:coff_swap_reloc_in Line | Count | Source | 216 | 29.7k | { | 217 | 29.7k | RELOC *reloc_src = (RELOC *) src; | 218 | 29.7k | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 219 | | | 220 | 29.7k | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 221 | 29.7k | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); | 222 | 29.7k | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); | 223 | | | 224 | 29.7k | #ifdef SWAP_IN_RELOC_OFFSET | 225 | 29.7k | reloc_dst->r_offset = SWAP_IN_RELOC_OFFSET (abfd, reloc_src->r_offset); | 226 | 29.7k | #endif | 227 | 29.7k | } |
coff-z8k.c:coff_swap_reloc_in Line | Count | Source | 216 | 360 | { | 217 | 360 | RELOC *reloc_src = (RELOC *) src; | 218 | 360 | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 219 | | | 220 | 360 | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 221 | 360 | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); | 222 | 360 | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); | 223 | | | 224 | 360 | #ifdef SWAP_IN_RELOC_OFFSET | 225 | 360 | reloc_dst->r_offset = SWAP_IN_RELOC_OFFSET (abfd, reloc_src->r_offset); | 226 | 360 | #endif | 227 | 360 | } |
|
228 | | |
229 | | static unsigned int |
230 | | coff_swap_reloc_out (bfd * abfd, void * src, void * dst) |
231 | 0 | { |
232 | 0 | struct internal_reloc *reloc_src = (struct internal_reloc *) src; |
233 | 0 | struct external_reloc *reloc_dst = (struct external_reloc *) dst; |
234 | |
|
235 | 0 | PUT_RELOC_VADDR (abfd, reloc_src->r_vaddr, reloc_dst->r_vaddr); |
236 | 0 | H_PUT_32 (abfd, reloc_src->r_symndx, reloc_dst->r_symndx); |
237 | 0 | H_PUT_16 (abfd, reloc_src->r_type, reloc_dst->r_type); |
238 | |
|
239 | | #ifdef SWAP_OUT_RELOC_OFFSET |
240 | 0 | SWAP_OUT_RELOC_OFFSET (abfd, reloc_src->r_offset, reloc_dst->r_offset); |
241 | | #endif |
242 | | #ifdef SWAP_OUT_RELOC_EXTRA |
243 | 0 | SWAP_OUT_RELOC_EXTRA (abfd, reloc_src, reloc_dst); |
244 | | #endif |
245 | |
|
246 | 0 | return bfd_coff_relsz (abfd); |
247 | 0 | } Unexecuted instantiation: coff-x86_64.c:coff_swap_reloc_out Unexecuted instantiation: cf-i386lynx.c:coff_swap_reloc_out Unexecuted instantiation: coff-go32.c:coff_swap_reloc_out Unexecuted instantiation: coff-i386.c:coff_swap_reloc_out Unexecuted instantiation: coff-sh.c:coff_swap_reloc_out Unexecuted instantiation: coff-stgo32.c:coff_swap_reloc_out Unexecuted instantiation: coff-tic30.c:coff_swap_reloc_out Unexecuted instantiation: coff-tic4x.c:coff_swap_reloc_out Unexecuted instantiation: coff-tic54x.c:coff_swap_reloc_out Unexecuted instantiation: coff-z80.c:coff_swap_reloc_out Unexecuted instantiation: coff-z8k.c:coff_swap_reloc_out |
248 | | |
249 | | #ifdef TICOFF |
250 | | static void |
251 | | coff_swap_reloc_v0_in (bfd *abfd, void *src, void *dst) |
252 | 215 | { |
253 | 215 | struct external_reloc_v0 *reloc_src = (struct external_reloc_v0 *) src; |
254 | 215 | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; |
255 | | |
256 | 215 | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); |
257 | 215 | reloc_dst->r_symndx = H_GET_16 (abfd, reloc_src->r_symndx); |
258 | 215 | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); |
259 | 215 | } Unexecuted instantiation: coff-tic4x.c:coff_swap_reloc_v0_in coff-tic54x.c:coff_swap_reloc_v0_in Line | Count | Source | 252 | 215 | { | 253 | 215 | struct external_reloc_v0 *reloc_src = (struct external_reloc_v0 *) src; | 254 | 215 | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 255 | | | 256 | 215 | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 257 | 215 | reloc_dst->r_symndx = H_GET_16 (abfd, reloc_src->r_symndx); | 258 | 215 | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); | 259 | 215 | } |
|
260 | | |
261 | | static unsigned int |
262 | | coff_swap_reloc_v0_out (bfd *abfd, void *src, void *dst) |
263 | 0 | { |
264 | 0 | struct internal_reloc *reloc_src = (struct internal_reloc *) src; |
265 | 0 | struct external_reloc_v0 *reloc_dst = (struct external_reloc_v0 *) dst; |
266 | |
|
267 | 0 | PUT_RELOC_VADDR (abfd, reloc_src->r_vaddr, reloc_dst->r_vaddr); |
268 | 0 | H_PUT_16 (abfd, reloc_src->r_symndx, reloc_dst->r_symndx); |
269 | 0 | H_PUT_16 (abfd, reloc_src->r_type, reloc_dst->r_type); |
270 | 0 | SWAP_OUT_RELOC_EXTRA (abfd, reloc_src, reloc_dst); |
271 | |
|
272 | 0 | return bfd_coff_relsz (abfd); |
273 | 0 | } Unexecuted instantiation: coff-tic4x.c:coff_swap_reloc_v0_out Unexecuted instantiation: coff-tic54x.c:coff_swap_reloc_v0_out |
274 | | #endif |
275 | | |
276 | | #endif /* NO_COFF_RELOCS */ |
277 | | |
278 | | static void |
279 | | coff_swap_filehdr_in (bfd * abfd, void * src, void * dst) |
280 | 80.1M | { |
281 | 80.1M | FILHDR *filehdr_src = (FILHDR *) src; |
282 | 80.1M | struct internal_filehdr *filehdr_dst = (struct internal_filehdr *) dst; |
283 | | |
284 | | #ifdef COFF_ADJUST_FILEHDR_IN_PRE |
285 | | COFF_ADJUST_FILEHDR_IN_PRE (abfd, src, dst); |
286 | | #endif |
287 | 80.1M | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); |
288 | 80.1M | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); |
289 | 80.1M | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); |
290 | 80.1M | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); |
291 | 80.1M | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); |
292 | 80.1M | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); |
293 | 80.1M | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); |
294 | | |
295 | | #ifdef COFF_ADJUST_FILEHDR_IN_POST |
296 | 20.0M | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); |
297 | | #endif |
298 | 80.1M | } coff-alpha.c:alpha_ecoff_swap_filehdr_in Line | Count | Source | 280 | 3.31M | { | 281 | 3.31M | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 3.31M | struct internal_filehdr *filehdr_dst = (struct internal_filehdr *) dst; | 283 | | | 284 | | #ifdef COFF_ADJUST_FILEHDR_IN_PRE | 285 | | COFF_ADJUST_FILEHDR_IN_PRE (abfd, src, dst); | 286 | | #endif | 287 | 3.31M | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 3.31M | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 3.31M | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 3.31M | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 3.31M | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 3.31M | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 3.31M | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); | 294 | | | 295 | | #ifdef COFF_ADJUST_FILEHDR_IN_POST | 296 | | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); | 297 | | #endif | 298 | 3.31M | } |
coff-x86_64.c:coff_swap_filehdr_in Line | Count | Source | 280 | 3.37M | { | 281 | 3.37M | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 3.37M | struct internal_filehdr *filehdr_dst = (struct internal_filehdr *) dst; | 283 | | | 284 | | #ifdef COFF_ADJUST_FILEHDR_IN_PRE | 285 | | COFF_ADJUST_FILEHDR_IN_PRE (abfd, src, dst); | 286 | | #endif | 287 | 3.37M | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 3.37M | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 3.37M | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 3.37M | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 3.37M | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 3.37M | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 3.37M | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); | 294 | | | 295 | | #ifdef COFF_ADJUST_FILEHDR_IN_POST | 296 | | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); | 297 | | #endif | 298 | 3.37M | } |
coff64-rs6000.c:coff_swap_filehdr_in Line | Count | Source | 280 | 6.63M | { | 281 | 6.63M | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 6.63M | struct internal_filehdr *filehdr_dst = (struct internal_filehdr *) dst; | 283 | | | 284 | | #ifdef COFF_ADJUST_FILEHDR_IN_PRE | 285 | | COFF_ADJUST_FILEHDR_IN_PRE (abfd, src, dst); | 286 | | #endif | 287 | 6.63M | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 6.63M | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 6.63M | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 6.63M | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 6.63M | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 6.63M | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 6.63M | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); | 294 | | | 295 | | #ifdef COFF_ADJUST_FILEHDR_IN_POST | 296 | | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); | 297 | | #endif | 298 | 6.63M | } |
cf-i386lynx.c:coff_swap_filehdr_in Line | Count | Source | 280 | 3.36M | { | 281 | 3.36M | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 3.36M | struct internal_filehdr *filehdr_dst = (struct internal_filehdr *) dst; | 283 | | | 284 | | #ifdef COFF_ADJUST_FILEHDR_IN_PRE | 285 | | COFF_ADJUST_FILEHDR_IN_PRE (abfd, src, dst); | 286 | | #endif | 287 | 3.36M | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 3.36M | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 3.36M | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 3.36M | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 3.36M | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 3.36M | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 3.36M | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); | 294 | | | 295 | | #ifdef COFF_ADJUST_FILEHDR_IN_POST | 296 | | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); | 297 | | #endif | 298 | 3.36M | } |
coff-go32.c:coff_swap_filehdr_in Line | Count | Source | 280 | 3.36M | { | 281 | 3.36M | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 3.36M | struct internal_filehdr *filehdr_dst = (struct internal_filehdr *) dst; | 283 | | | 284 | | #ifdef COFF_ADJUST_FILEHDR_IN_PRE | 285 | | COFF_ADJUST_FILEHDR_IN_PRE (abfd, src, dst); | 286 | | #endif | 287 | 3.36M | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 3.36M | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 3.36M | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 3.36M | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 3.36M | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 3.36M | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 3.36M | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); | 294 | | | 295 | | #ifdef COFF_ADJUST_FILEHDR_IN_POST | 296 | | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); | 297 | | #endif | 298 | 3.36M | } |
coff-i386.c:coff_swap_filehdr_in Line | Count | Source | 280 | 3.36M | { | 281 | 3.36M | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 3.36M | struct internal_filehdr *filehdr_dst = (struct internal_filehdr *) dst; | 283 | | | 284 | | #ifdef COFF_ADJUST_FILEHDR_IN_PRE | 285 | | COFF_ADJUST_FILEHDR_IN_PRE (abfd, src, dst); | 286 | | #endif | 287 | 3.36M | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 3.36M | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 3.36M | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 3.36M | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 3.36M | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 3.36M | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 3.36M | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); | 294 | | | 295 | | #ifdef COFF_ADJUST_FILEHDR_IN_POST | 296 | | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); | 297 | | #endif | 298 | 3.36M | } |
coff-mips.c:mips_ecoff_swap_filehdr_in Line | Count | Source | 280 | 10.0M | { | 281 | 10.0M | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 10.0M | struct internal_filehdr *filehdr_dst = (struct internal_filehdr *) dst; | 283 | | | 284 | | #ifdef COFF_ADJUST_FILEHDR_IN_PRE | 285 | | COFF_ADJUST_FILEHDR_IN_PRE (abfd, src, dst); | 286 | | #endif | 287 | 10.0M | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 10.0M | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 10.0M | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 10.0M | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 10.0M | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 10.0M | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 10.0M | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); | 294 | | | 295 | | #ifdef COFF_ADJUST_FILEHDR_IN_POST | 296 | | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); | 297 | | #endif | 298 | 10.0M | } |
coff-rs6000.c:coff_swap_filehdr_in Line | Count | Source | 280 | 3.35M | { | 281 | 3.35M | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 3.35M | struct internal_filehdr *filehdr_dst = (struct internal_filehdr *) dst; | 283 | | | 284 | | #ifdef COFF_ADJUST_FILEHDR_IN_PRE | 285 | | COFF_ADJUST_FILEHDR_IN_PRE (abfd, src, dst); | 286 | | #endif | 287 | 3.35M | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 3.35M | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 3.35M | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 3.35M | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 3.35M | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 3.35M | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 3.35M | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); | 294 | | | 295 | | #ifdef COFF_ADJUST_FILEHDR_IN_POST | 296 | | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); | 297 | | #endif | 298 | 3.35M | } |
coff-sh.c:coff_swap_filehdr_in Line | Count | Source | 280 | 13.2M | { | 281 | 13.2M | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 13.2M | struct internal_filehdr *filehdr_dst = (struct internal_filehdr *) dst; | 283 | | | 284 | | #ifdef COFF_ADJUST_FILEHDR_IN_PRE | 285 | | COFF_ADJUST_FILEHDR_IN_PRE (abfd, src, dst); | 286 | | #endif | 287 | 13.2M | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 13.2M | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 13.2M | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 13.2M | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 13.2M | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 13.2M | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 13.2M | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); | 294 | | | 295 | | #ifdef COFF_ADJUST_FILEHDR_IN_POST | 296 | | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); | 297 | | #endif | 298 | 13.2M | } |
coff-stgo32.c:coff_swap_filehdr_in Line | Count | Source | 280 | 3.56k | { | 281 | 3.56k | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 3.56k | struct internal_filehdr *filehdr_dst = (struct internal_filehdr *) dst; | 283 | | | 284 | | #ifdef COFF_ADJUST_FILEHDR_IN_PRE | 285 | | COFF_ADJUST_FILEHDR_IN_PRE (abfd, src, dst); | 286 | | #endif | 287 | 3.56k | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 3.56k | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 3.56k | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 3.56k | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 3.56k | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 3.56k | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 3.56k | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); | 294 | | | 295 | | #ifdef COFF_ADJUST_FILEHDR_IN_POST | 296 | | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); | 297 | | #endif | 298 | 3.56k | } |
coff-tic30.c:coff_swap_filehdr_in Line | Count | Source | 280 | 3.35M | { | 281 | 3.35M | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 3.35M | struct internal_filehdr *filehdr_dst = (struct internal_filehdr *) dst; | 283 | | | 284 | | #ifdef COFF_ADJUST_FILEHDR_IN_PRE | 285 | | COFF_ADJUST_FILEHDR_IN_PRE (abfd, src, dst); | 286 | | #endif | 287 | 3.35M | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 3.35M | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 3.35M | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 3.35M | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 3.35M | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 3.35M | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 3.35M | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); | 294 | | | 295 | | #ifdef COFF_ADJUST_FILEHDR_IN_POST | 296 | | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); | 297 | | #endif | 298 | 3.35M | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_filehdr_in coff-tic54x.c:coff_swap_filehdr_in Line | Count | Source | 280 | 20.0M | { | 281 | 20.0M | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 20.0M | struct internal_filehdr *filehdr_dst = (struct internal_filehdr *) dst; | 283 | | | 284 | | #ifdef COFF_ADJUST_FILEHDR_IN_PRE | 285 | | COFF_ADJUST_FILEHDR_IN_PRE (abfd, src, dst); | 286 | | #endif | 287 | 20.0M | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 20.0M | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 20.0M | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 20.0M | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 20.0M | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 20.0M | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 20.0M | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); | 294 | | | 295 | 20.0M | #ifdef COFF_ADJUST_FILEHDR_IN_POST | 296 | 20.0M | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); | 297 | 20.0M | #endif | 298 | 20.0M | } |
coff-z80.c:coff_swap_filehdr_in Line | Count | Source | 280 | 3.35M | { | 281 | 3.35M | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 3.35M | struct internal_filehdr *filehdr_dst = (struct internal_filehdr *) dst; | 283 | | | 284 | | #ifdef COFF_ADJUST_FILEHDR_IN_PRE | 285 | | COFF_ADJUST_FILEHDR_IN_PRE (abfd, src, dst); | 286 | | #endif | 287 | 3.35M | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 3.35M | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 3.35M | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 3.35M | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 3.35M | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 3.35M | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 3.35M | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); | 294 | | | 295 | | #ifdef COFF_ADJUST_FILEHDR_IN_POST | 296 | | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); | 297 | | #endif | 298 | 3.35M | } |
coff-z8k.c:coff_swap_filehdr_in Line | Count | Source | 280 | 3.35M | { | 281 | 3.35M | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 3.35M | struct internal_filehdr *filehdr_dst = (struct internal_filehdr *) dst; | 283 | | | 284 | | #ifdef COFF_ADJUST_FILEHDR_IN_PRE | 285 | | COFF_ADJUST_FILEHDR_IN_PRE (abfd, src, dst); | 286 | | #endif | 287 | 3.35M | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 3.35M | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 3.35M | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 3.35M | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 3.35M | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 3.35M | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 3.35M | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); | 294 | | | 295 | | #ifdef COFF_ADJUST_FILEHDR_IN_POST | 296 | | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); | 297 | | #endif | 298 | 3.35M | } |
|
299 | | |
300 | | static unsigned int |
301 | | coff_swap_filehdr_out (bfd *abfd, void * in, void * out) |
302 | 6 | { |
303 | 6 | struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; |
304 | 6 | FILHDR *filehdr_out = (FILHDR *) out; |
305 | | |
306 | | #ifdef COFF_ADJUST_FILEHDR_OUT_PRE |
307 | | COFF_ADJUST_FILEHDR_OUT_PRE (abfd, in, out); |
308 | | #endif |
309 | 6 | H_PUT_16 (abfd, filehdr_in->f_magic, filehdr_out->f_magic); |
310 | 6 | H_PUT_16 (abfd, filehdr_in->f_nscns, filehdr_out->f_nscns); |
311 | 6 | H_PUT_32 (abfd, filehdr_in->f_timdat, filehdr_out->f_timdat); |
312 | 6 | PUT_FILEHDR_SYMPTR (abfd, filehdr_in->f_symptr, filehdr_out->f_symptr); |
313 | 6 | H_PUT_32 (abfd, filehdr_in->f_nsyms, filehdr_out->f_nsyms); |
314 | 6 | H_PUT_16 (abfd, filehdr_in->f_opthdr, filehdr_out->f_opthdr); |
315 | 6 | H_PUT_16 (abfd, filehdr_in->f_flags, filehdr_out->f_flags); |
316 | | |
317 | | #ifdef COFF_ADJUST_FILEHDR_OUT_POST |
318 | 0 | COFF_ADJUST_FILEHDR_OUT_POST (abfd, in, out); |
319 | | #endif |
320 | 6 | return bfd_coff_filhsz (abfd); |
321 | 6 | } coff-alpha.c:alpha_ecoff_swap_filehdr_out Line | Count | Source | 302 | 1 | { | 303 | 1 | struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; | 304 | 1 | FILHDR *filehdr_out = (FILHDR *) out; | 305 | | | 306 | | #ifdef COFF_ADJUST_FILEHDR_OUT_PRE | 307 | | COFF_ADJUST_FILEHDR_OUT_PRE (abfd, in, out); | 308 | | #endif | 309 | 1 | H_PUT_16 (abfd, filehdr_in->f_magic, filehdr_out->f_magic); | 310 | 1 | H_PUT_16 (abfd, filehdr_in->f_nscns, filehdr_out->f_nscns); | 311 | 1 | H_PUT_32 (abfd, filehdr_in->f_timdat, filehdr_out->f_timdat); | 312 | 1 | PUT_FILEHDR_SYMPTR (abfd, filehdr_in->f_symptr, filehdr_out->f_symptr); | 313 | 1 | H_PUT_32 (abfd, filehdr_in->f_nsyms, filehdr_out->f_nsyms); | 314 | 1 | H_PUT_16 (abfd, filehdr_in->f_opthdr, filehdr_out->f_opthdr); | 315 | 1 | H_PUT_16 (abfd, filehdr_in->f_flags, filehdr_out->f_flags); | 316 | | | 317 | | #ifdef COFF_ADJUST_FILEHDR_OUT_POST | 318 | | COFF_ADJUST_FILEHDR_OUT_POST (abfd, in, out); | 319 | | #endif | 320 | 1 | return bfd_coff_filhsz (abfd); | 321 | 1 | } |
coff-x86_64.c:coff_swap_filehdr_out Line | Count | Source | 302 | 4 | { | 303 | 4 | struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; | 304 | 4 | FILHDR *filehdr_out = (FILHDR *) out; | 305 | | | 306 | | #ifdef COFF_ADJUST_FILEHDR_OUT_PRE | 307 | | COFF_ADJUST_FILEHDR_OUT_PRE (abfd, in, out); | 308 | | #endif | 309 | 4 | H_PUT_16 (abfd, filehdr_in->f_magic, filehdr_out->f_magic); | 310 | 4 | H_PUT_16 (abfd, filehdr_in->f_nscns, filehdr_out->f_nscns); | 311 | 4 | H_PUT_32 (abfd, filehdr_in->f_timdat, filehdr_out->f_timdat); | 312 | 4 | PUT_FILEHDR_SYMPTR (abfd, filehdr_in->f_symptr, filehdr_out->f_symptr); | 313 | 4 | H_PUT_32 (abfd, filehdr_in->f_nsyms, filehdr_out->f_nsyms); | 314 | 4 | H_PUT_16 (abfd, filehdr_in->f_opthdr, filehdr_out->f_opthdr); | 315 | 4 | H_PUT_16 (abfd, filehdr_in->f_flags, filehdr_out->f_flags); | 316 | | | 317 | | #ifdef COFF_ADJUST_FILEHDR_OUT_POST | 318 | | COFF_ADJUST_FILEHDR_OUT_POST (abfd, in, out); | 319 | | #endif | 320 | 4 | return bfd_coff_filhsz (abfd); | 321 | 4 | } |
Unexecuted instantiation: coff64-rs6000.c:coff_swap_filehdr_out Unexecuted instantiation: cf-i386lynx.c:coff_swap_filehdr_out Unexecuted instantiation: coff-go32.c:coff_swap_filehdr_out Unexecuted instantiation: coff-i386.c:coff_swap_filehdr_out coff-mips.c:mips_ecoff_swap_filehdr_out Line | Count | Source | 302 | 1 | { | 303 | 1 | struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; | 304 | 1 | FILHDR *filehdr_out = (FILHDR *) out; | 305 | | | 306 | | #ifdef COFF_ADJUST_FILEHDR_OUT_PRE | 307 | | COFF_ADJUST_FILEHDR_OUT_PRE (abfd, in, out); | 308 | | #endif | 309 | 1 | H_PUT_16 (abfd, filehdr_in->f_magic, filehdr_out->f_magic); | 310 | 1 | H_PUT_16 (abfd, filehdr_in->f_nscns, filehdr_out->f_nscns); | 311 | 1 | H_PUT_32 (abfd, filehdr_in->f_timdat, filehdr_out->f_timdat); | 312 | 1 | PUT_FILEHDR_SYMPTR (abfd, filehdr_in->f_symptr, filehdr_out->f_symptr); | 313 | 1 | H_PUT_32 (abfd, filehdr_in->f_nsyms, filehdr_out->f_nsyms); | 314 | 1 | H_PUT_16 (abfd, filehdr_in->f_opthdr, filehdr_out->f_opthdr); | 315 | 1 | H_PUT_16 (abfd, filehdr_in->f_flags, filehdr_out->f_flags); | 316 | | | 317 | | #ifdef COFF_ADJUST_FILEHDR_OUT_POST | 318 | | COFF_ADJUST_FILEHDR_OUT_POST (abfd, in, out); | 319 | | #endif | 320 | 1 | return bfd_coff_filhsz (abfd); | 321 | 1 | } |
Unexecuted instantiation: coff-rs6000.c:coff_swap_filehdr_out Unexecuted instantiation: coff-sh.c:coff_swap_filehdr_out Unexecuted instantiation: coff-stgo32.c:coff_swap_filehdr_out Unexecuted instantiation: coff-tic30.c:coff_swap_filehdr_out Unexecuted instantiation: coff-tic4x.c:coff_swap_filehdr_out Unexecuted instantiation: coff-tic54x.c:coff_swap_filehdr_out Unexecuted instantiation: coff-z80.c:coff_swap_filehdr_out Unexecuted instantiation: coff-z8k.c:coff_swap_filehdr_out |
322 | | |
323 | | #ifndef NO_COFF_SYMBOLS |
324 | | |
325 | | static void |
326 | | coff_swap_sym_in (bfd * abfd, void * ext1, void * in1) |
327 | 2.41M | { |
328 | 2.41M | SYMENT *ext = (SYMENT *) ext1; |
329 | 2.41M | struct internal_syment *in = (struct internal_syment *) in1; |
330 | | |
331 | 2.41M | if (ext->e.e_name[0] == 0) |
332 | 1.61M | { |
333 | 1.61M | in->_n._n_n._n_zeroes = 0; |
334 | 1.61M | in->_n._n_n._n_offset = H_GET_32 (abfd, ext->e.e.e_offset); |
335 | 1.61M | } |
336 | 801k | else |
337 | 801k | { |
338 | | #if SYMNMLEN != E_SYMNMLEN |
339 | | #error we need to cope with truncating or extending SYMNMLEN |
340 | | #else |
341 | 801k | memcpy (in->_n._n_name, ext->e.e_name, SYMNMLEN); |
342 | 801k | #endif |
343 | 801k | } |
344 | | |
345 | 2.41M | in->n_value = H_GET_32 (abfd, ext->e_value); |
346 | 2.41M | in->n_scnum = (short) H_GET_16 (abfd, ext->e_scnum); |
347 | 2.41M | if (sizeof (ext->e_type) == 2) |
348 | 2.41M | in->n_type = H_GET_16 (abfd, ext->e_type); |
349 | 0 | else |
350 | 0 | in->n_type = H_GET_32 (abfd, ext->e_type); |
351 | 2.41M | in->n_sclass = H_GET_8 (abfd, ext->e_sclass); |
352 | 2.41M | in->n_numaux = H_GET_8 (abfd, ext->e_numaux); |
353 | | #ifdef COFF_ADJUST_SYM_IN_POST |
354 | 338k | COFF_ADJUST_SYM_IN_POST (abfd, ext1, in1); |
355 | | #endif |
356 | 2.41M | } coff-x86_64.c:coff_swap_sym_in Line | Count | Source | 327 | 655k | { | 328 | 655k | SYMENT *ext = (SYMENT *) ext1; | 329 | 655k | struct internal_syment *in = (struct internal_syment *) in1; | 330 | | | 331 | 655k | if (ext->e.e_name[0] == 0) | 332 | 441k | { | 333 | 441k | in->_n._n_n._n_zeroes = 0; | 334 | 441k | in->_n._n_n._n_offset = H_GET_32 (abfd, ext->e.e.e_offset); | 335 | 441k | } | 336 | 213k | else | 337 | 213k | { | 338 | | #if SYMNMLEN != E_SYMNMLEN | 339 | | #error we need to cope with truncating or extending SYMNMLEN | 340 | | #else | 341 | 213k | memcpy (in->_n._n_name, ext->e.e_name, SYMNMLEN); | 342 | 213k | #endif | 343 | 213k | } | 344 | | | 345 | 655k | in->n_value = H_GET_32 (abfd, ext->e_value); | 346 | 655k | in->n_scnum = (short) H_GET_16 (abfd, ext->e_scnum); | 347 | 655k | if (sizeof (ext->e_type) == 2) | 348 | 655k | in->n_type = H_GET_16 (abfd, ext->e_type); | 349 | 0 | else | 350 | 0 | in->n_type = H_GET_32 (abfd, ext->e_type); | 351 | 655k | in->n_sclass = H_GET_8 (abfd, ext->e_sclass); | 352 | 655k | in->n_numaux = H_GET_8 (abfd, ext->e_numaux); | 353 | | #ifdef COFF_ADJUST_SYM_IN_POST | 354 | | COFF_ADJUST_SYM_IN_POST (abfd, ext1, in1); | 355 | | #endif | 356 | 655k | } |
Unexecuted instantiation: cf-i386lynx.c:coff_swap_sym_in Unexecuted instantiation: coff-go32.c:coff_swap_sym_in Unexecuted instantiation: coff-i386.c:coff_swap_sym_in coff-sh.c:coff_swap_sym_in Line | Count | Source | 327 | 291k | { | 328 | 291k | SYMENT *ext = (SYMENT *) ext1; | 329 | 291k | struct internal_syment *in = (struct internal_syment *) in1; | 330 | | | 331 | 291k | if (ext->e.e_name[0] == 0) | 332 | 199k | { | 333 | 199k | in->_n._n_n._n_zeroes = 0; | 334 | 199k | in->_n._n_n._n_offset = H_GET_32 (abfd, ext->e.e.e_offset); | 335 | 199k | } | 336 | 92.2k | else | 337 | 92.2k | { | 338 | | #if SYMNMLEN != E_SYMNMLEN | 339 | | #error we need to cope with truncating or extending SYMNMLEN | 340 | | #else | 341 | 92.2k | memcpy (in->_n._n_name, ext->e.e_name, SYMNMLEN); | 342 | 92.2k | #endif | 343 | 92.2k | } | 344 | | | 345 | 291k | in->n_value = H_GET_32 (abfd, ext->e_value); | 346 | 291k | in->n_scnum = (short) H_GET_16 (abfd, ext->e_scnum); | 347 | 291k | if (sizeof (ext->e_type) == 2) | 348 | 291k | in->n_type = H_GET_16 (abfd, ext->e_type); | 349 | 0 | else | 350 | 0 | in->n_type = H_GET_32 (abfd, ext->e_type); | 351 | 291k | in->n_sclass = H_GET_8 (abfd, ext->e_sclass); | 352 | 291k | in->n_numaux = H_GET_8 (abfd, ext->e_numaux); | 353 | | #ifdef COFF_ADJUST_SYM_IN_POST | 354 | | COFF_ADJUST_SYM_IN_POST (abfd, ext1, in1); | 355 | | #endif | 356 | 291k | } |
Unexecuted instantiation: coff-stgo32.c:coff_swap_sym_in coff-tic30.c:coff_swap_sym_in Line | Count | Source | 327 | 380k | { | 328 | 380k | SYMENT *ext = (SYMENT *) ext1; | 329 | 380k | struct internal_syment *in = (struct internal_syment *) in1; | 330 | | | 331 | 380k | if (ext->e.e_name[0] == 0) | 332 | 232k | { | 333 | 232k | in->_n._n_n._n_zeroes = 0; | 334 | 232k | in->_n._n_n._n_offset = H_GET_32 (abfd, ext->e.e.e_offset); | 335 | 232k | } | 336 | 148k | else | 337 | 148k | { | 338 | | #if SYMNMLEN != E_SYMNMLEN | 339 | | #error we need to cope with truncating or extending SYMNMLEN | 340 | | #else | 341 | 148k | memcpy (in->_n._n_name, ext->e.e_name, SYMNMLEN); | 342 | 148k | #endif | 343 | 148k | } | 344 | | | 345 | 380k | in->n_value = H_GET_32 (abfd, ext->e_value); | 346 | 380k | in->n_scnum = (short) H_GET_16 (abfd, ext->e_scnum); | 347 | 380k | if (sizeof (ext->e_type) == 2) | 348 | 380k | in->n_type = H_GET_16 (abfd, ext->e_type); | 349 | 0 | else | 350 | 0 | in->n_type = H_GET_32 (abfd, ext->e_type); | 351 | 380k | in->n_sclass = H_GET_8 (abfd, ext->e_sclass); | 352 | 380k | in->n_numaux = H_GET_8 (abfd, ext->e_numaux); | 353 | | #ifdef COFF_ADJUST_SYM_IN_POST | 354 | | COFF_ADJUST_SYM_IN_POST (abfd, ext1, in1); | 355 | | #endif | 356 | 380k | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_sym_in coff-tic54x.c:coff_swap_sym_in Line | Count | Source | 327 | 338k | { | 328 | 338k | SYMENT *ext = (SYMENT *) ext1; | 329 | 338k | struct internal_syment *in = (struct internal_syment *) in1; | 330 | | | 331 | 338k | if (ext->e.e_name[0] == 0) | 332 | 230k | { | 333 | 230k | in->_n._n_n._n_zeroes = 0; | 334 | 230k | in->_n._n_n._n_offset = H_GET_32 (abfd, ext->e.e.e_offset); | 335 | 230k | } | 336 | 107k | else | 337 | 107k | { | 338 | | #if SYMNMLEN != E_SYMNMLEN | 339 | | #error we need to cope with truncating or extending SYMNMLEN | 340 | | #else | 341 | 107k | memcpy (in->_n._n_name, ext->e.e_name, SYMNMLEN); | 342 | 107k | #endif | 343 | 107k | } | 344 | | | 345 | 338k | in->n_value = H_GET_32 (abfd, ext->e_value); | 346 | 338k | in->n_scnum = (short) H_GET_16 (abfd, ext->e_scnum); | 347 | 338k | if (sizeof (ext->e_type) == 2) | 348 | 338k | in->n_type = H_GET_16 (abfd, ext->e_type); | 349 | 0 | else | 350 | 0 | in->n_type = H_GET_32 (abfd, ext->e_type); | 351 | 338k | in->n_sclass = H_GET_8 (abfd, ext->e_sclass); | 352 | 338k | in->n_numaux = H_GET_8 (abfd, ext->e_numaux); | 353 | 338k | #ifdef COFF_ADJUST_SYM_IN_POST | 354 | 338k | COFF_ADJUST_SYM_IN_POST (abfd, ext1, in1); | 355 | 338k | #endif | 356 | 338k | } |
coff-z80.c:coff_swap_sym_in Line | Count | Source | 327 | 351k | { | 328 | 351k | SYMENT *ext = (SYMENT *) ext1; | 329 | 351k | struct internal_syment *in = (struct internal_syment *) in1; | 330 | | | 331 | 351k | if (ext->e.e_name[0] == 0) | 332 | 235k | { | 333 | 235k | in->_n._n_n._n_zeroes = 0; | 334 | 235k | in->_n._n_n._n_offset = H_GET_32 (abfd, ext->e.e.e_offset); | 335 | 235k | } | 336 | 116k | else | 337 | 116k | { | 338 | | #if SYMNMLEN != E_SYMNMLEN | 339 | | #error we need to cope with truncating or extending SYMNMLEN | 340 | | #else | 341 | 116k | memcpy (in->_n._n_name, ext->e.e_name, SYMNMLEN); | 342 | 116k | #endif | 343 | 116k | } | 344 | | | 345 | 351k | in->n_value = H_GET_32 (abfd, ext->e_value); | 346 | 351k | in->n_scnum = (short) H_GET_16 (abfd, ext->e_scnum); | 347 | 351k | if (sizeof (ext->e_type) == 2) | 348 | 351k | in->n_type = H_GET_16 (abfd, ext->e_type); | 349 | 0 | else | 350 | 0 | in->n_type = H_GET_32 (abfd, ext->e_type); | 351 | 351k | in->n_sclass = H_GET_8 (abfd, ext->e_sclass); | 352 | 351k | in->n_numaux = H_GET_8 (abfd, ext->e_numaux); | 353 | | #ifdef COFF_ADJUST_SYM_IN_POST | 354 | | COFF_ADJUST_SYM_IN_POST (abfd, ext1, in1); | 355 | | #endif | 356 | 351k | } |
coff-z8k.c:coff_swap_sym_in Line | Count | Source | 327 | 396k | { | 328 | 396k | SYMENT *ext = (SYMENT *) ext1; | 329 | 396k | struct internal_syment *in = (struct internal_syment *) in1; | 330 | | | 331 | 396k | if (ext->e.e_name[0] == 0) | 332 | 272k | { | 333 | 272k | in->_n._n_n._n_zeroes = 0; | 334 | 272k | in->_n._n_n._n_offset = H_GET_32 (abfd, ext->e.e.e_offset); | 335 | 272k | } | 336 | 123k | else | 337 | 123k | { | 338 | | #if SYMNMLEN != E_SYMNMLEN | 339 | | #error we need to cope with truncating or extending SYMNMLEN | 340 | | #else | 341 | 123k | memcpy (in->_n._n_name, ext->e.e_name, SYMNMLEN); | 342 | 123k | #endif | 343 | 123k | } | 344 | | | 345 | 396k | in->n_value = H_GET_32 (abfd, ext->e_value); | 346 | 396k | in->n_scnum = (short) H_GET_16 (abfd, ext->e_scnum); | 347 | 396k | if (sizeof (ext->e_type) == 2) | 348 | 396k | in->n_type = H_GET_16 (abfd, ext->e_type); | 349 | 0 | else | 350 | 0 | in->n_type = H_GET_32 (abfd, ext->e_type); | 351 | 396k | in->n_sclass = H_GET_8 (abfd, ext->e_sclass); | 352 | 396k | in->n_numaux = H_GET_8 (abfd, ext->e_numaux); | 353 | | #ifdef COFF_ADJUST_SYM_IN_POST | 354 | | COFF_ADJUST_SYM_IN_POST (abfd, ext1, in1); | 355 | | #endif | 356 | 396k | } |
|
357 | | |
358 | | static unsigned int |
359 | | coff_swap_sym_out (bfd * abfd, void * inp, void * extp) |
360 | 670 | { |
361 | 670 | struct internal_syment *in = (struct internal_syment *) inp; |
362 | 670 | SYMENT *ext =(SYMENT *) extp; |
363 | | |
364 | | #ifdef COFF_ADJUST_SYM_OUT_PRE |
365 | | COFF_ADJUST_SYM_OUT_PRE (abfd, inp, extp); |
366 | | #endif |
367 | | |
368 | 670 | if (in->_n._n_name[0] == 0) |
369 | 670 | { |
370 | 670 | H_PUT_32 (abfd, 0, ext->e.e.e_zeroes); |
371 | 670 | H_PUT_32 (abfd, in->_n._n_n._n_offset, ext->e.e.e_offset); |
372 | 670 | } |
373 | 0 | else |
374 | 0 | { |
375 | | #if SYMNMLEN != E_SYMNMLEN |
376 | | #error we need to cope with truncating or extending SYMNMLEN |
377 | | #else |
378 | 0 | memcpy (ext->e.e_name, in->_n._n_name, SYMNMLEN); |
379 | 0 | #endif |
380 | 0 | } |
381 | | |
382 | 670 | H_PUT_32 (abfd, in->n_value, ext->e_value); |
383 | 670 | H_PUT_16 (abfd, in->n_scnum, ext->e_scnum); |
384 | | |
385 | 670 | if (sizeof (ext->e_type) == 2) |
386 | 670 | H_PUT_16 (abfd, in->n_type, ext->e_type); |
387 | 0 | else |
388 | 670 | H_PUT_32 (abfd, in->n_type, ext->e_type); |
389 | | |
390 | 670 | H_PUT_8 (abfd, in->n_sclass, ext->e_sclass); |
391 | 670 | H_PUT_8 (abfd, in->n_numaux, ext->e_numaux); |
392 | | |
393 | | #ifdef COFF_ADJUST_SYM_OUT_POST |
394 | 0 | COFF_ADJUST_SYM_OUT_POST (abfd, inp, extp); |
395 | | #endif |
396 | | |
397 | 670 | return SYMESZ; |
398 | 670 | } coff-x86_64.c:coff_swap_sym_out Line | Count | Source | 360 | 670 | { | 361 | 670 | struct internal_syment *in = (struct internal_syment *) inp; | 362 | 670 | SYMENT *ext =(SYMENT *) extp; | 363 | | | 364 | | #ifdef COFF_ADJUST_SYM_OUT_PRE | 365 | | COFF_ADJUST_SYM_OUT_PRE (abfd, inp, extp); | 366 | | #endif | 367 | | | 368 | 670 | if (in->_n._n_name[0] == 0) | 369 | 670 | { | 370 | 670 | H_PUT_32 (abfd, 0, ext->e.e.e_zeroes); | 371 | 670 | H_PUT_32 (abfd, in->_n._n_n._n_offset, ext->e.e.e_offset); | 372 | 670 | } | 373 | 0 | else | 374 | 0 | { | 375 | | #if SYMNMLEN != E_SYMNMLEN | 376 | | #error we need to cope with truncating or extending SYMNMLEN | 377 | | #else | 378 | 0 | memcpy (ext->e.e_name, in->_n._n_name, SYMNMLEN); | 379 | 0 | #endif | 380 | 0 | } | 381 | | | 382 | 670 | H_PUT_32 (abfd, in->n_value, ext->e_value); | 383 | 670 | H_PUT_16 (abfd, in->n_scnum, ext->e_scnum); | 384 | | | 385 | 670 | if (sizeof (ext->e_type) == 2) | 386 | 670 | H_PUT_16 (abfd, in->n_type, ext->e_type); | 387 | 0 | else | 388 | 670 | H_PUT_32 (abfd, in->n_type, ext->e_type); | 389 | | | 390 | 670 | H_PUT_8 (abfd, in->n_sclass, ext->e_sclass); | 391 | 670 | H_PUT_8 (abfd, in->n_numaux, ext->e_numaux); | 392 | | | 393 | | #ifdef COFF_ADJUST_SYM_OUT_POST | 394 | | COFF_ADJUST_SYM_OUT_POST (abfd, inp, extp); | 395 | | #endif | 396 | | | 397 | 670 | return SYMESZ; | 398 | 670 | } |
Unexecuted instantiation: cf-i386lynx.c:coff_swap_sym_out Unexecuted instantiation: coff-go32.c:coff_swap_sym_out Unexecuted instantiation: coff-i386.c:coff_swap_sym_out Unexecuted instantiation: coff-sh.c:coff_swap_sym_out Unexecuted instantiation: coff-stgo32.c:coff_swap_sym_out Unexecuted instantiation: coff-tic30.c:coff_swap_sym_out Unexecuted instantiation: coff-tic4x.c:coff_swap_sym_out Unexecuted instantiation: coff-tic54x.c:coff_swap_sym_out Unexecuted instantiation: coff-z80.c:coff_swap_sym_out Unexecuted instantiation: coff-z8k.c:coff_swap_sym_out |
399 | | |
400 | | static void |
401 | | coff_swap_aux_in (bfd *abfd, |
402 | | void * ext1, |
403 | | int type, |
404 | | int in_class, |
405 | | int indx ATTRIBUTE_UNUSED, |
406 | | int numaux ATTRIBUTE_UNUSED, |
407 | | void * in1) |
408 | 19.9M | { |
409 | 19.9M | AUXENT *ext = (AUXENT *) ext1; |
410 | 19.9M | union internal_auxent *in = (union internal_auxent *) in1; |
411 | | |
412 | | #ifdef COFF_ADJUST_AUX_IN_PRE |
413 | | COFF_ADJUST_AUX_IN_PRE (abfd, ext1, type, in_class, indx, numaux, in1); |
414 | | #endif |
415 | | |
416 | 19.9M | switch (in_class) |
417 | 19.9M | { |
418 | 388k | case C_FILE: |
419 | 388k | if (ext->x_file.x_fname[0] == 0) |
420 | 118k | { |
421 | 118k | in->x_file.x_n.x_n.x_zeroes = 0; |
422 | 118k | in->x_file.x_n.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset); |
423 | 118k | } |
424 | 269k | else |
425 | 269k | { |
426 | | #if FILNMLEN != E_FILNMLEN |
427 | | #error we need to cope with truncating or extending FILNMLEN |
428 | | #else |
429 | 269k | memcpy (in->x_file.x_n.x_fname, ext->x_file.x_fname, FILNMLEN); |
430 | 269k | #endif |
431 | 269k | } |
432 | 388k | goto end; |
433 | | |
434 | 193k | case C_STAT: |
435 | 193k | #ifdef C_LEAFSTAT |
436 | 239k | case C_LEAFSTAT: |
437 | 239k | #endif |
438 | 353k | case C_HIDDEN: |
439 | 353k | if (type == T_NULL) |
440 | 25.7k | { |
441 | 25.7k | in->x_scn.x_scnlen = GET_SCN_SCNLEN (abfd, ext); |
442 | 25.7k | in->x_scn.x_nreloc = GET_SCN_NRELOC (abfd, ext); |
443 | 25.7k | in->x_scn.x_nlinno = GET_SCN_NLINNO (abfd, ext); |
444 | | |
445 | | /* PE defines some extra fields; we zero them out for |
446 | | safety. */ |
447 | 25.7k | in->x_scn.x_checksum = 0; |
448 | 25.7k | in->x_scn.x_associated = 0; |
449 | 25.7k | in->x_scn.x_comdat = 0; |
450 | | |
451 | 25.7k | goto end; |
452 | 25.7k | } |
453 | 327k | break; |
454 | 19.9M | } |
455 | | |
456 | 19.5M | in->x_sym.x_tagndx.u32 = H_GET_32 (abfd, ext->x_sym.x_tagndx); |
457 | 19.5M | #ifndef NO_TVNDX |
458 | 19.5M | in->x_sym.x_tvndx = H_GET_16 (abfd, ext->x_sym.x_tvndx); |
459 | 19.5M | #endif |
460 | | |
461 | 19.5M | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) |
462 | 19.5M | || ISTAG (in_class)) |
463 | 3.21M | { |
464 | 3.21M | in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR (abfd, ext); |
465 | 3.21M | in->x_sym.x_fcnary.x_fcn.x_endndx.u32 = GET_FCN_ENDNDX (abfd, ext); |
466 | 3.21M | } |
467 | 16.3M | else |
468 | 16.3M | { |
469 | | #if DIMNUM != E_DIMNUM |
470 | | #error we need to cope with truncating or extending DIMNUM |
471 | | #endif |
472 | 16.3M | in->x_sym.x_fcnary.x_ary.x_dimen[0] = |
473 | 16.3M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[0]); |
474 | 16.3M | in->x_sym.x_fcnary.x_ary.x_dimen[1] = |
475 | 16.3M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[1]); |
476 | 16.3M | in->x_sym.x_fcnary.x_ary.x_dimen[2] = |
477 | 16.3M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[2]); |
478 | 16.3M | in->x_sym.x_fcnary.x_ary.x_dimen[3] = |
479 | 16.3M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[3]); |
480 | 16.3M | } |
481 | | |
482 | 19.5M | if (ISFCN (type)) |
483 | 2.89M | in->x_sym.x_misc.x_fsize = H_GET_32 (abfd, ext->x_sym.x_misc.x_fsize); |
484 | 16.6M | else |
485 | 16.6M | { |
486 | 16.6M | in->x_sym.x_misc.x_lnsz.x_lnno = GET_LNSZ_LNNO (abfd, ext); |
487 | 16.6M | in->x_sym.x_misc.x_lnsz.x_size = GET_LNSZ_SIZE (abfd, ext); |
488 | 16.6M | } |
489 | | |
490 | 19.9M | end: ; |
491 | | |
492 | | #ifdef COFF_ADJUST_AUX_IN_POST |
493 | | COFF_ADJUST_AUX_IN_POST (abfd, ext1, type, in_class, indx, numaux, in1); |
494 | | #endif |
495 | 19.9M | } coff-x86_64.c:coff_swap_aux_in Line | Count | Source | 408 | 6.59M | { | 409 | 6.59M | AUXENT *ext = (AUXENT *) ext1; | 410 | 6.59M | union internal_auxent *in = (union internal_auxent *) in1; | 411 | | | 412 | | #ifdef COFF_ADJUST_AUX_IN_PRE | 413 | | COFF_ADJUST_AUX_IN_PRE (abfd, ext1, type, in_class, indx, numaux, in1); | 414 | | #endif | 415 | | | 416 | 6.59M | switch (in_class) | 417 | 6.59M | { | 418 | 25.9k | case C_FILE: | 419 | 25.9k | if (ext->x_file.x_fname[0] == 0) | 420 | 6.93k | { | 421 | 6.93k | in->x_file.x_n.x_n.x_zeroes = 0; | 422 | 6.93k | in->x_file.x_n.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset); | 423 | 6.93k | } | 424 | 19.0k | else | 425 | 19.0k | { | 426 | | #if FILNMLEN != E_FILNMLEN | 427 | | #error we need to cope with truncating or extending FILNMLEN | 428 | | #else | 429 | 19.0k | memcpy (in->x_file.x_n.x_fname, ext->x_file.x_fname, FILNMLEN); | 430 | 19.0k | #endif | 431 | 19.0k | } | 432 | 25.9k | goto end; | 433 | | | 434 | 11.3k | case C_STAT: | 435 | 11.3k | #ifdef C_LEAFSTAT | 436 | 13.8k | case C_LEAFSTAT: | 437 | 13.8k | #endif | 438 | 42.3k | case C_HIDDEN: | 439 | 42.3k | if (type == T_NULL) | 440 | 2.44k | { | 441 | 2.44k | in->x_scn.x_scnlen = GET_SCN_SCNLEN (abfd, ext); | 442 | 2.44k | in->x_scn.x_nreloc = GET_SCN_NRELOC (abfd, ext); | 443 | 2.44k | in->x_scn.x_nlinno = GET_SCN_NLINNO (abfd, ext); | 444 | | | 445 | | /* PE defines some extra fields; we zero them out for | 446 | | safety. */ | 447 | 2.44k | in->x_scn.x_checksum = 0; | 448 | 2.44k | in->x_scn.x_associated = 0; | 449 | 2.44k | in->x_scn.x_comdat = 0; | 450 | | | 451 | 2.44k | goto end; | 452 | 2.44k | } | 453 | 39.8k | break; | 454 | 6.59M | } | 455 | | | 456 | 6.56M | in->x_sym.x_tagndx.u32 = H_GET_32 (abfd, ext->x_sym.x_tagndx); | 457 | 6.56M | #ifndef NO_TVNDX | 458 | 6.56M | in->x_sym.x_tvndx = H_GET_16 (abfd, ext->x_sym.x_tvndx); | 459 | 6.56M | #endif | 460 | | | 461 | 6.56M | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 462 | 6.56M | || ISTAG (in_class)) | 463 | 1.29M | { | 464 | 1.29M | in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR (abfd, ext); | 465 | 1.29M | in->x_sym.x_fcnary.x_fcn.x_endndx.u32 = GET_FCN_ENDNDX (abfd, ext); | 466 | 1.29M | } | 467 | 5.27M | else | 468 | 5.27M | { | 469 | | #if DIMNUM != E_DIMNUM | 470 | | #error we need to cope with truncating or extending DIMNUM | 471 | | #endif | 472 | 5.27M | in->x_sym.x_fcnary.x_ary.x_dimen[0] = | 473 | 5.27M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 474 | 5.27M | in->x_sym.x_fcnary.x_ary.x_dimen[1] = | 475 | 5.27M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 476 | 5.27M | in->x_sym.x_fcnary.x_ary.x_dimen[2] = | 477 | 5.27M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 478 | 5.27M | in->x_sym.x_fcnary.x_ary.x_dimen[3] = | 479 | 5.27M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 480 | 5.27M | } | 481 | | | 482 | 6.56M | if (ISFCN (type)) | 483 | 1.25M | in->x_sym.x_misc.x_fsize = H_GET_32 (abfd, ext->x_sym.x_misc.x_fsize); | 484 | 5.30M | else | 485 | 5.30M | { | 486 | 5.30M | in->x_sym.x_misc.x_lnsz.x_lnno = GET_LNSZ_LNNO (abfd, ext); | 487 | 5.30M | in->x_sym.x_misc.x_lnsz.x_size = GET_LNSZ_SIZE (abfd, ext); | 488 | 5.30M | } | 489 | | | 490 | 6.59M | end: ; | 491 | | | 492 | | #ifdef COFF_ADJUST_AUX_IN_POST | 493 | | COFF_ADJUST_AUX_IN_POST (abfd, ext1, type, in_class, indx, numaux, in1); | 494 | | #endif | 495 | 6.59M | } |
Unexecuted instantiation: cf-i386lynx.c:coff_swap_aux_in Unexecuted instantiation: coff-go32.c:coff_swap_aux_in Unexecuted instantiation: coff-i386.c:coff_swap_aux_in coff-sh.c:coff_swap_aux_in Line | Count | Source | 408 | 1.82M | { | 409 | 1.82M | AUXENT *ext = (AUXENT *) ext1; | 410 | 1.82M | union internal_auxent *in = (union internal_auxent *) in1; | 411 | | | 412 | | #ifdef COFF_ADJUST_AUX_IN_PRE | 413 | | COFF_ADJUST_AUX_IN_PRE (abfd, ext1, type, in_class, indx, numaux, in1); | 414 | | #endif | 415 | | | 416 | 1.82M | switch (in_class) | 417 | 1.82M | { | 418 | 58.8k | case C_FILE: | 419 | 58.8k | if (ext->x_file.x_fname[0] == 0) | 420 | 13.8k | { | 421 | 13.8k | in->x_file.x_n.x_n.x_zeroes = 0; | 422 | 13.8k | in->x_file.x_n.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset); | 423 | 13.8k | } | 424 | 44.9k | else | 425 | 44.9k | { | 426 | | #if FILNMLEN != E_FILNMLEN | 427 | | #error we need to cope with truncating or extending FILNMLEN | 428 | | #else | 429 | 44.9k | memcpy (in->x_file.x_n.x_fname, ext->x_file.x_fname, FILNMLEN); | 430 | 44.9k | #endif | 431 | 44.9k | } | 432 | 58.8k | goto end; | 433 | | | 434 | 25.9k | case C_STAT: | 435 | 25.9k | #ifdef C_LEAFSTAT | 436 | 42.7k | case C_LEAFSTAT: | 437 | 42.7k | #endif | 438 | 53.2k | case C_HIDDEN: | 439 | 53.2k | if (type == T_NULL) | 440 | 2.45k | { | 441 | 2.45k | in->x_scn.x_scnlen = GET_SCN_SCNLEN (abfd, ext); | 442 | 2.45k | in->x_scn.x_nreloc = GET_SCN_NRELOC (abfd, ext); | 443 | 2.45k | in->x_scn.x_nlinno = GET_SCN_NLINNO (abfd, ext); | 444 | | | 445 | | /* PE defines some extra fields; we zero them out for | 446 | | safety. */ | 447 | 2.45k | in->x_scn.x_checksum = 0; | 448 | 2.45k | in->x_scn.x_associated = 0; | 449 | 2.45k | in->x_scn.x_comdat = 0; | 450 | | | 451 | 2.45k | goto end; | 452 | 2.45k | } | 453 | 50.7k | break; | 454 | 1.82M | } | 455 | | | 456 | 1.76M | in->x_sym.x_tagndx.u32 = H_GET_32 (abfd, ext->x_sym.x_tagndx); | 457 | 1.76M | #ifndef NO_TVNDX | 458 | 1.76M | in->x_sym.x_tvndx = H_GET_16 (abfd, ext->x_sym.x_tvndx); | 459 | 1.76M | #endif | 460 | | | 461 | 1.76M | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 462 | 1.76M | || ISTAG (in_class)) | 463 | 304k | { | 464 | 304k | in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR (abfd, ext); | 465 | 304k | in->x_sym.x_fcnary.x_fcn.x_endndx.u32 = GET_FCN_ENDNDX (abfd, ext); | 466 | 304k | } | 467 | 1.46M | else | 468 | 1.46M | { | 469 | | #if DIMNUM != E_DIMNUM | 470 | | #error we need to cope with truncating or extending DIMNUM | 471 | | #endif | 472 | 1.46M | in->x_sym.x_fcnary.x_ary.x_dimen[0] = | 473 | 1.46M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 474 | 1.46M | in->x_sym.x_fcnary.x_ary.x_dimen[1] = | 475 | 1.46M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 476 | 1.46M | in->x_sym.x_fcnary.x_ary.x_dimen[2] = | 477 | 1.46M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 478 | 1.46M | in->x_sym.x_fcnary.x_ary.x_dimen[3] = | 479 | 1.46M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 480 | 1.46M | } | 481 | | | 482 | 1.76M | if (ISFCN (type)) | 483 | 246k | in->x_sym.x_misc.x_fsize = H_GET_32 (abfd, ext->x_sym.x_misc.x_fsize); | 484 | 1.52M | else | 485 | 1.52M | { | 486 | 1.52M | in->x_sym.x_misc.x_lnsz.x_lnno = GET_LNSZ_LNNO (abfd, ext); | 487 | 1.52M | in->x_sym.x_misc.x_lnsz.x_size = GET_LNSZ_SIZE (abfd, ext); | 488 | 1.52M | } | 489 | | | 490 | 1.82M | end: ; | 491 | | | 492 | | #ifdef COFF_ADJUST_AUX_IN_POST | 493 | | COFF_ADJUST_AUX_IN_POST (abfd, ext1, type, in_class, indx, numaux, in1); | 494 | | #endif | 495 | 1.82M | } |
Unexecuted instantiation: coff-stgo32.c:coff_swap_aux_in coff-tic30.c:coff_swap_aux_in Line | Count | Source | 408 | 2.48M | { | 409 | 2.48M | AUXENT *ext = (AUXENT *) ext1; | 410 | 2.48M | union internal_auxent *in = (union internal_auxent *) in1; | 411 | | | 412 | | #ifdef COFF_ADJUST_AUX_IN_PRE | 413 | | COFF_ADJUST_AUX_IN_PRE (abfd, ext1, type, in_class, indx, numaux, in1); | 414 | | #endif | 415 | | | 416 | 2.48M | switch (in_class) | 417 | 2.48M | { | 418 | 68.7k | case C_FILE: | 419 | 68.7k | if (ext->x_file.x_fname[0] == 0) | 420 | 34.8k | { | 421 | 34.8k | in->x_file.x_n.x_n.x_zeroes = 0; | 422 | 34.8k | in->x_file.x_n.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset); | 423 | 34.8k | } | 424 | 33.8k | else | 425 | 33.8k | { | 426 | | #if FILNMLEN != E_FILNMLEN | 427 | | #error we need to cope with truncating or extending FILNMLEN | 428 | | #else | 429 | 33.8k | memcpy (in->x_file.x_n.x_fname, ext->x_file.x_fname, FILNMLEN); | 430 | 33.8k | #endif | 431 | 33.8k | } | 432 | 68.7k | goto end; | 433 | | | 434 | 29.3k | case C_STAT: | 435 | 29.3k | #ifdef C_LEAFSTAT | 436 | 42.1k | case C_LEAFSTAT: | 437 | 42.1k | #endif | 438 | 75.8k | case C_HIDDEN: | 439 | 75.8k | if (type == T_NULL) | 440 | 7.77k | { | 441 | 7.77k | in->x_scn.x_scnlen = GET_SCN_SCNLEN (abfd, ext); | 442 | 7.77k | in->x_scn.x_nreloc = GET_SCN_NRELOC (abfd, ext); | 443 | 7.77k | in->x_scn.x_nlinno = GET_SCN_NLINNO (abfd, ext); | 444 | | | 445 | | /* PE defines some extra fields; we zero them out for | 446 | | safety. */ | 447 | 7.77k | in->x_scn.x_checksum = 0; | 448 | 7.77k | in->x_scn.x_associated = 0; | 449 | 7.77k | in->x_scn.x_comdat = 0; | 450 | | | 451 | 7.77k | goto end; | 452 | 7.77k | } | 453 | 68.1k | break; | 454 | 2.48M | } | 455 | | | 456 | 2.40M | in->x_sym.x_tagndx.u32 = H_GET_32 (abfd, ext->x_sym.x_tagndx); | 457 | 2.40M | #ifndef NO_TVNDX | 458 | 2.40M | in->x_sym.x_tvndx = H_GET_16 (abfd, ext->x_sym.x_tvndx); | 459 | 2.40M | #endif | 460 | | | 461 | 2.40M | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 462 | 2.40M | || ISTAG (in_class)) | 463 | 416k | { | 464 | 416k | in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR (abfd, ext); | 465 | 416k | in->x_sym.x_fcnary.x_fcn.x_endndx.u32 = GET_FCN_ENDNDX (abfd, ext); | 466 | 416k | } | 467 | 1.99M | else | 468 | 1.99M | { | 469 | | #if DIMNUM != E_DIMNUM | 470 | | #error we need to cope with truncating or extending DIMNUM | 471 | | #endif | 472 | 1.99M | in->x_sym.x_fcnary.x_ary.x_dimen[0] = | 473 | 1.99M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 474 | 1.99M | in->x_sym.x_fcnary.x_ary.x_dimen[1] = | 475 | 1.99M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 476 | 1.99M | in->x_sym.x_fcnary.x_ary.x_dimen[2] = | 477 | 1.99M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 478 | 1.99M | in->x_sym.x_fcnary.x_ary.x_dimen[3] = | 479 | 1.99M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 480 | 1.99M | } | 481 | | | 482 | 2.40M | if (ISFCN (type)) | 483 | 373k | in->x_sym.x_misc.x_fsize = H_GET_32 (abfd, ext->x_sym.x_misc.x_fsize); | 484 | 2.03M | else | 485 | 2.03M | { | 486 | 2.03M | in->x_sym.x_misc.x_lnsz.x_lnno = GET_LNSZ_LNNO (abfd, ext); | 487 | 2.03M | in->x_sym.x_misc.x_lnsz.x_size = GET_LNSZ_SIZE (abfd, ext); | 488 | 2.03M | } | 489 | | | 490 | 2.48M | end: ; | 491 | | | 492 | | #ifdef COFF_ADJUST_AUX_IN_POST | 493 | | COFF_ADJUST_AUX_IN_POST (abfd, ext1, type, in_class, indx, numaux, in1); | 494 | | #endif | 495 | 2.48M | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_aux_in coff-tic54x.c:coff_swap_aux_in Line | Count | Source | 408 | 2.71M | { | 409 | 2.71M | AUXENT *ext = (AUXENT *) ext1; | 410 | 2.71M | union internal_auxent *in = (union internal_auxent *) in1; | 411 | | | 412 | | #ifdef COFF_ADJUST_AUX_IN_PRE | 413 | | COFF_ADJUST_AUX_IN_PRE (abfd, ext1, type, in_class, indx, numaux, in1); | 414 | | #endif | 415 | | | 416 | 2.71M | switch (in_class) | 417 | 2.71M | { | 418 | 58.8k | case C_FILE: | 419 | 58.8k | if (ext->x_file.x_fname[0] == 0) | 420 | 17.7k | { | 421 | 17.7k | in->x_file.x_n.x_n.x_zeroes = 0; | 422 | 17.7k | in->x_file.x_n.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset); | 423 | 17.7k | } | 424 | 41.1k | else | 425 | 41.1k | { | 426 | | #if FILNMLEN != E_FILNMLEN | 427 | | #error we need to cope with truncating or extending FILNMLEN | 428 | | #else | 429 | 41.1k | memcpy (in->x_file.x_n.x_fname, ext->x_file.x_fname, FILNMLEN); | 430 | 41.1k | #endif | 431 | 41.1k | } | 432 | 58.8k | goto end; | 433 | | | 434 | 27.5k | case C_STAT: | 435 | 27.5k | #ifdef C_LEAFSTAT | 436 | 31.5k | case C_LEAFSTAT: | 437 | 31.5k | #endif | 438 | 44.4k | case C_HIDDEN: | 439 | 44.4k | if (type == T_NULL) | 440 | 6.81k | { | 441 | 6.81k | in->x_scn.x_scnlen = GET_SCN_SCNLEN (abfd, ext); | 442 | 6.81k | in->x_scn.x_nreloc = GET_SCN_NRELOC (abfd, ext); | 443 | 6.81k | in->x_scn.x_nlinno = GET_SCN_NLINNO (abfd, ext); | 444 | | | 445 | | /* PE defines some extra fields; we zero them out for | 446 | | safety. */ | 447 | 6.81k | in->x_scn.x_checksum = 0; | 448 | 6.81k | in->x_scn.x_associated = 0; | 449 | 6.81k | in->x_scn.x_comdat = 0; | 450 | | | 451 | 6.81k | goto end; | 452 | 6.81k | } | 453 | 37.6k | break; | 454 | 2.71M | } | 455 | | | 456 | 2.64M | in->x_sym.x_tagndx.u32 = H_GET_32 (abfd, ext->x_sym.x_tagndx); | 457 | 2.64M | #ifndef NO_TVNDX | 458 | 2.64M | in->x_sym.x_tvndx = H_GET_16 (abfd, ext->x_sym.x_tvndx); | 459 | 2.64M | #endif | 460 | | | 461 | 2.64M | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 462 | 2.64M | || ISTAG (in_class)) | 463 | 388k | { | 464 | 388k | in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR (abfd, ext); | 465 | 388k | in->x_sym.x_fcnary.x_fcn.x_endndx.u32 = GET_FCN_ENDNDX (abfd, ext); | 466 | 388k | } | 467 | 2.26M | else | 468 | 2.26M | { | 469 | | #if DIMNUM != E_DIMNUM | 470 | | #error we need to cope with truncating or extending DIMNUM | 471 | | #endif | 472 | 2.26M | in->x_sym.x_fcnary.x_ary.x_dimen[0] = | 473 | 2.26M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 474 | 2.26M | in->x_sym.x_fcnary.x_ary.x_dimen[1] = | 475 | 2.26M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 476 | 2.26M | in->x_sym.x_fcnary.x_ary.x_dimen[2] = | 477 | 2.26M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 478 | 2.26M | in->x_sym.x_fcnary.x_ary.x_dimen[3] = | 479 | 2.26M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 480 | 2.26M | } | 481 | | | 482 | 2.64M | if (ISFCN (type)) | 483 | 330k | in->x_sym.x_misc.x_fsize = H_GET_32 (abfd, ext->x_sym.x_misc.x_fsize); | 484 | 2.31M | else | 485 | 2.31M | { | 486 | 2.31M | in->x_sym.x_misc.x_lnsz.x_lnno = GET_LNSZ_LNNO (abfd, ext); | 487 | 2.31M | in->x_sym.x_misc.x_lnsz.x_size = GET_LNSZ_SIZE (abfd, ext); | 488 | 2.31M | } | 489 | | | 490 | 2.71M | end: ; | 491 | | | 492 | | #ifdef COFF_ADJUST_AUX_IN_POST | 493 | | COFF_ADJUST_AUX_IN_POST (abfd, ext1, type, in_class, indx, numaux, in1); | 494 | | #endif | 495 | 2.71M | } |
coff-z80.c:coff_swap_aux_in Line | Count | Source | 408 | 3.82M | { | 409 | 3.82M | AUXENT *ext = (AUXENT *) ext1; | 410 | 3.82M | union internal_auxent *in = (union internal_auxent *) in1; | 411 | | | 412 | | #ifdef COFF_ADJUST_AUX_IN_PRE | 413 | | COFF_ADJUST_AUX_IN_PRE (abfd, ext1, type, in_class, indx, numaux, in1); | 414 | | #endif | 415 | | | 416 | 3.82M | switch (in_class) | 417 | 3.82M | { | 418 | 123k | case C_FILE: | 419 | 123k | if (ext->x_file.x_fname[0] == 0) | 420 | 24.6k | { | 421 | 24.6k | in->x_file.x_n.x_n.x_zeroes = 0; | 422 | 24.6k | in->x_file.x_n.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset); | 423 | 24.6k | } | 424 | 98.7k | else | 425 | 98.7k | { | 426 | | #if FILNMLEN != E_FILNMLEN | 427 | | #error we need to cope with truncating or extending FILNMLEN | 428 | | #else | 429 | 98.7k | memcpy (in->x_file.x_n.x_fname, ext->x_file.x_fname, FILNMLEN); | 430 | 98.7k | #endif | 431 | 98.7k | } | 432 | 123k | goto end; | 433 | | | 434 | 49.3k | case C_STAT: | 435 | 49.3k | #ifdef C_LEAFSTAT | 436 | 56.0k | case C_LEAFSTAT: | 437 | 56.0k | #endif | 438 | 67.7k | case C_HIDDEN: | 439 | 67.7k | if (type == T_NULL) | 440 | 3.33k | { | 441 | 3.33k | in->x_scn.x_scnlen = GET_SCN_SCNLEN (abfd, ext); | 442 | 3.33k | in->x_scn.x_nreloc = GET_SCN_NRELOC (abfd, ext); | 443 | 3.33k | in->x_scn.x_nlinno = GET_SCN_NLINNO (abfd, ext); | 444 | | | 445 | | /* PE defines some extra fields; we zero them out for | 446 | | safety. */ | 447 | 3.33k | in->x_scn.x_checksum = 0; | 448 | 3.33k | in->x_scn.x_associated = 0; | 449 | 3.33k | in->x_scn.x_comdat = 0; | 450 | | | 451 | 3.33k | goto end; | 452 | 3.33k | } | 453 | 64.4k | break; | 454 | 3.82M | } | 455 | | | 456 | 3.70M | in->x_sym.x_tagndx.u32 = H_GET_32 (abfd, ext->x_sym.x_tagndx); | 457 | 3.70M | #ifndef NO_TVNDX | 458 | 3.70M | in->x_sym.x_tvndx = H_GET_16 (abfd, ext->x_sym.x_tvndx); | 459 | 3.70M | #endif | 460 | | | 461 | 3.70M | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 462 | 3.70M | || ISTAG (in_class)) | 463 | 438k | { | 464 | 438k | in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR (abfd, ext); | 465 | 438k | in->x_sym.x_fcnary.x_fcn.x_endndx.u32 = GET_FCN_ENDNDX (abfd, ext); | 466 | 438k | } | 467 | 3.26M | else | 468 | 3.26M | { | 469 | | #if DIMNUM != E_DIMNUM | 470 | | #error we need to cope with truncating or extending DIMNUM | 471 | | #endif | 472 | 3.26M | in->x_sym.x_fcnary.x_ary.x_dimen[0] = | 473 | 3.26M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 474 | 3.26M | in->x_sym.x_fcnary.x_ary.x_dimen[1] = | 475 | 3.26M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 476 | 3.26M | in->x_sym.x_fcnary.x_ary.x_dimen[2] = | 477 | 3.26M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 478 | 3.26M | in->x_sym.x_fcnary.x_ary.x_dimen[3] = | 479 | 3.26M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 480 | 3.26M | } | 481 | | | 482 | 3.70M | if (ISFCN (type)) | 483 | 381k | in->x_sym.x_misc.x_fsize = H_GET_32 (abfd, ext->x_sym.x_misc.x_fsize); | 484 | 3.32M | else | 485 | 3.32M | { | 486 | 3.32M | in->x_sym.x_misc.x_lnsz.x_lnno = GET_LNSZ_LNNO (abfd, ext); | 487 | 3.32M | in->x_sym.x_misc.x_lnsz.x_size = GET_LNSZ_SIZE (abfd, ext); | 488 | 3.32M | } | 489 | | | 490 | 3.82M | end: ; | 491 | | | 492 | | #ifdef COFF_ADJUST_AUX_IN_POST | 493 | | COFF_ADJUST_AUX_IN_POST (abfd, ext1, type, in_class, indx, numaux, in1); | 494 | | #endif | 495 | 3.82M | } |
coff-z8k.c:coff_swap_aux_in Line | Count | Source | 408 | 2.50M | { | 409 | 2.50M | AUXENT *ext = (AUXENT *) ext1; | 410 | 2.50M | union internal_auxent *in = (union internal_auxent *) in1; | 411 | | | 412 | | #ifdef COFF_ADJUST_AUX_IN_PRE | 413 | | COFF_ADJUST_AUX_IN_PRE (abfd, ext1, type, in_class, indx, numaux, in1); | 414 | | #endif | 415 | | | 416 | 2.50M | switch (in_class) | 417 | 2.50M | { | 418 | 52.5k | case C_FILE: | 419 | 52.5k | if (ext->x_file.x_fname[0] == 0) | 420 | 20.2k | { | 421 | 20.2k | in->x_file.x_n.x_n.x_zeroes = 0; | 422 | 20.2k | in->x_file.x_n.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset); | 423 | 20.2k | } | 424 | 32.2k | else | 425 | 32.2k | { | 426 | | #if FILNMLEN != E_FILNMLEN | 427 | | #error we need to cope with truncating or extending FILNMLEN | 428 | | #else | 429 | 32.2k | memcpy (in->x_file.x_n.x_fname, ext->x_file.x_fname, FILNMLEN); | 430 | 32.2k | #endif | 431 | 32.2k | } | 432 | 52.5k | goto end; | 433 | | | 434 | 49.5k | case C_STAT: | 435 | 49.5k | #ifdef C_LEAFSTAT | 436 | 52.9k | case C_LEAFSTAT: | 437 | 52.9k | #endif | 438 | 69.8k | case C_HIDDEN: | 439 | 69.8k | if (type == T_NULL) | 440 | 2.95k | { | 441 | 2.95k | in->x_scn.x_scnlen = GET_SCN_SCNLEN (abfd, ext); | 442 | 2.95k | in->x_scn.x_nreloc = GET_SCN_NRELOC (abfd, ext); | 443 | 2.95k | in->x_scn.x_nlinno = GET_SCN_NLINNO (abfd, ext); | 444 | | | 445 | | /* PE defines some extra fields; we zero them out for | 446 | | safety. */ | 447 | 2.95k | in->x_scn.x_checksum = 0; | 448 | 2.95k | in->x_scn.x_associated = 0; | 449 | 2.95k | in->x_scn.x_comdat = 0; | 450 | | | 451 | 2.95k | goto end; | 452 | 2.95k | } | 453 | 66.9k | break; | 454 | 2.50M | } | 455 | | | 456 | 2.44M | in->x_sym.x_tagndx.u32 = H_GET_32 (abfd, ext->x_sym.x_tagndx); | 457 | 2.44M | #ifndef NO_TVNDX | 458 | 2.44M | in->x_sym.x_tvndx = H_GET_16 (abfd, ext->x_sym.x_tvndx); | 459 | 2.44M | #endif | 460 | | | 461 | 2.44M | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 462 | 2.44M | || ISTAG (in_class)) | 463 | 370k | { | 464 | 370k | in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR (abfd, ext); | 465 | 370k | in->x_sym.x_fcnary.x_fcn.x_endndx.u32 = GET_FCN_ENDNDX (abfd, ext); | 466 | 370k | } | 467 | 2.07M | else | 468 | 2.07M | { | 469 | | #if DIMNUM != E_DIMNUM | 470 | | #error we need to cope with truncating or extending DIMNUM | 471 | | #endif | 472 | 2.07M | in->x_sym.x_fcnary.x_ary.x_dimen[0] = | 473 | 2.07M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 474 | 2.07M | in->x_sym.x_fcnary.x_ary.x_dimen[1] = | 475 | 2.07M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 476 | 2.07M | in->x_sym.x_fcnary.x_ary.x_dimen[2] = | 477 | 2.07M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 478 | 2.07M | in->x_sym.x_fcnary.x_ary.x_dimen[3] = | 479 | 2.07M | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 480 | 2.07M | } | 481 | | | 482 | 2.44M | if (ISFCN (type)) | 483 | 302k | in->x_sym.x_misc.x_fsize = H_GET_32 (abfd, ext->x_sym.x_misc.x_fsize); | 484 | 2.14M | else | 485 | 2.14M | { | 486 | 2.14M | in->x_sym.x_misc.x_lnsz.x_lnno = GET_LNSZ_LNNO (abfd, ext); | 487 | 2.14M | in->x_sym.x_misc.x_lnsz.x_size = GET_LNSZ_SIZE (abfd, ext); | 488 | 2.14M | } | 489 | | | 490 | 2.50M | end: ; | 491 | | | 492 | | #ifdef COFF_ADJUST_AUX_IN_POST | 493 | | COFF_ADJUST_AUX_IN_POST (abfd, ext1, type, in_class, indx, numaux, in1); | 494 | | #endif | 495 | 2.50M | } |
|
496 | | |
497 | | static unsigned int |
498 | | coff_swap_aux_out (bfd * abfd, |
499 | | void * inp, |
500 | | int type, |
501 | | int in_class, |
502 | | int indx ATTRIBUTE_UNUSED, |
503 | | int numaux ATTRIBUTE_UNUSED, |
504 | | void * extp) |
505 | 102 | { |
506 | 102 | union internal_auxent * in = (union internal_auxent *) inp; |
507 | 102 | AUXENT *ext = (AUXENT *) extp; |
508 | | |
509 | | #ifdef COFF_ADJUST_AUX_OUT_PRE |
510 | | COFF_ADJUST_AUX_OUT_PRE (abfd, inp, type, in_class, indx, numaux, extp); |
511 | | #endif |
512 | | |
513 | 102 | memset (ext, 0, AUXESZ); |
514 | | |
515 | 102 | switch (in_class) |
516 | 102 | { |
517 | 0 | case C_FILE: |
518 | 0 | if (in->x_file.x_n.x_fname[0] == 0) |
519 | 0 | { |
520 | 0 | H_PUT_32 (abfd, 0, ext->x_file.x_n.x_zeroes); |
521 | 0 | H_PUT_32 (abfd, in->x_file.x_n.x_n.x_offset, ext->x_file.x_n.x_offset); |
522 | 0 | } |
523 | 0 | else |
524 | 0 | { |
525 | | #if FILNMLEN != E_FILNMLEN |
526 | | #error we need to cope with truncating or extending FILNMLEN |
527 | | #else |
528 | 0 | memcpy (ext->x_file.x_fname, in->x_file.x_n.x_fname, FILNMLEN); |
529 | 0 | #endif |
530 | 0 | } |
531 | 0 | goto end; |
532 | | |
533 | 0 | case C_STAT: |
534 | 0 | #ifdef C_LEAFSTAT |
535 | 0 | case C_LEAFSTAT: |
536 | 0 | #endif |
537 | 0 | case C_HIDDEN: |
538 | 0 | if (type == T_NULL) |
539 | 0 | { |
540 | 0 | PUT_SCN_SCNLEN (abfd, in->x_scn.x_scnlen, ext); |
541 | 0 | PUT_SCN_NRELOC (abfd, in->x_scn.x_nreloc, ext); |
542 | 0 | PUT_SCN_NLINNO (abfd, in->x_scn.x_nlinno, ext); |
543 | 0 | goto end; |
544 | 0 | } |
545 | 0 | break; |
546 | 102 | } |
547 | | |
548 | 102 | H_PUT_32 (abfd, in->x_sym.x_tagndx.u32, ext->x_sym.x_tagndx); |
549 | 102 | #ifndef NO_TVNDX |
550 | 102 | H_PUT_16 (abfd, in->x_sym.x_tvndx, ext->x_sym.x_tvndx); |
551 | 102 | #endif |
552 | | |
553 | 102 | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) |
554 | 102 | || ISTAG (in_class)) |
555 | 0 | { |
556 | 0 | PUT_FCN_LNNOPTR (abfd, in->x_sym.x_fcnary.x_fcn.x_lnnoptr, ext); |
557 | 0 | PUT_FCN_ENDNDX (abfd, in->x_sym.x_fcnary.x_fcn.x_endndx.u32, ext); |
558 | 0 | } |
559 | 102 | else |
560 | 102 | { |
561 | | #if DIMNUM != E_DIMNUM |
562 | | #error we need to cope with truncating or extending DIMNUM |
563 | | #endif |
564 | 102 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[0], |
565 | 102 | ext->x_sym.x_fcnary.x_ary.x_dimen[0]); |
566 | 102 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[1], |
567 | 102 | ext->x_sym.x_fcnary.x_ary.x_dimen[1]); |
568 | 102 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[2], |
569 | 102 | ext->x_sym.x_fcnary.x_ary.x_dimen[2]); |
570 | 102 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[3], |
571 | 102 | ext->x_sym.x_fcnary.x_ary.x_dimen[3]); |
572 | 102 | } |
573 | | |
574 | 102 | if (ISFCN (type)) |
575 | 102 | H_PUT_32 (abfd, in->x_sym.x_misc.x_fsize, ext->x_sym.x_misc.x_fsize); |
576 | 102 | else |
577 | 102 | { |
578 | 102 | PUT_LNSZ_LNNO (abfd, in->x_sym.x_misc.x_lnsz.x_lnno, ext); |
579 | 102 | PUT_LNSZ_SIZE (abfd, in->x_sym.x_misc.x_lnsz.x_size, ext); |
580 | 102 | } |
581 | | |
582 | 102 | end: |
583 | | #ifdef COFF_ADJUST_AUX_OUT_POST |
584 | | COFF_ADJUST_AUX_OUT_POST (abfd, inp, type, in_class, indx, numaux, extp); |
585 | | #endif |
586 | 102 | return AUXESZ; |
587 | 102 | } coff-x86_64.c:coff_swap_aux_out Line | Count | Source | 505 | 102 | { | 506 | 102 | union internal_auxent * in = (union internal_auxent *) inp; | 507 | 102 | AUXENT *ext = (AUXENT *) extp; | 508 | | | 509 | | #ifdef COFF_ADJUST_AUX_OUT_PRE | 510 | | COFF_ADJUST_AUX_OUT_PRE (abfd, inp, type, in_class, indx, numaux, extp); | 511 | | #endif | 512 | | | 513 | 102 | memset (ext, 0, AUXESZ); | 514 | | | 515 | 102 | switch (in_class) | 516 | 102 | { | 517 | 0 | case C_FILE: | 518 | 0 | if (in->x_file.x_n.x_fname[0] == 0) | 519 | 0 | { | 520 | 0 | H_PUT_32 (abfd, 0, ext->x_file.x_n.x_zeroes); | 521 | 0 | H_PUT_32 (abfd, in->x_file.x_n.x_n.x_offset, ext->x_file.x_n.x_offset); | 522 | 0 | } | 523 | 0 | else | 524 | 0 | { | 525 | | #if FILNMLEN != E_FILNMLEN | 526 | | #error we need to cope with truncating or extending FILNMLEN | 527 | | #else | 528 | 0 | memcpy (ext->x_file.x_fname, in->x_file.x_n.x_fname, FILNMLEN); | 529 | 0 | #endif | 530 | 0 | } | 531 | 0 | goto end; | 532 | | | 533 | 0 | case C_STAT: | 534 | 0 | #ifdef C_LEAFSTAT | 535 | 0 | case C_LEAFSTAT: | 536 | 0 | #endif | 537 | 0 | case C_HIDDEN: | 538 | 0 | if (type == T_NULL) | 539 | 0 | { | 540 | 0 | PUT_SCN_SCNLEN (abfd, in->x_scn.x_scnlen, ext); | 541 | 0 | PUT_SCN_NRELOC (abfd, in->x_scn.x_nreloc, ext); | 542 | 0 | PUT_SCN_NLINNO (abfd, in->x_scn.x_nlinno, ext); | 543 | 0 | goto end; | 544 | 0 | } | 545 | 0 | break; | 546 | 102 | } | 547 | | | 548 | 102 | H_PUT_32 (abfd, in->x_sym.x_tagndx.u32, ext->x_sym.x_tagndx); | 549 | 102 | #ifndef NO_TVNDX | 550 | 102 | H_PUT_16 (abfd, in->x_sym.x_tvndx, ext->x_sym.x_tvndx); | 551 | 102 | #endif | 552 | | | 553 | 102 | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 554 | 102 | || ISTAG (in_class)) | 555 | 0 | { | 556 | 0 | PUT_FCN_LNNOPTR (abfd, in->x_sym.x_fcnary.x_fcn.x_lnnoptr, ext); | 557 | 0 | PUT_FCN_ENDNDX (abfd, in->x_sym.x_fcnary.x_fcn.x_endndx.u32, ext); | 558 | 0 | } | 559 | 102 | else | 560 | 102 | { | 561 | | #if DIMNUM != E_DIMNUM | 562 | | #error we need to cope with truncating or extending DIMNUM | 563 | | #endif | 564 | 102 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[0], | 565 | 102 | ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 566 | 102 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[1], | 567 | 102 | ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 568 | 102 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[2], | 569 | 102 | ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 570 | 102 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[3], | 571 | 102 | ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 572 | 102 | } | 573 | | | 574 | 102 | if (ISFCN (type)) | 575 | 102 | H_PUT_32 (abfd, in->x_sym.x_misc.x_fsize, ext->x_sym.x_misc.x_fsize); | 576 | 102 | else | 577 | 102 | { | 578 | 102 | PUT_LNSZ_LNNO (abfd, in->x_sym.x_misc.x_lnsz.x_lnno, ext); | 579 | 102 | PUT_LNSZ_SIZE (abfd, in->x_sym.x_misc.x_lnsz.x_size, ext); | 580 | 102 | } | 581 | | | 582 | 102 | end: | 583 | | #ifdef COFF_ADJUST_AUX_OUT_POST | 584 | | COFF_ADJUST_AUX_OUT_POST (abfd, inp, type, in_class, indx, numaux, extp); | 585 | | #endif | 586 | 102 | return AUXESZ; | 587 | 102 | } |
Unexecuted instantiation: cf-i386lynx.c:coff_swap_aux_out Unexecuted instantiation: coff-go32.c:coff_swap_aux_out Unexecuted instantiation: coff-i386.c:coff_swap_aux_out Unexecuted instantiation: coff-sh.c:coff_swap_aux_out Unexecuted instantiation: coff-stgo32.c:coff_swap_aux_out Unexecuted instantiation: coff-tic30.c:coff_swap_aux_out Unexecuted instantiation: coff-tic4x.c:coff_swap_aux_out Unexecuted instantiation: coff-tic54x.c:coff_swap_aux_out Unexecuted instantiation: coff-z80.c:coff_swap_aux_out Unexecuted instantiation: coff-z8k.c:coff_swap_aux_out |
588 | | |
589 | | #endif /* NO_COFF_SYMBOLS */ |
590 | | |
591 | | #ifndef NO_COFF_LINENOS |
592 | | |
593 | | static void |
594 | | coff_swap_lineno_in (bfd * abfd, void * ext1, void * in1) |
595 | 5.99M | { |
596 | 5.99M | LINENO *ext = (LINENO *) ext1; |
597 | 5.99M | struct internal_lineno *in = (struct internal_lineno *) in1; |
598 | | |
599 | 5.99M | in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx); |
600 | 5.99M | in->l_lnno = GET_LINENO_LNNO (abfd, ext); |
601 | 5.99M | } coff-x86_64.c:coff_swap_lineno_in Line | Count | Source | 595 | 929k | { | 596 | 929k | LINENO *ext = (LINENO *) ext1; | 597 | 929k | struct internal_lineno *in = (struct internal_lineno *) in1; | 598 | | | 599 | 929k | in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx); | 600 | 929k | in->l_lnno = GET_LINENO_LNNO (abfd, ext); | 601 | 929k | } |
Unexecuted instantiation: cf-i386lynx.c:coff_swap_lineno_in Unexecuted instantiation: coff-go32.c:coff_swap_lineno_in Unexecuted instantiation: coff-i386.c:coff_swap_lineno_in coff-rs6000.c:coff_swap_lineno_in Line | Count | Source | 595 | 547k | { | 596 | 547k | LINENO *ext = (LINENO *) ext1; | 597 | 547k | struct internal_lineno *in = (struct internal_lineno *) in1; | 598 | | | 599 | 547k | in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx); | 600 | 547k | in->l_lnno = GET_LINENO_LNNO (abfd, ext); | 601 | 547k | } |
coff-sh.c:coff_swap_lineno_in Line | Count | Source | 595 | 1.66M | { | 596 | 1.66M | LINENO *ext = (LINENO *) ext1; | 597 | 1.66M | struct internal_lineno *in = (struct internal_lineno *) in1; | 598 | | | 599 | 1.66M | in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx); | 600 | 1.66M | in->l_lnno = GET_LINENO_LNNO (abfd, ext); | 601 | 1.66M | } |
Unexecuted instantiation: coff-stgo32.c:coff_swap_lineno_in coff-tic30.c:coff_swap_lineno_in Line | Count | Source | 595 | 571k | { | 596 | 571k | LINENO *ext = (LINENO *) ext1; | 597 | 571k | struct internal_lineno *in = (struct internal_lineno *) in1; | 598 | | | 599 | 571k | in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx); | 600 | 571k | in->l_lnno = GET_LINENO_LNNO (abfd, ext); | 601 | 571k | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_lineno_in coff-tic54x.c:coff_swap_lineno_in Line | Count | Source | 595 | 1.08M | { | 596 | 1.08M | LINENO *ext = (LINENO *) ext1; | 597 | 1.08M | struct internal_lineno *in = (struct internal_lineno *) in1; | 598 | | | 599 | 1.08M | in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx); | 600 | 1.08M | in->l_lnno = GET_LINENO_LNNO (abfd, ext); | 601 | 1.08M | } |
coff-z80.c:coff_swap_lineno_in Line | Count | Source | 595 | 479k | { | 596 | 479k | LINENO *ext = (LINENO *) ext1; | 597 | 479k | struct internal_lineno *in = (struct internal_lineno *) in1; | 598 | | | 599 | 479k | in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx); | 600 | 479k | in->l_lnno = GET_LINENO_LNNO (abfd, ext); | 601 | 479k | } |
coff-z8k.c:coff_swap_lineno_in Line | Count | Source | 595 | 721k | { | 596 | 721k | LINENO *ext = (LINENO *) ext1; | 597 | 721k | struct internal_lineno *in = (struct internal_lineno *) in1; | 598 | | | 599 | 721k | in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx); | 600 | 721k | in->l_lnno = GET_LINENO_LNNO (abfd, ext); | 601 | 721k | } |
|
602 | | |
603 | | static unsigned int |
604 | | coff_swap_lineno_out (bfd * abfd, void * inp, void * outp) |
605 | 0 | { |
606 | 0 | struct internal_lineno *in = (struct internal_lineno *) inp; |
607 | 0 | struct external_lineno *ext = (struct external_lineno *) outp; |
608 | 0 | H_PUT_32 (abfd, in->l_addr.l_symndx, ext->l_addr.l_symndx); |
609 | |
|
610 | 0 | PUT_LINENO_LNNO (abfd, in->l_lnno, ext); |
611 | 0 | return LINESZ; |
612 | 0 | } Unexecuted instantiation: coff-x86_64.c:coff_swap_lineno_out Unexecuted instantiation: cf-i386lynx.c:coff_swap_lineno_out Unexecuted instantiation: coff-go32.c:coff_swap_lineno_out Unexecuted instantiation: coff-i386.c:coff_swap_lineno_out Unexecuted instantiation: coff-rs6000.c:coff_swap_lineno_out Unexecuted instantiation: coff-sh.c:coff_swap_lineno_out Unexecuted instantiation: coff-stgo32.c:coff_swap_lineno_out Unexecuted instantiation: coff-tic30.c:coff_swap_lineno_out Unexecuted instantiation: coff-tic4x.c:coff_swap_lineno_out Unexecuted instantiation: coff-tic54x.c:coff_swap_lineno_out Unexecuted instantiation: coff-z80.c:coff_swap_lineno_out Unexecuted instantiation: coff-z8k.c:coff_swap_lineno_out |
613 | | |
614 | | #endif /* NO_COFF_LINENOS */ |
615 | | |
616 | | static void |
617 | | coff_swap_aouthdr_in (bfd * abfd, void * aouthdr_ext1, void * aouthdr_int1) |
618 | 362k | { |
619 | 362k | AOUTHDR *aouthdr_ext; |
620 | 362k | struct internal_aouthdr *aouthdr_int; |
621 | | |
622 | 362k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; |
623 | 362k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; |
624 | 362k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); |
625 | 362k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); |
626 | 362k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); |
627 | 362k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); |
628 | 362k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); |
629 | 362k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); |
630 | 362k | aouthdr_int->text_start = |
631 | 362k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); |
632 | 362k | aouthdr_int->data_start = |
633 | 362k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); |
634 | | |
635 | | #ifdef RS6000COFF_C |
636 | | #ifdef XCOFF64 |
637 | 51.5k | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); |
638 | | #else |
639 | 32.3k | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); |
640 | | #endif |
641 | 83.9k | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); |
642 | 83.9k | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); |
643 | 83.9k | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); |
644 | 83.9k | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); |
645 | 83.9k | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); |
646 | 83.9k | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); |
647 | 83.9k | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); |
648 | 83.9k | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); |
649 | 83.9k | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); |
650 | 83.9k | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); |
651 | | #ifdef XCOFF64 |
652 | 51.5k | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); |
653 | 51.5k | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); |
654 | | #else |
655 | 32.3k | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); |
656 | 32.3k | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); |
657 | | #endif |
658 | | #endif |
659 | | |
660 | | #ifdef MIPSECOFF |
661 | 8.03k | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); |
662 | 8.03k | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); |
663 | 8.03k | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); |
664 | 8.03k | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); |
665 | 8.03k | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); |
666 | 8.03k | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); |
667 | 8.03k | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); |
668 | | #endif |
669 | | |
670 | | #ifdef ALPHAECOFF |
671 | 20.1k | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); |
672 | 20.1k | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); |
673 | 20.1k | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); |
674 | 20.1k | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); |
675 | | #endif |
676 | 362k | } coff-alpha.c:alpha_ecoff_swap_aouthdr_in Line | Count | Source | 618 | 20.1k | { | 619 | 20.1k | AOUTHDR *aouthdr_ext; | 620 | 20.1k | struct internal_aouthdr *aouthdr_int; | 621 | | | 622 | 20.1k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 623 | 20.1k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 624 | 20.1k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 625 | 20.1k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 626 | 20.1k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 627 | 20.1k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 628 | 20.1k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 629 | 20.1k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 630 | 20.1k | aouthdr_int->text_start = | 631 | 20.1k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 632 | 20.1k | aouthdr_int->data_start = | 633 | 20.1k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 634 | | | 635 | | #ifdef RS6000COFF_C | 636 | | #ifdef XCOFF64 | 637 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 638 | | #else | 639 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 640 | | #endif | 641 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 642 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 643 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 644 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 645 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 646 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 647 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 648 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 649 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 650 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 651 | | #ifdef XCOFF64 | 652 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 653 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 654 | | #else | 655 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 656 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 657 | | #endif | 658 | | #endif | 659 | | | 660 | | #ifdef MIPSECOFF | 661 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 662 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 663 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 664 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 665 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 666 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 667 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 668 | | #endif | 669 | | | 670 | 20.1k | #ifdef ALPHAECOFF | 671 | 20.1k | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 672 | 20.1k | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 673 | 20.1k | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 674 | 20.1k | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 675 | 20.1k | #endif | 676 | 20.1k | } |
coff-x86_64.c:coff_swap_aouthdr_in Line | Count | Source | 618 | 55.6k | { | 619 | 55.6k | AOUTHDR *aouthdr_ext; | 620 | 55.6k | struct internal_aouthdr *aouthdr_int; | 621 | | | 622 | 55.6k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 623 | 55.6k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 624 | 55.6k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 625 | 55.6k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 626 | 55.6k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 627 | 55.6k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 628 | 55.6k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 629 | 55.6k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 630 | 55.6k | aouthdr_int->text_start = | 631 | 55.6k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 632 | 55.6k | aouthdr_int->data_start = | 633 | 55.6k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 634 | | | 635 | | #ifdef RS6000COFF_C | 636 | | #ifdef XCOFF64 | 637 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 638 | | #else | 639 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 640 | | #endif | 641 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 642 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 643 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 644 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 645 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 646 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 647 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 648 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 649 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 650 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 651 | | #ifdef XCOFF64 | 652 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 653 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 654 | | #else | 655 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 656 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 657 | | #endif | 658 | | #endif | 659 | | | 660 | | #ifdef MIPSECOFF | 661 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 662 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 663 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 664 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 665 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 666 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 667 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 668 | | #endif | 669 | | | 670 | | #ifdef ALPHAECOFF | 671 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 672 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 673 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 674 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 675 | | #endif | 676 | 55.6k | } |
coff64-rs6000.c:coff_swap_aouthdr_in Line | Count | Source | 618 | 51.5k | { | 619 | 51.5k | AOUTHDR *aouthdr_ext; | 620 | 51.5k | struct internal_aouthdr *aouthdr_int; | 621 | | | 622 | 51.5k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 623 | 51.5k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 624 | 51.5k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 625 | 51.5k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 626 | 51.5k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 627 | 51.5k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 628 | 51.5k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 629 | 51.5k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 630 | 51.5k | aouthdr_int->text_start = | 631 | 51.5k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 632 | 51.5k | aouthdr_int->data_start = | 633 | 51.5k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 634 | | | 635 | 51.5k | #ifdef RS6000COFF_C | 636 | 51.5k | #ifdef XCOFF64 | 637 | 51.5k | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 638 | | #else | 639 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 640 | | #endif | 641 | 51.5k | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 642 | 51.5k | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 643 | 51.5k | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 644 | 51.5k | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 645 | 51.5k | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 646 | 51.5k | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 647 | 51.5k | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 648 | 51.5k | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 649 | 51.5k | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 650 | 51.5k | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 651 | 51.5k | #ifdef XCOFF64 | 652 | 51.5k | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 653 | 51.5k | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 654 | | #else | 655 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 656 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 657 | | #endif | 658 | 51.5k | #endif | 659 | | | 660 | | #ifdef MIPSECOFF | 661 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 662 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 663 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 664 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 665 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 666 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 667 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 668 | | #endif | 669 | | | 670 | | #ifdef ALPHAECOFF | 671 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 672 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 673 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 674 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 675 | | #endif | 676 | 51.5k | } |
cf-i386lynx.c:coff_swap_aouthdr_in Line | Count | Source | 618 | 30.8k | { | 619 | 30.8k | AOUTHDR *aouthdr_ext; | 620 | 30.8k | struct internal_aouthdr *aouthdr_int; | 621 | | | 622 | 30.8k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 623 | 30.8k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 624 | 30.8k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 625 | 30.8k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 626 | 30.8k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 627 | 30.8k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 628 | 30.8k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 629 | 30.8k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 630 | 30.8k | aouthdr_int->text_start = | 631 | 30.8k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 632 | 30.8k | aouthdr_int->data_start = | 633 | 30.8k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 634 | | | 635 | | #ifdef RS6000COFF_C | 636 | | #ifdef XCOFF64 | 637 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 638 | | #else | 639 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 640 | | #endif | 641 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 642 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 643 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 644 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 645 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 646 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 647 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 648 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 649 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 650 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 651 | | #ifdef XCOFF64 | 652 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 653 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 654 | | #else | 655 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 656 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 657 | | #endif | 658 | | #endif | 659 | | | 660 | | #ifdef MIPSECOFF | 661 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 662 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 663 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 664 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 665 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 666 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 667 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 668 | | #endif | 669 | | | 670 | | #ifdef ALPHAECOFF | 671 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 672 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 673 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 674 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 675 | | #endif | 676 | 30.8k | } |
coff-go32.c:coff_swap_aouthdr_in Line | Count | Source | 618 | 30.4k | { | 619 | 30.4k | AOUTHDR *aouthdr_ext; | 620 | 30.4k | struct internal_aouthdr *aouthdr_int; | 621 | | | 622 | 30.4k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 623 | 30.4k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 624 | 30.4k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 625 | 30.4k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 626 | 30.4k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 627 | 30.4k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 628 | 30.4k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 629 | 30.4k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 630 | 30.4k | aouthdr_int->text_start = | 631 | 30.4k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 632 | 30.4k | aouthdr_int->data_start = | 633 | 30.4k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 634 | | | 635 | | #ifdef RS6000COFF_C | 636 | | #ifdef XCOFF64 | 637 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 638 | | #else | 639 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 640 | | #endif | 641 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 642 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 643 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 644 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 645 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 646 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 647 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 648 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 649 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 650 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 651 | | #ifdef XCOFF64 | 652 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 653 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 654 | | #else | 655 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 656 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 657 | | #endif | 658 | | #endif | 659 | | | 660 | | #ifdef MIPSECOFF | 661 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 662 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 663 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 664 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 665 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 666 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 667 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 668 | | #endif | 669 | | | 670 | | #ifdef ALPHAECOFF | 671 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 672 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 673 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 674 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 675 | | #endif | 676 | 30.4k | } |
coff-i386.c:coff_swap_aouthdr_in Line | Count | Source | 618 | 30.4k | { | 619 | 30.4k | AOUTHDR *aouthdr_ext; | 620 | 30.4k | struct internal_aouthdr *aouthdr_int; | 621 | | | 622 | 30.4k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 623 | 30.4k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 624 | 30.4k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 625 | 30.4k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 626 | 30.4k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 627 | 30.4k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 628 | 30.4k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 629 | 30.4k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 630 | 30.4k | aouthdr_int->text_start = | 631 | 30.4k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 632 | 30.4k | aouthdr_int->data_start = | 633 | 30.4k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 634 | | | 635 | | #ifdef RS6000COFF_C | 636 | | #ifdef XCOFF64 | 637 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 638 | | #else | 639 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 640 | | #endif | 641 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 642 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 643 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 644 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 645 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 646 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 647 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 648 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 649 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 650 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 651 | | #ifdef XCOFF64 | 652 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 653 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 654 | | #else | 655 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 656 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 657 | | #endif | 658 | | #endif | 659 | | | 660 | | #ifdef MIPSECOFF | 661 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 662 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 663 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 664 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 665 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 666 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 667 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 668 | | #endif | 669 | | | 670 | | #ifdef ALPHAECOFF | 671 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 672 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 673 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 674 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 675 | | #endif | 676 | 30.4k | } |
coff-mips.c:mips_ecoff_swap_aouthdr_in Line | Count | Source | 618 | 8.03k | { | 619 | 8.03k | AOUTHDR *aouthdr_ext; | 620 | 8.03k | struct internal_aouthdr *aouthdr_int; | 621 | | | 622 | 8.03k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 623 | 8.03k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 624 | 8.03k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 625 | 8.03k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 626 | 8.03k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 627 | 8.03k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 628 | 8.03k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 629 | 8.03k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 630 | 8.03k | aouthdr_int->text_start = | 631 | 8.03k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 632 | 8.03k | aouthdr_int->data_start = | 633 | 8.03k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 634 | | | 635 | | #ifdef RS6000COFF_C | 636 | | #ifdef XCOFF64 | 637 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 638 | | #else | 639 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 640 | | #endif | 641 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 642 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 643 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 644 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 645 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 646 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 647 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 648 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 649 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 650 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 651 | | #ifdef XCOFF64 | 652 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 653 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 654 | | #else | 655 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 656 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 657 | | #endif | 658 | | #endif | 659 | | | 660 | 8.03k | #ifdef MIPSECOFF | 661 | 8.03k | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 662 | 8.03k | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 663 | 8.03k | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 664 | 8.03k | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 665 | 8.03k | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 666 | 8.03k | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 667 | 8.03k | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 668 | 8.03k | #endif | 669 | | | 670 | | #ifdef ALPHAECOFF | 671 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 672 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 673 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 674 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 675 | | #endif | 676 | 8.03k | } |
coff-rs6000.c:coff_swap_aouthdr_in Line | Count | Source | 618 | 32.3k | { | 619 | 32.3k | AOUTHDR *aouthdr_ext; | 620 | 32.3k | struct internal_aouthdr *aouthdr_int; | 621 | | | 622 | 32.3k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 623 | 32.3k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 624 | 32.3k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 625 | 32.3k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 626 | 32.3k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 627 | 32.3k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 628 | 32.3k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 629 | 32.3k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 630 | 32.3k | aouthdr_int->text_start = | 631 | 32.3k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 632 | 32.3k | aouthdr_int->data_start = | 633 | 32.3k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 634 | | | 635 | 32.3k | #ifdef RS6000COFF_C | 636 | | #ifdef XCOFF64 | 637 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 638 | | #else | 639 | 32.3k | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 640 | 32.3k | #endif | 641 | 32.3k | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 642 | 32.3k | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 643 | 32.3k | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 644 | 32.3k | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 645 | 32.3k | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 646 | 32.3k | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 647 | 32.3k | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 648 | 32.3k | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 649 | 32.3k | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 650 | 32.3k | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 651 | | #ifdef XCOFF64 | 652 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 653 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 654 | | #else | 655 | 32.3k | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 656 | 32.3k | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 657 | 32.3k | #endif | 658 | 32.3k | #endif | 659 | | | 660 | | #ifdef MIPSECOFF | 661 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 662 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 663 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 664 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 665 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 666 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 667 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 668 | | #endif | 669 | | | 670 | | #ifdef ALPHAECOFF | 671 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 672 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 673 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 674 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 675 | | #endif | 676 | 32.3k | } |
coff-sh.c:coff_swap_aouthdr_in Line | Count | Source | 618 | 22.3k | { | 619 | 22.3k | AOUTHDR *aouthdr_ext; | 620 | 22.3k | struct internal_aouthdr *aouthdr_int; | 621 | | | 622 | 22.3k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 623 | 22.3k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 624 | 22.3k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 625 | 22.3k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 626 | 22.3k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 627 | 22.3k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 628 | 22.3k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 629 | 22.3k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 630 | 22.3k | aouthdr_int->text_start = | 631 | 22.3k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 632 | 22.3k | aouthdr_int->data_start = | 633 | 22.3k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 634 | | | 635 | | #ifdef RS6000COFF_C | 636 | | #ifdef XCOFF64 | 637 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 638 | | #else | 639 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 640 | | #endif | 641 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 642 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 643 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 644 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 645 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 646 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 647 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 648 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 649 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 650 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 651 | | #ifdef XCOFF64 | 652 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 653 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 654 | | #else | 655 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 656 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 657 | | #endif | 658 | | #endif | 659 | | | 660 | | #ifdef MIPSECOFF | 661 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 662 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 663 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 664 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 665 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 666 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 667 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 668 | | #endif | 669 | | | 670 | | #ifdef ALPHAECOFF | 671 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 672 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 673 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 674 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 675 | | #endif | 676 | 22.3k | } |
coff-stgo32.c:coff_swap_aouthdr_in Line | Count | Source | 618 | 446 | { | 619 | 446 | AOUTHDR *aouthdr_ext; | 620 | 446 | struct internal_aouthdr *aouthdr_int; | 621 | | | 622 | 446 | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 623 | 446 | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 624 | 446 | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 625 | 446 | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 626 | 446 | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 627 | 446 | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 628 | 446 | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 629 | 446 | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 630 | 446 | aouthdr_int->text_start = | 631 | 446 | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 632 | 446 | aouthdr_int->data_start = | 633 | 446 | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 634 | | | 635 | | #ifdef RS6000COFF_C | 636 | | #ifdef XCOFF64 | 637 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 638 | | #else | 639 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 640 | | #endif | 641 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 642 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 643 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 644 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 645 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 646 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 647 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 648 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 649 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 650 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 651 | | #ifdef XCOFF64 | 652 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 653 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 654 | | #else | 655 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 656 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 657 | | #endif | 658 | | #endif | 659 | | | 660 | | #ifdef MIPSECOFF | 661 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 662 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 663 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 664 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 665 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 666 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 667 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 668 | | #endif | 669 | | | 670 | | #ifdef ALPHAECOFF | 671 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 672 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 673 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 674 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 675 | | #endif | 676 | 446 | } |
coff-tic30.c:coff_swap_aouthdr_in Line | Count | Source | 618 | 11.2k | { | 619 | 11.2k | AOUTHDR *aouthdr_ext; | 620 | 11.2k | struct internal_aouthdr *aouthdr_int; | 621 | | | 622 | 11.2k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 623 | 11.2k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 624 | 11.2k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 625 | 11.2k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 626 | 11.2k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 627 | 11.2k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 628 | 11.2k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 629 | 11.2k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 630 | 11.2k | aouthdr_int->text_start = | 631 | 11.2k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 632 | 11.2k | aouthdr_int->data_start = | 633 | 11.2k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 634 | | | 635 | | #ifdef RS6000COFF_C | 636 | | #ifdef XCOFF64 | 637 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 638 | | #else | 639 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 640 | | #endif | 641 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 642 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 643 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 644 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 645 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 646 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 647 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 648 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 649 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 650 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 651 | | #ifdef XCOFF64 | 652 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 653 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 654 | | #else | 655 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 656 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 657 | | #endif | 658 | | #endif | 659 | | | 660 | | #ifdef MIPSECOFF | 661 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 662 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 663 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 664 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 665 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 666 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 667 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 668 | | #endif | 669 | | | 670 | | #ifdef ALPHAECOFF | 671 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 672 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 673 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 674 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 675 | | #endif | 676 | 11.2k | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_aouthdr_in coff-tic54x.c:coff_swap_aouthdr_in Line | Count | Source | 618 | 36.3k | { | 619 | 36.3k | AOUTHDR *aouthdr_ext; | 620 | 36.3k | struct internal_aouthdr *aouthdr_int; | 621 | | | 622 | 36.3k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 623 | 36.3k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 624 | 36.3k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 625 | 36.3k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 626 | 36.3k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 627 | 36.3k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 628 | 36.3k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 629 | 36.3k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 630 | 36.3k | aouthdr_int->text_start = | 631 | 36.3k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 632 | 36.3k | aouthdr_int->data_start = | 633 | 36.3k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 634 | | | 635 | | #ifdef RS6000COFF_C | 636 | | #ifdef XCOFF64 | 637 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 638 | | #else | 639 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 640 | | #endif | 641 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 642 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 643 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 644 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 645 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 646 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 647 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 648 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 649 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 650 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 651 | | #ifdef XCOFF64 | 652 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 653 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 654 | | #else | 655 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 656 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 657 | | #endif | 658 | | #endif | 659 | | | 660 | | #ifdef MIPSECOFF | 661 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 662 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 663 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 664 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 665 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 666 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 667 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 668 | | #endif | 669 | | | 670 | | #ifdef ALPHAECOFF | 671 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 672 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 673 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 674 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 675 | | #endif | 676 | 36.3k | } |
coff-z80.c:coff_swap_aouthdr_in Line | Count | Source | 618 | 9.85k | { | 619 | 9.85k | AOUTHDR *aouthdr_ext; | 620 | 9.85k | struct internal_aouthdr *aouthdr_int; | 621 | | | 622 | 9.85k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 623 | 9.85k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 624 | 9.85k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 625 | 9.85k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 626 | 9.85k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 627 | 9.85k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 628 | 9.85k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 629 | 9.85k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 630 | 9.85k | aouthdr_int->text_start = | 631 | 9.85k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 632 | 9.85k | aouthdr_int->data_start = | 633 | 9.85k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 634 | | | 635 | | #ifdef RS6000COFF_C | 636 | | #ifdef XCOFF64 | 637 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 638 | | #else | 639 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 640 | | #endif | 641 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 642 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 643 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 644 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 645 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 646 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 647 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 648 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 649 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 650 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 651 | | #ifdef XCOFF64 | 652 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 653 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 654 | | #else | 655 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 656 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 657 | | #endif | 658 | | #endif | 659 | | | 660 | | #ifdef MIPSECOFF | 661 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 662 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 663 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 664 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 665 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 666 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 667 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 668 | | #endif | 669 | | | 670 | | #ifdef ALPHAECOFF | 671 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 672 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 673 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 674 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 675 | | #endif | 676 | 9.85k | } |
coff-z8k.c:coff_swap_aouthdr_in Line | Count | Source | 618 | 22.9k | { | 619 | 22.9k | AOUTHDR *aouthdr_ext; | 620 | 22.9k | struct internal_aouthdr *aouthdr_int; | 621 | | | 622 | 22.9k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 623 | 22.9k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 624 | 22.9k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 625 | 22.9k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 626 | 22.9k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 627 | 22.9k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 628 | 22.9k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 629 | 22.9k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 630 | 22.9k | aouthdr_int->text_start = | 631 | 22.9k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 632 | 22.9k | aouthdr_int->data_start = | 633 | 22.9k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 634 | | | 635 | | #ifdef RS6000COFF_C | 636 | | #ifdef XCOFF64 | 637 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 638 | | #else | 639 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 640 | | #endif | 641 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 642 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 643 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 644 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 645 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 646 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 647 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 648 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 649 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 650 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 651 | | #ifdef XCOFF64 | 652 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 653 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 654 | | #else | 655 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 656 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 657 | | #endif | 658 | | #endif | 659 | | | 660 | | #ifdef MIPSECOFF | 661 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 662 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 663 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 664 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 665 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 666 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 667 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 668 | | #endif | 669 | | | 670 | | #ifdef ALPHAECOFF | 671 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 672 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 673 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 674 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 675 | | #endif | 676 | 22.9k | } |
|
677 | | |
678 | | static unsigned int |
679 | | coff_swap_aouthdr_out (bfd * abfd, void * in, void * out) |
680 | 2 | { |
681 | 2 | struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *) in; |
682 | 2 | AOUTHDR *aouthdr_out = (AOUTHDR *) out; |
683 | | |
684 | 2 | H_PUT_16 (abfd, aouthdr_in->magic, aouthdr_out->magic); |
685 | 2 | H_PUT_16 (abfd, aouthdr_in->vstamp, aouthdr_out->vstamp); |
686 | 2 | PUT_AOUTHDR_TSIZE (abfd, aouthdr_in->tsize, aouthdr_out->tsize); |
687 | 2 | PUT_AOUTHDR_DSIZE (abfd, aouthdr_in->dsize, aouthdr_out->dsize); |
688 | 2 | PUT_AOUTHDR_BSIZE (abfd, aouthdr_in->bsize, aouthdr_out->bsize); |
689 | 2 | PUT_AOUTHDR_ENTRY (abfd, aouthdr_in->entry, aouthdr_out->entry); |
690 | 2 | PUT_AOUTHDR_TEXT_START (abfd, aouthdr_in->text_start, |
691 | 2 | aouthdr_out->text_start); |
692 | 2 | PUT_AOUTHDR_DATA_START (abfd, aouthdr_in->data_start, |
693 | 2 | aouthdr_out->data_start); |
694 | | |
695 | | #ifdef RS6000COFF_C |
696 | | #ifdef XCOFF64 |
697 | 0 | H_PUT_64 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); |
698 | | #else |
699 | 0 | H_PUT_32 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); |
700 | | #endif |
701 | 0 | H_PUT_16 (abfd, aouthdr_in->o_snentry, aouthdr_out->o_snentry); |
702 | 0 | H_PUT_16 (abfd, aouthdr_in->o_sntext, aouthdr_out->o_sntext); |
703 | 0 | H_PUT_16 (abfd, aouthdr_in->o_sndata, aouthdr_out->o_sndata); |
704 | 0 | H_PUT_16 (abfd, aouthdr_in->o_sntoc, aouthdr_out->o_sntoc); |
705 | 0 | H_PUT_16 (abfd, aouthdr_in->o_snloader, aouthdr_out->o_snloader); |
706 | 0 | H_PUT_16 (abfd, aouthdr_in->o_snbss, aouthdr_out->o_snbss); |
707 | 0 | H_PUT_16 (abfd, aouthdr_in->o_algntext, aouthdr_out->o_algntext); |
708 | 0 | H_PUT_16 (abfd, aouthdr_in->o_algndata, aouthdr_out->o_algndata); |
709 | 0 | H_PUT_16 (abfd, aouthdr_in->o_modtype, aouthdr_out->o_modtype); |
710 | 0 | H_PUT_16 (abfd, aouthdr_in->o_cputype, aouthdr_out->o_cputype); |
711 | | #ifdef XCOFF64 |
712 | 0 | H_PUT_64 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); |
713 | 0 | H_PUT_64 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); |
714 | | #else |
715 | 0 | H_PUT_32 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); |
716 | 0 | H_PUT_32 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); |
717 | | #endif |
718 | | /* TODO: set o_*psize dynamically */ |
719 | 0 | H_PUT_8 (abfd, 0, aouthdr_out->o_textpsize); |
720 | 0 | H_PUT_8 (abfd, 0, aouthdr_out->o_datapsize); |
721 | 0 | H_PUT_8 (abfd, 0, aouthdr_out->o_stackpsize); |
722 | 0 | H_PUT_8 (abfd, aouthdr_in->o_flags, aouthdr_out->o_flags); |
723 | 0 | H_PUT_16 (abfd, aouthdr_in->o_sntdata, aouthdr_out->o_sntdata); |
724 | 0 | H_PUT_16 (abfd, aouthdr_in->o_sntbss, aouthdr_out->o_sntbss); |
725 | 0 | H_PUT_32 (abfd, 0, aouthdr_out->o_debugger); |
726 | | #ifdef XCOFF64 |
727 | 0 | H_PUT_16 (abfd, aouthdr_in->o_x64flags, aouthdr_out->o_x64flags); |
728 | | memset (aouthdr_out->o_resv3, 0, sizeof aouthdr_out->o_resv3); |
729 | | #endif |
730 | | #endif |
731 | | |
732 | | #ifdef MIPSECOFF |
733 | 1 | H_PUT_32 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); |
734 | 1 | H_PUT_32 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); |
735 | 1 | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); |
736 | 1 | H_PUT_32 (abfd, aouthdr_in->cprmask[0], aouthdr_out->cprmask[0]); |
737 | 1 | H_PUT_32 (abfd, aouthdr_in->cprmask[1], aouthdr_out->cprmask[1]); |
738 | 1 | H_PUT_32 (abfd, aouthdr_in->cprmask[2], aouthdr_out->cprmask[2]); |
739 | 1 | H_PUT_32 (abfd, aouthdr_in->cprmask[3], aouthdr_out->cprmask[3]); |
740 | | #endif |
741 | | |
742 | | #ifdef ALPHAECOFF |
743 | | /* FIXME: What does bldrev mean? */ |
744 | 1 | H_PUT_16 (abfd, 2, aouthdr_out->bldrev); |
745 | 1 | H_PUT_16 (abfd, 0, aouthdr_out->padding); |
746 | 1 | H_PUT_64 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); |
747 | 1 | H_PUT_64 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); |
748 | 1 | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); |
749 | 1 | H_PUT_32 (abfd, aouthdr_in->fprmask, aouthdr_out->fprmask); |
750 | | #endif |
751 | | |
752 | 2 | return AOUTSZ; |
753 | 2 | } coff-alpha.c:alpha_ecoff_swap_aouthdr_out Line | Count | Source | 680 | 1 | { | 681 | 1 | struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *) in; | 682 | 1 | AOUTHDR *aouthdr_out = (AOUTHDR *) out; | 683 | | | 684 | 1 | H_PUT_16 (abfd, aouthdr_in->magic, aouthdr_out->magic); | 685 | 1 | H_PUT_16 (abfd, aouthdr_in->vstamp, aouthdr_out->vstamp); | 686 | 1 | PUT_AOUTHDR_TSIZE (abfd, aouthdr_in->tsize, aouthdr_out->tsize); | 687 | 1 | PUT_AOUTHDR_DSIZE (abfd, aouthdr_in->dsize, aouthdr_out->dsize); | 688 | 1 | PUT_AOUTHDR_BSIZE (abfd, aouthdr_in->bsize, aouthdr_out->bsize); | 689 | 1 | PUT_AOUTHDR_ENTRY (abfd, aouthdr_in->entry, aouthdr_out->entry); | 690 | 1 | PUT_AOUTHDR_TEXT_START (abfd, aouthdr_in->text_start, | 691 | 1 | aouthdr_out->text_start); | 692 | 1 | PUT_AOUTHDR_DATA_START (abfd, aouthdr_in->data_start, | 693 | 1 | aouthdr_out->data_start); | 694 | | | 695 | | #ifdef RS6000COFF_C | 696 | | #ifdef XCOFF64 | 697 | | H_PUT_64 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 698 | | #else | 699 | | H_PUT_32 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 700 | | #endif | 701 | | H_PUT_16 (abfd, aouthdr_in->o_snentry, aouthdr_out->o_snentry); | 702 | | H_PUT_16 (abfd, aouthdr_in->o_sntext, aouthdr_out->o_sntext); | 703 | | H_PUT_16 (abfd, aouthdr_in->o_sndata, aouthdr_out->o_sndata); | 704 | | H_PUT_16 (abfd, aouthdr_in->o_sntoc, aouthdr_out->o_sntoc); | 705 | | H_PUT_16 (abfd, aouthdr_in->o_snloader, aouthdr_out->o_snloader); | 706 | | H_PUT_16 (abfd, aouthdr_in->o_snbss, aouthdr_out->o_snbss); | 707 | | H_PUT_16 (abfd, aouthdr_in->o_algntext, aouthdr_out->o_algntext); | 708 | | H_PUT_16 (abfd, aouthdr_in->o_algndata, aouthdr_out->o_algndata); | 709 | | H_PUT_16 (abfd, aouthdr_in->o_modtype, aouthdr_out->o_modtype); | 710 | | H_PUT_16 (abfd, aouthdr_in->o_cputype, aouthdr_out->o_cputype); | 711 | | #ifdef XCOFF64 | 712 | | H_PUT_64 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 713 | | H_PUT_64 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 714 | | #else | 715 | | H_PUT_32 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 716 | | H_PUT_32 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 717 | | #endif | 718 | | /* TODO: set o_*psize dynamically */ | 719 | | H_PUT_8 (abfd, 0, aouthdr_out->o_textpsize); | 720 | | H_PUT_8 (abfd, 0, aouthdr_out->o_datapsize); | 721 | | H_PUT_8 (abfd, 0, aouthdr_out->o_stackpsize); | 722 | | H_PUT_8 (abfd, aouthdr_in->o_flags, aouthdr_out->o_flags); | 723 | | H_PUT_16 (abfd, aouthdr_in->o_sntdata, aouthdr_out->o_sntdata); | 724 | | H_PUT_16 (abfd, aouthdr_in->o_sntbss, aouthdr_out->o_sntbss); | 725 | | H_PUT_32 (abfd, 0, aouthdr_out->o_debugger); | 726 | | #ifdef XCOFF64 | 727 | | H_PUT_16 (abfd, aouthdr_in->o_x64flags, aouthdr_out->o_x64flags); | 728 | | memset (aouthdr_out->o_resv3, 0, sizeof aouthdr_out->o_resv3); | 729 | | #endif | 730 | | #endif | 731 | | | 732 | | #ifdef MIPSECOFF | 733 | | H_PUT_32 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 734 | | H_PUT_32 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 735 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 736 | | H_PUT_32 (abfd, aouthdr_in->cprmask[0], aouthdr_out->cprmask[0]); | 737 | | H_PUT_32 (abfd, aouthdr_in->cprmask[1], aouthdr_out->cprmask[1]); | 738 | | H_PUT_32 (abfd, aouthdr_in->cprmask[2], aouthdr_out->cprmask[2]); | 739 | | H_PUT_32 (abfd, aouthdr_in->cprmask[3], aouthdr_out->cprmask[3]); | 740 | | #endif | 741 | | | 742 | 1 | #ifdef ALPHAECOFF | 743 | | /* FIXME: What does bldrev mean? */ | 744 | 1 | H_PUT_16 (abfd, 2, aouthdr_out->bldrev); | 745 | 1 | H_PUT_16 (abfd, 0, aouthdr_out->padding); | 746 | 1 | H_PUT_64 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 747 | 1 | H_PUT_64 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 748 | 1 | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 749 | 1 | H_PUT_32 (abfd, aouthdr_in->fprmask, aouthdr_out->fprmask); | 750 | 1 | #endif | 751 | | | 752 | 1 | return AOUTSZ; | 753 | 1 | } |
Unexecuted instantiation: coff-x86_64.c:coff_swap_aouthdr_out Unexecuted instantiation: coff64-rs6000.c:coff_swap_aouthdr_out Unexecuted instantiation: cf-i386lynx.c:coff_swap_aouthdr_out Unexecuted instantiation: coff-go32.c:coff_swap_aouthdr_out Unexecuted instantiation: coff-i386.c:coff_swap_aouthdr_out coff-mips.c:mips_ecoff_swap_aouthdr_out Line | Count | Source | 680 | 1 | { | 681 | 1 | struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *) in; | 682 | 1 | AOUTHDR *aouthdr_out = (AOUTHDR *) out; | 683 | | | 684 | 1 | H_PUT_16 (abfd, aouthdr_in->magic, aouthdr_out->magic); | 685 | 1 | H_PUT_16 (abfd, aouthdr_in->vstamp, aouthdr_out->vstamp); | 686 | 1 | PUT_AOUTHDR_TSIZE (abfd, aouthdr_in->tsize, aouthdr_out->tsize); | 687 | 1 | PUT_AOUTHDR_DSIZE (abfd, aouthdr_in->dsize, aouthdr_out->dsize); | 688 | 1 | PUT_AOUTHDR_BSIZE (abfd, aouthdr_in->bsize, aouthdr_out->bsize); | 689 | 1 | PUT_AOUTHDR_ENTRY (abfd, aouthdr_in->entry, aouthdr_out->entry); | 690 | 1 | PUT_AOUTHDR_TEXT_START (abfd, aouthdr_in->text_start, | 691 | 1 | aouthdr_out->text_start); | 692 | 1 | PUT_AOUTHDR_DATA_START (abfd, aouthdr_in->data_start, | 693 | 1 | aouthdr_out->data_start); | 694 | | | 695 | | #ifdef RS6000COFF_C | 696 | | #ifdef XCOFF64 | 697 | | H_PUT_64 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 698 | | #else | 699 | | H_PUT_32 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 700 | | #endif | 701 | | H_PUT_16 (abfd, aouthdr_in->o_snentry, aouthdr_out->o_snentry); | 702 | | H_PUT_16 (abfd, aouthdr_in->o_sntext, aouthdr_out->o_sntext); | 703 | | H_PUT_16 (abfd, aouthdr_in->o_sndata, aouthdr_out->o_sndata); | 704 | | H_PUT_16 (abfd, aouthdr_in->o_sntoc, aouthdr_out->o_sntoc); | 705 | | H_PUT_16 (abfd, aouthdr_in->o_snloader, aouthdr_out->o_snloader); | 706 | | H_PUT_16 (abfd, aouthdr_in->o_snbss, aouthdr_out->o_snbss); | 707 | | H_PUT_16 (abfd, aouthdr_in->o_algntext, aouthdr_out->o_algntext); | 708 | | H_PUT_16 (abfd, aouthdr_in->o_algndata, aouthdr_out->o_algndata); | 709 | | H_PUT_16 (abfd, aouthdr_in->o_modtype, aouthdr_out->o_modtype); | 710 | | H_PUT_16 (abfd, aouthdr_in->o_cputype, aouthdr_out->o_cputype); | 711 | | #ifdef XCOFF64 | 712 | | H_PUT_64 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 713 | | H_PUT_64 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 714 | | #else | 715 | | H_PUT_32 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 716 | | H_PUT_32 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 717 | | #endif | 718 | | /* TODO: set o_*psize dynamically */ | 719 | | H_PUT_8 (abfd, 0, aouthdr_out->o_textpsize); | 720 | | H_PUT_8 (abfd, 0, aouthdr_out->o_datapsize); | 721 | | H_PUT_8 (abfd, 0, aouthdr_out->o_stackpsize); | 722 | | H_PUT_8 (abfd, aouthdr_in->o_flags, aouthdr_out->o_flags); | 723 | | H_PUT_16 (abfd, aouthdr_in->o_sntdata, aouthdr_out->o_sntdata); | 724 | | H_PUT_16 (abfd, aouthdr_in->o_sntbss, aouthdr_out->o_sntbss); | 725 | | H_PUT_32 (abfd, 0, aouthdr_out->o_debugger); | 726 | | #ifdef XCOFF64 | 727 | | H_PUT_16 (abfd, aouthdr_in->o_x64flags, aouthdr_out->o_x64flags); | 728 | | memset (aouthdr_out->o_resv3, 0, sizeof aouthdr_out->o_resv3); | 729 | | #endif | 730 | | #endif | 731 | | | 732 | 1 | #ifdef MIPSECOFF | 733 | 1 | H_PUT_32 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 734 | 1 | H_PUT_32 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 735 | 1 | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 736 | 1 | H_PUT_32 (abfd, aouthdr_in->cprmask[0], aouthdr_out->cprmask[0]); | 737 | 1 | H_PUT_32 (abfd, aouthdr_in->cprmask[1], aouthdr_out->cprmask[1]); | 738 | 1 | H_PUT_32 (abfd, aouthdr_in->cprmask[2], aouthdr_out->cprmask[2]); | 739 | 1 | H_PUT_32 (abfd, aouthdr_in->cprmask[3], aouthdr_out->cprmask[3]); | 740 | 1 | #endif | 741 | | | 742 | | #ifdef ALPHAECOFF | 743 | | /* FIXME: What does bldrev mean? */ | 744 | | H_PUT_16 (abfd, 2, aouthdr_out->bldrev); | 745 | | H_PUT_16 (abfd, 0, aouthdr_out->padding); | 746 | | H_PUT_64 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 747 | | H_PUT_64 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 748 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 749 | | H_PUT_32 (abfd, aouthdr_in->fprmask, aouthdr_out->fprmask); | 750 | | #endif | 751 | | | 752 | 1 | return AOUTSZ; | 753 | 1 | } |
Unexecuted instantiation: coff-rs6000.c:coff_swap_aouthdr_out Unexecuted instantiation: coff-sh.c:coff_swap_aouthdr_out Unexecuted instantiation: coff-stgo32.c:coff_swap_aouthdr_out Unexecuted instantiation: coff-tic30.c:coff_swap_aouthdr_out Unexecuted instantiation: coff-tic4x.c:coff_swap_aouthdr_out Unexecuted instantiation: coff-tic54x.c:coff_swap_aouthdr_out Unexecuted instantiation: coff-z80.c:coff_swap_aouthdr_out Unexecuted instantiation: coff-z8k.c:coff_swap_aouthdr_out |
754 | | |
755 | | ATTRIBUTE_UNUSED |
756 | | static void |
757 | | coff_swap_scnhdr_in (bfd * abfd, void * ext, void * in) |
758 | 129M | { |
759 | 129M | SCNHDR *scnhdr_ext = (SCNHDR *) ext; |
760 | 129M | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; |
761 | | |
762 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE |
763 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); |
764 | | #endif |
765 | 129M | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); |
766 | | |
767 | 129M | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); |
768 | 129M | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); |
769 | 129M | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); |
770 | | |
771 | 129M | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); |
772 | 129M | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); |
773 | 129M | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); |
774 | 129M | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); |
775 | 129M | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); |
776 | 129M | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); |
777 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST |
778 | 13.0M | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); |
779 | | #endif |
780 | 129M | } coff-alpha.c:alpha_ecoff_swap_scnhdr_in Line | Count | Source | 758 | 120k | { | 759 | 120k | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 760 | 120k | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 761 | | | 762 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 763 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 764 | | #endif | 765 | 120k | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 766 | | | 767 | 120k | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 768 | 120k | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 769 | 120k | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 770 | | | 771 | 120k | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 772 | 120k | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 773 | 120k | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 774 | 120k | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 775 | 120k | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 776 | 120k | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 777 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 778 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 779 | | #endif | 780 | 120k | } |
coff-x86_64.c:coff_swap_scnhdr_in Line | Count | Source | 758 | 19.0M | { | 759 | 19.0M | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 760 | 19.0M | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 761 | | | 762 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 763 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 764 | | #endif | 765 | 19.0M | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 766 | | | 767 | 19.0M | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 768 | 19.0M | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 769 | 19.0M | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 770 | | | 771 | 19.0M | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 772 | 19.0M | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 773 | 19.0M | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 774 | 19.0M | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 775 | 19.0M | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 776 | 19.0M | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 777 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 778 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 779 | | #endif | 780 | 19.0M | } |
coff64-rs6000.c:coff_swap_scnhdr_in Line | Count | Source | 758 | 3.50M | { | 759 | 3.50M | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 760 | 3.50M | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 761 | | | 762 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 763 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 764 | | #endif | 765 | 3.50M | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 766 | | | 767 | 3.50M | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 768 | 3.50M | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 769 | 3.50M | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 770 | | | 771 | 3.50M | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 772 | 3.50M | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 773 | 3.50M | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 774 | 3.50M | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 775 | 3.50M | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 776 | 3.50M | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 777 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 778 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 779 | | #endif | 780 | 3.50M | } |
cf-i386lynx.c:coff_swap_scnhdr_in Line | Count | Source | 758 | 7.80M | { | 759 | 7.80M | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 760 | 7.80M | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 761 | | | 762 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 763 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 764 | | #endif | 765 | 7.80M | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 766 | | | 767 | 7.80M | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 768 | 7.80M | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 769 | 7.80M | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 770 | | | 771 | 7.80M | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 772 | 7.80M | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 773 | 7.80M | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 774 | 7.80M | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 775 | 7.80M | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 776 | 7.80M | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 777 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 778 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 779 | | #endif | 780 | 7.80M | } |
Unexecuted instantiation: coff-go32.c:coff_swap_scnhdr_in coff-i386.c:coff_swap_scnhdr_in Line | Count | Source | 758 | 6.65M | { | 759 | 6.65M | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 760 | 6.65M | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 761 | | | 762 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 763 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 764 | | #endif | 765 | 6.65M | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 766 | | | 767 | 6.65M | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 768 | 6.65M | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 769 | 6.65M | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 770 | | | 771 | 6.65M | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 772 | 6.65M | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 773 | 6.65M | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 774 | 6.65M | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 775 | 6.65M | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 776 | 6.65M | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 777 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 778 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 779 | | #endif | 780 | 6.65M | } |
coff-mips.c:mips_ecoff_swap_scnhdr_in Line | Count | Source | 758 | 7.14M | { | 759 | 7.14M | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 760 | 7.14M | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 761 | | | 762 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 763 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 764 | | #endif | 765 | 7.14M | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 766 | | | 767 | 7.14M | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 768 | 7.14M | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 769 | 7.14M | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 770 | | | 771 | 7.14M | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 772 | 7.14M | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 773 | 7.14M | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 774 | 7.14M | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 775 | 7.14M | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 776 | 7.14M | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 777 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 778 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 779 | | #endif | 780 | 7.14M | } |
coff-rs6000.c:coff_swap_scnhdr_in Line | Count | Source | 758 | 28.2M | { | 759 | 28.2M | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 760 | 28.2M | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 761 | | | 762 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 763 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 764 | | #endif | 765 | 28.2M | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 766 | | | 767 | 28.2M | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 768 | 28.2M | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 769 | 28.2M | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 770 | | | 771 | 28.2M | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 772 | 28.2M | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 773 | 28.2M | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 774 | 28.2M | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 775 | 28.2M | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 776 | 28.2M | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 777 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 778 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 779 | | #endif | 780 | 28.2M | } |
coff-sh.c:coff_swap_scnhdr_in Line | Count | Source | 758 | 10.5M | { | 759 | 10.5M | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 760 | 10.5M | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 761 | | | 762 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 763 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 764 | | #endif | 765 | 10.5M | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 766 | | | 767 | 10.5M | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 768 | 10.5M | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 769 | 10.5M | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 770 | | | 771 | 10.5M | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 772 | 10.5M | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 773 | 10.5M | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 774 | 10.5M | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 775 | 10.5M | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 776 | 10.5M | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 777 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 778 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 779 | | #endif | 780 | 10.5M | } |
Unexecuted instantiation: coff-stgo32.c:coff_swap_scnhdr_in coff-tic30.c:coff_swap_scnhdr_in Line | Count | Source | 758 | 12.7M | { | 759 | 12.7M | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 760 | 12.7M | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 761 | | | 762 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 763 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 764 | | #endif | 765 | 12.7M | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 766 | | | 767 | 12.7M | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 768 | 12.7M | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 769 | 12.7M | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 770 | | | 771 | 12.7M | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 772 | 12.7M | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 773 | 12.7M | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 774 | 12.7M | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 775 | 12.7M | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 776 | 12.7M | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 777 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 778 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 779 | | #endif | 780 | 12.7M | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_scnhdr_in coff-tic54x.c:coff_swap_scnhdr_in Line | Count | Source | 758 | 13.0M | { | 759 | 13.0M | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 760 | 13.0M | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 761 | | | 762 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 763 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 764 | | #endif | 765 | 13.0M | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 766 | | | 767 | 13.0M | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 768 | 13.0M | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 769 | 13.0M | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 770 | | | 771 | 13.0M | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 772 | 13.0M | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 773 | 13.0M | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 774 | 13.0M | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 775 | 13.0M | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 776 | 13.0M | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 777 | 13.0M | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 778 | 13.0M | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 779 | 13.0M | #endif | 780 | 13.0M | } |
coff-z80.c:coff_swap_scnhdr_in Line | Count | Source | 758 | 1.94M | { | 759 | 1.94M | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 760 | 1.94M | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 761 | | | 762 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 763 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 764 | | #endif | 765 | 1.94M | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 766 | | | 767 | 1.94M | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 768 | 1.94M | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 769 | 1.94M | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 770 | | | 771 | 1.94M | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 772 | 1.94M | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 773 | 1.94M | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 774 | 1.94M | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 775 | 1.94M | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 776 | 1.94M | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 777 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 778 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 779 | | #endif | 780 | 1.94M | } |
coff-z8k.c:coff_swap_scnhdr_in Line | Count | Source | 758 | 18.1M | { | 759 | 18.1M | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 760 | 18.1M | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 761 | | | 762 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 763 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 764 | | #endif | 765 | 18.1M | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 766 | | | 767 | 18.1M | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 768 | 18.1M | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 769 | 18.1M | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 770 | | | 771 | 18.1M | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 772 | 18.1M | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 773 | 18.1M | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 774 | 18.1M | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 775 | 18.1M | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 776 | 18.1M | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 777 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 778 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 779 | | #endif | 780 | 18.1M | } |
|
781 | | |
782 | | ATTRIBUTE_UNUSED |
783 | | static unsigned int |
784 | | coff_swap_scnhdr_out (bfd * abfd, void * in, void * out) |
785 | 269 | { |
786 | 269 | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; |
787 | 269 | SCNHDR *scnhdr_ext = (SCNHDR *) out; |
788 | 269 | unsigned int ret = bfd_coff_scnhsz (abfd); |
789 | | |
790 | | #ifdef COFF_ADJUST_SCNHDR_OUT_PRE |
791 | 0 | COFF_ADJUST_SCNHDR_OUT_PRE (abfd, in, out); |
792 | | #endif |
793 | 269 | memcpy (scnhdr_ext->s_name, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); |
794 | | |
795 | 269 | PUT_SCNHDR_VADDR (abfd, scnhdr_int->s_vaddr, scnhdr_ext->s_vaddr); |
796 | 269 | PUT_SCNHDR_PADDR (abfd, scnhdr_int->s_paddr, scnhdr_ext->s_paddr); |
797 | 269 | PUT_SCNHDR_SIZE (abfd, scnhdr_int->s_size, scnhdr_ext->s_size); |
798 | 269 | PUT_SCNHDR_SCNPTR (abfd, scnhdr_int->s_scnptr, scnhdr_ext->s_scnptr); |
799 | 269 | PUT_SCNHDR_RELPTR (abfd, scnhdr_int->s_relptr, scnhdr_ext->s_relptr); |
800 | 269 | PUT_SCNHDR_LNNOPTR (abfd, scnhdr_int->s_lnnoptr, scnhdr_ext->s_lnnoptr); |
801 | 269 | PUT_SCNHDR_FLAGS (abfd, scnhdr_int->s_flags, scnhdr_ext->s_flags); |
802 | 269 | if (scnhdr_int->s_nlnno <= MAX_SCNHDR_NLNNO) |
803 | 269 | PUT_SCNHDR_NLNNO (abfd, scnhdr_int->s_nlnno, scnhdr_ext->s_nlnno); |
804 | 0 | else |
805 | 0 | { |
806 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; |
807 | |
|
808 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); |
809 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; |
810 | 0 | _bfd_error_handler |
811 | | /* xgettext:c-format */ |
812 | 0 | (_("%pB: warning: %s: line number overflow: 0x%lx > 0xffff"), |
813 | 0 | abfd, buf, scnhdr_int->s_nlnno); |
814 | 0 | PUT_SCNHDR_NLNNO (abfd, 0xffff, scnhdr_ext->s_nlnno); |
815 | 0 | } |
816 | | |
817 | 269 | if (scnhdr_int->s_nreloc <= MAX_SCNHDR_NRELOC) |
818 | 269 | PUT_SCNHDR_NRELOC (abfd, scnhdr_int->s_nreloc, scnhdr_ext->s_nreloc); |
819 | 0 | else |
820 | 0 | { |
821 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; |
822 | |
|
823 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); |
824 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; |
825 | | /* xgettext:c-format */ |
826 | 0 | _bfd_error_handler (_("%pB: %s: reloc overflow: 0x%lx > 0xffff"), |
827 | 0 | abfd, buf, scnhdr_int->s_nreloc); |
828 | 0 | bfd_set_error (bfd_error_file_truncated); |
829 | 0 | PUT_SCNHDR_NRELOC (abfd, 0xffff, scnhdr_ext->s_nreloc); |
830 | 0 | ret = 0; |
831 | 0 | } |
832 | | |
833 | | #ifdef COFF_ADJUST_SCNHDR_OUT_POST |
834 | 0 | COFF_ADJUST_SCNHDR_OUT_POST (abfd, in, out); |
835 | | #endif |
836 | 269 | return ret; |
837 | 269 | } Unexecuted instantiation: coff-alpha.c:alpha_ecoff_swap_scnhdr_out coff-x86_64.c:coff_swap_scnhdr_out Line | Count | Source | 785 | 269 | { | 786 | 269 | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 787 | 269 | SCNHDR *scnhdr_ext = (SCNHDR *) out; | 788 | 269 | unsigned int ret = bfd_coff_scnhsz (abfd); | 789 | | | 790 | | #ifdef COFF_ADJUST_SCNHDR_OUT_PRE | 791 | | COFF_ADJUST_SCNHDR_OUT_PRE (abfd, in, out); | 792 | | #endif | 793 | 269 | memcpy (scnhdr_ext->s_name, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 794 | | | 795 | 269 | PUT_SCNHDR_VADDR (abfd, scnhdr_int->s_vaddr, scnhdr_ext->s_vaddr); | 796 | 269 | PUT_SCNHDR_PADDR (abfd, scnhdr_int->s_paddr, scnhdr_ext->s_paddr); | 797 | 269 | PUT_SCNHDR_SIZE (abfd, scnhdr_int->s_size, scnhdr_ext->s_size); | 798 | 269 | PUT_SCNHDR_SCNPTR (abfd, scnhdr_int->s_scnptr, scnhdr_ext->s_scnptr); | 799 | 269 | PUT_SCNHDR_RELPTR (abfd, scnhdr_int->s_relptr, scnhdr_ext->s_relptr); | 800 | 269 | PUT_SCNHDR_LNNOPTR (abfd, scnhdr_int->s_lnnoptr, scnhdr_ext->s_lnnoptr); | 801 | 269 | PUT_SCNHDR_FLAGS (abfd, scnhdr_int->s_flags, scnhdr_ext->s_flags); | 802 | 269 | if (scnhdr_int->s_nlnno <= MAX_SCNHDR_NLNNO) | 803 | 269 | PUT_SCNHDR_NLNNO (abfd, scnhdr_int->s_nlnno, scnhdr_ext->s_nlnno); | 804 | 0 | else | 805 | 0 | { | 806 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 807 | |
| 808 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 809 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 810 | 0 | _bfd_error_handler | 811 | | /* xgettext:c-format */ | 812 | 0 | (_("%pB: warning: %s: line number overflow: 0x%lx > 0xffff"), | 813 | 0 | abfd, buf, scnhdr_int->s_nlnno); | 814 | 0 | PUT_SCNHDR_NLNNO (abfd, 0xffff, scnhdr_ext->s_nlnno); | 815 | 0 | } | 816 | | | 817 | 269 | if (scnhdr_int->s_nreloc <= MAX_SCNHDR_NRELOC) | 818 | 269 | PUT_SCNHDR_NRELOC (abfd, scnhdr_int->s_nreloc, scnhdr_ext->s_nreloc); | 819 | 0 | else | 820 | 0 | { | 821 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 822 | |
| 823 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 824 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 825 | | /* xgettext:c-format */ | 826 | 0 | _bfd_error_handler (_("%pB: %s: reloc overflow: 0x%lx > 0xffff"), | 827 | 0 | abfd, buf, scnhdr_int->s_nreloc); | 828 | 0 | bfd_set_error (bfd_error_file_truncated); | 829 | 0 | PUT_SCNHDR_NRELOC (abfd, 0xffff, scnhdr_ext->s_nreloc); | 830 | 0 | ret = 0; | 831 | 0 | } | 832 | | | 833 | | #ifdef COFF_ADJUST_SCNHDR_OUT_POST | 834 | | COFF_ADJUST_SCNHDR_OUT_POST (abfd, in, out); | 835 | | #endif | 836 | 269 | return ret; | 837 | 269 | } |
Unexecuted instantiation: coff64-rs6000.c:coff_swap_scnhdr_out Unexecuted instantiation: cf-i386lynx.c:coff_swap_scnhdr_out Unexecuted instantiation: coff-go32.c:coff_swap_scnhdr_out Unexecuted instantiation: coff-i386.c:coff_swap_scnhdr_out Unexecuted instantiation: coff-mips.c:mips_ecoff_swap_scnhdr_out Unexecuted instantiation: coff-rs6000.c:coff_swap_scnhdr_out Unexecuted instantiation: coff-sh.c:coff_swap_scnhdr_out Unexecuted instantiation: coff-stgo32.c:coff_swap_scnhdr_out Unexecuted instantiation: coff-tic30.c:coff_swap_scnhdr_out Unexecuted instantiation: coff-tic4x.c:coff_swap_scnhdr_out Unexecuted instantiation: coff-tic54x.c:coff_swap_scnhdr_out Unexecuted instantiation: coff-z80.c:coff_swap_scnhdr_out Unexecuted instantiation: coff-z8k.c:coff_swap_scnhdr_out |