/src/binutils-gdb/bfd/coffswap.h
Line | Count | Source |
1 | | /* Generic COFF swapping routines, for BFD. |
2 | | Copyright (C) 1990-2026 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 | 223k | 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 | 223k | 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 | 624 | 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 | 624 | 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 | 633k | 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 | 573k | 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 | 794 | 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 | 687 | 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 | 17.0k | H_GET_32 (abfd, ext->x_scn.x_scnlen) |
67 | | #endif |
68 | | #ifndef GET_SCN_NRELOC |
69 | | #define GET_SCN_NRELOC(abfd, ext) \ |
70 | 18.9k | H_GET_16 (abfd, ext->x_scn.x_nreloc) |
71 | | #endif |
72 | | #ifndef GET_SCN_NLINNO |
73 | | #define GET_SCN_NLINNO(abfd, ext) \ |
74 | 18.9k | 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 | 145 | 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 | 145 | 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 | 145 | 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 | 122k | 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 | 4.01M | #define GET_FILEHDR_SYMPTR H_GET_32 |
100 | | #endif |
101 | | #ifndef PUT_FILEHDR_SYMPTR |
102 | 687 | #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 | 12.5k | #define GET_AOUTHDR_TSIZE H_GET_32 |
108 | | #endif |
109 | | #ifndef PUT_AOUTHDR_TSIZE |
110 | 348 | #define PUT_AOUTHDR_TSIZE H_PUT_32 |
111 | | #endif |
112 | | #ifndef GET_AOUTHDR_DSIZE |
113 | 12.5k | #define GET_AOUTHDR_DSIZE H_GET_32 |
114 | | #endif |
115 | | #ifndef PUT_AOUTHDR_DSIZE |
116 | 348 | #define PUT_AOUTHDR_DSIZE H_PUT_32 |
117 | | #endif |
118 | | #ifndef GET_AOUTHDR_BSIZE |
119 | 12.5k | #define GET_AOUTHDR_BSIZE H_GET_32 |
120 | | #endif |
121 | | #ifndef PUT_AOUTHDR_BSIZE |
122 | 348 | #define PUT_AOUTHDR_BSIZE H_PUT_32 |
123 | | #endif |
124 | | #ifndef GET_AOUTHDR_ENTRY |
125 | 12.5k | #define GET_AOUTHDR_ENTRY H_GET_32 |
126 | | #endif |
127 | | #ifndef PUT_AOUTHDR_ENTRY |
128 | 348 | #define PUT_AOUTHDR_ENTRY H_PUT_32 |
129 | | #endif |
130 | | #ifndef GET_AOUTHDR_TEXT_START |
131 | 12.5k | #define GET_AOUTHDR_TEXT_START H_GET_32 |
132 | | #endif |
133 | | #ifndef PUT_AOUTHDR_TEXT_START |
134 | 348 | #define PUT_AOUTHDR_TEXT_START H_PUT_32 |
135 | | #endif |
136 | | #ifndef GET_AOUTHDR_DATA_START |
137 | 12.5k | #define GET_AOUTHDR_DATA_START H_GET_32 |
138 | | #endif |
139 | | #ifndef PUT_AOUTHDR_DATA_START |
140 | 348 | #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 | 1.56M | #define GET_SCNHDR_PADDR H_GET_32 |
146 | | #endif |
147 | | #ifndef PUT_SCNHDR_PADDR |
148 | 1.17k | #define PUT_SCNHDR_PADDR H_PUT_32 |
149 | | #endif |
150 | | #ifndef GET_SCNHDR_VADDR |
151 | 1.56M | #define GET_SCNHDR_VADDR H_GET_32 |
152 | | #endif |
153 | | #ifndef PUT_SCNHDR_VADDR |
154 | 1.17k | #define PUT_SCNHDR_VADDR H_PUT_32 |
155 | | #endif |
156 | | #ifndef GET_SCNHDR_SIZE |
157 | 1.47M | #define GET_SCNHDR_SIZE H_GET_32 |
158 | | #endif |
159 | | #ifndef PUT_SCNHDR_SIZE |
160 | 1.05k | #define PUT_SCNHDR_SIZE H_PUT_32 |
161 | | #endif |
162 | | #ifndef GET_SCNHDR_SCNPTR |
163 | 1.56M | #define GET_SCNHDR_SCNPTR H_GET_32 |
164 | | #endif |
165 | | #ifndef PUT_SCNHDR_SCNPTR |
166 | 1.17k | #define PUT_SCNHDR_SCNPTR H_PUT_32 |
167 | | #endif |
168 | | #ifndef GET_SCNHDR_RELPTR |
169 | 1.56M | #define GET_SCNHDR_RELPTR H_GET_32 |
170 | | #endif |
171 | | #ifndef PUT_SCNHDR_RELPTR |
172 | 1.17k | #define PUT_SCNHDR_RELPTR H_PUT_32 |
173 | | #endif |
174 | | #ifndef GET_SCNHDR_LNNOPTR |
175 | 1.56M | #define GET_SCNHDR_LNNOPTR H_GET_32 |
176 | | #endif |
177 | | #ifndef PUT_SCNHDR_LNNOPTR |
178 | 1.17k | #define PUT_SCNHDR_LNNOPTR H_PUT_32 |
179 | | #endif |
180 | | #ifndef GET_SCNHDR_NRELOC |
181 | 1.49M | #define GET_SCNHDR_NRELOC H_GET_16 |
182 | | #endif |
183 | | #ifndef MAX_SCNHDR_NRELOC |
184 | 1.19k | #define MAX_SCNHDR_NRELOC 0xffff |
185 | | #endif |
186 | | #ifndef PUT_SCNHDR_NRELOC |
187 | 1.07k | #define PUT_SCNHDR_NRELOC H_PUT_16 |
188 | | #endif |
189 | | #ifndef GET_SCNHDR_NLNNO |
190 | 1.49M | #define GET_SCNHDR_NLNNO H_GET_16 |
191 | | #endif |
192 | | #ifndef MAX_SCNHDR_NLNNO |
193 | 1.19k | #define MAX_SCNHDR_NLNNO 0xffff |
194 | | #endif |
195 | | #ifndef PUT_SCNHDR_NLNNO |
196 | 1.07k | #define PUT_SCNHDR_NLNNO H_PUT_16 |
197 | | #endif |
198 | | #ifndef GET_SCNHDR_FLAGS |
199 | 1.54M | #define GET_SCNHDR_FLAGS H_GET_32 |
200 | | #endif |
201 | | #ifndef PUT_SCNHDR_FLAGS |
202 | 1.10k | #define PUT_SCNHDR_FLAGS H_PUT_32 |
203 | | #endif |
204 | | |
205 | | #ifndef GET_RELOC_VADDR |
206 | 18.2k | #define GET_RELOC_VADDR H_GET_32 |
207 | | #endif |
208 | | #ifndef PUT_RELOC_VADDR |
209 | 5 | #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 | 17.8k | { |
217 | 17.8k | RELOC *reloc_src = (RELOC *) src; |
218 | 17.8k | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; |
219 | | |
220 | 17.8k | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); |
221 | 17.8k | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); |
222 | 17.8k | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); |
223 | | |
224 | | #ifdef SWAP_IN_RELOC_OFFSET |
225 | 5.05k | reloc_dst->r_offset = SWAP_IN_RELOC_OFFSET (abfd, reloc_src->r_offset); |
226 | | #endif |
227 | 17.8k | } coff-x86_64.c:coff_swap_reloc_in Line | Count | Source | 216 | 1.05k | { | 217 | 1.05k | RELOC *reloc_src = (RELOC *) src; | 218 | 1.05k | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 219 | | | 220 | 1.05k | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 221 | 1.05k | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); | 222 | 1.05k | 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 | 1.05k | } |
Unexecuted instantiation: cf-i386lynx.c:coff_swap_reloc_in coff-go32.c:coff_swap_reloc_in Line | Count | Source | 216 | 5.37k | { | 217 | 5.37k | RELOC *reloc_src = (RELOC *) src; | 218 | 5.37k | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 219 | | | 220 | 5.37k | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 221 | 5.37k | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); | 222 | 5.37k | 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 | 5.37k | } |
Unexecuted instantiation: coff-i386.c:coff_swap_reloc_in coff-sh.c:coff_swap_reloc_in Line | Count | Source | 216 | 647 | { | 217 | 647 | RELOC *reloc_src = (RELOC *) src; | 218 | 647 | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 219 | | | 220 | 647 | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 221 | 647 | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); | 222 | 647 | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); | 223 | | | 224 | 647 | #ifdef SWAP_IN_RELOC_OFFSET | 225 | 647 | reloc_dst->r_offset = SWAP_IN_RELOC_OFFSET (abfd, reloc_src->r_offset); | 226 | 647 | #endif | 227 | 647 | } |
coff-stgo32.c:coff_swap_reloc_in Line | Count | Source | 216 | 6.40k | { | 217 | 6.40k | RELOC *reloc_src = (RELOC *) src; | 218 | 6.40k | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 219 | | | 220 | 6.40k | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 221 | 6.40k | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); | 222 | 6.40k | 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 | 6.40k | } |
coff-tic30.c:coff_swap_reloc_in Line | Count | Source | 216 | 3.07k | { | 217 | 3.07k | RELOC *reloc_src = (RELOC *) src; | 218 | 3.07k | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 219 | | | 220 | 3.07k | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 221 | 3.07k | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); | 222 | 3.07k | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); | 223 | | | 224 | 3.07k | #ifdef SWAP_IN_RELOC_OFFSET | 225 | 3.07k | reloc_dst->r_offset = SWAP_IN_RELOC_OFFSET (abfd, reloc_src->r_offset); | 226 | 3.07k | #endif | 227 | 3.07k | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_reloc_in Unexecuted instantiation: coff-tic54x.c:coff_swap_reloc_in coff-z80.c:coff_swap_reloc_in Line | Count | Source | 216 | 1.11k | { | 217 | 1.11k | RELOC *reloc_src = (RELOC *) src; | 218 | 1.11k | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 219 | | | 220 | 1.11k | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 221 | 1.11k | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); | 222 | 1.11k | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); | 223 | | | 224 | 1.11k | #ifdef SWAP_IN_RELOC_OFFSET | 225 | 1.11k | reloc_dst->r_offset = SWAP_IN_RELOC_OFFSET (abfd, reloc_src->r_offset); | 226 | 1.11k | #endif | 227 | 1.11k | } |
coff-z8k.c:coff_swap_reloc_in Line | Count | Source | 216 | 223 | { | 217 | 223 | RELOC *reloc_src = (RELOC *) src; | 218 | 223 | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 219 | | | 220 | 223 | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 221 | 223 | reloc_dst->r_symndx = H_GET_S32 (abfd, reloc_src->r_symndx); | 222 | 223 | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); | 223 | | | 224 | 223 | #ifdef SWAP_IN_RELOC_OFFSET | 225 | 223 | reloc_dst->r_offset = SWAP_IN_RELOC_OFFSET (abfd, reloc_src->r_offset); | 226 | 223 | #endif | 227 | 223 | } |
|
228 | | |
229 | | static unsigned int |
230 | | coff_swap_reloc_out (bfd * abfd, void * src, void * dst) |
231 | 5 | { |
232 | 5 | struct internal_reloc *reloc_src = (struct internal_reloc *) src; |
233 | 5 | struct external_reloc *reloc_dst = (struct external_reloc *) dst; |
234 | | |
235 | 5 | PUT_RELOC_VADDR (abfd, reloc_src->r_vaddr, reloc_dst->r_vaddr); |
236 | 5 | H_PUT_32 (abfd, reloc_src->r_symndx, reloc_dst->r_symndx); |
237 | 5 | H_PUT_16 (abfd, reloc_src->r_type, reloc_dst->r_type); |
238 | | |
239 | | #ifdef SWAP_OUT_RELOC_OFFSET |
240 | 3 | SWAP_OUT_RELOC_OFFSET (abfd, reloc_src->r_offset, reloc_dst->r_offset); |
241 | | #endif |
242 | | #ifdef SWAP_OUT_RELOC_EXTRA |
243 | 3 | SWAP_OUT_RELOC_EXTRA (abfd, reloc_src, reloc_dst); |
244 | | #endif |
245 | | |
246 | 5 | return bfd_coff_relsz (abfd); |
247 | 5 | } coff-x86_64.c:coff_swap_reloc_out Line | Count | Source | 231 | 2 | { | 232 | 2 | struct internal_reloc *reloc_src = (struct internal_reloc *) src; | 233 | 2 | struct external_reloc *reloc_dst = (struct external_reloc *) dst; | 234 | | | 235 | 2 | PUT_RELOC_VADDR (abfd, reloc_src->r_vaddr, reloc_dst->r_vaddr); | 236 | 2 | H_PUT_32 (abfd, reloc_src->r_symndx, reloc_dst->r_symndx); | 237 | 2 | H_PUT_16 (abfd, reloc_src->r_type, reloc_dst->r_type); | 238 | | | 239 | | #ifdef SWAP_OUT_RELOC_OFFSET | 240 | | SWAP_OUT_RELOC_OFFSET (abfd, reloc_src->r_offset, reloc_dst->r_offset); | 241 | | #endif | 242 | | #ifdef SWAP_OUT_RELOC_EXTRA | 243 | | SWAP_OUT_RELOC_EXTRA (abfd, reloc_src, reloc_dst); | 244 | | #endif | 245 | | | 246 | 2 | return bfd_coff_relsz (abfd); | 247 | 2 | } |
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 coff-sh.c:coff_swap_reloc_out Line | Count | Source | 231 | 1 | { | 232 | 1 | struct internal_reloc *reloc_src = (struct internal_reloc *) src; | 233 | 1 | struct external_reloc *reloc_dst = (struct external_reloc *) dst; | 234 | | | 235 | 1 | PUT_RELOC_VADDR (abfd, reloc_src->r_vaddr, reloc_dst->r_vaddr); | 236 | 1 | H_PUT_32 (abfd, reloc_src->r_symndx, reloc_dst->r_symndx); | 237 | 1 | H_PUT_16 (abfd, reloc_src->r_type, reloc_dst->r_type); | 238 | | | 239 | 1 | #ifdef SWAP_OUT_RELOC_OFFSET | 240 | 1 | SWAP_OUT_RELOC_OFFSET (abfd, reloc_src->r_offset, reloc_dst->r_offset); | 241 | 1 | #endif | 242 | 1 | #ifdef SWAP_OUT_RELOC_EXTRA | 243 | 1 | SWAP_OUT_RELOC_EXTRA (abfd, reloc_src, reloc_dst); | 244 | 1 | #endif | 245 | | | 246 | 1 | return bfd_coff_relsz (abfd); | 247 | 1 | } |
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 coff-z8k.c:coff_swap_reloc_out Line | Count | Source | 231 | 2 | { | 232 | 2 | struct internal_reloc *reloc_src = (struct internal_reloc *) src; | 233 | 2 | struct external_reloc *reloc_dst = (struct external_reloc *) dst; | 234 | | | 235 | 2 | PUT_RELOC_VADDR (abfd, reloc_src->r_vaddr, reloc_dst->r_vaddr); | 236 | 2 | H_PUT_32 (abfd, reloc_src->r_symndx, reloc_dst->r_symndx); | 237 | 2 | H_PUT_16 (abfd, reloc_src->r_type, reloc_dst->r_type); | 238 | | | 239 | 2 | #ifdef SWAP_OUT_RELOC_OFFSET | 240 | 2 | SWAP_OUT_RELOC_OFFSET (abfd, reloc_src->r_offset, reloc_dst->r_offset); | 241 | 2 | #endif | 242 | 2 | #ifdef SWAP_OUT_RELOC_EXTRA | 243 | 2 | SWAP_OUT_RELOC_EXTRA (abfd, reloc_src, reloc_dst); | 244 | 2 | #endif | 245 | | | 246 | 2 | return bfd_coff_relsz (abfd); | 247 | 2 | } |
|
248 | | |
249 | | #ifdef TICOFF |
250 | | static void |
251 | | coff_swap_reloc_v0_in (bfd *abfd, void *src, void *dst) |
252 | 322 | { |
253 | 322 | struct external_reloc_v0 *reloc_src = (struct external_reloc_v0 *) src; |
254 | 322 | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; |
255 | | |
256 | 322 | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); |
257 | 322 | reloc_dst->r_symndx = H_GET_16 (abfd, reloc_src->r_symndx); |
258 | 322 | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); |
259 | 322 | } Unexecuted instantiation: coff-tic4x.c:coff_swap_reloc_v0_in coff-tic54x.c:coff_swap_reloc_v0_in Line | Count | Source | 252 | 322 | { | 253 | 322 | struct external_reloc_v0 *reloc_src = (struct external_reloc_v0 *) src; | 254 | 322 | struct internal_reloc *reloc_dst = (struct internal_reloc *) dst; | 255 | | | 256 | 322 | reloc_dst->r_vaddr = GET_RELOC_VADDR (abfd, reloc_src->r_vaddr); | 257 | 322 | reloc_dst->r_symndx = H_GET_16 (abfd, reloc_src->r_symndx); | 258 | 322 | reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); | 259 | 322 | } |
|
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 | 4.52M | { |
281 | 4.52M | FILHDR *filehdr_src = (FILHDR *) src; |
282 | 4.52M | 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 | 4.52M | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); |
288 | 4.52M | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); |
289 | 4.52M | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); |
290 | 4.52M | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); |
291 | 4.52M | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); |
292 | 4.52M | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); |
293 | 4.52M | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); |
294 | | |
295 | | #ifdef COFF_ADJUST_FILEHDR_IN_POST |
296 | 1.20M | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); |
297 | | #endif |
298 | 4.52M | } coff-alpha.c:alpha_ecoff_swap_filehdr_in Line | Count | Source | 280 | 201k | { | 281 | 201k | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 201k | 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 | 201k | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 201k | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 201k | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 201k | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 201k | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 201k | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 201k | 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 | 201k | } |
coff-x86_64.c:coff_swap_filehdr_in Line | Count | Source | 280 | 232k | { | 281 | 232k | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 232k | 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 | 232k | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 232k | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 232k | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 232k | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 232k | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 232k | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 232k | 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 | 232k | } |
coff64-rs6000.c:coff_swap_filehdr_in Line | Count | Source | 280 | 307k | { | 281 | 307k | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 307k | 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 | 307k | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 307k | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 307k | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 307k | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 307k | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 307k | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 307k | 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 | 307k | } |
cf-i386lynx.c:coff_swap_filehdr_in Line | Count | Source | 280 | 231k | { | 281 | 231k | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 231k | 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 | 231k | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 231k | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 231k | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 231k | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 231k | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 231k | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 231k | 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 | 231k | } |
coff-go32.c:coff_swap_filehdr_in Line | Count | Source | 280 | 231k | { | 281 | 231k | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 231k | 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 | 231k | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 231k | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 231k | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 231k | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 231k | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 231k | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 231k | 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 | 231k | } |
coff-i386.c:coff_swap_filehdr_in Line | Count | Source | 280 | 231k | { | 281 | 231k | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 231k | 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 | 231k | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 231k | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 231k | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 231k | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 231k | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 231k | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 231k | 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 | 231k | } |
coff-mips.c:mips_ecoff_swap_filehdr_in Line | Count | Source | 280 | 616k | { | 281 | 616k | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 616k | 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 | 616k | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 616k | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 616k | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 616k | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 616k | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 616k | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 616k | 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 | 616k | } |
coff-rs6000.c:coff_swap_filehdr_in Line | Count | Source | 280 | 156k | { | 281 | 156k | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 156k | 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 | 156k | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 156k | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 156k | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 156k | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 156k | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 156k | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 156k | 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 | 156k | } |
coff-sh.c:coff_swap_filehdr_in Line | Count | Source | 280 | 497k | { | 281 | 497k | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 497k | 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 | 497k | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 497k | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 497k | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 497k | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 497k | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 497k | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 497k | 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 | 497k | } |
coff-stgo32.c:coff_swap_filehdr_in Line | Count | Source | 280 | 3.92k | { | 281 | 3.92k | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 3.92k | 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.92k | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 3.92k | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 3.92k | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 3.92k | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 3.92k | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 3.92k | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 3.92k | 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.92k | } |
coff-tic30.c:coff_swap_filehdr_in Line | Count | Source | 280 | 204k | { | 281 | 204k | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 204k | 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 | 204k | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 204k | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 204k | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 204k | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 204k | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 204k | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 204k | 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 | 204k | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_filehdr_in coff-tic54x.c:coff_swap_filehdr_in Line | Count | Source | 280 | 1.20M | { | 281 | 1.20M | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 1.20M | 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 | 1.20M | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 1.20M | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 1.20M | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 1.20M | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 1.20M | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 1.20M | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 1.20M | filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags); | 294 | | | 295 | 1.20M | #ifdef COFF_ADJUST_FILEHDR_IN_POST | 296 | 1.20M | COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst); | 297 | 1.20M | #endif | 298 | 1.20M | } |
coff-z80.c:coff_swap_filehdr_in Line | Count | Source | 280 | 204k | { | 281 | 204k | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 204k | 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 | 204k | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 204k | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 204k | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 204k | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 204k | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 204k | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 204k | 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 | 204k | } |
coff-z8k.c:coff_swap_filehdr_in Line | Count | Source | 280 | 201k | { | 281 | 201k | FILHDR *filehdr_src = (FILHDR *) src; | 282 | 201k | 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 | 201k | filehdr_dst->f_magic = H_GET_16 (abfd, filehdr_src->f_magic); | 288 | 201k | filehdr_dst->f_nscns = H_GET_16 (abfd, filehdr_src->f_nscns); | 289 | 201k | filehdr_dst->f_timdat = H_GET_32 (abfd, filehdr_src->f_timdat); | 290 | 201k | filehdr_dst->f_symptr = GET_FILEHDR_SYMPTR (abfd, filehdr_src->f_symptr); | 291 | 201k | filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms); | 292 | 201k | filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr); | 293 | 201k | 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 | 201k | } |
|
299 | | |
300 | | static unsigned int |
301 | | coff_swap_filehdr_out (bfd *abfd, void * in, void * out) |
302 | 806 | { |
303 | 806 | struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; |
304 | 806 | 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 | 806 | H_PUT_16 (abfd, filehdr_in->f_magic, filehdr_out->f_magic); |
310 | 806 | H_PUT_16 (abfd, filehdr_in->f_nscns, filehdr_out->f_nscns); |
311 | 806 | H_PUT_32 (abfd, filehdr_in->f_timdat, filehdr_out->f_timdat); |
312 | 806 | PUT_FILEHDR_SYMPTR (abfd, filehdr_in->f_symptr, filehdr_out->f_symptr); |
313 | 806 | H_PUT_32 (abfd, filehdr_in->f_nsyms, filehdr_out->f_nsyms); |
314 | 806 | H_PUT_16 (abfd, filehdr_in->f_opthdr, filehdr_out->f_opthdr); |
315 | 806 | H_PUT_16 (abfd, filehdr_in->f_flags, filehdr_out->f_flags); |
316 | | |
317 | | #ifdef COFF_ADJUST_FILEHDR_OUT_POST |
318 | 72 | COFF_ADJUST_FILEHDR_OUT_POST (abfd, in, out); |
319 | | #endif |
320 | 806 | return bfd_coff_filhsz (abfd); |
321 | 806 | } coff-alpha.c:alpha_ecoff_swap_filehdr_out Line | Count | Source | 302 | 51 | { | 303 | 51 | struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; | 304 | 51 | 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 | 51 | H_PUT_16 (abfd, filehdr_in->f_magic, filehdr_out->f_magic); | 310 | 51 | H_PUT_16 (abfd, filehdr_in->f_nscns, filehdr_out->f_nscns); | 311 | 51 | H_PUT_32 (abfd, filehdr_in->f_timdat, filehdr_out->f_timdat); | 312 | 51 | PUT_FILEHDR_SYMPTR (abfd, filehdr_in->f_symptr, filehdr_out->f_symptr); | 313 | 51 | H_PUT_32 (abfd, filehdr_in->f_nsyms, filehdr_out->f_nsyms); | 314 | 51 | H_PUT_16 (abfd, filehdr_in->f_opthdr, filehdr_out->f_opthdr); | 315 | 51 | 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 | 51 | return bfd_coff_filhsz (abfd); | 321 | 51 | } |
coff-x86_64.c:coff_swap_filehdr_out Line | Count | Source | 302 | 129 | { | 303 | 129 | struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; | 304 | 129 | 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 | 129 | H_PUT_16 (abfd, filehdr_in->f_magic, filehdr_out->f_magic); | 310 | 129 | H_PUT_16 (abfd, filehdr_in->f_nscns, filehdr_out->f_nscns); | 311 | 129 | H_PUT_32 (abfd, filehdr_in->f_timdat, filehdr_out->f_timdat); | 312 | 129 | PUT_FILEHDR_SYMPTR (abfd, filehdr_in->f_symptr, filehdr_out->f_symptr); | 313 | 129 | H_PUT_32 (abfd, filehdr_in->f_nsyms, filehdr_out->f_nsyms); | 314 | 129 | H_PUT_16 (abfd, filehdr_in->f_opthdr, filehdr_out->f_opthdr); | 315 | 129 | 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 | 129 | return bfd_coff_filhsz (abfd); | 321 | 129 | } |
coff64-rs6000.c:coff_swap_filehdr_out Line | Count | Source | 302 | 68 | { | 303 | 68 | struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; | 304 | 68 | 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 | 68 | H_PUT_16 (abfd, filehdr_in->f_magic, filehdr_out->f_magic); | 310 | 68 | H_PUT_16 (abfd, filehdr_in->f_nscns, filehdr_out->f_nscns); | 311 | 68 | H_PUT_32 (abfd, filehdr_in->f_timdat, filehdr_out->f_timdat); | 312 | 68 | PUT_FILEHDR_SYMPTR (abfd, filehdr_in->f_symptr, filehdr_out->f_symptr); | 313 | 68 | H_PUT_32 (abfd, filehdr_in->f_nsyms, filehdr_out->f_nsyms); | 314 | 68 | H_PUT_16 (abfd, filehdr_in->f_opthdr, filehdr_out->f_opthdr); | 315 | 68 | 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 | 68 | return bfd_coff_filhsz (abfd); | 321 | 68 | } |
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 | 89 | { | 303 | 89 | struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; | 304 | 89 | 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 | 89 | H_PUT_16 (abfd, filehdr_in->f_magic, filehdr_out->f_magic); | 310 | 89 | H_PUT_16 (abfd, filehdr_in->f_nscns, filehdr_out->f_nscns); | 311 | 89 | H_PUT_32 (abfd, filehdr_in->f_timdat, filehdr_out->f_timdat); | 312 | 89 | PUT_FILEHDR_SYMPTR (abfd, filehdr_in->f_symptr, filehdr_out->f_symptr); | 313 | 89 | H_PUT_32 (abfd, filehdr_in->f_nsyms, filehdr_out->f_nsyms); | 314 | 89 | H_PUT_16 (abfd, filehdr_in->f_opthdr, filehdr_out->f_opthdr); | 315 | 89 | 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 | 89 | return bfd_coff_filhsz (abfd); | 321 | 89 | } |
coff-rs6000.c:coff_swap_filehdr_out Line | Count | Source | 302 | 101 | { | 303 | 101 | struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; | 304 | 101 | 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 | 101 | H_PUT_16 (abfd, filehdr_in->f_magic, filehdr_out->f_magic); | 310 | 101 | H_PUT_16 (abfd, filehdr_in->f_nscns, filehdr_out->f_nscns); | 311 | 101 | H_PUT_32 (abfd, filehdr_in->f_timdat, filehdr_out->f_timdat); | 312 | 101 | PUT_FILEHDR_SYMPTR (abfd, filehdr_in->f_symptr, filehdr_out->f_symptr); | 313 | 101 | H_PUT_32 (abfd, filehdr_in->f_nsyms, filehdr_out->f_nsyms); | 314 | 101 | H_PUT_16 (abfd, filehdr_in->f_opthdr, filehdr_out->f_opthdr); | 315 | 101 | 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 | 101 | return bfd_coff_filhsz (abfd); | 321 | 101 | } |
coff-sh.c:coff_swap_filehdr_out Line | Count | Source | 302 | 79 | { | 303 | 79 | struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; | 304 | 79 | 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 | 79 | H_PUT_16 (abfd, filehdr_in->f_magic, filehdr_out->f_magic); | 310 | 79 | H_PUT_16 (abfd, filehdr_in->f_nscns, filehdr_out->f_nscns); | 311 | 79 | H_PUT_32 (abfd, filehdr_in->f_timdat, filehdr_out->f_timdat); | 312 | 79 | PUT_FILEHDR_SYMPTR (abfd, filehdr_in->f_symptr, filehdr_out->f_symptr); | 313 | 79 | H_PUT_32 (abfd, filehdr_in->f_nsyms, filehdr_out->f_nsyms); | 314 | 79 | H_PUT_16 (abfd, filehdr_in->f_opthdr, filehdr_out->f_opthdr); | 315 | 79 | 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 | 79 | return bfd_coff_filhsz (abfd); | 321 | 79 | } |
Unexecuted instantiation: coff-stgo32.c:coff_swap_filehdr_out coff-tic30.c:coff_swap_filehdr_out Line | Count | Source | 302 | 96 | { | 303 | 96 | struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; | 304 | 96 | 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 | 96 | H_PUT_16 (abfd, filehdr_in->f_magic, filehdr_out->f_magic); | 310 | 96 | H_PUT_16 (abfd, filehdr_in->f_nscns, filehdr_out->f_nscns); | 311 | 96 | H_PUT_32 (abfd, filehdr_in->f_timdat, filehdr_out->f_timdat); | 312 | 96 | PUT_FILEHDR_SYMPTR (abfd, filehdr_in->f_symptr, filehdr_out->f_symptr); | 313 | 96 | H_PUT_32 (abfd, filehdr_in->f_nsyms, filehdr_out->f_nsyms); | 314 | 96 | H_PUT_16 (abfd, filehdr_in->f_opthdr, filehdr_out->f_opthdr); | 315 | 96 | 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 | 96 | return bfd_coff_filhsz (abfd); | 321 | 96 | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_filehdr_out coff-tic54x.c:coff_swap_filehdr_out Line | Count | Source | 302 | 72 | { | 303 | 72 | struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; | 304 | 72 | 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 | 72 | H_PUT_16 (abfd, filehdr_in->f_magic, filehdr_out->f_magic); | 310 | 72 | H_PUT_16 (abfd, filehdr_in->f_nscns, filehdr_out->f_nscns); | 311 | 72 | H_PUT_32 (abfd, filehdr_in->f_timdat, filehdr_out->f_timdat); | 312 | 72 | PUT_FILEHDR_SYMPTR (abfd, filehdr_in->f_symptr, filehdr_out->f_symptr); | 313 | 72 | H_PUT_32 (abfd, filehdr_in->f_nsyms, filehdr_out->f_nsyms); | 314 | 72 | H_PUT_16 (abfd, filehdr_in->f_opthdr, filehdr_out->f_opthdr); | 315 | 72 | H_PUT_16 (abfd, filehdr_in->f_flags, filehdr_out->f_flags); | 316 | | | 317 | 72 | #ifdef COFF_ADJUST_FILEHDR_OUT_POST | 318 | 72 | COFF_ADJUST_FILEHDR_OUT_POST (abfd, in, out); | 319 | 72 | #endif | 320 | 72 | return bfd_coff_filhsz (abfd); | 321 | 72 | } |
coff-z80.c:coff_swap_filehdr_out Line | Count | Source | 302 | 61 | { | 303 | 61 | struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; | 304 | 61 | 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 | 61 | H_PUT_16 (abfd, filehdr_in->f_magic, filehdr_out->f_magic); | 310 | 61 | H_PUT_16 (abfd, filehdr_in->f_nscns, filehdr_out->f_nscns); | 311 | 61 | H_PUT_32 (abfd, filehdr_in->f_timdat, filehdr_out->f_timdat); | 312 | 61 | PUT_FILEHDR_SYMPTR (abfd, filehdr_in->f_symptr, filehdr_out->f_symptr); | 313 | 61 | H_PUT_32 (abfd, filehdr_in->f_nsyms, filehdr_out->f_nsyms); | 314 | 61 | H_PUT_16 (abfd, filehdr_in->f_opthdr, filehdr_out->f_opthdr); | 315 | 61 | 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 | 61 | return bfd_coff_filhsz (abfd); | 321 | 61 | } |
coff-z8k.c:coff_swap_filehdr_out Line | Count | Source | 302 | 60 | { | 303 | 60 | struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; | 304 | 60 | 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 | 60 | H_PUT_16 (abfd, filehdr_in->f_magic, filehdr_out->f_magic); | 310 | 60 | H_PUT_16 (abfd, filehdr_in->f_nscns, filehdr_out->f_nscns); | 311 | 60 | H_PUT_32 (abfd, filehdr_in->f_timdat, filehdr_out->f_timdat); | 312 | 60 | PUT_FILEHDR_SYMPTR (abfd, filehdr_in->f_symptr, filehdr_out->f_symptr); | 313 | 60 | H_PUT_32 (abfd, filehdr_in->f_nsyms, filehdr_out->f_nsyms); | 314 | 60 | H_PUT_16 (abfd, filehdr_in->f_opthdr, filehdr_out->f_opthdr); | 315 | 60 | 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 | 60 | return bfd_coff_filhsz (abfd); | 321 | 60 | } |
|
322 | | |
323 | | #ifndef NO_COFF_SYMBOLS |
324 | | |
325 | | static void |
326 | | coff_swap_sym_in (bfd * abfd, void * ext1, void * in1) |
327 | 187k | { |
328 | 187k | SYMENT *ext = (SYMENT *) ext1; |
329 | 187k | struct internal_syment *in = (struct internal_syment *) in1; |
330 | | |
331 | 187k | if (ext->e.e_name[0] == 0) |
332 | 112k | { |
333 | 112k | in->_n._n_n._n_zeroes = 0; |
334 | 112k | in->_n._n_n._n_offset = H_GET_32 (abfd, ext->e.e.e_offset); |
335 | 112k | } |
336 | 74.2k | else |
337 | 74.2k | { |
338 | | #if SYMNMLEN != E_SYMNMLEN |
339 | | #error we need to cope with truncating or extending SYMNMLEN |
340 | | #else |
341 | 74.2k | memcpy (in->_n._n_name, ext->e.e_name, SYMNMLEN); |
342 | 74.2k | #endif |
343 | 74.2k | } |
344 | | |
345 | 187k | in->n_value = H_GET_32 (abfd, ext->e_value); |
346 | 187k | in->n_scnum = (short) H_GET_16 (abfd, ext->e_scnum); |
347 | 187k | if (sizeof (ext->e_type) == 2) |
348 | 187k | 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 | 187k | in->n_sclass = H_GET_8 (abfd, ext->e_sclass); |
352 | 187k | in->n_numaux = H_GET_8 (abfd, ext->e_numaux); |
353 | | #ifdef COFF_ADJUST_SYM_IN_POST |
354 | 21.0k | COFF_ADJUST_SYM_IN_POST (abfd, ext1, in1); |
355 | | #endif |
356 | 187k | } coff-x86_64.c:coff_swap_sym_in Line | Count | Source | 327 | 37.8k | { | 328 | 37.8k | SYMENT *ext = (SYMENT *) ext1; | 329 | 37.8k | struct internal_syment *in = (struct internal_syment *) in1; | 330 | | | 331 | 37.8k | if (ext->e.e_name[0] == 0) | 332 | 24.0k | { | 333 | 24.0k | in->_n._n_n._n_zeroes = 0; | 334 | 24.0k | in->_n._n_n._n_offset = H_GET_32 (abfd, ext->e.e.e_offset); | 335 | 24.0k | } | 336 | 13.7k | else | 337 | 13.7k | { | 338 | | #if SYMNMLEN != E_SYMNMLEN | 339 | | #error we need to cope with truncating or extending SYMNMLEN | 340 | | #else | 341 | 13.7k | memcpy (in->_n._n_name, ext->e.e_name, SYMNMLEN); | 342 | 13.7k | #endif | 343 | 13.7k | } | 344 | | | 345 | 37.8k | in->n_value = H_GET_32 (abfd, ext->e_value); | 346 | 37.8k | in->n_scnum = (short) H_GET_16 (abfd, ext->e_scnum); | 347 | 37.8k | if (sizeof (ext->e_type) == 2) | 348 | 37.8k | 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 | 37.8k | in->n_sclass = H_GET_8 (abfd, ext->e_sclass); | 352 | 37.8k | 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 | 37.8k | } |
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 | 30.2k | { | 328 | 30.2k | SYMENT *ext = (SYMENT *) ext1; | 329 | 30.2k | struct internal_syment *in = (struct internal_syment *) in1; | 330 | | | 331 | 30.2k | if (ext->e.e_name[0] == 0) | 332 | 18.2k | { | 333 | 18.2k | in->_n._n_n._n_zeroes = 0; | 334 | 18.2k | in->_n._n_n._n_offset = H_GET_32 (abfd, ext->e.e.e_offset); | 335 | 18.2k | } | 336 | 12.0k | else | 337 | 12.0k | { | 338 | | #if SYMNMLEN != E_SYMNMLEN | 339 | | #error we need to cope with truncating or extending SYMNMLEN | 340 | | #else | 341 | 12.0k | memcpy (in->_n._n_name, ext->e.e_name, SYMNMLEN); | 342 | 12.0k | #endif | 343 | 12.0k | } | 344 | | | 345 | 30.2k | in->n_value = H_GET_32 (abfd, ext->e_value); | 346 | 30.2k | in->n_scnum = (short) H_GET_16 (abfd, ext->e_scnum); | 347 | 30.2k | if (sizeof (ext->e_type) == 2) | 348 | 30.2k | 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 | 30.2k | in->n_sclass = H_GET_8 (abfd, ext->e_sclass); | 352 | 30.2k | 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 | 30.2k | } |
Unexecuted instantiation: coff-stgo32.c:coff_swap_sym_in coff-tic30.c:coff_swap_sym_in Line | Count | Source | 327 | 44.7k | { | 328 | 44.7k | SYMENT *ext = (SYMENT *) ext1; | 329 | 44.7k | struct internal_syment *in = (struct internal_syment *) in1; | 330 | | | 331 | 44.7k | if (ext->e.e_name[0] == 0) | 332 | 27.0k | { | 333 | 27.0k | in->_n._n_n._n_zeroes = 0; | 334 | 27.0k | in->_n._n_n._n_offset = H_GET_32 (abfd, ext->e.e.e_offset); | 335 | 27.0k | } | 336 | 17.7k | else | 337 | 17.7k | { | 338 | | #if SYMNMLEN != E_SYMNMLEN | 339 | | #error we need to cope with truncating or extending SYMNMLEN | 340 | | #else | 341 | 17.7k | memcpy (in->_n._n_name, ext->e.e_name, SYMNMLEN); | 342 | 17.7k | #endif | 343 | 17.7k | } | 344 | | | 345 | 44.7k | in->n_value = H_GET_32 (abfd, ext->e_value); | 346 | 44.7k | in->n_scnum = (short) H_GET_16 (abfd, ext->e_scnum); | 347 | 44.7k | if (sizeof (ext->e_type) == 2) | 348 | 44.7k | 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 | 44.7k | in->n_sclass = H_GET_8 (abfd, ext->e_sclass); | 352 | 44.7k | 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 | 44.7k | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_sym_in coff-tic54x.c:coff_swap_sym_in Line | Count | Source | 327 | 21.0k | { | 328 | 21.0k | SYMENT *ext = (SYMENT *) ext1; | 329 | 21.0k | struct internal_syment *in = (struct internal_syment *) in1; | 330 | | | 331 | 21.0k | if (ext->e.e_name[0] == 0) | 332 | 12.4k | { | 333 | 12.4k | in->_n._n_n._n_zeroes = 0; | 334 | 12.4k | in->_n._n_n._n_offset = H_GET_32 (abfd, ext->e.e.e_offset); | 335 | 12.4k | } | 336 | 8.54k | else | 337 | 8.54k | { | 338 | | #if SYMNMLEN != E_SYMNMLEN | 339 | | #error we need to cope with truncating or extending SYMNMLEN | 340 | | #else | 341 | 8.54k | memcpy (in->_n._n_name, ext->e.e_name, SYMNMLEN); | 342 | 8.54k | #endif | 343 | 8.54k | } | 344 | | | 345 | 21.0k | in->n_value = H_GET_32 (abfd, ext->e_value); | 346 | 21.0k | in->n_scnum = (short) H_GET_16 (abfd, ext->e_scnum); | 347 | 21.0k | if (sizeof (ext->e_type) == 2) | 348 | 21.0k | 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 | 21.0k | in->n_sclass = H_GET_8 (abfd, ext->e_sclass); | 352 | 21.0k | in->n_numaux = H_GET_8 (abfd, ext->e_numaux); | 353 | 21.0k | #ifdef COFF_ADJUST_SYM_IN_POST | 354 | 21.0k | COFF_ADJUST_SYM_IN_POST (abfd, ext1, in1); | 355 | 21.0k | #endif | 356 | 21.0k | } |
coff-z80.c:coff_swap_sym_in Line | Count | Source | 327 | 34.9k | { | 328 | 34.9k | SYMENT *ext = (SYMENT *) ext1; | 329 | 34.9k | struct internal_syment *in = (struct internal_syment *) in1; | 330 | | | 331 | 34.9k | if (ext->e.e_name[0] == 0) | 332 | 20.0k | { | 333 | 20.0k | in->_n._n_n._n_zeroes = 0; | 334 | 20.0k | in->_n._n_n._n_offset = H_GET_32 (abfd, ext->e.e.e_offset); | 335 | 20.0k | } | 336 | 14.8k | else | 337 | 14.8k | { | 338 | | #if SYMNMLEN != E_SYMNMLEN | 339 | | #error we need to cope with truncating or extending SYMNMLEN | 340 | | #else | 341 | 14.8k | memcpy (in->_n._n_name, ext->e.e_name, SYMNMLEN); | 342 | 14.8k | #endif | 343 | 14.8k | } | 344 | | | 345 | 34.9k | in->n_value = H_GET_32 (abfd, ext->e_value); | 346 | 34.9k | in->n_scnum = (short) H_GET_16 (abfd, ext->e_scnum); | 347 | 34.9k | if (sizeof (ext->e_type) == 2) | 348 | 34.9k | 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 | 34.9k | in->n_sclass = H_GET_8 (abfd, ext->e_sclass); | 352 | 34.9k | 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 | 34.9k | } |
coff-z8k.c:coff_swap_sym_in Line | Count | Source | 327 | 18.3k | { | 328 | 18.3k | SYMENT *ext = (SYMENT *) ext1; | 329 | 18.3k | struct internal_syment *in = (struct internal_syment *) in1; | 330 | | | 331 | 18.3k | if (ext->e.e_name[0] == 0) | 332 | 11.0k | { | 333 | 11.0k | in->_n._n_n._n_zeroes = 0; | 334 | 11.0k | in->_n._n_n._n_offset = H_GET_32 (abfd, ext->e.e.e_offset); | 335 | 11.0k | } | 336 | 7.30k | else | 337 | 7.30k | { | 338 | | #if SYMNMLEN != E_SYMNMLEN | 339 | | #error we need to cope with truncating or extending SYMNMLEN | 340 | | #else | 341 | 7.30k | memcpy (in->_n._n_name, ext->e.e_name, SYMNMLEN); | 342 | 7.30k | #endif | 343 | 7.30k | } | 344 | | | 345 | 18.3k | in->n_value = H_GET_32 (abfd, ext->e_value); | 346 | 18.3k | in->n_scnum = (short) H_GET_16 (abfd, ext->e_scnum); | 347 | 18.3k | if (sizeof (ext->e_type) == 2) | 348 | 18.3k | 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 | 18.3k | in->n_sclass = H_GET_8 (abfd, ext->e_sclass); | 352 | 18.3k | 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 | 18.3k | } |
|
357 | | |
358 | | static unsigned int |
359 | | coff_swap_sym_out (bfd * abfd, void * inp, void * extp) |
360 | 1.06k | { |
361 | 1.06k | struct internal_syment *in = (struct internal_syment *) inp; |
362 | 1.06k | 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 | 1.06k | if (in->_n._n_name[0] == 0) |
369 | 821 | { |
370 | 821 | H_PUT_32 (abfd, 0, ext->e.e.e_zeroes); |
371 | 821 | H_PUT_32 (abfd, in->_n._n_n._n_offset, ext->e.e.e_offset); |
372 | 821 | } |
373 | 239 | else |
374 | 239 | { |
375 | | #if SYMNMLEN != E_SYMNMLEN |
376 | | #error we need to cope with truncating or extending SYMNMLEN |
377 | | #else |
378 | 239 | memcpy (ext->e.e_name, in->_n._n_name, SYMNMLEN); |
379 | 239 | #endif |
380 | 239 | } |
381 | | |
382 | 1.06k | H_PUT_32 (abfd, in->n_value, ext->e_value); |
383 | 1.06k | H_PUT_16 (abfd, in->n_scnum, ext->e_scnum); |
384 | | |
385 | 1.06k | if (sizeof (ext->e_type) == 2) |
386 | 1.06k | H_PUT_16 (abfd, in->n_type, ext->e_type); |
387 | 0 | else |
388 | 1.06k | H_PUT_32 (abfd, in->n_type, ext->e_type); |
389 | | |
390 | 1.06k | H_PUT_8 (abfd, in->n_sclass, ext->e_sclass); |
391 | 1.06k | H_PUT_8 (abfd, in->n_numaux, ext->e_numaux); |
392 | | |
393 | | #ifdef COFF_ADJUST_SYM_OUT_POST |
394 | 191 | COFF_ADJUST_SYM_OUT_POST (abfd, inp, extp); |
395 | | #endif |
396 | | |
397 | 1.06k | return SYMESZ; |
398 | 1.06k | } coff-x86_64.c:coff_swap_sym_out Line | Count | Source | 360 | 126 | { | 361 | 126 | struct internal_syment *in = (struct internal_syment *) inp; | 362 | 126 | 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 | 126 | if (in->_n._n_name[0] == 0) | 369 | 34 | { | 370 | 34 | H_PUT_32 (abfd, 0, ext->e.e.e_zeroes); | 371 | 34 | H_PUT_32 (abfd, in->_n._n_n._n_offset, ext->e.e.e_offset); | 372 | 34 | } | 373 | 92 | else | 374 | 92 | { | 375 | | #if SYMNMLEN != E_SYMNMLEN | 376 | | #error we need to cope with truncating or extending SYMNMLEN | 377 | | #else | 378 | 92 | memcpy (ext->e.e_name, in->_n._n_name, SYMNMLEN); | 379 | 92 | #endif | 380 | 92 | } | 381 | | | 382 | 126 | H_PUT_32 (abfd, in->n_value, ext->e_value); | 383 | 126 | H_PUT_16 (abfd, in->n_scnum, ext->e_scnum); | 384 | | | 385 | 126 | if (sizeof (ext->e_type) == 2) | 386 | 126 | H_PUT_16 (abfd, in->n_type, ext->e_type); | 387 | 0 | else | 388 | 126 | H_PUT_32 (abfd, in->n_type, ext->e_type); | 389 | | | 390 | 126 | H_PUT_8 (abfd, in->n_sclass, ext->e_sclass); | 391 | 126 | 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 | 126 | return SYMESZ; | 398 | 126 | } |
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 coff-sh.c:coff_swap_sym_out Line | Count | Source | 360 | 91 | { | 361 | 91 | struct internal_syment *in = (struct internal_syment *) inp; | 362 | 91 | 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 | 91 | if (in->_n._n_name[0] == 0) | 369 | 61 | { | 370 | 61 | H_PUT_32 (abfd, 0, ext->e.e.e_zeroes); | 371 | 61 | H_PUT_32 (abfd, in->_n._n_n._n_offset, ext->e.e.e_offset); | 372 | 61 | } | 373 | 30 | else | 374 | 30 | { | 375 | | #if SYMNMLEN != E_SYMNMLEN | 376 | | #error we need to cope with truncating or extending SYMNMLEN | 377 | | #else | 378 | 30 | memcpy (ext->e.e_name, in->_n._n_name, SYMNMLEN); | 379 | 30 | #endif | 380 | 30 | } | 381 | | | 382 | 91 | H_PUT_32 (abfd, in->n_value, ext->e_value); | 383 | 91 | H_PUT_16 (abfd, in->n_scnum, ext->e_scnum); | 384 | | | 385 | 91 | if (sizeof (ext->e_type) == 2) | 386 | 91 | H_PUT_16 (abfd, in->n_type, ext->e_type); | 387 | 0 | else | 388 | 91 | H_PUT_32 (abfd, in->n_type, ext->e_type); | 389 | | | 390 | 91 | H_PUT_8 (abfd, in->n_sclass, ext->e_sclass); | 391 | 91 | 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 | 91 | return SYMESZ; | 398 | 91 | } |
Unexecuted instantiation: coff-stgo32.c:coff_swap_sym_out coff-tic30.c:coff_swap_sym_out Line | Count | Source | 360 | 57 | { | 361 | 57 | struct internal_syment *in = (struct internal_syment *) inp; | 362 | 57 | 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 | 57 | if (in->_n._n_name[0] == 0) | 369 | 39 | { | 370 | 39 | H_PUT_32 (abfd, 0, ext->e.e.e_zeroes); | 371 | 39 | H_PUT_32 (abfd, in->_n._n_n._n_offset, ext->e.e.e_offset); | 372 | 39 | } | 373 | 18 | else | 374 | 18 | { | 375 | | #if SYMNMLEN != E_SYMNMLEN | 376 | | #error we need to cope with truncating or extending SYMNMLEN | 377 | | #else | 378 | 18 | memcpy (ext->e.e_name, in->_n._n_name, SYMNMLEN); | 379 | 18 | #endif | 380 | 18 | } | 381 | | | 382 | 57 | H_PUT_32 (abfd, in->n_value, ext->e_value); | 383 | 57 | H_PUT_16 (abfd, in->n_scnum, ext->e_scnum); | 384 | | | 385 | 57 | if (sizeof (ext->e_type) == 2) | 386 | 57 | H_PUT_16 (abfd, in->n_type, ext->e_type); | 387 | 0 | else | 388 | 57 | H_PUT_32 (abfd, in->n_type, ext->e_type); | 389 | | | 390 | 57 | H_PUT_8 (abfd, in->n_sclass, ext->e_sclass); | 391 | 57 | 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 | 57 | return SYMESZ; | 398 | 57 | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_sym_out coff-tic54x.c:coff_swap_sym_out Line | Count | Source | 360 | 191 | { | 361 | 191 | struct internal_syment *in = (struct internal_syment *) inp; | 362 | 191 | 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 | 191 | if (in->_n._n_name[0] == 0) | 369 | 164 | { | 370 | 164 | H_PUT_32 (abfd, 0, ext->e.e.e_zeroes); | 371 | 164 | H_PUT_32 (abfd, in->_n._n_n._n_offset, ext->e.e.e_offset); | 372 | 164 | } | 373 | 27 | else | 374 | 27 | { | 375 | | #if SYMNMLEN != E_SYMNMLEN | 376 | | #error we need to cope with truncating or extending SYMNMLEN | 377 | | #else | 378 | 27 | memcpy (ext->e.e_name, in->_n._n_name, SYMNMLEN); | 379 | 27 | #endif | 380 | 27 | } | 381 | | | 382 | 191 | H_PUT_32 (abfd, in->n_value, ext->e_value); | 383 | 191 | H_PUT_16 (abfd, in->n_scnum, ext->e_scnum); | 384 | | | 385 | 191 | if (sizeof (ext->e_type) == 2) | 386 | 191 | H_PUT_16 (abfd, in->n_type, ext->e_type); | 387 | 0 | else | 388 | 191 | H_PUT_32 (abfd, in->n_type, ext->e_type); | 389 | | | 390 | 191 | H_PUT_8 (abfd, in->n_sclass, ext->e_sclass); | 391 | 191 | H_PUT_8 (abfd, in->n_numaux, ext->e_numaux); | 392 | | | 393 | 191 | #ifdef COFF_ADJUST_SYM_OUT_POST | 394 | 191 | COFF_ADJUST_SYM_OUT_POST (abfd, inp, extp); | 395 | 191 | #endif | 396 | | | 397 | 191 | return SYMESZ; | 398 | 191 | } |
coff-z80.c:coff_swap_sym_out Line | Count | Source | 360 | 189 | { | 361 | 189 | struct internal_syment *in = (struct internal_syment *) inp; | 362 | 189 | 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 | 189 | if (in->_n._n_name[0] == 0) | 369 | 153 | { | 370 | 153 | H_PUT_32 (abfd, 0, ext->e.e.e_zeroes); | 371 | 153 | H_PUT_32 (abfd, in->_n._n_n._n_offset, ext->e.e.e_offset); | 372 | 153 | } | 373 | 36 | else | 374 | 36 | { | 375 | | #if SYMNMLEN != E_SYMNMLEN | 376 | | #error we need to cope with truncating or extending SYMNMLEN | 377 | | #else | 378 | 36 | memcpy (ext->e.e_name, in->_n._n_name, SYMNMLEN); | 379 | 36 | #endif | 380 | 36 | } | 381 | | | 382 | 189 | H_PUT_32 (abfd, in->n_value, ext->e_value); | 383 | 189 | H_PUT_16 (abfd, in->n_scnum, ext->e_scnum); | 384 | | | 385 | 189 | if (sizeof (ext->e_type) == 2) | 386 | 189 | H_PUT_16 (abfd, in->n_type, ext->e_type); | 387 | 0 | else | 388 | 189 | H_PUT_32 (abfd, in->n_type, ext->e_type); | 389 | | | 390 | 189 | H_PUT_8 (abfd, in->n_sclass, ext->e_sclass); | 391 | 189 | 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 | 189 | return SYMESZ; | 398 | 189 | } |
coff-z8k.c:coff_swap_sym_out Line | Count | Source | 360 | 406 | { | 361 | 406 | struct internal_syment *in = (struct internal_syment *) inp; | 362 | 406 | 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 | 406 | if (in->_n._n_name[0] == 0) | 369 | 370 | { | 370 | 370 | H_PUT_32 (abfd, 0, ext->e.e.e_zeroes); | 371 | 370 | H_PUT_32 (abfd, in->_n._n_n._n_offset, ext->e.e.e_offset); | 372 | 370 | } | 373 | 36 | else | 374 | 36 | { | 375 | | #if SYMNMLEN != E_SYMNMLEN | 376 | | #error we need to cope with truncating or extending SYMNMLEN | 377 | | #else | 378 | 36 | memcpy (ext->e.e_name, in->_n._n_name, SYMNMLEN); | 379 | 36 | #endif | 380 | 36 | } | 381 | | | 382 | 406 | H_PUT_32 (abfd, in->n_value, ext->e_value); | 383 | 406 | H_PUT_16 (abfd, in->n_scnum, ext->e_scnum); | 384 | | | 385 | 406 | if (sizeof (ext->e_type) == 2) | 386 | 406 | H_PUT_16 (abfd, in->n_type, ext->e_type); | 387 | 0 | else | 388 | 406 | H_PUT_32 (abfd, in->n_type, ext->e_type); | 389 | | | 390 | 406 | H_PUT_8 (abfd, in->n_sclass, ext->e_sclass); | 391 | 406 | 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 | 406 | return SYMESZ; | 398 | 406 | } |
|
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 | 859k | { |
409 | 859k | AUXENT *ext = (AUXENT *) ext1; |
410 | 859k | 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 | 859k | switch (in_class) |
417 | 859k | { |
418 | 53.3k | case C_FILE: |
419 | 53.3k | if (ext->x_file.x_fname[0] == 0) |
420 | 24.7k | { |
421 | 24.7k | in->x_file.x_n.x_n.x_zeroes = 0; |
422 | 24.7k | in->x_file.x_n.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset); |
423 | 24.7k | } |
424 | 28.6k | else |
425 | | #if FILNMLEN != E_FILNMLEN |
426 | | #error we need to cope with truncating or extending x_fname |
427 | | #endif |
428 | 28.6k | memcpy (in->x_file.x_n.x_fname, ext->x_file.x_fname, FILNMLEN); |
429 | 53.3k | goto end; |
430 | | |
431 | 54.4k | case C_STAT: |
432 | 54.4k | #ifdef C_LEAFSTAT |
433 | 78.8k | case C_LEAFSTAT: |
434 | 78.8k | #endif |
435 | 101k | case C_HIDDEN: |
436 | 101k | if (type == T_NULL) |
437 | 18.9k | { |
438 | 18.9k | in->x_scn.x_scnlen = GET_SCN_SCNLEN (abfd, ext); |
439 | 18.9k | in->x_scn.x_nreloc = GET_SCN_NRELOC (abfd, ext); |
440 | 18.9k | in->x_scn.x_nlinno = GET_SCN_NLINNO (abfd, ext); |
441 | | |
442 | | /* PE defines some extra fields; we zero them out for |
443 | | safety. */ |
444 | 18.9k | in->x_scn.x_checksum = 0; |
445 | 18.9k | in->x_scn.x_associated = 0; |
446 | 18.9k | in->x_scn.x_comdat = 0; |
447 | | |
448 | 18.9k | goto end; |
449 | 18.9k | } |
450 | 82.3k | break; |
451 | 859k | } |
452 | | |
453 | 787k | in->x_sym.x_tagndx.u32 = H_GET_32 (abfd, ext->x_sym.x_tagndx); |
454 | 787k | #ifndef NO_TVNDX |
455 | 787k | in->x_sym.x_tvndx = H_GET_16 (abfd, ext->x_sym.x_tvndx); |
456 | 787k | #endif |
457 | | |
458 | 787k | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) |
459 | 612k | || ISTAG (in_class)) |
460 | 223k | { |
461 | 223k | in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR (abfd, ext); |
462 | 223k | in->x_sym.x_fcnary.x_fcn.x_endndx.u32 = GET_FCN_ENDNDX (abfd, ext); |
463 | 223k | } |
464 | 564k | else |
465 | 564k | { |
466 | | #if DIMNUM != E_DIMNUM |
467 | | #error we need to cope with truncating or extending DIMNUM |
468 | | #endif |
469 | 564k | in->x_sym.x_fcnary.x_ary.x_dimen[0] = |
470 | 564k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[0]); |
471 | 564k | in->x_sym.x_fcnary.x_ary.x_dimen[1] = |
472 | 564k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[1]); |
473 | 564k | in->x_sym.x_fcnary.x_ary.x_dimen[2] = |
474 | 564k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[2]); |
475 | 564k | in->x_sym.x_fcnary.x_ary.x_dimen[3] = |
476 | 564k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[3]); |
477 | 564k | } |
478 | | |
479 | 787k | if (ISFCN (type)) |
480 | 154k | in->x_sym.x_misc.x_fsize = H_GET_32 (abfd, ext->x_sym.x_misc.x_fsize); |
481 | 633k | else |
482 | 633k | { |
483 | 633k | in->x_sym.x_misc.x_lnsz.x_lnno = GET_LNSZ_LNNO (abfd, ext); |
484 | 633k | in->x_sym.x_misc.x_lnsz.x_size = GET_LNSZ_SIZE (abfd, ext); |
485 | 633k | } |
486 | | |
487 | 859k | end: ; |
488 | | |
489 | | #ifdef COFF_ADJUST_AUX_IN_POST |
490 | | COFF_ADJUST_AUX_IN_POST (abfd, ext1, type, in_class, indx, numaux, in1); |
491 | | #endif |
492 | 859k | } coff-x86_64.c:coff_swap_aux_in Line | Count | Source | 408 | 117k | { | 409 | 117k | AUXENT *ext = (AUXENT *) ext1; | 410 | 117k | 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 | 117k | switch (in_class) | 417 | 117k | { | 418 | 7.20k | case C_FILE: | 419 | 7.20k | if (ext->x_file.x_fname[0] == 0) | 420 | 3.55k | { | 421 | 3.55k | in->x_file.x_n.x_n.x_zeroes = 0; | 422 | 3.55k | in->x_file.x_n.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset); | 423 | 3.55k | } | 424 | 3.65k | else | 425 | | #if FILNMLEN != E_FILNMLEN | 426 | | #error we need to cope with truncating or extending x_fname | 427 | | #endif | 428 | 3.65k | memcpy (in->x_file.x_n.x_fname, ext->x_file.x_fname, FILNMLEN); | 429 | 7.20k | goto end; | 430 | | | 431 | 3.02k | case C_STAT: | 432 | 3.02k | #ifdef C_LEAFSTAT | 433 | 4.35k | case C_LEAFSTAT: | 434 | 4.35k | #endif | 435 | 6.87k | case C_HIDDEN: | 436 | 6.87k | if (type == T_NULL) | 437 | 2.79k | { | 438 | 2.79k | in->x_scn.x_scnlen = GET_SCN_SCNLEN (abfd, ext); | 439 | 2.79k | in->x_scn.x_nreloc = GET_SCN_NRELOC (abfd, ext); | 440 | 2.79k | in->x_scn.x_nlinno = GET_SCN_NLINNO (abfd, ext); | 441 | | | 442 | | /* PE defines some extra fields; we zero them out for | 443 | | safety. */ | 444 | 2.79k | in->x_scn.x_checksum = 0; | 445 | 2.79k | in->x_scn.x_associated = 0; | 446 | 2.79k | in->x_scn.x_comdat = 0; | 447 | | | 448 | 2.79k | goto end; | 449 | 2.79k | } | 450 | 4.08k | break; | 451 | 117k | } | 452 | | | 453 | 107k | in->x_sym.x_tagndx.u32 = H_GET_32 (abfd, ext->x_sym.x_tagndx); | 454 | 107k | #ifndef NO_TVNDX | 455 | 107k | in->x_sym.x_tvndx = H_GET_16 (abfd, ext->x_sym.x_tvndx); | 456 | 107k | #endif | 457 | | | 458 | 107k | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 459 | 88.3k | || ISTAG (in_class)) | 460 | 26.3k | { | 461 | 26.3k | in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR (abfd, ext); | 462 | 26.3k | in->x_sym.x_fcnary.x_fcn.x_endndx.u32 = GET_FCN_ENDNDX (abfd, ext); | 463 | 26.3k | } | 464 | 80.8k | else | 465 | 80.8k | { | 466 | | #if DIMNUM != E_DIMNUM | 467 | | #error we need to cope with truncating or extending DIMNUM | 468 | | #endif | 469 | 80.8k | in->x_sym.x_fcnary.x_ary.x_dimen[0] = | 470 | 80.8k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 471 | 80.8k | in->x_sym.x_fcnary.x_ary.x_dimen[1] = | 472 | 80.8k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 473 | 80.8k | in->x_sym.x_fcnary.x_ary.x_dimen[2] = | 474 | 80.8k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 475 | 80.8k | in->x_sym.x_fcnary.x_ary.x_dimen[3] = | 476 | 80.8k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 477 | 80.8k | } | 478 | | | 479 | 107k | if (ISFCN (type)) | 480 | 17.8k | in->x_sym.x_misc.x_fsize = H_GET_32 (abfd, ext->x_sym.x_misc.x_fsize); | 481 | 89.3k | else | 482 | 89.3k | { | 483 | 89.3k | in->x_sym.x_misc.x_lnsz.x_lnno = GET_LNSZ_LNNO (abfd, ext); | 484 | 89.3k | in->x_sym.x_misc.x_lnsz.x_size = GET_LNSZ_SIZE (abfd, ext); | 485 | 89.3k | } | 486 | | | 487 | 117k | end: ; | 488 | | | 489 | | #ifdef COFF_ADJUST_AUX_IN_POST | 490 | | COFF_ADJUST_AUX_IN_POST (abfd, ext1, type, in_class, indx, numaux, in1); | 491 | | #endif | 492 | 117k | } |
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 | 108k | { | 409 | 108k | AUXENT *ext = (AUXENT *) ext1; | 410 | 108k | 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 | 108k | switch (in_class) | 417 | 108k | { | 418 | 18.1k | case C_FILE: | 419 | 18.1k | if (ext->x_file.x_fname[0] == 0) | 420 | 6.46k | { | 421 | 6.46k | in->x_file.x_n.x_n.x_zeroes = 0; | 422 | 6.46k | in->x_file.x_n.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset); | 423 | 6.46k | } | 424 | 11.6k | else | 425 | | #if FILNMLEN != E_FILNMLEN | 426 | | #error we need to cope with truncating or extending x_fname | 427 | | #endif | 428 | 11.6k | memcpy (in->x_file.x_n.x_fname, ext->x_file.x_fname, FILNMLEN); | 429 | 18.1k | goto end; | 430 | | | 431 | 2.28k | case C_STAT: | 432 | 2.28k | #ifdef C_LEAFSTAT | 433 | 3.46k | case C_LEAFSTAT: | 434 | 3.46k | #endif | 435 | 5.57k | case C_HIDDEN: | 436 | 5.57k | if (type == T_NULL) | 437 | 1.17k | { | 438 | 1.17k | in->x_scn.x_scnlen = GET_SCN_SCNLEN (abfd, ext); | 439 | 1.17k | in->x_scn.x_nreloc = GET_SCN_NRELOC (abfd, ext); | 440 | 1.17k | in->x_scn.x_nlinno = GET_SCN_NLINNO (abfd, ext); | 441 | | | 442 | | /* PE defines some extra fields; we zero them out for | 443 | | safety. */ | 444 | 1.17k | in->x_scn.x_checksum = 0; | 445 | 1.17k | in->x_scn.x_associated = 0; | 446 | 1.17k | in->x_scn.x_comdat = 0; | 447 | | | 448 | 1.17k | goto end; | 449 | 1.17k | } | 450 | 4.40k | break; | 451 | 108k | } | 452 | | | 453 | 88.7k | in->x_sym.x_tagndx.u32 = H_GET_32 (abfd, ext->x_sym.x_tagndx); | 454 | 88.7k | #ifndef NO_TVNDX | 455 | 88.7k | in->x_sym.x_tvndx = H_GET_16 (abfd, ext->x_sym.x_tvndx); | 456 | 88.7k | #endif | 457 | | | 458 | 88.7k | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 459 | 68.6k | || ISTAG (in_class)) | 460 | 27.6k | { | 461 | 27.6k | in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR (abfd, ext); | 462 | 27.6k | in->x_sym.x_fcnary.x_fcn.x_endndx.u32 = GET_FCN_ENDNDX (abfd, ext); | 463 | 27.6k | } | 464 | 61.1k | else | 465 | 61.1k | { | 466 | | #if DIMNUM != E_DIMNUM | 467 | | #error we need to cope with truncating or extending DIMNUM | 468 | | #endif | 469 | 61.1k | in->x_sym.x_fcnary.x_ary.x_dimen[0] = | 470 | 61.1k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 471 | 61.1k | in->x_sym.x_fcnary.x_ary.x_dimen[1] = | 472 | 61.1k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 473 | 61.1k | in->x_sym.x_fcnary.x_ary.x_dimen[2] = | 474 | 61.1k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 475 | 61.1k | in->x_sym.x_fcnary.x_ary.x_dimen[3] = | 476 | 61.1k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 477 | 61.1k | } | 478 | | | 479 | 88.7k | if (ISFCN (type)) | 480 | 18.4k | in->x_sym.x_misc.x_fsize = H_GET_32 (abfd, ext->x_sym.x_misc.x_fsize); | 481 | 70.3k | else | 482 | 70.3k | { | 483 | 70.3k | in->x_sym.x_misc.x_lnsz.x_lnno = GET_LNSZ_LNNO (abfd, ext); | 484 | 70.3k | in->x_sym.x_misc.x_lnsz.x_size = GET_LNSZ_SIZE (abfd, ext); | 485 | 70.3k | } | 486 | | | 487 | 108k | end: ; | 488 | | | 489 | | #ifdef COFF_ADJUST_AUX_IN_POST | 490 | | COFF_ADJUST_AUX_IN_POST (abfd, ext1, type, in_class, indx, numaux, in1); | 491 | | #endif | 492 | 108k | } |
Unexecuted instantiation: coff-stgo32.c:coff_swap_aux_in coff-tic30.c:coff_swap_aux_in Line | Count | Source | 408 | 152k | { | 409 | 152k | AUXENT *ext = (AUXENT *) ext1; | 410 | 152k | 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 | 152k | switch (in_class) | 417 | 152k | { | 418 | 3.65k | case C_FILE: | 419 | 3.65k | if (ext->x_file.x_fname[0] == 0) | 420 | 1.58k | { | 421 | 1.58k | in->x_file.x_n.x_n.x_zeroes = 0; | 422 | 1.58k | in->x_file.x_n.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset); | 423 | 1.58k | } | 424 | 2.06k | else | 425 | | #if FILNMLEN != E_FILNMLEN | 426 | | #error we need to cope with truncating or extending x_fname | 427 | | #endif | 428 | 2.06k | memcpy (in->x_file.x_n.x_fname, ext->x_file.x_fname, FILNMLEN); | 429 | 3.65k | goto end; | 430 | | | 431 | 11.9k | case C_STAT: | 432 | 11.9k | #ifdef C_LEAFSTAT | 433 | 26.3k | case C_LEAFSTAT: | 434 | 26.3k | #endif | 435 | 27.8k | case C_HIDDEN: | 436 | 27.8k | if (type == T_NULL) | 437 | 10.2k | { | 438 | 10.2k | in->x_scn.x_scnlen = GET_SCN_SCNLEN (abfd, ext); | 439 | 10.2k | in->x_scn.x_nreloc = GET_SCN_NRELOC (abfd, ext); | 440 | 10.2k | in->x_scn.x_nlinno = GET_SCN_NLINNO (abfd, ext); | 441 | | | 442 | | /* PE defines some extra fields; we zero them out for | 443 | | safety. */ | 444 | 10.2k | in->x_scn.x_checksum = 0; | 445 | 10.2k | in->x_scn.x_associated = 0; | 446 | 10.2k | in->x_scn.x_comdat = 0; | 447 | | | 448 | 10.2k | goto end; | 449 | 10.2k | } | 450 | 17.5k | break; | 451 | 152k | } | 452 | | | 453 | 138k | in->x_sym.x_tagndx.u32 = H_GET_32 (abfd, ext->x_sym.x_tagndx); | 454 | 138k | #ifndef NO_TVNDX | 455 | 138k | in->x_sym.x_tvndx = H_GET_16 (abfd, ext->x_sym.x_tvndx); | 456 | 138k | #endif | 457 | | | 458 | 138k | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 459 | 116k | || ISTAG (in_class)) | 460 | 29.7k | { | 461 | 29.7k | in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR (abfd, ext); | 462 | 29.7k | in->x_sym.x_fcnary.x_fcn.x_endndx.u32 = GET_FCN_ENDNDX (abfd, ext); | 463 | 29.7k | } | 464 | 108k | else | 465 | 108k | { | 466 | | #if DIMNUM != E_DIMNUM | 467 | | #error we need to cope with truncating or extending DIMNUM | 468 | | #endif | 469 | 108k | in->x_sym.x_fcnary.x_ary.x_dimen[0] = | 470 | 108k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 471 | 108k | in->x_sym.x_fcnary.x_ary.x_dimen[1] = | 472 | 108k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 473 | 108k | in->x_sym.x_fcnary.x_ary.x_dimen[2] = | 474 | 108k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 475 | 108k | in->x_sym.x_fcnary.x_ary.x_dimen[3] = | 476 | 108k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 477 | 108k | } | 478 | | | 479 | 138k | if (ISFCN (type)) | 480 | 16.4k | in->x_sym.x_misc.x_fsize = H_GET_32 (abfd, ext->x_sym.x_misc.x_fsize); | 481 | 122k | else | 482 | 122k | { | 483 | 122k | in->x_sym.x_misc.x_lnsz.x_lnno = GET_LNSZ_LNNO (abfd, ext); | 484 | 122k | in->x_sym.x_misc.x_lnsz.x_size = GET_LNSZ_SIZE (abfd, ext); | 485 | 122k | } | 486 | | | 487 | 152k | end: ; | 488 | | | 489 | | #ifdef COFF_ADJUST_AUX_IN_POST | 490 | | COFF_ADJUST_AUX_IN_POST (abfd, ext1, type, in_class, indx, numaux, in1); | 491 | | #endif | 492 | 152k | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_aux_in coff-tic54x.c:coff_swap_aux_in Line | Count | Source | 408 | 83.1k | { | 409 | 83.1k | AUXENT *ext = (AUXENT *) ext1; | 410 | 83.1k | 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 | 83.1k | switch (in_class) | 417 | 83.1k | { | 418 | 5.35k | case C_FILE: | 419 | 5.35k | if (ext->x_file.x_fname[0] == 0) | 420 | 2.14k | { | 421 | 2.14k | in->x_file.x_n.x_n.x_zeroes = 0; | 422 | 2.14k | in->x_file.x_n.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset); | 423 | 2.14k | } | 424 | 3.20k | else | 425 | | #if FILNMLEN != E_FILNMLEN | 426 | | #error we need to cope with truncating or extending x_fname | 427 | | #endif | 428 | 3.20k | memcpy (in->x_file.x_n.x_fname, ext->x_file.x_fname, FILNMLEN); | 429 | 5.35k | goto end; | 430 | | | 431 | 3.40k | case C_STAT: | 432 | 3.40k | #ifdef C_LEAFSTAT | 433 | 4.10k | case C_LEAFSTAT: | 434 | 4.10k | #endif | 435 | 5.59k | case C_HIDDEN: | 436 | 5.59k | if (type == T_NULL) | 437 | 1.85k | { | 438 | 1.85k | in->x_scn.x_scnlen = GET_SCN_SCNLEN (abfd, ext); | 439 | 1.85k | in->x_scn.x_nreloc = GET_SCN_NRELOC (abfd, ext); | 440 | 1.85k | in->x_scn.x_nlinno = GET_SCN_NLINNO (abfd, ext); | 441 | | | 442 | | /* PE defines some extra fields; we zero them out for | 443 | | safety. */ | 444 | 1.85k | in->x_scn.x_checksum = 0; | 445 | 1.85k | in->x_scn.x_associated = 0; | 446 | 1.85k | in->x_scn.x_comdat = 0; | 447 | | | 448 | 1.85k | goto end; | 449 | 1.85k | } | 450 | 3.73k | break; | 451 | 83.1k | } | 452 | | | 453 | 75.9k | in->x_sym.x_tagndx.u32 = H_GET_32 (abfd, ext->x_sym.x_tagndx); | 454 | 75.9k | #ifndef NO_TVNDX | 455 | 75.9k | in->x_sym.x_tvndx = H_GET_16 (abfd, ext->x_sym.x_tvndx); | 456 | 75.9k | #endif | 457 | | | 458 | 75.9k | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 459 | 58.1k | || ISTAG (in_class)) | 460 | 23.1k | { | 461 | 23.1k | in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR (abfd, ext); | 462 | 23.1k | in->x_sym.x_fcnary.x_fcn.x_endndx.u32 = GET_FCN_ENDNDX (abfd, ext); | 463 | 23.1k | } | 464 | 52.8k | else | 465 | 52.8k | { | 466 | | #if DIMNUM != E_DIMNUM | 467 | | #error we need to cope with truncating or extending DIMNUM | 468 | | #endif | 469 | 52.8k | in->x_sym.x_fcnary.x_ary.x_dimen[0] = | 470 | 52.8k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 471 | 52.8k | in->x_sym.x_fcnary.x_ary.x_dimen[1] = | 472 | 52.8k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 473 | 52.8k | in->x_sym.x_fcnary.x_ary.x_dimen[2] = | 474 | 52.8k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 475 | 52.8k | in->x_sym.x_fcnary.x_ary.x_dimen[3] = | 476 | 52.8k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 477 | 52.8k | } | 478 | | | 479 | 75.9k | if (ISFCN (type)) | 480 | 16.6k | in->x_sym.x_misc.x_fsize = H_GET_32 (abfd, ext->x_sym.x_misc.x_fsize); | 481 | 59.2k | else | 482 | 59.2k | { | 483 | 59.2k | in->x_sym.x_misc.x_lnsz.x_lnno = GET_LNSZ_LNNO (abfd, ext); | 484 | 59.2k | in->x_sym.x_misc.x_lnsz.x_size = GET_LNSZ_SIZE (abfd, ext); | 485 | 59.2k | } | 486 | | | 487 | 83.1k | end: ; | 488 | | | 489 | | #ifdef COFF_ADJUST_AUX_IN_POST | 490 | | COFF_ADJUST_AUX_IN_POST (abfd, ext1, type, in_class, indx, numaux, in1); | 491 | | #endif | 492 | 83.1k | } |
coff-z80.c:coff_swap_aux_in Line | Count | Source | 408 | 300k | { | 409 | 300k | AUXENT *ext = (AUXENT *) ext1; | 410 | 300k | 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 | 300k | switch (in_class) | 417 | 300k | { | 418 | 8.89k | case C_FILE: | 419 | 8.89k | if (ext->x_file.x_fname[0] == 0) | 420 | 5.69k | { | 421 | 5.69k | in->x_file.x_n.x_n.x_zeroes = 0; | 422 | 5.69k | in->x_file.x_n.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset); | 423 | 5.69k | } | 424 | 3.20k | else | 425 | | #if FILNMLEN != E_FILNMLEN | 426 | | #error we need to cope with truncating or extending x_fname | 427 | | #endif | 428 | 3.20k | memcpy (in->x_file.x_n.x_fname, ext->x_file.x_fname, FILNMLEN); | 429 | 8.89k | goto end; | 430 | | | 431 | 30.6k | case C_STAT: | 432 | 30.6k | #ifdef C_LEAFSTAT | 433 | 36.1k | case C_LEAFSTAT: | 434 | 36.1k | #endif | 435 | 49.4k | case C_HIDDEN: | 436 | 49.4k | if (type == T_NULL) | 437 | 1.55k | { | 438 | 1.55k | in->x_scn.x_scnlen = GET_SCN_SCNLEN (abfd, ext); | 439 | 1.55k | in->x_scn.x_nreloc = GET_SCN_NRELOC (abfd, ext); | 440 | 1.55k | in->x_scn.x_nlinno = GET_SCN_NLINNO (abfd, ext); | 441 | | | 442 | | /* PE defines some extra fields; we zero them out for | 443 | | safety. */ | 444 | 1.55k | in->x_scn.x_checksum = 0; | 445 | 1.55k | in->x_scn.x_associated = 0; | 446 | 1.55k | in->x_scn.x_comdat = 0; | 447 | | | 448 | 1.55k | goto end; | 449 | 1.55k | } | 450 | 47.9k | break; | 451 | 300k | } | 452 | | | 453 | 290k | in->x_sym.x_tagndx.u32 = H_GET_32 (abfd, ext->x_sym.x_tagndx); | 454 | 290k | #ifndef NO_TVNDX | 455 | 290k | in->x_sym.x_tvndx = H_GET_16 (abfd, ext->x_sym.x_tvndx); | 456 | 290k | #endif | 457 | | | 458 | 290k | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 459 | 219k | || ISTAG (in_class)) | 460 | 87.1k | { | 461 | 87.1k | in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR (abfd, ext); | 462 | 87.1k | in->x_sym.x_fcnary.x_fcn.x_endndx.u32 = GET_FCN_ENDNDX (abfd, ext); | 463 | 87.1k | } | 464 | 203k | else | 465 | 203k | { | 466 | | #if DIMNUM != E_DIMNUM | 467 | | #error we need to cope with truncating or extending DIMNUM | 468 | | #endif | 469 | 203k | in->x_sym.x_fcnary.x_ary.x_dimen[0] = | 470 | 203k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 471 | 203k | in->x_sym.x_fcnary.x_ary.x_dimen[1] = | 472 | 203k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 473 | 203k | in->x_sym.x_fcnary.x_ary.x_dimen[2] = | 474 | 203k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 475 | 203k | in->x_sym.x_fcnary.x_ary.x_dimen[3] = | 476 | 203k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 477 | 203k | } | 478 | | | 479 | 290k | if (ISFCN (type)) | 480 | 63.8k | in->x_sym.x_misc.x_fsize = H_GET_32 (abfd, ext->x_sym.x_misc.x_fsize); | 481 | 226k | else | 482 | 226k | { | 483 | 226k | in->x_sym.x_misc.x_lnsz.x_lnno = GET_LNSZ_LNNO (abfd, ext); | 484 | 226k | in->x_sym.x_misc.x_lnsz.x_size = GET_LNSZ_SIZE (abfd, ext); | 485 | 226k | } | 486 | | | 487 | 300k | end: ; | 488 | | | 489 | | #ifdef COFF_ADJUST_AUX_IN_POST | 490 | | COFF_ADJUST_AUX_IN_POST (abfd, ext1, type, in_class, indx, numaux, in1); | 491 | | #endif | 492 | 300k | } |
coff-z8k.c:coff_swap_aux_in Line | Count | Source | 408 | 98.0k | { | 409 | 98.0k | AUXENT *ext = (AUXENT *) ext1; | 410 | 98.0k | 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 | 98.0k | switch (in_class) | 417 | 98.0k | { | 418 | 10.1k | case C_FILE: | 419 | 10.1k | if (ext->x_file.x_fname[0] == 0) | 420 | 5.26k | { | 421 | 5.26k | in->x_file.x_n.x_n.x_zeroes = 0; | 422 | 5.26k | in->x_file.x_n.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset); | 423 | 5.26k | } | 424 | 4.87k | else | 425 | | #if FILNMLEN != E_FILNMLEN | 426 | | #error we need to cope with truncating or extending x_fname | 427 | | #endif | 428 | 4.87k | memcpy (in->x_file.x_n.x_fname, ext->x_file.x_fname, FILNMLEN); | 429 | 10.1k | goto end; | 430 | | | 431 | 3.13k | case C_STAT: | 432 | 3.13k | #ifdef C_LEAFSTAT | 433 | 4.43k | case C_LEAFSTAT: | 434 | 4.43k | #endif | 435 | 5.82k | case C_HIDDEN: | 436 | 5.82k | if (type == T_NULL) | 437 | 1.27k | { | 438 | 1.27k | in->x_scn.x_scnlen = GET_SCN_SCNLEN (abfd, ext); | 439 | 1.27k | in->x_scn.x_nreloc = GET_SCN_NRELOC (abfd, ext); | 440 | 1.27k | in->x_scn.x_nlinno = GET_SCN_NLINNO (abfd, ext); | 441 | | | 442 | | /* PE defines some extra fields; we zero them out for | 443 | | safety. */ | 444 | 1.27k | in->x_scn.x_checksum = 0; | 445 | 1.27k | in->x_scn.x_associated = 0; | 446 | 1.27k | in->x_scn.x_comdat = 0; | 447 | | | 448 | 1.27k | goto end; | 449 | 1.27k | } | 450 | 4.54k | break; | 451 | 98.0k | } | 452 | | | 453 | 86.6k | in->x_sym.x_tagndx.u32 = H_GET_32 (abfd, ext->x_sym.x_tagndx); | 454 | 86.6k | #ifndef NO_TVNDX | 455 | 86.6k | in->x_sym.x_tvndx = H_GET_16 (abfd, ext->x_sym.x_tvndx); | 456 | 86.6k | #endif | 457 | | | 458 | 86.6k | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 459 | 62.0k | || ISTAG (in_class)) | 460 | 29.2k | { | 461 | 29.2k | in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR (abfd, ext); | 462 | 29.2k | in->x_sym.x_fcnary.x_fcn.x_endndx.u32 = GET_FCN_ENDNDX (abfd, ext); | 463 | 29.2k | } | 464 | 57.3k | else | 465 | 57.3k | { | 466 | | #if DIMNUM != E_DIMNUM | 467 | | #error we need to cope with truncating or extending DIMNUM | 468 | | #endif | 469 | 57.3k | in->x_sym.x_fcnary.x_ary.x_dimen[0] = | 470 | 57.3k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 471 | 57.3k | in->x_sym.x_fcnary.x_ary.x_dimen[1] = | 472 | 57.3k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 473 | 57.3k | in->x_sym.x_fcnary.x_ary.x_dimen[2] = | 474 | 57.3k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 475 | 57.3k | in->x_sym.x_fcnary.x_ary.x_dimen[3] = | 476 | 57.3k | H_GET_16 (abfd, ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 477 | 57.3k | } | 478 | | | 479 | 86.6k | if (ISFCN (type)) | 480 | 20.9k | in->x_sym.x_misc.x_fsize = H_GET_32 (abfd, ext->x_sym.x_misc.x_fsize); | 481 | 65.6k | else | 482 | 65.6k | { | 483 | 65.6k | in->x_sym.x_misc.x_lnsz.x_lnno = GET_LNSZ_LNNO (abfd, ext); | 484 | 65.6k | in->x_sym.x_misc.x_lnsz.x_size = GET_LNSZ_SIZE (abfd, ext); | 485 | 65.6k | } | 486 | | | 487 | 98.0k | end: ; | 488 | | | 489 | | #ifdef COFF_ADJUST_AUX_IN_POST | 490 | | COFF_ADJUST_AUX_IN_POST (abfd, ext1, type, in_class, indx, numaux, in1); | 491 | | #endif | 492 | 98.0k | } |
|
493 | | |
494 | | static unsigned int |
495 | | coff_swap_aux_out (bfd * abfd, |
496 | | void * inp, |
497 | | int type, |
498 | | int in_class, |
499 | | int indx ATTRIBUTE_UNUSED, |
500 | | int numaux ATTRIBUTE_UNUSED, |
501 | | void * extp) |
502 | 1.40k | { |
503 | 1.40k | union internal_auxent * in = (union internal_auxent *) inp; |
504 | 1.40k | AUXENT *ext = (AUXENT *) extp; |
505 | | |
506 | | #ifdef COFF_ADJUST_AUX_OUT_PRE |
507 | | COFF_ADJUST_AUX_OUT_PRE (abfd, inp, type, in_class, indx, numaux, extp); |
508 | | #endif |
509 | | |
510 | 1.40k | memset (ext, 0, AUXESZ); |
511 | | |
512 | 1.40k | switch (in_class) |
513 | 1.40k | { |
514 | 58 | case C_FILE: |
515 | 58 | if (in->x_file.x_n.x_fname[0] == 0) |
516 | 28 | { |
517 | 28 | H_PUT_32 (abfd, 0, ext->x_file.x_n.x_zeroes); |
518 | 28 | H_PUT_32 (abfd, in->x_file.x_n.x_n.x_offset, ext->x_file.x_n.x_offset); |
519 | 28 | } |
520 | 30 | else |
521 | | #if FILNMLEN != E_FILNMLEN |
522 | | #error we need to cope with truncating or extending xfname |
523 | | #endif |
524 | 30 | memcpy (ext->x_file.x_fname, in->x_file.x_n.x_fname, E_FILNMLEN); |
525 | 58 | goto end; |
526 | | |
527 | 234 | case C_STAT: |
528 | 234 | #ifdef C_LEAFSTAT |
529 | 234 | case C_LEAFSTAT: |
530 | 234 | #endif |
531 | 348 | case C_HIDDEN: |
532 | 348 | if (type == T_NULL) |
533 | 145 | { |
534 | 145 | PUT_SCN_SCNLEN (abfd, in->x_scn.x_scnlen, ext); |
535 | 145 | PUT_SCN_NRELOC (abfd, in->x_scn.x_nreloc, ext); |
536 | 145 | PUT_SCN_NLINNO (abfd, in->x_scn.x_nlinno, ext); |
537 | 145 | goto end; |
538 | 145 | } |
539 | 203 | break; |
540 | 1.40k | } |
541 | | |
542 | 1.19k | H_PUT_32 (abfd, in->x_sym.x_tagndx.u32, ext->x_sym.x_tagndx); |
543 | 1.19k | #ifndef NO_TVNDX |
544 | 1.19k | H_PUT_16 (abfd, in->x_sym.x_tvndx, ext->x_sym.x_tvndx); |
545 | 1.19k | #endif |
546 | | |
547 | 1.19k | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) |
548 | 678 | || ISTAG (in_class)) |
549 | 624 | { |
550 | 624 | PUT_FCN_LNNOPTR (abfd, in->x_sym.x_fcnary.x_fcn.x_lnnoptr, ext); |
551 | 624 | PUT_FCN_ENDNDX (abfd, in->x_sym.x_fcnary.x_fcn.x_endndx.u32, ext); |
552 | 624 | } |
553 | 574 | else |
554 | 574 | { |
555 | | #if DIMNUM != E_DIMNUM |
556 | | #error we need to cope with truncating or extending DIMNUM |
557 | | #endif |
558 | 574 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[0], |
559 | 574 | ext->x_sym.x_fcnary.x_ary.x_dimen[0]); |
560 | 574 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[1], |
561 | 574 | ext->x_sym.x_fcnary.x_ary.x_dimen[1]); |
562 | 574 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[2], |
563 | 574 | ext->x_sym.x_fcnary.x_ary.x_dimen[2]); |
564 | 574 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[3], |
565 | 574 | ext->x_sym.x_fcnary.x_ary.x_dimen[3]); |
566 | 574 | } |
567 | | |
568 | 1.19k | if (ISFCN (type)) |
569 | 1.19k | H_PUT_32 (abfd, in->x_sym.x_misc.x_fsize, ext->x_sym.x_misc.x_fsize); |
570 | 794 | else |
571 | 794 | { |
572 | 794 | PUT_LNSZ_LNNO (abfd, in->x_sym.x_misc.x_lnsz.x_lnno, ext); |
573 | 794 | PUT_LNSZ_SIZE (abfd, in->x_sym.x_misc.x_lnsz.x_size, ext); |
574 | 794 | } |
575 | | |
576 | 1.40k | end: |
577 | | #ifdef COFF_ADJUST_AUX_OUT_POST |
578 | | COFF_ADJUST_AUX_OUT_POST (abfd, inp, type, in_class, indx, numaux, extp); |
579 | | #endif |
580 | 1.40k | return AUXESZ; |
581 | 1.19k | } coff-x86_64.c:coff_swap_aux_out Line | Count | Source | 502 | 337 | { | 503 | 337 | union internal_auxent * in = (union internal_auxent *) inp; | 504 | 337 | AUXENT *ext = (AUXENT *) extp; | 505 | | | 506 | | #ifdef COFF_ADJUST_AUX_OUT_PRE | 507 | | COFF_ADJUST_AUX_OUT_PRE (abfd, inp, type, in_class, indx, numaux, extp); | 508 | | #endif | 509 | | | 510 | 337 | memset (ext, 0, AUXESZ); | 511 | | | 512 | 337 | switch (in_class) | 513 | 337 | { | 514 | 27 | case C_FILE: | 515 | 27 | if (in->x_file.x_n.x_fname[0] == 0) | 516 | 11 | { | 517 | 11 | H_PUT_32 (abfd, 0, ext->x_file.x_n.x_zeroes); | 518 | 11 | H_PUT_32 (abfd, in->x_file.x_n.x_n.x_offset, ext->x_file.x_n.x_offset); | 519 | 11 | } | 520 | 16 | else | 521 | | #if FILNMLEN != E_FILNMLEN | 522 | | #error we need to cope with truncating or extending xfname | 523 | | #endif | 524 | 16 | memcpy (ext->x_file.x_fname, in->x_file.x_n.x_fname, E_FILNMLEN); | 525 | 27 | goto end; | 526 | | | 527 | 191 | case C_STAT: | 528 | 191 | #ifdef C_LEAFSTAT | 529 | 191 | case C_LEAFSTAT: | 530 | 191 | #endif | 531 | 193 | case C_HIDDEN: | 532 | 193 | if (type == T_NULL) | 533 | 128 | { | 534 | 128 | PUT_SCN_SCNLEN (abfd, in->x_scn.x_scnlen, ext); | 535 | 128 | PUT_SCN_NRELOC (abfd, in->x_scn.x_nreloc, ext); | 536 | 128 | PUT_SCN_NLINNO (abfd, in->x_scn.x_nlinno, ext); | 537 | 128 | goto end; | 538 | 128 | } | 539 | 65 | break; | 540 | 337 | } | 541 | | | 542 | 182 | H_PUT_32 (abfd, in->x_sym.x_tagndx.u32, ext->x_sym.x_tagndx); | 543 | 182 | #ifndef NO_TVNDX | 544 | 182 | H_PUT_16 (abfd, in->x_sym.x_tvndx, ext->x_sym.x_tvndx); | 545 | 182 | #endif | 546 | | | 547 | 182 | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 548 | 154 | || ISTAG (in_class)) | 549 | 35 | { | 550 | 35 | PUT_FCN_LNNOPTR (abfd, in->x_sym.x_fcnary.x_fcn.x_lnnoptr, ext); | 551 | 35 | PUT_FCN_ENDNDX (abfd, in->x_sym.x_fcnary.x_fcn.x_endndx.u32, ext); | 552 | 35 | } | 553 | 147 | else | 554 | 147 | { | 555 | | #if DIMNUM != E_DIMNUM | 556 | | #error we need to cope with truncating or extending DIMNUM | 557 | | #endif | 558 | 147 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[0], | 559 | 147 | ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 560 | 147 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[1], | 561 | 147 | ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 562 | 147 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[2], | 563 | 147 | ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 564 | 147 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[3], | 565 | 147 | ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 566 | 147 | } | 567 | | | 568 | 182 | if (ISFCN (type)) | 569 | 182 | H_PUT_32 (abfd, in->x_sym.x_misc.x_fsize, ext->x_sym.x_misc.x_fsize); | 570 | 155 | else | 571 | 155 | { | 572 | 155 | PUT_LNSZ_LNNO (abfd, in->x_sym.x_misc.x_lnsz.x_lnno, ext); | 573 | 155 | PUT_LNSZ_SIZE (abfd, in->x_sym.x_misc.x_lnsz.x_size, ext); | 574 | 155 | } | 575 | | | 576 | 337 | end: | 577 | | #ifdef COFF_ADJUST_AUX_OUT_POST | 578 | | COFF_ADJUST_AUX_OUT_POST (abfd, inp, type, in_class, indx, numaux, extp); | 579 | | #endif | 580 | 337 | return AUXESZ; | 581 | 182 | } |
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 coff-sh.c:coff_swap_aux_out Line | Count | Source | 502 | 123 | { | 503 | 123 | union internal_auxent * in = (union internal_auxent *) inp; | 504 | 123 | AUXENT *ext = (AUXENT *) extp; | 505 | | | 506 | | #ifdef COFF_ADJUST_AUX_OUT_PRE | 507 | | COFF_ADJUST_AUX_OUT_PRE (abfd, inp, type, in_class, indx, numaux, extp); | 508 | | #endif | 509 | | | 510 | 123 | memset (ext, 0, AUXESZ); | 511 | | | 512 | 123 | switch (in_class) | 513 | 123 | { | 514 | 15 | case C_FILE: | 515 | 15 | if (in->x_file.x_n.x_fname[0] == 0) | 516 | 7 | { | 517 | 7 | H_PUT_32 (abfd, 0, ext->x_file.x_n.x_zeroes); | 518 | 7 | H_PUT_32 (abfd, in->x_file.x_n.x_n.x_offset, ext->x_file.x_n.x_offset); | 519 | 7 | } | 520 | 8 | else | 521 | | #if FILNMLEN != E_FILNMLEN | 522 | | #error we need to cope with truncating or extending xfname | 523 | | #endif | 524 | 8 | memcpy (ext->x_file.x_fname, in->x_file.x_n.x_fname, E_FILNMLEN); | 525 | 15 | goto end; | 526 | | | 527 | 5 | case C_STAT: | 528 | 5 | #ifdef C_LEAFSTAT | 529 | 5 | case C_LEAFSTAT: | 530 | 5 | #endif | 531 | 5 | case C_HIDDEN: | 532 | 5 | if (type == T_NULL) | 533 | 5 | { | 534 | 5 | PUT_SCN_SCNLEN (abfd, in->x_scn.x_scnlen, ext); | 535 | 5 | PUT_SCN_NRELOC (abfd, in->x_scn.x_nreloc, ext); | 536 | 5 | PUT_SCN_NLINNO (abfd, in->x_scn.x_nlinno, ext); | 537 | 5 | goto end; | 538 | 5 | } | 539 | 0 | break; | 540 | 123 | } | 541 | | | 542 | 103 | H_PUT_32 (abfd, in->x_sym.x_tagndx.u32, ext->x_sym.x_tagndx); | 543 | 103 | #ifndef NO_TVNDX | 544 | 103 | H_PUT_16 (abfd, in->x_sym.x_tvndx, ext->x_sym.x_tvndx); | 545 | 103 | #endif | 546 | | | 547 | 103 | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 548 | 102 | || ISTAG (in_class)) | 549 | 55 | { | 550 | 55 | PUT_FCN_LNNOPTR (abfd, in->x_sym.x_fcnary.x_fcn.x_lnnoptr, ext); | 551 | 55 | PUT_FCN_ENDNDX (abfd, in->x_sym.x_fcnary.x_fcn.x_endndx.u32, ext); | 552 | 55 | } | 553 | 48 | else | 554 | 48 | { | 555 | | #if DIMNUM != E_DIMNUM | 556 | | #error we need to cope with truncating or extending DIMNUM | 557 | | #endif | 558 | 48 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[0], | 559 | 48 | ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 560 | 48 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[1], | 561 | 48 | ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 562 | 48 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[2], | 563 | 48 | ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 564 | 48 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[3], | 565 | 48 | ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 566 | 48 | } | 567 | | | 568 | 103 | if (ISFCN (type)) | 569 | 103 | H_PUT_32 (abfd, in->x_sym.x_misc.x_fsize, ext->x_sym.x_misc.x_fsize); | 570 | 102 | else | 571 | 102 | { | 572 | 102 | PUT_LNSZ_LNNO (abfd, in->x_sym.x_misc.x_lnsz.x_lnno, ext); | 573 | 102 | PUT_LNSZ_SIZE (abfd, in->x_sym.x_misc.x_lnsz.x_size, ext); | 574 | 102 | } | 575 | | | 576 | 123 | end: | 577 | | #ifdef COFF_ADJUST_AUX_OUT_POST | 578 | | COFF_ADJUST_AUX_OUT_POST (abfd, inp, type, in_class, indx, numaux, extp); | 579 | | #endif | 580 | 123 | return AUXESZ; | 581 | 103 | } |
Unexecuted instantiation: coff-stgo32.c:coff_swap_aux_out coff-tic30.c:coff_swap_aux_out Line | Count | Source | 502 | 277 | { | 503 | 277 | union internal_auxent * in = (union internal_auxent *) inp; | 504 | 277 | AUXENT *ext = (AUXENT *) extp; | 505 | | | 506 | | #ifdef COFF_ADJUST_AUX_OUT_PRE | 507 | | COFF_ADJUST_AUX_OUT_PRE (abfd, inp, type, in_class, indx, numaux, extp); | 508 | | #endif | 509 | | | 510 | 277 | memset (ext, 0, AUXESZ); | 511 | | | 512 | 277 | switch (in_class) | 513 | 277 | { | 514 | 9 | case C_FILE: | 515 | 9 | if (in->x_file.x_n.x_fname[0] == 0) | 516 | 4 | { | 517 | 4 | H_PUT_32 (abfd, 0, ext->x_file.x_n.x_zeroes); | 518 | 4 | H_PUT_32 (abfd, in->x_file.x_n.x_n.x_offset, ext->x_file.x_n.x_offset); | 519 | 4 | } | 520 | 5 | else | 521 | | #if FILNMLEN != E_FILNMLEN | 522 | | #error we need to cope with truncating or extending xfname | 523 | | #endif | 524 | 5 | memcpy (ext->x_file.x_fname, in->x_file.x_n.x_fname, E_FILNMLEN); | 525 | 9 | goto end; | 526 | | | 527 | 5 | case C_STAT: | 528 | 5 | #ifdef C_LEAFSTAT | 529 | 5 | case C_LEAFSTAT: | 530 | 5 | #endif | 531 | 5 | case C_HIDDEN: | 532 | 5 | if (type == T_NULL) | 533 | 3 | { | 534 | 3 | PUT_SCN_SCNLEN (abfd, in->x_scn.x_scnlen, ext); | 535 | 3 | PUT_SCN_NRELOC (abfd, in->x_scn.x_nreloc, ext); | 536 | 3 | PUT_SCN_NLINNO (abfd, in->x_scn.x_nlinno, ext); | 537 | 3 | goto end; | 538 | 3 | } | 539 | 2 | break; | 540 | 277 | } | 541 | | | 542 | 265 | H_PUT_32 (abfd, in->x_sym.x_tagndx.u32, ext->x_sym.x_tagndx); | 543 | 265 | #ifndef NO_TVNDX | 544 | 265 | H_PUT_16 (abfd, in->x_sym.x_tvndx, ext->x_sym.x_tvndx); | 545 | 265 | #endif | 546 | | | 547 | 265 | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 548 | 150 | || ISTAG (in_class)) | 549 | 125 | { | 550 | 125 | PUT_FCN_LNNOPTR (abfd, in->x_sym.x_fcnary.x_fcn.x_lnnoptr, ext); | 551 | 125 | PUT_FCN_ENDNDX (abfd, in->x_sym.x_fcnary.x_fcn.x_endndx.u32, ext); | 552 | 125 | } | 553 | 140 | else | 554 | 140 | { | 555 | | #if DIMNUM != E_DIMNUM | 556 | | #error we need to cope with truncating or extending DIMNUM | 557 | | #endif | 558 | 140 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[0], | 559 | 140 | ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 560 | 140 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[1], | 561 | 140 | ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 562 | 140 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[2], | 563 | 140 | ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 564 | 140 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[3], | 565 | 140 | ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 566 | 140 | } | 567 | | | 568 | 265 | if (ISFCN (type)) | 569 | 265 | H_PUT_32 (abfd, in->x_sym.x_misc.x_fsize, ext->x_sym.x_misc.x_fsize); | 570 | 265 | else | 571 | 265 | { | 572 | 265 | PUT_LNSZ_LNNO (abfd, in->x_sym.x_misc.x_lnsz.x_lnno, ext); | 573 | 265 | PUT_LNSZ_SIZE (abfd, in->x_sym.x_misc.x_lnsz.x_size, ext); | 574 | 265 | } | 575 | | | 576 | 277 | end: | 577 | | #ifdef COFF_ADJUST_AUX_OUT_POST | 578 | | COFF_ADJUST_AUX_OUT_POST (abfd, inp, type, in_class, indx, numaux, extp); | 579 | | #endif | 580 | 277 | return AUXESZ; | 581 | 265 | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_aux_out coff-tic54x.c:coff_swap_aux_out Line | Count | Source | 502 | 116 | { | 503 | 116 | union internal_auxent * in = (union internal_auxent *) inp; | 504 | 116 | AUXENT *ext = (AUXENT *) extp; | 505 | | | 506 | | #ifdef COFF_ADJUST_AUX_OUT_PRE | 507 | | COFF_ADJUST_AUX_OUT_PRE (abfd, inp, type, in_class, indx, numaux, extp); | 508 | | #endif | 509 | | | 510 | 116 | memset (ext, 0, AUXESZ); | 511 | | | 512 | 116 | switch (in_class) | 513 | 116 | { | 514 | 7 | case C_FILE: | 515 | 7 | if (in->x_file.x_n.x_fname[0] == 0) | 516 | 6 | { | 517 | 6 | H_PUT_32 (abfd, 0, ext->x_file.x_n.x_zeroes); | 518 | 6 | H_PUT_32 (abfd, in->x_file.x_n.x_n.x_offset, ext->x_file.x_n.x_offset); | 519 | 6 | } | 520 | 1 | else | 521 | | #if FILNMLEN != E_FILNMLEN | 522 | | #error we need to cope with truncating or extending xfname | 523 | | #endif | 524 | 1 | memcpy (ext->x_file.x_fname, in->x_file.x_n.x_fname, E_FILNMLEN); | 525 | 7 | goto end; | 526 | | | 527 | 0 | case C_STAT: | 528 | 0 | #ifdef C_LEAFSTAT | 529 | 0 | case C_LEAFSTAT: | 530 | 0 | #endif | 531 | 0 | case C_HIDDEN: | 532 | 0 | if (type == T_NULL) | 533 | 0 | { | 534 | 0 | PUT_SCN_SCNLEN (abfd, in->x_scn.x_scnlen, ext); | 535 | 0 | PUT_SCN_NRELOC (abfd, in->x_scn.x_nreloc, ext); | 536 | 0 | PUT_SCN_NLINNO (abfd, in->x_scn.x_nlinno, ext); | 537 | 0 | goto end; | 538 | 0 | } | 539 | 0 | break; | 540 | 116 | } | 541 | | | 542 | 109 | H_PUT_32 (abfd, in->x_sym.x_tagndx.u32, ext->x_sym.x_tagndx); | 543 | 109 | #ifndef NO_TVNDX | 544 | 109 | H_PUT_16 (abfd, in->x_sym.x_tvndx, ext->x_sym.x_tvndx); | 545 | 109 | #endif | 546 | | | 547 | 109 | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 548 | 107 | || ISTAG (in_class)) | 549 | 10 | { | 550 | 10 | PUT_FCN_LNNOPTR (abfd, in->x_sym.x_fcnary.x_fcn.x_lnnoptr, ext); | 551 | 10 | PUT_FCN_ENDNDX (abfd, in->x_sym.x_fcnary.x_fcn.x_endndx.u32, ext); | 552 | 10 | } | 553 | 99 | else | 554 | 99 | { | 555 | | #if DIMNUM != E_DIMNUM | 556 | | #error we need to cope with truncating or extending DIMNUM | 557 | | #endif | 558 | 99 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[0], | 559 | 99 | ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 560 | 99 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[1], | 561 | 99 | ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 562 | 99 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[2], | 563 | 99 | ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 564 | 99 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[3], | 565 | 99 | ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 566 | 99 | } | 567 | | | 568 | 109 | if (ISFCN (type)) | 569 | 109 | H_PUT_32 (abfd, in->x_sym.x_misc.x_fsize, ext->x_sym.x_misc.x_fsize); | 570 | 107 | else | 571 | 107 | { | 572 | 107 | PUT_LNSZ_LNNO (abfd, in->x_sym.x_misc.x_lnsz.x_lnno, ext); | 573 | 107 | PUT_LNSZ_SIZE (abfd, in->x_sym.x_misc.x_lnsz.x_size, ext); | 574 | 107 | } | 575 | | | 576 | 116 | end: | 577 | | #ifdef COFF_ADJUST_AUX_OUT_POST | 578 | | COFF_ADJUST_AUX_OUT_POST (abfd, inp, type, in_class, indx, numaux, extp); | 579 | | #endif | 580 | 116 | return AUXESZ; | 581 | 109 | } |
coff-z80.c:coff_swap_aux_out Line | Count | Source | 502 | 406 | { | 503 | 406 | union internal_auxent * in = (union internal_auxent *) inp; | 504 | 406 | AUXENT *ext = (AUXENT *) extp; | 505 | | | 506 | | #ifdef COFF_ADJUST_AUX_OUT_PRE | 507 | | COFF_ADJUST_AUX_OUT_PRE (abfd, inp, type, in_class, indx, numaux, extp); | 508 | | #endif | 509 | | | 510 | 406 | memset (ext, 0, AUXESZ); | 511 | | | 512 | 406 | switch (in_class) | 513 | 406 | { | 514 | 0 | case C_FILE: | 515 | 0 | if (in->x_file.x_n.x_fname[0] == 0) | 516 | 0 | { | 517 | 0 | H_PUT_32 (abfd, 0, ext->x_file.x_n.x_zeroes); | 518 | 0 | H_PUT_32 (abfd, in->x_file.x_n.x_n.x_offset, ext->x_file.x_n.x_offset); | 519 | 0 | } | 520 | 0 | else | 521 | | #if FILNMLEN != E_FILNMLEN | 522 | | #error we need to cope with truncating or extending xfname | 523 | | #endif | 524 | 0 | memcpy (ext->x_file.x_fname, in->x_file.x_n.x_fname, E_FILNMLEN); | 525 | 0 | goto end; | 526 | | | 527 | 33 | case C_STAT: | 528 | 33 | #ifdef C_LEAFSTAT | 529 | 33 | case C_LEAFSTAT: | 530 | 33 | #endif | 531 | 145 | case C_HIDDEN: | 532 | 145 | if (type == T_NULL) | 533 | 9 | { | 534 | 9 | PUT_SCN_SCNLEN (abfd, in->x_scn.x_scnlen, ext); | 535 | 9 | PUT_SCN_NRELOC (abfd, in->x_scn.x_nreloc, ext); | 536 | 9 | PUT_SCN_NLINNO (abfd, in->x_scn.x_nlinno, ext); | 537 | 9 | goto end; | 538 | 9 | } | 539 | 136 | break; | 540 | 406 | } | 541 | | | 542 | 397 | H_PUT_32 (abfd, in->x_sym.x_tagndx.u32, ext->x_sym.x_tagndx); | 543 | 397 | #ifndef NO_TVNDX | 544 | 397 | H_PUT_16 (abfd, in->x_sym.x_tvndx, ext->x_sym.x_tvndx); | 545 | 397 | #endif | 546 | | | 547 | 397 | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 548 | 36 | || ISTAG (in_class)) | 549 | 366 | { | 550 | 366 | PUT_FCN_LNNOPTR (abfd, in->x_sym.x_fcnary.x_fcn.x_lnnoptr, ext); | 551 | 366 | PUT_FCN_ENDNDX (abfd, in->x_sym.x_fcnary.x_fcn.x_endndx.u32, ext); | 552 | 366 | } | 553 | 31 | else | 554 | 31 | { | 555 | | #if DIMNUM != E_DIMNUM | 556 | | #error we need to cope with truncating or extending DIMNUM | 557 | | #endif | 558 | 31 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[0], | 559 | 31 | ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 560 | 31 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[1], | 561 | 31 | ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 562 | 31 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[2], | 563 | 31 | ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 564 | 31 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[3], | 565 | 31 | ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 566 | 31 | } | 567 | | | 568 | 397 | if (ISFCN (type)) | 569 | 397 | H_PUT_32 (abfd, in->x_sym.x_misc.x_fsize, ext->x_sym.x_misc.x_fsize); | 570 | 36 | else | 571 | 36 | { | 572 | 36 | PUT_LNSZ_LNNO (abfd, in->x_sym.x_misc.x_lnsz.x_lnno, ext); | 573 | 36 | PUT_LNSZ_SIZE (abfd, in->x_sym.x_misc.x_lnsz.x_size, ext); | 574 | 36 | } | 575 | | | 576 | 406 | end: | 577 | | #ifdef COFF_ADJUST_AUX_OUT_POST | 578 | | COFF_ADJUST_AUX_OUT_POST (abfd, inp, type, in_class, indx, numaux, extp); | 579 | | #endif | 580 | 406 | return AUXESZ; | 581 | 397 | } |
coff-z8k.c:coff_swap_aux_out Line | Count | Source | 502 | 142 | { | 503 | 142 | union internal_auxent * in = (union internal_auxent *) inp; | 504 | 142 | AUXENT *ext = (AUXENT *) extp; | 505 | | | 506 | | #ifdef COFF_ADJUST_AUX_OUT_PRE | 507 | | COFF_ADJUST_AUX_OUT_PRE (abfd, inp, type, in_class, indx, numaux, extp); | 508 | | #endif | 509 | | | 510 | 142 | memset (ext, 0, AUXESZ); | 511 | | | 512 | 142 | switch (in_class) | 513 | 142 | { | 514 | 0 | case C_FILE: | 515 | 0 | if (in->x_file.x_n.x_fname[0] == 0) | 516 | 0 | { | 517 | 0 | H_PUT_32 (abfd, 0, ext->x_file.x_n.x_zeroes); | 518 | 0 | H_PUT_32 (abfd, in->x_file.x_n.x_n.x_offset, ext->x_file.x_n.x_offset); | 519 | 0 | } | 520 | 0 | else | 521 | | #if FILNMLEN != E_FILNMLEN | 522 | | #error we need to cope with truncating or extending xfname | 523 | | #endif | 524 | 0 | memcpy (ext->x_file.x_fname, in->x_file.x_n.x_fname, E_FILNMLEN); | 525 | 0 | goto end; | 526 | | | 527 | 0 | case C_STAT: | 528 | 0 | #ifdef C_LEAFSTAT | 529 | 0 | case C_LEAFSTAT: | 530 | 0 | #endif | 531 | 0 | case C_HIDDEN: | 532 | 0 | if (type == T_NULL) | 533 | 0 | { | 534 | 0 | PUT_SCN_SCNLEN (abfd, in->x_scn.x_scnlen, ext); | 535 | 0 | PUT_SCN_NRELOC (abfd, in->x_scn.x_nreloc, ext); | 536 | 0 | PUT_SCN_NLINNO (abfd, in->x_scn.x_nlinno, ext); | 537 | 0 | goto end; | 538 | 0 | } | 539 | 0 | break; | 540 | 142 | } | 541 | | | 542 | 142 | H_PUT_32 (abfd, in->x_sym.x_tagndx.u32, ext->x_sym.x_tagndx); | 543 | 142 | #ifndef NO_TVNDX | 544 | 142 | H_PUT_16 (abfd, in->x_sym.x_tvndx, ext->x_sym.x_tvndx); | 545 | 142 | #endif | 546 | | | 547 | 142 | if (in_class == C_BLOCK || in_class == C_FCN || ISFCN (type) | 548 | 129 | || ISTAG (in_class)) | 549 | 33 | { | 550 | 33 | PUT_FCN_LNNOPTR (abfd, in->x_sym.x_fcnary.x_fcn.x_lnnoptr, ext); | 551 | 33 | PUT_FCN_ENDNDX (abfd, in->x_sym.x_fcnary.x_fcn.x_endndx.u32, ext); | 552 | 33 | } | 553 | 109 | else | 554 | 109 | { | 555 | | #if DIMNUM != E_DIMNUM | 556 | | #error we need to cope with truncating or extending DIMNUM | 557 | | #endif | 558 | 109 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[0], | 559 | 109 | ext->x_sym.x_fcnary.x_ary.x_dimen[0]); | 560 | 109 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[1], | 561 | 109 | ext->x_sym.x_fcnary.x_ary.x_dimen[1]); | 562 | 109 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[2], | 563 | 109 | ext->x_sym.x_fcnary.x_ary.x_dimen[2]); | 564 | 109 | H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[3], | 565 | 109 | ext->x_sym.x_fcnary.x_ary.x_dimen[3]); | 566 | 109 | } | 567 | | | 568 | 142 | if (ISFCN (type)) | 569 | 142 | H_PUT_32 (abfd, in->x_sym.x_misc.x_fsize, ext->x_sym.x_misc.x_fsize); | 570 | 129 | else | 571 | 129 | { | 572 | 129 | PUT_LNSZ_LNNO (abfd, in->x_sym.x_misc.x_lnsz.x_lnno, ext); | 573 | 129 | PUT_LNSZ_SIZE (abfd, in->x_sym.x_misc.x_lnsz.x_size, ext); | 574 | 129 | } | 575 | | | 576 | 142 | end: | 577 | | #ifdef COFF_ADJUST_AUX_OUT_POST | 578 | | COFF_ADJUST_AUX_OUT_POST (abfd, inp, type, in_class, indx, numaux, extp); | 579 | | #endif | 580 | 142 | return AUXESZ; | 581 | 142 | } |
|
582 | | |
583 | | #endif /* NO_COFF_SYMBOLS */ |
584 | | |
585 | | #ifndef NO_COFF_LINENOS |
586 | | |
587 | | static void |
588 | | coff_swap_lineno_in (bfd * abfd, void * ext1, void * in1) |
589 | 449k | { |
590 | 449k | LINENO *ext = (LINENO *) ext1; |
591 | 449k | struct internal_lineno *in = (struct internal_lineno *) in1; |
592 | | |
593 | 449k | in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx); |
594 | 449k | in->l_lnno = GET_LINENO_LNNO (abfd, ext); |
595 | 449k | } coff-x86_64.c:coff_swap_lineno_in Line | Count | Source | 589 | 85.0k | { | 590 | 85.0k | LINENO *ext = (LINENO *) ext1; | 591 | 85.0k | struct internal_lineno *in = (struct internal_lineno *) in1; | 592 | | | 593 | 85.0k | in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx); | 594 | 85.0k | in->l_lnno = GET_LINENO_LNNO (abfd, ext); | 595 | 85.0k | } |
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 | 589 | 65.3k | { | 590 | 65.3k | LINENO *ext = (LINENO *) ext1; | 591 | 65.3k | struct internal_lineno *in = (struct internal_lineno *) in1; | 592 | | | 593 | 65.3k | in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx); | 594 | 65.3k | in->l_lnno = GET_LINENO_LNNO (abfd, ext); | 595 | 65.3k | } |
coff-sh.c:coff_swap_lineno_in Line | Count | Source | 589 | 54.2k | { | 590 | 54.2k | LINENO *ext = (LINENO *) ext1; | 591 | 54.2k | struct internal_lineno *in = (struct internal_lineno *) in1; | 592 | | | 593 | 54.2k | in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx); | 594 | 54.2k | in->l_lnno = GET_LINENO_LNNO (abfd, ext); | 595 | 54.2k | } |
Unexecuted instantiation: coff-stgo32.c:coff_swap_lineno_in coff-tic30.c:coff_swap_lineno_in Line | Count | Source | 589 | 80.2k | { | 590 | 80.2k | LINENO *ext = (LINENO *) ext1; | 591 | 80.2k | struct internal_lineno *in = (struct internal_lineno *) in1; | 592 | | | 593 | 80.2k | in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx); | 594 | 80.2k | in->l_lnno = GET_LINENO_LNNO (abfd, ext); | 595 | 80.2k | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_lineno_in coff-tic54x.c:coff_swap_lineno_in Line | Count | Source | 589 | 57.1k | { | 590 | 57.1k | LINENO *ext = (LINENO *) ext1; | 591 | 57.1k | struct internal_lineno *in = (struct internal_lineno *) in1; | 592 | | | 593 | 57.1k | in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx); | 594 | 57.1k | in->l_lnno = GET_LINENO_LNNO (abfd, ext); | 595 | 57.1k | } |
coff-z80.c:coff_swap_lineno_in Line | Count | Source | 589 | 51.6k | { | 590 | 51.6k | LINENO *ext = (LINENO *) ext1; | 591 | 51.6k | struct internal_lineno *in = (struct internal_lineno *) in1; | 592 | | | 593 | 51.6k | in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx); | 594 | 51.6k | in->l_lnno = GET_LINENO_LNNO (abfd, ext); | 595 | 51.6k | } |
coff-z8k.c:coff_swap_lineno_in Line | Count | Source | 589 | 55.4k | { | 590 | 55.4k | LINENO *ext = (LINENO *) ext1; | 591 | 55.4k | struct internal_lineno *in = (struct internal_lineno *) in1; | 592 | | | 593 | 55.4k | in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx); | 594 | 55.4k | in->l_lnno = GET_LINENO_LNNO (abfd, ext); | 595 | 55.4k | } |
|
596 | | |
597 | | static unsigned int |
598 | | coff_swap_lineno_out (bfd * abfd, void * inp, void * outp) |
599 | 6 | { |
600 | 6 | struct internal_lineno *in = (struct internal_lineno *) inp; |
601 | 6 | struct external_lineno *ext = (struct external_lineno *) outp; |
602 | 6 | H_PUT_32 (abfd, in->l_addr.l_symndx, ext->l_addr.l_symndx); |
603 | | |
604 | 6 | PUT_LINENO_LNNO (abfd, in->l_lnno, ext); |
605 | 6 | return LINESZ; |
606 | 6 | } 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 coff-tic30.c:coff_swap_lineno_out Line | Count | Source | 599 | 6 | { | 600 | 6 | struct internal_lineno *in = (struct internal_lineno *) inp; | 601 | 6 | struct external_lineno *ext = (struct external_lineno *) outp; | 602 | 6 | H_PUT_32 (abfd, in->l_addr.l_symndx, ext->l_addr.l_symndx); | 603 | | | 604 | 6 | PUT_LINENO_LNNO (abfd, in->l_lnno, ext); | 605 | 6 | return LINESZ; | 606 | 6 | } |
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 |
607 | | |
608 | | #endif /* NO_COFF_LINENOS */ |
609 | | |
610 | | static void |
611 | | coff_swap_aouthdr_in (bfd * abfd, void * aouthdr_ext1, void * aouthdr_int1) |
612 | 14.2k | { |
613 | 14.2k | AOUTHDR *aouthdr_ext; |
614 | 14.2k | struct internal_aouthdr *aouthdr_int; |
615 | | |
616 | 14.2k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; |
617 | 14.2k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; |
618 | 14.2k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); |
619 | 14.2k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); |
620 | 14.2k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); |
621 | 14.2k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); |
622 | 14.2k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); |
623 | 14.2k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); |
624 | 14.2k | aouthdr_int->text_start = |
625 | 14.2k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); |
626 | 14.2k | aouthdr_int->data_start = |
627 | 14.2k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); |
628 | | |
629 | | #ifdef RS6000COFF_C |
630 | | #ifdef XCOFF64 |
631 | 1.02k | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); |
632 | | #else |
633 | 1.03k | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); |
634 | | #endif |
635 | 2.05k | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); |
636 | 2.05k | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); |
637 | 2.05k | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); |
638 | 2.05k | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); |
639 | 2.05k | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); |
640 | 2.05k | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); |
641 | 2.05k | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); |
642 | 2.05k | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); |
643 | 2.05k | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); |
644 | 2.05k | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); |
645 | | #ifdef XCOFF64 |
646 | 1.02k | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); |
647 | 1.02k | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); |
648 | | #else |
649 | 1.03k | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); |
650 | 1.03k | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); |
651 | | #endif |
652 | | #endif |
653 | | |
654 | | #ifdef MIPSECOFF |
655 | 1.03k | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); |
656 | 1.03k | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); |
657 | 1.03k | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); |
658 | 1.03k | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); |
659 | 1.03k | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); |
660 | 1.03k | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); |
661 | 1.03k | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); |
662 | | #endif |
663 | | |
664 | | #ifdef ALPHAECOFF |
665 | 730 | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); |
666 | 730 | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); |
667 | 730 | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); |
668 | 730 | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); |
669 | | #endif |
670 | 14.2k | } coff-alpha.c:alpha_ecoff_swap_aouthdr_in Line | Count | Source | 612 | 730 | { | 613 | 730 | AOUTHDR *aouthdr_ext; | 614 | 730 | struct internal_aouthdr *aouthdr_int; | 615 | | | 616 | 730 | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 617 | 730 | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 618 | 730 | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 619 | 730 | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 620 | 730 | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 621 | 730 | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 622 | 730 | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 623 | 730 | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 624 | 730 | aouthdr_int->text_start = | 625 | 730 | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 626 | 730 | aouthdr_int->data_start = | 627 | 730 | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 628 | | | 629 | | #ifdef RS6000COFF_C | 630 | | #ifdef XCOFF64 | 631 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 632 | | #else | 633 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 634 | | #endif | 635 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 636 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 637 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 638 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 639 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 640 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 641 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 642 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 643 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 644 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 645 | | #ifdef XCOFF64 | 646 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 647 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 648 | | #else | 649 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 650 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 651 | | #endif | 652 | | #endif | 653 | | | 654 | | #ifdef MIPSECOFF | 655 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 656 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 657 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 658 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 659 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 660 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 661 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 662 | | #endif | 663 | | | 664 | 730 | #ifdef ALPHAECOFF | 665 | 730 | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 666 | 730 | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 667 | 730 | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 668 | 730 | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 669 | 730 | #endif | 670 | 730 | } |
coff-x86_64.c:coff_swap_aouthdr_in Line | Count | Source | 612 | 1.53k | { | 613 | 1.53k | AOUTHDR *aouthdr_ext; | 614 | 1.53k | struct internal_aouthdr *aouthdr_int; | 615 | | | 616 | 1.53k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 617 | 1.53k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 618 | 1.53k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 619 | 1.53k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 620 | 1.53k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 621 | 1.53k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 622 | 1.53k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 623 | 1.53k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 624 | 1.53k | aouthdr_int->text_start = | 625 | 1.53k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 626 | 1.53k | aouthdr_int->data_start = | 627 | 1.53k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 628 | | | 629 | | #ifdef RS6000COFF_C | 630 | | #ifdef XCOFF64 | 631 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 632 | | #else | 633 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 634 | | #endif | 635 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 636 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 637 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 638 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 639 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 640 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 641 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 642 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 643 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 644 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 645 | | #ifdef XCOFF64 | 646 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 647 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 648 | | #else | 649 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 650 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 651 | | #endif | 652 | | #endif | 653 | | | 654 | | #ifdef MIPSECOFF | 655 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 656 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 657 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 658 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 659 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 660 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 661 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 662 | | #endif | 663 | | | 664 | | #ifdef ALPHAECOFF | 665 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 666 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 667 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 668 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 669 | | #endif | 670 | 1.53k | } |
coff64-rs6000.c:coff_swap_aouthdr_in Line | Count | Source | 612 | 1.02k | { | 613 | 1.02k | AOUTHDR *aouthdr_ext; | 614 | 1.02k | struct internal_aouthdr *aouthdr_int; | 615 | | | 616 | 1.02k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 617 | 1.02k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 618 | 1.02k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 619 | 1.02k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 620 | 1.02k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 621 | 1.02k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 622 | 1.02k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 623 | 1.02k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 624 | 1.02k | aouthdr_int->text_start = | 625 | 1.02k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 626 | 1.02k | aouthdr_int->data_start = | 627 | 1.02k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 628 | | | 629 | 1.02k | #ifdef RS6000COFF_C | 630 | 1.02k | #ifdef XCOFF64 | 631 | 1.02k | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 632 | | #else | 633 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 634 | | #endif | 635 | 1.02k | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 636 | 1.02k | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 637 | 1.02k | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 638 | 1.02k | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 639 | 1.02k | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 640 | 1.02k | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 641 | 1.02k | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 642 | 1.02k | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 643 | 1.02k | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 644 | 1.02k | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 645 | 1.02k | #ifdef XCOFF64 | 646 | 1.02k | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 647 | 1.02k | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 648 | | #else | 649 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 650 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 651 | | #endif | 652 | 1.02k | #endif | 653 | | | 654 | | #ifdef MIPSECOFF | 655 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 656 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 657 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 658 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 659 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 660 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 661 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 662 | | #endif | 663 | | | 664 | | #ifdef ALPHAECOFF | 665 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 666 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 667 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 668 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 669 | | #endif | 670 | 1.02k | } |
cf-i386lynx.c:coff_swap_aouthdr_in Line | Count | Source | 612 | 1.30k | { | 613 | 1.30k | AOUTHDR *aouthdr_ext; | 614 | 1.30k | struct internal_aouthdr *aouthdr_int; | 615 | | | 616 | 1.30k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 617 | 1.30k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 618 | 1.30k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 619 | 1.30k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 620 | 1.30k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 621 | 1.30k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 622 | 1.30k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 623 | 1.30k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 624 | 1.30k | aouthdr_int->text_start = | 625 | 1.30k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 626 | 1.30k | aouthdr_int->data_start = | 627 | 1.30k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 628 | | | 629 | | #ifdef RS6000COFF_C | 630 | | #ifdef XCOFF64 | 631 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 632 | | #else | 633 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 634 | | #endif | 635 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 636 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 637 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 638 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 639 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 640 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 641 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 642 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 643 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 644 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 645 | | #ifdef XCOFF64 | 646 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 647 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 648 | | #else | 649 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 650 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 651 | | #endif | 652 | | #endif | 653 | | | 654 | | #ifdef MIPSECOFF | 655 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 656 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 657 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 658 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 659 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 660 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 661 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 662 | | #endif | 663 | | | 664 | | #ifdef ALPHAECOFF | 665 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 666 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 667 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 668 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 669 | | #endif | 670 | 1.30k | } |
coff-go32.c:coff_swap_aouthdr_in Line | Count | Source | 612 | 853 | { | 613 | 853 | AOUTHDR *aouthdr_ext; | 614 | 853 | struct internal_aouthdr *aouthdr_int; | 615 | | | 616 | 853 | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 617 | 853 | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 618 | 853 | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 619 | 853 | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 620 | 853 | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 621 | 853 | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 622 | 853 | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 623 | 853 | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 624 | 853 | aouthdr_int->text_start = | 625 | 853 | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 626 | 853 | aouthdr_int->data_start = | 627 | 853 | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 628 | | | 629 | | #ifdef RS6000COFF_C | 630 | | #ifdef XCOFF64 | 631 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 632 | | #else | 633 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 634 | | #endif | 635 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 636 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 637 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 638 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 639 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 640 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 641 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 642 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 643 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 644 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 645 | | #ifdef XCOFF64 | 646 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 647 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 648 | | #else | 649 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 650 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 651 | | #endif | 652 | | #endif | 653 | | | 654 | | #ifdef MIPSECOFF | 655 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 656 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 657 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 658 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 659 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 660 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 661 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 662 | | #endif | 663 | | | 664 | | #ifdef ALPHAECOFF | 665 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 666 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 667 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 668 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 669 | | #endif | 670 | 853 | } |
coff-i386.c:coff_swap_aouthdr_in Line | Count | Source | 612 | 853 | { | 613 | 853 | AOUTHDR *aouthdr_ext; | 614 | 853 | struct internal_aouthdr *aouthdr_int; | 615 | | | 616 | 853 | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 617 | 853 | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 618 | 853 | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 619 | 853 | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 620 | 853 | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 621 | 853 | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 622 | 853 | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 623 | 853 | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 624 | 853 | aouthdr_int->text_start = | 625 | 853 | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 626 | 853 | aouthdr_int->data_start = | 627 | 853 | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 628 | | | 629 | | #ifdef RS6000COFF_C | 630 | | #ifdef XCOFF64 | 631 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 632 | | #else | 633 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 634 | | #endif | 635 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 636 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 637 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 638 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 639 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 640 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 641 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 642 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 643 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 644 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 645 | | #ifdef XCOFF64 | 646 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 647 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 648 | | #else | 649 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 650 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 651 | | #endif | 652 | | #endif | 653 | | | 654 | | #ifdef MIPSECOFF | 655 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 656 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 657 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 658 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 659 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 660 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 661 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 662 | | #endif | 663 | | | 664 | | #ifdef ALPHAECOFF | 665 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 666 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 667 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 668 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 669 | | #endif | 670 | 853 | } |
coff-mips.c:mips_ecoff_swap_aouthdr_in Line | Count | Source | 612 | 1.03k | { | 613 | 1.03k | AOUTHDR *aouthdr_ext; | 614 | 1.03k | struct internal_aouthdr *aouthdr_int; | 615 | | | 616 | 1.03k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 617 | 1.03k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 618 | 1.03k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 619 | 1.03k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 620 | 1.03k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 621 | 1.03k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 622 | 1.03k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 623 | 1.03k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 624 | 1.03k | aouthdr_int->text_start = | 625 | 1.03k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 626 | 1.03k | aouthdr_int->data_start = | 627 | 1.03k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 628 | | | 629 | | #ifdef RS6000COFF_C | 630 | | #ifdef XCOFF64 | 631 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 632 | | #else | 633 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 634 | | #endif | 635 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 636 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 637 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 638 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 639 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 640 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 641 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 642 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 643 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 644 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 645 | | #ifdef XCOFF64 | 646 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 647 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 648 | | #else | 649 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 650 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 651 | | #endif | 652 | | #endif | 653 | | | 654 | 1.03k | #ifdef MIPSECOFF | 655 | 1.03k | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 656 | 1.03k | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 657 | 1.03k | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 658 | 1.03k | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 659 | 1.03k | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 660 | 1.03k | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 661 | 1.03k | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 662 | 1.03k | #endif | 663 | | | 664 | | #ifdef ALPHAECOFF | 665 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 666 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 667 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 668 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 669 | | #endif | 670 | 1.03k | } |
coff-rs6000.c:coff_swap_aouthdr_in Line | Count | Source | 612 | 1.03k | { | 613 | 1.03k | AOUTHDR *aouthdr_ext; | 614 | 1.03k | struct internal_aouthdr *aouthdr_int; | 615 | | | 616 | 1.03k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 617 | 1.03k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 618 | 1.03k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 619 | 1.03k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 620 | 1.03k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 621 | 1.03k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 622 | 1.03k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 623 | 1.03k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 624 | 1.03k | aouthdr_int->text_start = | 625 | 1.03k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 626 | 1.03k | aouthdr_int->data_start = | 627 | 1.03k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 628 | | | 629 | 1.03k | #ifdef RS6000COFF_C | 630 | | #ifdef XCOFF64 | 631 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 632 | | #else | 633 | 1.03k | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 634 | 1.03k | #endif | 635 | 1.03k | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 636 | 1.03k | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 637 | 1.03k | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 638 | 1.03k | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 639 | 1.03k | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 640 | 1.03k | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 641 | 1.03k | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 642 | 1.03k | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 643 | 1.03k | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 644 | 1.03k | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 645 | | #ifdef XCOFF64 | 646 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 647 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 648 | | #else | 649 | 1.03k | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 650 | 1.03k | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 651 | 1.03k | #endif | 652 | 1.03k | #endif | 653 | | | 654 | | #ifdef MIPSECOFF | 655 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 656 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 657 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 658 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 659 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 660 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 661 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 662 | | #endif | 663 | | | 664 | | #ifdef ALPHAECOFF | 665 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 666 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 667 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 668 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 669 | | #endif | 670 | 1.03k | } |
coff-sh.c:coff_swap_aouthdr_in Line | Count | Source | 612 | 1.11k | { | 613 | 1.11k | AOUTHDR *aouthdr_ext; | 614 | 1.11k | struct internal_aouthdr *aouthdr_int; | 615 | | | 616 | 1.11k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 617 | 1.11k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 618 | 1.11k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 619 | 1.11k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 620 | 1.11k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 621 | 1.11k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 622 | 1.11k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 623 | 1.11k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 624 | 1.11k | aouthdr_int->text_start = | 625 | 1.11k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 626 | 1.11k | aouthdr_int->data_start = | 627 | 1.11k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 628 | | | 629 | | #ifdef RS6000COFF_C | 630 | | #ifdef XCOFF64 | 631 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 632 | | #else | 633 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 634 | | #endif | 635 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 636 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 637 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 638 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 639 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 640 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 641 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 642 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 643 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 644 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 645 | | #ifdef XCOFF64 | 646 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 647 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 648 | | #else | 649 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 650 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 651 | | #endif | 652 | | #endif | 653 | | | 654 | | #ifdef MIPSECOFF | 655 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 656 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 657 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 658 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 659 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 660 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 661 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 662 | | #endif | 663 | | | 664 | | #ifdef ALPHAECOFF | 665 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 666 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 667 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 668 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 669 | | #endif | 670 | 1.11k | } |
coff-stgo32.c:coff_swap_aouthdr_in Line | Count | Source | 612 | 491 | { | 613 | 491 | AOUTHDR *aouthdr_ext; | 614 | 491 | struct internal_aouthdr *aouthdr_int; | 615 | | | 616 | 491 | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 617 | 491 | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 618 | 491 | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 619 | 491 | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 620 | 491 | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 621 | 491 | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 622 | 491 | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 623 | 491 | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 624 | 491 | aouthdr_int->text_start = | 625 | 491 | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 626 | 491 | aouthdr_int->data_start = | 627 | 491 | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 628 | | | 629 | | #ifdef RS6000COFF_C | 630 | | #ifdef XCOFF64 | 631 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 632 | | #else | 633 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 634 | | #endif | 635 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 636 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 637 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 638 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 639 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 640 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 641 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 642 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 643 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 644 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 645 | | #ifdef XCOFF64 | 646 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 647 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 648 | | #else | 649 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 650 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 651 | | #endif | 652 | | #endif | 653 | | | 654 | | #ifdef MIPSECOFF | 655 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 656 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 657 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 658 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 659 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 660 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 661 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 662 | | #endif | 663 | | | 664 | | #ifdef ALPHAECOFF | 665 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 666 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 667 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 668 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 669 | | #endif | 670 | 491 | } |
coff-tic30.c:coff_swap_aouthdr_in Line | Count | Source | 612 | 909 | { | 613 | 909 | AOUTHDR *aouthdr_ext; | 614 | 909 | struct internal_aouthdr *aouthdr_int; | 615 | | | 616 | 909 | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 617 | 909 | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 618 | 909 | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 619 | 909 | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 620 | 909 | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 621 | 909 | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 622 | 909 | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 623 | 909 | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 624 | 909 | aouthdr_int->text_start = | 625 | 909 | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 626 | 909 | aouthdr_int->data_start = | 627 | 909 | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 628 | | | 629 | | #ifdef RS6000COFF_C | 630 | | #ifdef XCOFF64 | 631 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 632 | | #else | 633 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 634 | | #endif | 635 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 636 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 637 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 638 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 639 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 640 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 641 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 642 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 643 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 644 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 645 | | #ifdef XCOFF64 | 646 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 647 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 648 | | #else | 649 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 650 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 651 | | #endif | 652 | | #endif | 653 | | | 654 | | #ifdef MIPSECOFF | 655 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 656 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 657 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 658 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 659 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 660 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 661 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 662 | | #endif | 663 | | | 664 | | #ifdef ALPHAECOFF | 665 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 666 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 667 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 668 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 669 | | #endif | 670 | 909 | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_aouthdr_in coff-tic54x.c:coff_swap_aouthdr_in Line | Count | Source | 612 | 1.14k | { | 613 | 1.14k | AOUTHDR *aouthdr_ext; | 614 | 1.14k | struct internal_aouthdr *aouthdr_int; | 615 | | | 616 | 1.14k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 617 | 1.14k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 618 | 1.14k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 619 | 1.14k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 620 | 1.14k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 621 | 1.14k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 622 | 1.14k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 623 | 1.14k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 624 | 1.14k | aouthdr_int->text_start = | 625 | 1.14k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 626 | 1.14k | aouthdr_int->data_start = | 627 | 1.14k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 628 | | | 629 | | #ifdef RS6000COFF_C | 630 | | #ifdef XCOFF64 | 631 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 632 | | #else | 633 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 634 | | #endif | 635 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 636 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 637 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 638 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 639 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 640 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 641 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 642 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 643 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 644 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 645 | | #ifdef XCOFF64 | 646 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 647 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 648 | | #else | 649 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 650 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 651 | | #endif | 652 | | #endif | 653 | | | 654 | | #ifdef MIPSECOFF | 655 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 656 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 657 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 658 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 659 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 660 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 661 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 662 | | #endif | 663 | | | 664 | | #ifdef ALPHAECOFF | 665 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 666 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 667 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 668 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 669 | | #endif | 670 | 1.14k | } |
coff-z80.c:coff_swap_aouthdr_in Line | Count | Source | 612 | 801 | { | 613 | 801 | AOUTHDR *aouthdr_ext; | 614 | 801 | struct internal_aouthdr *aouthdr_int; | 615 | | | 616 | 801 | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 617 | 801 | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 618 | 801 | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 619 | 801 | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 620 | 801 | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 621 | 801 | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 622 | 801 | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 623 | 801 | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 624 | 801 | aouthdr_int->text_start = | 625 | 801 | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 626 | 801 | aouthdr_int->data_start = | 627 | 801 | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 628 | | | 629 | | #ifdef RS6000COFF_C | 630 | | #ifdef XCOFF64 | 631 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 632 | | #else | 633 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 634 | | #endif | 635 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 636 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 637 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 638 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 639 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 640 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 641 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 642 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 643 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 644 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 645 | | #ifdef XCOFF64 | 646 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 647 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 648 | | #else | 649 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 650 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 651 | | #endif | 652 | | #endif | 653 | | | 654 | | #ifdef MIPSECOFF | 655 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 656 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 657 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 658 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 659 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 660 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 661 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 662 | | #endif | 663 | | | 664 | | #ifdef ALPHAECOFF | 665 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 666 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 667 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 668 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 669 | | #endif | 670 | 801 | } |
coff-z8k.c:coff_swap_aouthdr_in Line | Count | Source | 612 | 1.46k | { | 613 | 1.46k | AOUTHDR *aouthdr_ext; | 614 | 1.46k | struct internal_aouthdr *aouthdr_int; | 615 | | | 616 | 1.46k | aouthdr_ext = (AOUTHDR *) aouthdr_ext1; | 617 | 1.46k | aouthdr_int = (struct internal_aouthdr *) aouthdr_int1; | 618 | 1.46k | aouthdr_int->magic = H_GET_16 (abfd, aouthdr_ext->magic); | 619 | 1.46k | aouthdr_int->vstamp = H_GET_16 (abfd, aouthdr_ext->vstamp); | 620 | 1.46k | aouthdr_int->tsize = GET_AOUTHDR_TSIZE (abfd, aouthdr_ext->tsize); | 621 | 1.46k | aouthdr_int->dsize = GET_AOUTHDR_DSIZE (abfd, aouthdr_ext->dsize); | 622 | 1.46k | aouthdr_int->bsize = GET_AOUTHDR_BSIZE (abfd, aouthdr_ext->bsize); | 623 | 1.46k | aouthdr_int->entry = GET_AOUTHDR_ENTRY (abfd, aouthdr_ext->entry); | 624 | 1.46k | aouthdr_int->text_start = | 625 | 1.46k | GET_AOUTHDR_TEXT_START (abfd, aouthdr_ext->text_start); | 626 | 1.46k | aouthdr_int->data_start = | 627 | 1.46k | GET_AOUTHDR_DATA_START (abfd, aouthdr_ext->data_start); | 628 | | | 629 | | #ifdef RS6000COFF_C | 630 | | #ifdef XCOFF64 | 631 | | aouthdr_int->o_toc = H_GET_64 (abfd, aouthdr_ext->o_toc); | 632 | | #else | 633 | | aouthdr_int->o_toc = H_GET_32 (abfd, aouthdr_ext->o_toc); | 634 | | #endif | 635 | | aouthdr_int->o_snentry = H_GET_16 (abfd, aouthdr_ext->o_snentry); | 636 | | aouthdr_int->o_sntext = H_GET_16 (abfd, aouthdr_ext->o_sntext); | 637 | | aouthdr_int->o_sndata = H_GET_16 (abfd, aouthdr_ext->o_sndata); | 638 | | aouthdr_int->o_sntoc = H_GET_16 (abfd, aouthdr_ext->o_sntoc); | 639 | | aouthdr_int->o_snloader = H_GET_16 (abfd, aouthdr_ext->o_snloader); | 640 | | aouthdr_int->o_snbss = H_GET_16 (abfd, aouthdr_ext->o_snbss); | 641 | | aouthdr_int->o_algntext = H_GET_16 (abfd, aouthdr_ext->o_algntext); | 642 | | aouthdr_int->o_algndata = H_GET_16 (abfd, aouthdr_ext->o_algndata); | 643 | | aouthdr_int->o_modtype = H_GET_16 (abfd, aouthdr_ext->o_modtype); | 644 | | aouthdr_int->o_cputype = H_GET_16 (abfd, aouthdr_ext->o_cputype); | 645 | | #ifdef XCOFF64 | 646 | | aouthdr_int->o_maxstack = H_GET_64 (abfd, aouthdr_ext->o_maxstack); | 647 | | aouthdr_int->o_maxdata = H_GET_64 (abfd, aouthdr_ext->o_maxdata); | 648 | | #else | 649 | | aouthdr_int->o_maxstack = H_GET_32 (abfd, aouthdr_ext->o_maxstack); | 650 | | aouthdr_int->o_maxdata = H_GET_32 (abfd, aouthdr_ext->o_maxdata); | 651 | | #endif | 652 | | #endif | 653 | | | 654 | | #ifdef MIPSECOFF | 655 | | aouthdr_int->bss_start = H_GET_32 (abfd, aouthdr_ext->bss_start); | 656 | | aouthdr_int->gp_value = H_GET_32 (abfd, aouthdr_ext->gp_value); | 657 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 658 | | aouthdr_int->cprmask[0] = H_GET_32 (abfd, aouthdr_ext->cprmask[0]); | 659 | | aouthdr_int->cprmask[1] = H_GET_32 (abfd, aouthdr_ext->cprmask[1]); | 660 | | aouthdr_int->cprmask[2] = H_GET_32 (abfd, aouthdr_ext->cprmask[2]); | 661 | | aouthdr_int->cprmask[3] = H_GET_32 (abfd, aouthdr_ext->cprmask[3]); | 662 | | #endif | 663 | | | 664 | | #ifdef ALPHAECOFF | 665 | | aouthdr_int->bss_start = H_GET_64 (abfd, aouthdr_ext->bss_start); | 666 | | aouthdr_int->gp_value = H_GET_64 (abfd, aouthdr_ext->gp_value); | 667 | | aouthdr_int->gprmask = H_GET_32 (abfd, aouthdr_ext->gprmask); | 668 | | aouthdr_int->fprmask = H_GET_32 (abfd, aouthdr_ext->fprmask); | 669 | | #endif | 670 | 1.46k | } |
|
671 | | |
672 | | static unsigned int |
673 | | coff_swap_aouthdr_out (bfd * abfd, void * in, void * out) |
674 | 421 | { |
675 | 421 | struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *) in; |
676 | 421 | AOUTHDR *aouthdr_out = (AOUTHDR *) out; |
677 | | |
678 | 421 | H_PUT_16 (abfd, aouthdr_in->magic, aouthdr_out->magic); |
679 | 421 | H_PUT_16 (abfd, aouthdr_in->vstamp, aouthdr_out->vstamp); |
680 | 421 | PUT_AOUTHDR_TSIZE (abfd, aouthdr_in->tsize, aouthdr_out->tsize); |
681 | 421 | PUT_AOUTHDR_DSIZE (abfd, aouthdr_in->dsize, aouthdr_out->dsize); |
682 | 421 | PUT_AOUTHDR_BSIZE (abfd, aouthdr_in->bsize, aouthdr_out->bsize); |
683 | 421 | PUT_AOUTHDR_ENTRY (abfd, aouthdr_in->entry, aouthdr_out->entry); |
684 | 421 | PUT_AOUTHDR_TEXT_START (abfd, aouthdr_in->text_start, |
685 | 421 | aouthdr_out->text_start); |
686 | 421 | PUT_AOUTHDR_DATA_START (abfd, aouthdr_in->data_start, |
687 | 421 | aouthdr_out->data_start); |
688 | | |
689 | | #ifdef RS6000COFF_C |
690 | | #ifdef XCOFF64 |
691 | 22 | H_PUT_64 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); |
692 | | #else |
693 | 101 | H_PUT_32 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); |
694 | | #endif |
695 | 123 | H_PUT_16 (abfd, aouthdr_in->o_snentry, aouthdr_out->o_snentry); |
696 | 123 | H_PUT_16 (abfd, aouthdr_in->o_sntext, aouthdr_out->o_sntext); |
697 | 123 | H_PUT_16 (abfd, aouthdr_in->o_sndata, aouthdr_out->o_sndata); |
698 | 123 | H_PUT_16 (abfd, aouthdr_in->o_sntoc, aouthdr_out->o_sntoc); |
699 | 123 | H_PUT_16 (abfd, aouthdr_in->o_snloader, aouthdr_out->o_snloader); |
700 | 123 | H_PUT_16 (abfd, aouthdr_in->o_snbss, aouthdr_out->o_snbss); |
701 | 123 | H_PUT_16 (abfd, aouthdr_in->o_algntext, aouthdr_out->o_algntext); |
702 | 123 | H_PUT_16 (abfd, aouthdr_in->o_algndata, aouthdr_out->o_algndata); |
703 | 123 | H_PUT_16 (abfd, aouthdr_in->o_modtype, aouthdr_out->o_modtype); |
704 | 123 | H_PUT_16 (abfd, aouthdr_in->o_cputype, aouthdr_out->o_cputype); |
705 | | #ifdef XCOFF64 |
706 | 22 | H_PUT_64 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); |
707 | 22 | H_PUT_64 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); |
708 | | #else |
709 | 101 | H_PUT_32 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); |
710 | 101 | H_PUT_32 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); |
711 | | #endif |
712 | | /* TODO: set o_*psize dynamically */ |
713 | 123 | H_PUT_8 (abfd, 0, aouthdr_out->o_textpsize); |
714 | 123 | H_PUT_8 (abfd, 0, aouthdr_out->o_datapsize); |
715 | 123 | H_PUT_8 (abfd, 0, aouthdr_out->o_stackpsize); |
716 | 123 | H_PUT_8 (abfd, aouthdr_in->o_flags, aouthdr_out->o_flags); |
717 | 123 | H_PUT_16 (abfd, aouthdr_in->o_sntdata, aouthdr_out->o_sntdata); |
718 | 123 | H_PUT_16 (abfd, aouthdr_in->o_sntbss, aouthdr_out->o_sntbss); |
719 | 123 | H_PUT_32 (abfd, 0, aouthdr_out->o_debugger); |
720 | | #ifdef XCOFF64 |
721 | 22 | H_PUT_16 (abfd, aouthdr_in->o_x64flags, aouthdr_out->o_x64flags); |
722 | | memset (aouthdr_out->o_resv3, 0, sizeof aouthdr_out->o_resv3); |
723 | | #endif |
724 | | #endif |
725 | | |
726 | | #ifdef MIPSECOFF |
727 | 89 | H_PUT_32 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); |
728 | 89 | H_PUT_32 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); |
729 | 89 | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); |
730 | 89 | H_PUT_32 (abfd, aouthdr_in->cprmask[0], aouthdr_out->cprmask[0]); |
731 | 89 | H_PUT_32 (abfd, aouthdr_in->cprmask[1], aouthdr_out->cprmask[1]); |
732 | 89 | H_PUT_32 (abfd, aouthdr_in->cprmask[2], aouthdr_out->cprmask[2]); |
733 | 89 | H_PUT_32 (abfd, aouthdr_in->cprmask[3], aouthdr_out->cprmask[3]); |
734 | | #endif |
735 | | |
736 | | #ifdef ALPHAECOFF |
737 | | /* FIXME: What does bldrev mean? */ |
738 | 51 | H_PUT_16 (abfd, 2, aouthdr_out->bldrev); |
739 | 51 | H_PUT_16 (abfd, 0, aouthdr_out->padding); |
740 | 51 | H_PUT_64 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); |
741 | 51 | H_PUT_64 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); |
742 | 51 | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); |
743 | 51 | H_PUT_32 (abfd, aouthdr_in->fprmask, aouthdr_out->fprmask); |
744 | | #endif |
745 | | |
746 | 421 | return AOUTSZ; |
747 | 421 | } coff-alpha.c:alpha_ecoff_swap_aouthdr_out Line | Count | Source | 674 | 51 | { | 675 | 51 | struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *) in; | 676 | 51 | AOUTHDR *aouthdr_out = (AOUTHDR *) out; | 677 | | | 678 | 51 | H_PUT_16 (abfd, aouthdr_in->magic, aouthdr_out->magic); | 679 | 51 | H_PUT_16 (abfd, aouthdr_in->vstamp, aouthdr_out->vstamp); | 680 | 51 | PUT_AOUTHDR_TSIZE (abfd, aouthdr_in->tsize, aouthdr_out->tsize); | 681 | 51 | PUT_AOUTHDR_DSIZE (abfd, aouthdr_in->dsize, aouthdr_out->dsize); | 682 | 51 | PUT_AOUTHDR_BSIZE (abfd, aouthdr_in->bsize, aouthdr_out->bsize); | 683 | 51 | PUT_AOUTHDR_ENTRY (abfd, aouthdr_in->entry, aouthdr_out->entry); | 684 | 51 | PUT_AOUTHDR_TEXT_START (abfd, aouthdr_in->text_start, | 685 | 51 | aouthdr_out->text_start); | 686 | 51 | PUT_AOUTHDR_DATA_START (abfd, aouthdr_in->data_start, | 687 | 51 | aouthdr_out->data_start); | 688 | | | 689 | | #ifdef RS6000COFF_C | 690 | | #ifdef XCOFF64 | 691 | | H_PUT_64 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 692 | | #else | 693 | | H_PUT_32 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 694 | | #endif | 695 | | H_PUT_16 (abfd, aouthdr_in->o_snentry, aouthdr_out->o_snentry); | 696 | | H_PUT_16 (abfd, aouthdr_in->o_sntext, aouthdr_out->o_sntext); | 697 | | H_PUT_16 (abfd, aouthdr_in->o_sndata, aouthdr_out->o_sndata); | 698 | | H_PUT_16 (abfd, aouthdr_in->o_sntoc, aouthdr_out->o_sntoc); | 699 | | H_PUT_16 (abfd, aouthdr_in->o_snloader, aouthdr_out->o_snloader); | 700 | | H_PUT_16 (abfd, aouthdr_in->o_snbss, aouthdr_out->o_snbss); | 701 | | H_PUT_16 (abfd, aouthdr_in->o_algntext, aouthdr_out->o_algntext); | 702 | | H_PUT_16 (abfd, aouthdr_in->o_algndata, aouthdr_out->o_algndata); | 703 | | H_PUT_16 (abfd, aouthdr_in->o_modtype, aouthdr_out->o_modtype); | 704 | | H_PUT_16 (abfd, aouthdr_in->o_cputype, aouthdr_out->o_cputype); | 705 | | #ifdef XCOFF64 | 706 | | H_PUT_64 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 707 | | H_PUT_64 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 708 | | #else | 709 | | H_PUT_32 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 710 | | H_PUT_32 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 711 | | #endif | 712 | | /* TODO: set o_*psize dynamically */ | 713 | | H_PUT_8 (abfd, 0, aouthdr_out->o_textpsize); | 714 | | H_PUT_8 (abfd, 0, aouthdr_out->o_datapsize); | 715 | | H_PUT_8 (abfd, 0, aouthdr_out->o_stackpsize); | 716 | | H_PUT_8 (abfd, aouthdr_in->o_flags, aouthdr_out->o_flags); | 717 | | H_PUT_16 (abfd, aouthdr_in->o_sntdata, aouthdr_out->o_sntdata); | 718 | | H_PUT_16 (abfd, aouthdr_in->o_sntbss, aouthdr_out->o_sntbss); | 719 | | H_PUT_32 (abfd, 0, aouthdr_out->o_debugger); | 720 | | #ifdef XCOFF64 | 721 | | H_PUT_16 (abfd, aouthdr_in->o_x64flags, aouthdr_out->o_x64flags); | 722 | | memset (aouthdr_out->o_resv3, 0, sizeof aouthdr_out->o_resv3); | 723 | | #endif | 724 | | #endif | 725 | | | 726 | | #ifdef MIPSECOFF | 727 | | H_PUT_32 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 728 | | H_PUT_32 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 729 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 730 | | H_PUT_32 (abfd, aouthdr_in->cprmask[0], aouthdr_out->cprmask[0]); | 731 | | H_PUT_32 (abfd, aouthdr_in->cprmask[1], aouthdr_out->cprmask[1]); | 732 | | H_PUT_32 (abfd, aouthdr_in->cprmask[2], aouthdr_out->cprmask[2]); | 733 | | H_PUT_32 (abfd, aouthdr_in->cprmask[3], aouthdr_out->cprmask[3]); | 734 | | #endif | 735 | | | 736 | 51 | #ifdef ALPHAECOFF | 737 | | /* FIXME: What does bldrev mean? */ | 738 | 51 | H_PUT_16 (abfd, 2, aouthdr_out->bldrev); | 739 | 51 | H_PUT_16 (abfd, 0, aouthdr_out->padding); | 740 | 51 | H_PUT_64 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 741 | 51 | H_PUT_64 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 742 | 51 | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 743 | 51 | H_PUT_32 (abfd, aouthdr_in->fprmask, aouthdr_out->fprmask); | 744 | 51 | #endif | 745 | | | 746 | 51 | return AOUTSZ; | 747 | 51 | } |
coff-x86_64.c:coff_swap_aouthdr_out Line | Count | Source | 674 | 31 | { | 675 | 31 | struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *) in; | 676 | 31 | AOUTHDR *aouthdr_out = (AOUTHDR *) out; | 677 | | | 678 | 31 | H_PUT_16 (abfd, aouthdr_in->magic, aouthdr_out->magic); | 679 | 31 | H_PUT_16 (abfd, aouthdr_in->vstamp, aouthdr_out->vstamp); | 680 | 31 | PUT_AOUTHDR_TSIZE (abfd, aouthdr_in->tsize, aouthdr_out->tsize); | 681 | 31 | PUT_AOUTHDR_DSIZE (abfd, aouthdr_in->dsize, aouthdr_out->dsize); | 682 | 31 | PUT_AOUTHDR_BSIZE (abfd, aouthdr_in->bsize, aouthdr_out->bsize); | 683 | 31 | PUT_AOUTHDR_ENTRY (abfd, aouthdr_in->entry, aouthdr_out->entry); | 684 | 31 | PUT_AOUTHDR_TEXT_START (abfd, aouthdr_in->text_start, | 685 | 31 | aouthdr_out->text_start); | 686 | 31 | PUT_AOUTHDR_DATA_START (abfd, aouthdr_in->data_start, | 687 | 31 | aouthdr_out->data_start); | 688 | | | 689 | | #ifdef RS6000COFF_C | 690 | | #ifdef XCOFF64 | 691 | | H_PUT_64 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 692 | | #else | 693 | | H_PUT_32 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 694 | | #endif | 695 | | H_PUT_16 (abfd, aouthdr_in->o_snentry, aouthdr_out->o_snentry); | 696 | | H_PUT_16 (abfd, aouthdr_in->o_sntext, aouthdr_out->o_sntext); | 697 | | H_PUT_16 (abfd, aouthdr_in->o_sndata, aouthdr_out->o_sndata); | 698 | | H_PUT_16 (abfd, aouthdr_in->o_sntoc, aouthdr_out->o_sntoc); | 699 | | H_PUT_16 (abfd, aouthdr_in->o_snloader, aouthdr_out->o_snloader); | 700 | | H_PUT_16 (abfd, aouthdr_in->o_snbss, aouthdr_out->o_snbss); | 701 | | H_PUT_16 (abfd, aouthdr_in->o_algntext, aouthdr_out->o_algntext); | 702 | | H_PUT_16 (abfd, aouthdr_in->o_algndata, aouthdr_out->o_algndata); | 703 | | H_PUT_16 (abfd, aouthdr_in->o_modtype, aouthdr_out->o_modtype); | 704 | | H_PUT_16 (abfd, aouthdr_in->o_cputype, aouthdr_out->o_cputype); | 705 | | #ifdef XCOFF64 | 706 | | H_PUT_64 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 707 | | H_PUT_64 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 708 | | #else | 709 | | H_PUT_32 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 710 | | H_PUT_32 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 711 | | #endif | 712 | | /* TODO: set o_*psize dynamically */ | 713 | | H_PUT_8 (abfd, 0, aouthdr_out->o_textpsize); | 714 | | H_PUT_8 (abfd, 0, aouthdr_out->o_datapsize); | 715 | | H_PUT_8 (abfd, 0, aouthdr_out->o_stackpsize); | 716 | | H_PUT_8 (abfd, aouthdr_in->o_flags, aouthdr_out->o_flags); | 717 | | H_PUT_16 (abfd, aouthdr_in->o_sntdata, aouthdr_out->o_sntdata); | 718 | | H_PUT_16 (abfd, aouthdr_in->o_sntbss, aouthdr_out->o_sntbss); | 719 | | H_PUT_32 (abfd, 0, aouthdr_out->o_debugger); | 720 | | #ifdef XCOFF64 | 721 | | H_PUT_16 (abfd, aouthdr_in->o_x64flags, aouthdr_out->o_x64flags); | 722 | | memset (aouthdr_out->o_resv3, 0, sizeof aouthdr_out->o_resv3); | 723 | | #endif | 724 | | #endif | 725 | | | 726 | | #ifdef MIPSECOFF | 727 | | H_PUT_32 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 728 | | H_PUT_32 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 729 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 730 | | H_PUT_32 (abfd, aouthdr_in->cprmask[0], aouthdr_out->cprmask[0]); | 731 | | H_PUT_32 (abfd, aouthdr_in->cprmask[1], aouthdr_out->cprmask[1]); | 732 | | H_PUT_32 (abfd, aouthdr_in->cprmask[2], aouthdr_out->cprmask[2]); | 733 | | H_PUT_32 (abfd, aouthdr_in->cprmask[3], aouthdr_out->cprmask[3]); | 734 | | #endif | 735 | | | 736 | | #ifdef ALPHAECOFF | 737 | | /* FIXME: What does bldrev mean? */ | 738 | | H_PUT_16 (abfd, 2, aouthdr_out->bldrev); | 739 | | H_PUT_16 (abfd, 0, aouthdr_out->padding); | 740 | | H_PUT_64 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 741 | | H_PUT_64 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 742 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 743 | | H_PUT_32 (abfd, aouthdr_in->fprmask, aouthdr_out->fprmask); | 744 | | #endif | 745 | | | 746 | 31 | return AOUTSZ; | 747 | 31 | } |
coff64-rs6000.c:coff_swap_aouthdr_out Line | Count | Source | 674 | 22 | { | 675 | 22 | struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *) in; | 676 | 22 | AOUTHDR *aouthdr_out = (AOUTHDR *) out; | 677 | | | 678 | 22 | H_PUT_16 (abfd, aouthdr_in->magic, aouthdr_out->magic); | 679 | 22 | H_PUT_16 (abfd, aouthdr_in->vstamp, aouthdr_out->vstamp); | 680 | 22 | PUT_AOUTHDR_TSIZE (abfd, aouthdr_in->tsize, aouthdr_out->tsize); | 681 | 22 | PUT_AOUTHDR_DSIZE (abfd, aouthdr_in->dsize, aouthdr_out->dsize); | 682 | 22 | PUT_AOUTHDR_BSIZE (abfd, aouthdr_in->bsize, aouthdr_out->bsize); | 683 | 22 | PUT_AOUTHDR_ENTRY (abfd, aouthdr_in->entry, aouthdr_out->entry); | 684 | 22 | PUT_AOUTHDR_TEXT_START (abfd, aouthdr_in->text_start, | 685 | 22 | aouthdr_out->text_start); | 686 | 22 | PUT_AOUTHDR_DATA_START (abfd, aouthdr_in->data_start, | 687 | 22 | aouthdr_out->data_start); | 688 | | | 689 | 22 | #ifdef RS6000COFF_C | 690 | 22 | #ifdef XCOFF64 | 691 | 22 | H_PUT_64 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 692 | | #else | 693 | | H_PUT_32 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 694 | | #endif | 695 | 22 | H_PUT_16 (abfd, aouthdr_in->o_snentry, aouthdr_out->o_snentry); | 696 | 22 | H_PUT_16 (abfd, aouthdr_in->o_sntext, aouthdr_out->o_sntext); | 697 | 22 | H_PUT_16 (abfd, aouthdr_in->o_sndata, aouthdr_out->o_sndata); | 698 | 22 | H_PUT_16 (abfd, aouthdr_in->o_sntoc, aouthdr_out->o_sntoc); | 699 | 22 | H_PUT_16 (abfd, aouthdr_in->o_snloader, aouthdr_out->o_snloader); | 700 | 22 | H_PUT_16 (abfd, aouthdr_in->o_snbss, aouthdr_out->o_snbss); | 701 | 22 | H_PUT_16 (abfd, aouthdr_in->o_algntext, aouthdr_out->o_algntext); | 702 | 22 | H_PUT_16 (abfd, aouthdr_in->o_algndata, aouthdr_out->o_algndata); | 703 | 22 | H_PUT_16 (abfd, aouthdr_in->o_modtype, aouthdr_out->o_modtype); | 704 | 22 | H_PUT_16 (abfd, aouthdr_in->o_cputype, aouthdr_out->o_cputype); | 705 | 22 | #ifdef XCOFF64 | 706 | 22 | H_PUT_64 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 707 | 22 | H_PUT_64 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 708 | | #else | 709 | | H_PUT_32 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 710 | | H_PUT_32 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 711 | | #endif | 712 | | /* TODO: set o_*psize dynamically */ | 713 | 22 | H_PUT_8 (abfd, 0, aouthdr_out->o_textpsize); | 714 | 22 | H_PUT_8 (abfd, 0, aouthdr_out->o_datapsize); | 715 | 22 | H_PUT_8 (abfd, 0, aouthdr_out->o_stackpsize); | 716 | 22 | H_PUT_8 (abfd, aouthdr_in->o_flags, aouthdr_out->o_flags); | 717 | 22 | H_PUT_16 (abfd, aouthdr_in->o_sntdata, aouthdr_out->o_sntdata); | 718 | 22 | H_PUT_16 (abfd, aouthdr_in->o_sntbss, aouthdr_out->o_sntbss); | 719 | 22 | H_PUT_32 (abfd, 0, aouthdr_out->o_debugger); | 720 | 22 | #ifdef XCOFF64 | 721 | 22 | H_PUT_16 (abfd, aouthdr_in->o_x64flags, aouthdr_out->o_x64flags); | 722 | 22 | memset (aouthdr_out->o_resv3, 0, sizeof aouthdr_out->o_resv3); | 723 | 22 | #endif | 724 | 22 | #endif | 725 | | | 726 | | #ifdef MIPSECOFF | 727 | | H_PUT_32 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 728 | | H_PUT_32 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 729 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 730 | | H_PUT_32 (abfd, aouthdr_in->cprmask[0], aouthdr_out->cprmask[0]); | 731 | | H_PUT_32 (abfd, aouthdr_in->cprmask[1], aouthdr_out->cprmask[1]); | 732 | | H_PUT_32 (abfd, aouthdr_in->cprmask[2], aouthdr_out->cprmask[2]); | 733 | | H_PUT_32 (abfd, aouthdr_in->cprmask[3], aouthdr_out->cprmask[3]); | 734 | | #endif | 735 | | | 736 | | #ifdef ALPHAECOFF | 737 | | /* FIXME: What does bldrev mean? */ | 738 | | H_PUT_16 (abfd, 2, aouthdr_out->bldrev); | 739 | | H_PUT_16 (abfd, 0, aouthdr_out->padding); | 740 | | H_PUT_64 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 741 | | H_PUT_64 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 742 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 743 | | H_PUT_32 (abfd, aouthdr_in->fprmask, aouthdr_out->fprmask); | 744 | | #endif | 745 | | | 746 | 22 | return AOUTSZ; | 747 | 22 | } |
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 | 674 | 89 | { | 675 | 89 | struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *) in; | 676 | 89 | AOUTHDR *aouthdr_out = (AOUTHDR *) out; | 677 | | | 678 | 89 | H_PUT_16 (abfd, aouthdr_in->magic, aouthdr_out->magic); | 679 | 89 | H_PUT_16 (abfd, aouthdr_in->vstamp, aouthdr_out->vstamp); | 680 | 89 | PUT_AOUTHDR_TSIZE (abfd, aouthdr_in->tsize, aouthdr_out->tsize); | 681 | 89 | PUT_AOUTHDR_DSIZE (abfd, aouthdr_in->dsize, aouthdr_out->dsize); | 682 | 89 | PUT_AOUTHDR_BSIZE (abfd, aouthdr_in->bsize, aouthdr_out->bsize); | 683 | 89 | PUT_AOUTHDR_ENTRY (abfd, aouthdr_in->entry, aouthdr_out->entry); | 684 | 89 | PUT_AOUTHDR_TEXT_START (abfd, aouthdr_in->text_start, | 685 | 89 | aouthdr_out->text_start); | 686 | 89 | PUT_AOUTHDR_DATA_START (abfd, aouthdr_in->data_start, | 687 | 89 | aouthdr_out->data_start); | 688 | | | 689 | | #ifdef RS6000COFF_C | 690 | | #ifdef XCOFF64 | 691 | | H_PUT_64 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 692 | | #else | 693 | | H_PUT_32 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 694 | | #endif | 695 | | H_PUT_16 (abfd, aouthdr_in->o_snentry, aouthdr_out->o_snentry); | 696 | | H_PUT_16 (abfd, aouthdr_in->o_sntext, aouthdr_out->o_sntext); | 697 | | H_PUT_16 (abfd, aouthdr_in->o_sndata, aouthdr_out->o_sndata); | 698 | | H_PUT_16 (abfd, aouthdr_in->o_sntoc, aouthdr_out->o_sntoc); | 699 | | H_PUT_16 (abfd, aouthdr_in->o_snloader, aouthdr_out->o_snloader); | 700 | | H_PUT_16 (abfd, aouthdr_in->o_snbss, aouthdr_out->o_snbss); | 701 | | H_PUT_16 (abfd, aouthdr_in->o_algntext, aouthdr_out->o_algntext); | 702 | | H_PUT_16 (abfd, aouthdr_in->o_algndata, aouthdr_out->o_algndata); | 703 | | H_PUT_16 (abfd, aouthdr_in->o_modtype, aouthdr_out->o_modtype); | 704 | | H_PUT_16 (abfd, aouthdr_in->o_cputype, aouthdr_out->o_cputype); | 705 | | #ifdef XCOFF64 | 706 | | H_PUT_64 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 707 | | H_PUT_64 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 708 | | #else | 709 | | H_PUT_32 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 710 | | H_PUT_32 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 711 | | #endif | 712 | | /* TODO: set o_*psize dynamically */ | 713 | | H_PUT_8 (abfd, 0, aouthdr_out->o_textpsize); | 714 | | H_PUT_8 (abfd, 0, aouthdr_out->o_datapsize); | 715 | | H_PUT_8 (abfd, 0, aouthdr_out->o_stackpsize); | 716 | | H_PUT_8 (abfd, aouthdr_in->o_flags, aouthdr_out->o_flags); | 717 | | H_PUT_16 (abfd, aouthdr_in->o_sntdata, aouthdr_out->o_sntdata); | 718 | | H_PUT_16 (abfd, aouthdr_in->o_sntbss, aouthdr_out->o_sntbss); | 719 | | H_PUT_32 (abfd, 0, aouthdr_out->o_debugger); | 720 | | #ifdef XCOFF64 | 721 | | H_PUT_16 (abfd, aouthdr_in->o_x64flags, aouthdr_out->o_x64flags); | 722 | | memset (aouthdr_out->o_resv3, 0, sizeof aouthdr_out->o_resv3); | 723 | | #endif | 724 | | #endif | 725 | | | 726 | 89 | #ifdef MIPSECOFF | 727 | 89 | H_PUT_32 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 728 | 89 | H_PUT_32 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 729 | 89 | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 730 | 89 | H_PUT_32 (abfd, aouthdr_in->cprmask[0], aouthdr_out->cprmask[0]); | 731 | 89 | H_PUT_32 (abfd, aouthdr_in->cprmask[1], aouthdr_out->cprmask[1]); | 732 | 89 | H_PUT_32 (abfd, aouthdr_in->cprmask[2], aouthdr_out->cprmask[2]); | 733 | 89 | H_PUT_32 (abfd, aouthdr_in->cprmask[3], aouthdr_out->cprmask[3]); | 734 | 89 | #endif | 735 | | | 736 | | #ifdef ALPHAECOFF | 737 | | /* FIXME: What does bldrev mean? */ | 738 | | H_PUT_16 (abfd, 2, aouthdr_out->bldrev); | 739 | | H_PUT_16 (abfd, 0, aouthdr_out->padding); | 740 | | H_PUT_64 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 741 | | H_PUT_64 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 742 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 743 | | H_PUT_32 (abfd, aouthdr_in->fprmask, aouthdr_out->fprmask); | 744 | | #endif | 745 | | | 746 | 89 | return AOUTSZ; | 747 | 89 | } |
coff-rs6000.c:coff_swap_aouthdr_out Line | Count | Source | 674 | 101 | { | 675 | 101 | struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *) in; | 676 | 101 | AOUTHDR *aouthdr_out = (AOUTHDR *) out; | 677 | | | 678 | 101 | H_PUT_16 (abfd, aouthdr_in->magic, aouthdr_out->magic); | 679 | 101 | H_PUT_16 (abfd, aouthdr_in->vstamp, aouthdr_out->vstamp); | 680 | 101 | PUT_AOUTHDR_TSIZE (abfd, aouthdr_in->tsize, aouthdr_out->tsize); | 681 | 101 | PUT_AOUTHDR_DSIZE (abfd, aouthdr_in->dsize, aouthdr_out->dsize); | 682 | 101 | PUT_AOUTHDR_BSIZE (abfd, aouthdr_in->bsize, aouthdr_out->bsize); | 683 | 101 | PUT_AOUTHDR_ENTRY (abfd, aouthdr_in->entry, aouthdr_out->entry); | 684 | 101 | PUT_AOUTHDR_TEXT_START (abfd, aouthdr_in->text_start, | 685 | 101 | aouthdr_out->text_start); | 686 | 101 | PUT_AOUTHDR_DATA_START (abfd, aouthdr_in->data_start, | 687 | 101 | aouthdr_out->data_start); | 688 | | | 689 | 101 | #ifdef RS6000COFF_C | 690 | | #ifdef XCOFF64 | 691 | | H_PUT_64 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 692 | | #else | 693 | 101 | H_PUT_32 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 694 | 101 | #endif | 695 | 101 | H_PUT_16 (abfd, aouthdr_in->o_snentry, aouthdr_out->o_snentry); | 696 | 101 | H_PUT_16 (abfd, aouthdr_in->o_sntext, aouthdr_out->o_sntext); | 697 | 101 | H_PUT_16 (abfd, aouthdr_in->o_sndata, aouthdr_out->o_sndata); | 698 | 101 | H_PUT_16 (abfd, aouthdr_in->o_sntoc, aouthdr_out->o_sntoc); | 699 | 101 | H_PUT_16 (abfd, aouthdr_in->o_snloader, aouthdr_out->o_snloader); | 700 | 101 | H_PUT_16 (abfd, aouthdr_in->o_snbss, aouthdr_out->o_snbss); | 701 | 101 | H_PUT_16 (abfd, aouthdr_in->o_algntext, aouthdr_out->o_algntext); | 702 | 101 | H_PUT_16 (abfd, aouthdr_in->o_algndata, aouthdr_out->o_algndata); | 703 | 101 | H_PUT_16 (abfd, aouthdr_in->o_modtype, aouthdr_out->o_modtype); | 704 | 101 | H_PUT_16 (abfd, aouthdr_in->o_cputype, aouthdr_out->o_cputype); | 705 | | #ifdef XCOFF64 | 706 | | H_PUT_64 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 707 | | H_PUT_64 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 708 | | #else | 709 | 101 | H_PUT_32 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 710 | 101 | H_PUT_32 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 711 | 101 | #endif | 712 | | /* TODO: set o_*psize dynamically */ | 713 | 101 | H_PUT_8 (abfd, 0, aouthdr_out->o_textpsize); | 714 | 101 | H_PUT_8 (abfd, 0, aouthdr_out->o_datapsize); | 715 | 101 | H_PUT_8 (abfd, 0, aouthdr_out->o_stackpsize); | 716 | 101 | H_PUT_8 (abfd, aouthdr_in->o_flags, aouthdr_out->o_flags); | 717 | 101 | H_PUT_16 (abfd, aouthdr_in->o_sntdata, aouthdr_out->o_sntdata); | 718 | 101 | H_PUT_16 (abfd, aouthdr_in->o_sntbss, aouthdr_out->o_sntbss); | 719 | 101 | H_PUT_32 (abfd, 0, aouthdr_out->o_debugger); | 720 | | #ifdef XCOFF64 | 721 | | H_PUT_16 (abfd, aouthdr_in->o_x64flags, aouthdr_out->o_x64flags); | 722 | | memset (aouthdr_out->o_resv3, 0, sizeof aouthdr_out->o_resv3); | 723 | | #endif | 724 | 101 | #endif | 725 | | | 726 | | #ifdef MIPSECOFF | 727 | | H_PUT_32 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 728 | | H_PUT_32 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 729 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 730 | | H_PUT_32 (abfd, aouthdr_in->cprmask[0], aouthdr_out->cprmask[0]); | 731 | | H_PUT_32 (abfd, aouthdr_in->cprmask[1], aouthdr_out->cprmask[1]); | 732 | | H_PUT_32 (abfd, aouthdr_in->cprmask[2], aouthdr_out->cprmask[2]); | 733 | | H_PUT_32 (abfd, aouthdr_in->cprmask[3], aouthdr_out->cprmask[3]); | 734 | | #endif | 735 | | | 736 | | #ifdef ALPHAECOFF | 737 | | /* FIXME: What does bldrev mean? */ | 738 | | H_PUT_16 (abfd, 2, aouthdr_out->bldrev); | 739 | | H_PUT_16 (abfd, 0, aouthdr_out->padding); | 740 | | H_PUT_64 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 741 | | H_PUT_64 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 742 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 743 | | H_PUT_32 (abfd, aouthdr_in->fprmask, aouthdr_out->fprmask); | 744 | | #endif | 745 | | | 746 | 101 | return AOUTSZ; | 747 | 101 | } |
coff-sh.c:coff_swap_aouthdr_out Line | Count | Source | 674 | 30 | { | 675 | 30 | struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *) in; | 676 | 30 | AOUTHDR *aouthdr_out = (AOUTHDR *) out; | 677 | | | 678 | 30 | H_PUT_16 (abfd, aouthdr_in->magic, aouthdr_out->magic); | 679 | 30 | H_PUT_16 (abfd, aouthdr_in->vstamp, aouthdr_out->vstamp); | 680 | 30 | PUT_AOUTHDR_TSIZE (abfd, aouthdr_in->tsize, aouthdr_out->tsize); | 681 | 30 | PUT_AOUTHDR_DSIZE (abfd, aouthdr_in->dsize, aouthdr_out->dsize); | 682 | 30 | PUT_AOUTHDR_BSIZE (abfd, aouthdr_in->bsize, aouthdr_out->bsize); | 683 | 30 | PUT_AOUTHDR_ENTRY (abfd, aouthdr_in->entry, aouthdr_out->entry); | 684 | 30 | PUT_AOUTHDR_TEXT_START (abfd, aouthdr_in->text_start, | 685 | 30 | aouthdr_out->text_start); | 686 | 30 | PUT_AOUTHDR_DATA_START (abfd, aouthdr_in->data_start, | 687 | 30 | aouthdr_out->data_start); | 688 | | | 689 | | #ifdef RS6000COFF_C | 690 | | #ifdef XCOFF64 | 691 | | H_PUT_64 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 692 | | #else | 693 | | H_PUT_32 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 694 | | #endif | 695 | | H_PUT_16 (abfd, aouthdr_in->o_snentry, aouthdr_out->o_snentry); | 696 | | H_PUT_16 (abfd, aouthdr_in->o_sntext, aouthdr_out->o_sntext); | 697 | | H_PUT_16 (abfd, aouthdr_in->o_sndata, aouthdr_out->o_sndata); | 698 | | H_PUT_16 (abfd, aouthdr_in->o_sntoc, aouthdr_out->o_sntoc); | 699 | | H_PUT_16 (abfd, aouthdr_in->o_snloader, aouthdr_out->o_snloader); | 700 | | H_PUT_16 (abfd, aouthdr_in->o_snbss, aouthdr_out->o_snbss); | 701 | | H_PUT_16 (abfd, aouthdr_in->o_algntext, aouthdr_out->o_algntext); | 702 | | H_PUT_16 (abfd, aouthdr_in->o_algndata, aouthdr_out->o_algndata); | 703 | | H_PUT_16 (abfd, aouthdr_in->o_modtype, aouthdr_out->o_modtype); | 704 | | H_PUT_16 (abfd, aouthdr_in->o_cputype, aouthdr_out->o_cputype); | 705 | | #ifdef XCOFF64 | 706 | | H_PUT_64 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 707 | | H_PUT_64 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 708 | | #else | 709 | | H_PUT_32 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 710 | | H_PUT_32 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 711 | | #endif | 712 | | /* TODO: set o_*psize dynamically */ | 713 | | H_PUT_8 (abfd, 0, aouthdr_out->o_textpsize); | 714 | | H_PUT_8 (abfd, 0, aouthdr_out->o_datapsize); | 715 | | H_PUT_8 (abfd, 0, aouthdr_out->o_stackpsize); | 716 | | H_PUT_8 (abfd, aouthdr_in->o_flags, aouthdr_out->o_flags); | 717 | | H_PUT_16 (abfd, aouthdr_in->o_sntdata, aouthdr_out->o_sntdata); | 718 | | H_PUT_16 (abfd, aouthdr_in->o_sntbss, aouthdr_out->o_sntbss); | 719 | | H_PUT_32 (abfd, 0, aouthdr_out->o_debugger); | 720 | | #ifdef XCOFF64 | 721 | | H_PUT_16 (abfd, aouthdr_in->o_x64flags, aouthdr_out->o_x64flags); | 722 | | memset (aouthdr_out->o_resv3, 0, sizeof aouthdr_out->o_resv3); | 723 | | #endif | 724 | | #endif | 725 | | | 726 | | #ifdef MIPSECOFF | 727 | | H_PUT_32 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 728 | | H_PUT_32 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 729 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 730 | | H_PUT_32 (abfd, aouthdr_in->cprmask[0], aouthdr_out->cprmask[0]); | 731 | | H_PUT_32 (abfd, aouthdr_in->cprmask[1], aouthdr_out->cprmask[1]); | 732 | | H_PUT_32 (abfd, aouthdr_in->cprmask[2], aouthdr_out->cprmask[2]); | 733 | | H_PUT_32 (abfd, aouthdr_in->cprmask[3], aouthdr_out->cprmask[3]); | 734 | | #endif | 735 | | | 736 | | #ifdef ALPHAECOFF | 737 | | /* FIXME: What does bldrev mean? */ | 738 | | H_PUT_16 (abfd, 2, aouthdr_out->bldrev); | 739 | | H_PUT_16 (abfd, 0, aouthdr_out->padding); | 740 | | H_PUT_64 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 741 | | H_PUT_64 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 742 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 743 | | H_PUT_32 (abfd, aouthdr_in->fprmask, aouthdr_out->fprmask); | 744 | | #endif | 745 | | | 746 | 30 | return AOUTSZ; | 747 | 30 | } |
Unexecuted instantiation: coff-stgo32.c:coff_swap_aouthdr_out coff-tic30.c:coff_swap_aouthdr_out Line | Count | Source | 674 | 27 | { | 675 | 27 | struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *) in; | 676 | 27 | AOUTHDR *aouthdr_out = (AOUTHDR *) out; | 677 | | | 678 | 27 | H_PUT_16 (abfd, aouthdr_in->magic, aouthdr_out->magic); | 679 | 27 | H_PUT_16 (abfd, aouthdr_in->vstamp, aouthdr_out->vstamp); | 680 | 27 | PUT_AOUTHDR_TSIZE (abfd, aouthdr_in->tsize, aouthdr_out->tsize); | 681 | 27 | PUT_AOUTHDR_DSIZE (abfd, aouthdr_in->dsize, aouthdr_out->dsize); | 682 | 27 | PUT_AOUTHDR_BSIZE (abfd, aouthdr_in->bsize, aouthdr_out->bsize); | 683 | 27 | PUT_AOUTHDR_ENTRY (abfd, aouthdr_in->entry, aouthdr_out->entry); | 684 | 27 | PUT_AOUTHDR_TEXT_START (abfd, aouthdr_in->text_start, | 685 | 27 | aouthdr_out->text_start); | 686 | 27 | PUT_AOUTHDR_DATA_START (abfd, aouthdr_in->data_start, | 687 | 27 | aouthdr_out->data_start); | 688 | | | 689 | | #ifdef RS6000COFF_C | 690 | | #ifdef XCOFF64 | 691 | | H_PUT_64 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 692 | | #else | 693 | | H_PUT_32 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 694 | | #endif | 695 | | H_PUT_16 (abfd, aouthdr_in->o_snentry, aouthdr_out->o_snentry); | 696 | | H_PUT_16 (abfd, aouthdr_in->o_sntext, aouthdr_out->o_sntext); | 697 | | H_PUT_16 (abfd, aouthdr_in->o_sndata, aouthdr_out->o_sndata); | 698 | | H_PUT_16 (abfd, aouthdr_in->o_sntoc, aouthdr_out->o_sntoc); | 699 | | H_PUT_16 (abfd, aouthdr_in->o_snloader, aouthdr_out->o_snloader); | 700 | | H_PUT_16 (abfd, aouthdr_in->o_snbss, aouthdr_out->o_snbss); | 701 | | H_PUT_16 (abfd, aouthdr_in->o_algntext, aouthdr_out->o_algntext); | 702 | | H_PUT_16 (abfd, aouthdr_in->o_algndata, aouthdr_out->o_algndata); | 703 | | H_PUT_16 (abfd, aouthdr_in->o_modtype, aouthdr_out->o_modtype); | 704 | | H_PUT_16 (abfd, aouthdr_in->o_cputype, aouthdr_out->o_cputype); | 705 | | #ifdef XCOFF64 | 706 | | H_PUT_64 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 707 | | H_PUT_64 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 708 | | #else | 709 | | H_PUT_32 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 710 | | H_PUT_32 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 711 | | #endif | 712 | | /* TODO: set o_*psize dynamically */ | 713 | | H_PUT_8 (abfd, 0, aouthdr_out->o_textpsize); | 714 | | H_PUT_8 (abfd, 0, aouthdr_out->o_datapsize); | 715 | | H_PUT_8 (abfd, 0, aouthdr_out->o_stackpsize); | 716 | | H_PUT_8 (abfd, aouthdr_in->o_flags, aouthdr_out->o_flags); | 717 | | H_PUT_16 (abfd, aouthdr_in->o_sntdata, aouthdr_out->o_sntdata); | 718 | | H_PUT_16 (abfd, aouthdr_in->o_sntbss, aouthdr_out->o_sntbss); | 719 | | H_PUT_32 (abfd, 0, aouthdr_out->o_debugger); | 720 | | #ifdef XCOFF64 | 721 | | H_PUT_16 (abfd, aouthdr_in->o_x64flags, aouthdr_out->o_x64flags); | 722 | | memset (aouthdr_out->o_resv3, 0, sizeof aouthdr_out->o_resv3); | 723 | | #endif | 724 | | #endif | 725 | | | 726 | | #ifdef MIPSECOFF | 727 | | H_PUT_32 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 728 | | H_PUT_32 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 729 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 730 | | H_PUT_32 (abfd, aouthdr_in->cprmask[0], aouthdr_out->cprmask[0]); | 731 | | H_PUT_32 (abfd, aouthdr_in->cprmask[1], aouthdr_out->cprmask[1]); | 732 | | H_PUT_32 (abfd, aouthdr_in->cprmask[2], aouthdr_out->cprmask[2]); | 733 | | H_PUT_32 (abfd, aouthdr_in->cprmask[3], aouthdr_out->cprmask[3]); | 734 | | #endif | 735 | | | 736 | | #ifdef ALPHAECOFF | 737 | | /* FIXME: What does bldrev mean? */ | 738 | | H_PUT_16 (abfd, 2, aouthdr_out->bldrev); | 739 | | H_PUT_16 (abfd, 0, aouthdr_out->padding); | 740 | | H_PUT_64 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 741 | | H_PUT_64 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 742 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 743 | | H_PUT_32 (abfd, aouthdr_in->fprmask, aouthdr_out->fprmask); | 744 | | #endif | 745 | | | 746 | 27 | return AOUTSZ; | 747 | 27 | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_aouthdr_out coff-tic54x.c:coff_swap_aouthdr_out Line | Count | Source | 674 | 14 | { | 675 | 14 | struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *) in; | 676 | 14 | AOUTHDR *aouthdr_out = (AOUTHDR *) out; | 677 | | | 678 | 14 | H_PUT_16 (abfd, aouthdr_in->magic, aouthdr_out->magic); | 679 | 14 | H_PUT_16 (abfd, aouthdr_in->vstamp, aouthdr_out->vstamp); | 680 | 14 | PUT_AOUTHDR_TSIZE (abfd, aouthdr_in->tsize, aouthdr_out->tsize); | 681 | 14 | PUT_AOUTHDR_DSIZE (abfd, aouthdr_in->dsize, aouthdr_out->dsize); | 682 | 14 | PUT_AOUTHDR_BSIZE (abfd, aouthdr_in->bsize, aouthdr_out->bsize); | 683 | 14 | PUT_AOUTHDR_ENTRY (abfd, aouthdr_in->entry, aouthdr_out->entry); | 684 | 14 | PUT_AOUTHDR_TEXT_START (abfd, aouthdr_in->text_start, | 685 | 14 | aouthdr_out->text_start); | 686 | 14 | PUT_AOUTHDR_DATA_START (abfd, aouthdr_in->data_start, | 687 | 14 | aouthdr_out->data_start); | 688 | | | 689 | | #ifdef RS6000COFF_C | 690 | | #ifdef XCOFF64 | 691 | | H_PUT_64 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 692 | | #else | 693 | | H_PUT_32 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 694 | | #endif | 695 | | H_PUT_16 (abfd, aouthdr_in->o_snentry, aouthdr_out->o_snentry); | 696 | | H_PUT_16 (abfd, aouthdr_in->o_sntext, aouthdr_out->o_sntext); | 697 | | H_PUT_16 (abfd, aouthdr_in->o_sndata, aouthdr_out->o_sndata); | 698 | | H_PUT_16 (abfd, aouthdr_in->o_sntoc, aouthdr_out->o_sntoc); | 699 | | H_PUT_16 (abfd, aouthdr_in->o_snloader, aouthdr_out->o_snloader); | 700 | | H_PUT_16 (abfd, aouthdr_in->o_snbss, aouthdr_out->o_snbss); | 701 | | H_PUT_16 (abfd, aouthdr_in->o_algntext, aouthdr_out->o_algntext); | 702 | | H_PUT_16 (abfd, aouthdr_in->o_algndata, aouthdr_out->o_algndata); | 703 | | H_PUT_16 (abfd, aouthdr_in->o_modtype, aouthdr_out->o_modtype); | 704 | | H_PUT_16 (abfd, aouthdr_in->o_cputype, aouthdr_out->o_cputype); | 705 | | #ifdef XCOFF64 | 706 | | H_PUT_64 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 707 | | H_PUT_64 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 708 | | #else | 709 | | H_PUT_32 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 710 | | H_PUT_32 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 711 | | #endif | 712 | | /* TODO: set o_*psize dynamically */ | 713 | | H_PUT_8 (abfd, 0, aouthdr_out->o_textpsize); | 714 | | H_PUT_8 (abfd, 0, aouthdr_out->o_datapsize); | 715 | | H_PUT_8 (abfd, 0, aouthdr_out->o_stackpsize); | 716 | | H_PUT_8 (abfd, aouthdr_in->o_flags, aouthdr_out->o_flags); | 717 | | H_PUT_16 (abfd, aouthdr_in->o_sntdata, aouthdr_out->o_sntdata); | 718 | | H_PUT_16 (abfd, aouthdr_in->o_sntbss, aouthdr_out->o_sntbss); | 719 | | H_PUT_32 (abfd, 0, aouthdr_out->o_debugger); | 720 | | #ifdef XCOFF64 | 721 | | H_PUT_16 (abfd, aouthdr_in->o_x64flags, aouthdr_out->o_x64flags); | 722 | | memset (aouthdr_out->o_resv3, 0, sizeof aouthdr_out->o_resv3); | 723 | | #endif | 724 | | #endif | 725 | | | 726 | | #ifdef MIPSECOFF | 727 | | H_PUT_32 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 728 | | H_PUT_32 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 729 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 730 | | H_PUT_32 (abfd, aouthdr_in->cprmask[0], aouthdr_out->cprmask[0]); | 731 | | H_PUT_32 (abfd, aouthdr_in->cprmask[1], aouthdr_out->cprmask[1]); | 732 | | H_PUT_32 (abfd, aouthdr_in->cprmask[2], aouthdr_out->cprmask[2]); | 733 | | H_PUT_32 (abfd, aouthdr_in->cprmask[3], aouthdr_out->cprmask[3]); | 734 | | #endif | 735 | | | 736 | | #ifdef ALPHAECOFF | 737 | | /* FIXME: What does bldrev mean? */ | 738 | | H_PUT_16 (abfd, 2, aouthdr_out->bldrev); | 739 | | H_PUT_16 (abfd, 0, aouthdr_out->padding); | 740 | | H_PUT_64 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 741 | | H_PUT_64 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 742 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 743 | | H_PUT_32 (abfd, aouthdr_in->fprmask, aouthdr_out->fprmask); | 744 | | #endif | 745 | | | 746 | 14 | return AOUTSZ; | 747 | 14 | } |
coff-z80.c:coff_swap_aouthdr_out Line | Count | Source | 674 | 31 | { | 675 | 31 | struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *) in; | 676 | 31 | AOUTHDR *aouthdr_out = (AOUTHDR *) out; | 677 | | | 678 | 31 | H_PUT_16 (abfd, aouthdr_in->magic, aouthdr_out->magic); | 679 | 31 | H_PUT_16 (abfd, aouthdr_in->vstamp, aouthdr_out->vstamp); | 680 | 31 | PUT_AOUTHDR_TSIZE (abfd, aouthdr_in->tsize, aouthdr_out->tsize); | 681 | 31 | PUT_AOUTHDR_DSIZE (abfd, aouthdr_in->dsize, aouthdr_out->dsize); | 682 | 31 | PUT_AOUTHDR_BSIZE (abfd, aouthdr_in->bsize, aouthdr_out->bsize); | 683 | 31 | PUT_AOUTHDR_ENTRY (abfd, aouthdr_in->entry, aouthdr_out->entry); | 684 | 31 | PUT_AOUTHDR_TEXT_START (abfd, aouthdr_in->text_start, | 685 | 31 | aouthdr_out->text_start); | 686 | 31 | PUT_AOUTHDR_DATA_START (abfd, aouthdr_in->data_start, | 687 | 31 | aouthdr_out->data_start); | 688 | | | 689 | | #ifdef RS6000COFF_C | 690 | | #ifdef XCOFF64 | 691 | | H_PUT_64 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 692 | | #else | 693 | | H_PUT_32 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 694 | | #endif | 695 | | H_PUT_16 (abfd, aouthdr_in->o_snentry, aouthdr_out->o_snentry); | 696 | | H_PUT_16 (abfd, aouthdr_in->o_sntext, aouthdr_out->o_sntext); | 697 | | H_PUT_16 (abfd, aouthdr_in->o_sndata, aouthdr_out->o_sndata); | 698 | | H_PUT_16 (abfd, aouthdr_in->o_sntoc, aouthdr_out->o_sntoc); | 699 | | H_PUT_16 (abfd, aouthdr_in->o_snloader, aouthdr_out->o_snloader); | 700 | | H_PUT_16 (abfd, aouthdr_in->o_snbss, aouthdr_out->o_snbss); | 701 | | H_PUT_16 (abfd, aouthdr_in->o_algntext, aouthdr_out->o_algntext); | 702 | | H_PUT_16 (abfd, aouthdr_in->o_algndata, aouthdr_out->o_algndata); | 703 | | H_PUT_16 (abfd, aouthdr_in->o_modtype, aouthdr_out->o_modtype); | 704 | | H_PUT_16 (abfd, aouthdr_in->o_cputype, aouthdr_out->o_cputype); | 705 | | #ifdef XCOFF64 | 706 | | H_PUT_64 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 707 | | H_PUT_64 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 708 | | #else | 709 | | H_PUT_32 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 710 | | H_PUT_32 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 711 | | #endif | 712 | | /* TODO: set o_*psize dynamically */ | 713 | | H_PUT_8 (abfd, 0, aouthdr_out->o_textpsize); | 714 | | H_PUT_8 (abfd, 0, aouthdr_out->o_datapsize); | 715 | | H_PUT_8 (abfd, 0, aouthdr_out->o_stackpsize); | 716 | | H_PUT_8 (abfd, aouthdr_in->o_flags, aouthdr_out->o_flags); | 717 | | H_PUT_16 (abfd, aouthdr_in->o_sntdata, aouthdr_out->o_sntdata); | 718 | | H_PUT_16 (abfd, aouthdr_in->o_sntbss, aouthdr_out->o_sntbss); | 719 | | H_PUT_32 (abfd, 0, aouthdr_out->o_debugger); | 720 | | #ifdef XCOFF64 | 721 | | H_PUT_16 (abfd, aouthdr_in->o_x64flags, aouthdr_out->o_x64flags); | 722 | | memset (aouthdr_out->o_resv3, 0, sizeof aouthdr_out->o_resv3); | 723 | | #endif | 724 | | #endif | 725 | | | 726 | | #ifdef MIPSECOFF | 727 | | H_PUT_32 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 728 | | H_PUT_32 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 729 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 730 | | H_PUT_32 (abfd, aouthdr_in->cprmask[0], aouthdr_out->cprmask[0]); | 731 | | H_PUT_32 (abfd, aouthdr_in->cprmask[1], aouthdr_out->cprmask[1]); | 732 | | H_PUT_32 (abfd, aouthdr_in->cprmask[2], aouthdr_out->cprmask[2]); | 733 | | H_PUT_32 (abfd, aouthdr_in->cprmask[3], aouthdr_out->cprmask[3]); | 734 | | #endif | 735 | | | 736 | | #ifdef ALPHAECOFF | 737 | | /* FIXME: What does bldrev mean? */ | 738 | | H_PUT_16 (abfd, 2, aouthdr_out->bldrev); | 739 | | H_PUT_16 (abfd, 0, aouthdr_out->padding); | 740 | | H_PUT_64 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 741 | | H_PUT_64 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 742 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 743 | | H_PUT_32 (abfd, aouthdr_in->fprmask, aouthdr_out->fprmask); | 744 | | #endif | 745 | | | 746 | 31 | return AOUTSZ; | 747 | 31 | } |
coff-z8k.c:coff_swap_aouthdr_out Line | Count | Source | 674 | 25 | { | 675 | 25 | struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *) in; | 676 | 25 | AOUTHDR *aouthdr_out = (AOUTHDR *) out; | 677 | | | 678 | 25 | H_PUT_16 (abfd, aouthdr_in->magic, aouthdr_out->magic); | 679 | 25 | H_PUT_16 (abfd, aouthdr_in->vstamp, aouthdr_out->vstamp); | 680 | 25 | PUT_AOUTHDR_TSIZE (abfd, aouthdr_in->tsize, aouthdr_out->tsize); | 681 | 25 | PUT_AOUTHDR_DSIZE (abfd, aouthdr_in->dsize, aouthdr_out->dsize); | 682 | 25 | PUT_AOUTHDR_BSIZE (abfd, aouthdr_in->bsize, aouthdr_out->bsize); | 683 | 25 | PUT_AOUTHDR_ENTRY (abfd, aouthdr_in->entry, aouthdr_out->entry); | 684 | 25 | PUT_AOUTHDR_TEXT_START (abfd, aouthdr_in->text_start, | 685 | 25 | aouthdr_out->text_start); | 686 | 25 | PUT_AOUTHDR_DATA_START (abfd, aouthdr_in->data_start, | 687 | 25 | aouthdr_out->data_start); | 688 | | | 689 | | #ifdef RS6000COFF_C | 690 | | #ifdef XCOFF64 | 691 | | H_PUT_64 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 692 | | #else | 693 | | H_PUT_32 (abfd, aouthdr_in->o_toc, aouthdr_out->o_toc); | 694 | | #endif | 695 | | H_PUT_16 (abfd, aouthdr_in->o_snentry, aouthdr_out->o_snentry); | 696 | | H_PUT_16 (abfd, aouthdr_in->o_sntext, aouthdr_out->o_sntext); | 697 | | H_PUT_16 (abfd, aouthdr_in->o_sndata, aouthdr_out->o_sndata); | 698 | | H_PUT_16 (abfd, aouthdr_in->o_sntoc, aouthdr_out->o_sntoc); | 699 | | H_PUT_16 (abfd, aouthdr_in->o_snloader, aouthdr_out->o_snloader); | 700 | | H_PUT_16 (abfd, aouthdr_in->o_snbss, aouthdr_out->o_snbss); | 701 | | H_PUT_16 (abfd, aouthdr_in->o_algntext, aouthdr_out->o_algntext); | 702 | | H_PUT_16 (abfd, aouthdr_in->o_algndata, aouthdr_out->o_algndata); | 703 | | H_PUT_16 (abfd, aouthdr_in->o_modtype, aouthdr_out->o_modtype); | 704 | | H_PUT_16 (abfd, aouthdr_in->o_cputype, aouthdr_out->o_cputype); | 705 | | #ifdef XCOFF64 | 706 | | H_PUT_64 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 707 | | H_PUT_64 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 708 | | #else | 709 | | H_PUT_32 (abfd, aouthdr_in->o_maxstack, aouthdr_out->o_maxstack); | 710 | | H_PUT_32 (abfd, aouthdr_in->o_maxdata, aouthdr_out->o_maxdata); | 711 | | #endif | 712 | | /* TODO: set o_*psize dynamically */ | 713 | | H_PUT_8 (abfd, 0, aouthdr_out->o_textpsize); | 714 | | H_PUT_8 (abfd, 0, aouthdr_out->o_datapsize); | 715 | | H_PUT_8 (abfd, 0, aouthdr_out->o_stackpsize); | 716 | | H_PUT_8 (abfd, aouthdr_in->o_flags, aouthdr_out->o_flags); | 717 | | H_PUT_16 (abfd, aouthdr_in->o_sntdata, aouthdr_out->o_sntdata); | 718 | | H_PUT_16 (abfd, aouthdr_in->o_sntbss, aouthdr_out->o_sntbss); | 719 | | H_PUT_32 (abfd, 0, aouthdr_out->o_debugger); | 720 | | #ifdef XCOFF64 | 721 | | H_PUT_16 (abfd, aouthdr_in->o_x64flags, aouthdr_out->o_x64flags); | 722 | | memset (aouthdr_out->o_resv3, 0, sizeof aouthdr_out->o_resv3); | 723 | | #endif | 724 | | #endif | 725 | | | 726 | | #ifdef MIPSECOFF | 727 | | H_PUT_32 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 728 | | H_PUT_32 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 729 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 730 | | H_PUT_32 (abfd, aouthdr_in->cprmask[0], aouthdr_out->cprmask[0]); | 731 | | H_PUT_32 (abfd, aouthdr_in->cprmask[1], aouthdr_out->cprmask[1]); | 732 | | H_PUT_32 (abfd, aouthdr_in->cprmask[2], aouthdr_out->cprmask[2]); | 733 | | H_PUT_32 (abfd, aouthdr_in->cprmask[3], aouthdr_out->cprmask[3]); | 734 | | #endif | 735 | | | 736 | | #ifdef ALPHAECOFF | 737 | | /* FIXME: What does bldrev mean? */ | 738 | | H_PUT_16 (abfd, 2, aouthdr_out->bldrev); | 739 | | H_PUT_16 (abfd, 0, aouthdr_out->padding); | 740 | | H_PUT_64 (abfd, aouthdr_in->bss_start, aouthdr_out->bss_start); | 741 | | H_PUT_64 (abfd, aouthdr_in->gp_value, aouthdr_out->gp_value); | 742 | | H_PUT_32 (abfd, aouthdr_in->gprmask, aouthdr_out->gprmask); | 743 | | H_PUT_32 (abfd, aouthdr_in->fprmask, aouthdr_out->fprmask); | 744 | | #endif | 745 | | | 746 | 25 | return AOUTSZ; | 747 | 25 | } |
|
748 | | |
749 | | ATTRIBUTE_UNUSED |
750 | | static void |
751 | | coff_swap_scnhdr_in (bfd * abfd, void * ext, void * in) |
752 | 1.43M | { |
753 | 1.43M | SCNHDR *scnhdr_ext = (SCNHDR *) ext; |
754 | 1.43M | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; |
755 | | |
756 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE |
757 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); |
758 | | #endif |
759 | 1.43M | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); |
760 | | |
761 | 1.43M | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); |
762 | 1.43M | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); |
763 | 1.43M | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); |
764 | | |
765 | 1.43M | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); |
766 | 1.43M | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); |
767 | 1.43M | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); |
768 | 1.43M | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); |
769 | 1.43M | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); |
770 | 1.43M | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); |
771 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST |
772 | 96.5k | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); |
773 | | #endif |
774 | 1.43M | } coff-alpha.c:alpha_ecoff_swap_scnhdr_in Line | Count | Source | 752 | 17.3k | { | 753 | 17.3k | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 754 | 17.3k | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 755 | | | 756 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 757 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 758 | | #endif | 759 | 17.3k | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 760 | | | 761 | 17.3k | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 762 | 17.3k | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 763 | 17.3k | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 764 | | | 765 | 17.3k | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 766 | 17.3k | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 767 | 17.3k | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 768 | 17.3k | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 769 | 17.3k | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 770 | 17.3k | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 771 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 772 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 773 | | #endif | 774 | 17.3k | } |
coff-x86_64.c:coff_swap_scnhdr_in Line | Count | Source | 752 | 142k | { | 753 | 142k | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 754 | 142k | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 755 | | | 756 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 757 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 758 | | #endif | 759 | 142k | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 760 | | | 761 | 142k | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 762 | 142k | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 763 | 142k | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 764 | | | 765 | 142k | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 766 | 142k | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 767 | 142k | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 768 | 142k | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 769 | 142k | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 770 | 142k | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 771 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 772 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 773 | | #endif | 774 | 142k | } |
coff64-rs6000.c:coff_swap_scnhdr_in Line | Count | Source | 752 | 50.0k | { | 753 | 50.0k | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 754 | 50.0k | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 755 | | | 756 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 757 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 758 | | #endif | 759 | 50.0k | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 760 | | | 761 | 50.0k | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 762 | 50.0k | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 763 | 50.0k | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 764 | | | 765 | 50.0k | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 766 | 50.0k | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 767 | 50.0k | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 768 | 50.0k | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 769 | 50.0k | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 770 | 50.0k | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 771 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 772 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 773 | | #endif | 774 | 50.0k | } |
cf-i386lynx.c:coff_swap_scnhdr_in Line | Count | Source | 752 | 199k | { | 753 | 199k | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 754 | 199k | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 755 | | | 756 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 757 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 758 | | #endif | 759 | 199k | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 760 | | | 761 | 199k | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 762 | 199k | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 763 | 199k | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 764 | | | 765 | 199k | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 766 | 199k | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 767 | 199k | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 768 | 199k | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 769 | 199k | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 770 | 199k | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 771 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 772 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 773 | | #endif | 774 | 199k | } |
Unexecuted instantiation: coff-go32.c:coff_swap_scnhdr_in coff-i386.c:coff_swap_scnhdr_in Line | Count | Source | 752 | 112k | { | 753 | 112k | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 754 | 112k | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 755 | | | 756 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 757 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 758 | | #endif | 759 | 112k | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 760 | | | 761 | 112k | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 762 | 112k | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 763 | 112k | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 764 | | | 765 | 112k | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 766 | 112k | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 767 | 112k | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 768 | 112k | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 769 | 112k | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 770 | 112k | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 771 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 772 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 773 | | #endif | 774 | 112k | } |
coff-mips.c:mips_ecoff_swap_scnhdr_in Line | Count | Source | 752 | 181k | { | 753 | 181k | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 754 | 181k | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 755 | | | 756 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 757 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 758 | | #endif | 759 | 181k | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 760 | | | 761 | 181k | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 762 | 181k | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 763 | 181k | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 764 | | | 765 | 181k | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 766 | 181k | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 767 | 181k | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 768 | 181k | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 769 | 181k | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 770 | 181k | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 771 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 772 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 773 | | #endif | 774 | 181k | } |
coff-rs6000.c:coff_swap_scnhdr_in Line | Count | Source | 752 | 98.2k | { | 753 | 98.2k | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 754 | 98.2k | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 755 | | | 756 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 757 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 758 | | #endif | 759 | 98.2k | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 760 | | | 761 | 98.2k | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 762 | 98.2k | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 763 | 98.2k | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 764 | | | 765 | 98.2k | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 766 | 98.2k | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 767 | 98.2k | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 768 | 98.2k | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 769 | 98.2k | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 770 | 98.2k | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 771 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 772 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 773 | | #endif | 774 | 98.2k | } |
coff-sh.c:coff_swap_scnhdr_in Line | Count | Source | 752 | 137k | { | 753 | 137k | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 754 | 137k | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 755 | | | 756 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 757 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 758 | | #endif | 759 | 137k | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 760 | | | 761 | 137k | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 762 | 137k | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 763 | 137k | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 764 | | | 765 | 137k | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 766 | 137k | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 767 | 137k | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 768 | 137k | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 769 | 137k | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 770 | 137k | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 771 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 772 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 773 | | #endif | 774 | 137k | } |
Unexecuted instantiation: coff-stgo32.c:coff_swap_scnhdr_in coff-tic30.c:coff_swap_scnhdr_in Line | Count | Source | 752 | 99.2k | { | 753 | 99.2k | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 754 | 99.2k | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 755 | | | 756 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 757 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 758 | | #endif | 759 | 99.2k | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 760 | | | 761 | 99.2k | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 762 | 99.2k | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 763 | 99.2k | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 764 | | | 765 | 99.2k | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 766 | 99.2k | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 767 | 99.2k | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 768 | 99.2k | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 769 | 99.2k | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 770 | 99.2k | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 771 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 772 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 773 | | #endif | 774 | 99.2k | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_scnhdr_in coff-tic54x.c:coff_swap_scnhdr_in Line | Count | Source | 752 | 96.5k | { | 753 | 96.5k | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 754 | 96.5k | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 755 | | | 756 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 757 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 758 | | #endif | 759 | 96.5k | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 760 | | | 761 | 96.5k | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 762 | 96.5k | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 763 | 96.5k | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 764 | | | 765 | 96.5k | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 766 | 96.5k | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 767 | 96.5k | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 768 | 96.5k | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 769 | 96.5k | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 770 | 96.5k | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 771 | 96.5k | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 772 | 96.5k | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 773 | 96.5k | #endif | 774 | 96.5k | } |
coff-z80.c:coff_swap_scnhdr_in Line | Count | Source | 752 | 161k | { | 753 | 161k | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 754 | 161k | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 755 | | | 756 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 757 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 758 | | #endif | 759 | 161k | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 760 | | | 761 | 161k | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 762 | 161k | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 763 | 161k | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 764 | | | 765 | 161k | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 766 | 161k | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 767 | 161k | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 768 | 161k | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 769 | 161k | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 770 | 161k | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 771 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 772 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 773 | | #endif | 774 | 161k | } |
coff-z8k.c:coff_swap_scnhdr_in Line | Count | Source | 752 | 136k | { | 753 | 136k | SCNHDR *scnhdr_ext = (SCNHDR *) ext; | 754 | 136k | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 755 | | | 756 | | #ifdef COFF_ADJUST_SCNHDR_IN_PRE | 757 | | COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in); | 758 | | #endif | 759 | 136k | memcpy (scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name)); | 760 | | | 761 | 136k | scnhdr_int->s_vaddr = GET_SCNHDR_VADDR (abfd, scnhdr_ext->s_vaddr); | 762 | 136k | scnhdr_int->s_paddr = GET_SCNHDR_PADDR (abfd, scnhdr_ext->s_paddr); | 763 | 136k | scnhdr_int->s_size = GET_SCNHDR_SIZE (abfd, scnhdr_ext->s_size); | 764 | | | 765 | 136k | scnhdr_int->s_scnptr = GET_SCNHDR_SCNPTR (abfd, scnhdr_ext->s_scnptr); | 766 | 136k | scnhdr_int->s_relptr = GET_SCNHDR_RELPTR (abfd, scnhdr_ext->s_relptr); | 767 | 136k | scnhdr_int->s_lnnoptr = GET_SCNHDR_LNNOPTR (abfd, scnhdr_ext->s_lnnoptr); | 768 | 136k | scnhdr_int->s_flags = GET_SCNHDR_FLAGS (abfd, scnhdr_ext->s_flags); | 769 | 136k | scnhdr_int->s_nreloc = GET_SCNHDR_NRELOC (abfd, scnhdr_ext->s_nreloc); | 770 | 136k | scnhdr_int->s_nlnno = GET_SCNHDR_NLNNO (abfd, scnhdr_ext->s_nlnno); | 771 | | #ifdef COFF_ADJUST_SCNHDR_IN_POST | 772 | | COFF_ADJUST_SCNHDR_IN_POST (abfd, ext, in); | 773 | | #endif | 774 | 136k | } |
|
775 | | |
776 | | ATTRIBUTE_UNUSED |
777 | | static unsigned int |
778 | | coff_swap_scnhdr_out (bfd * abfd, void * in, void * out, |
779 | | const asection *section ATTRIBUTE_UNUSED) |
780 | 1.22k | { |
781 | 1.22k | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; |
782 | 1.22k | SCNHDR *scnhdr_ext = (SCNHDR *) out; |
783 | 1.22k | unsigned int ret = bfd_coff_scnhsz (abfd); |
784 | | |
785 | | #ifdef COFF_ADJUST_SCNHDR_OUT_PRE |
786 | 121 | COFF_ADJUST_SCNHDR_OUT_PRE (abfd, in, out); |
787 | | #endif |
788 | 1.22k | memcpy (scnhdr_ext->s_name, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); |
789 | | |
790 | 1.22k | PUT_SCNHDR_VADDR (abfd, scnhdr_int->s_vaddr, scnhdr_ext->s_vaddr); |
791 | 1.22k | PUT_SCNHDR_PADDR (abfd, scnhdr_int->s_paddr, scnhdr_ext->s_paddr); |
792 | 1.22k | PUT_SCNHDR_SIZE (abfd, scnhdr_int->s_size, scnhdr_ext->s_size); |
793 | 1.22k | PUT_SCNHDR_SCNPTR (abfd, scnhdr_int->s_scnptr, scnhdr_ext->s_scnptr); |
794 | 1.22k | PUT_SCNHDR_RELPTR (abfd, scnhdr_int->s_relptr, scnhdr_ext->s_relptr); |
795 | 1.22k | PUT_SCNHDR_LNNOPTR (abfd, scnhdr_int->s_lnnoptr, scnhdr_ext->s_lnnoptr); |
796 | 1.22k | PUT_SCNHDR_FLAGS (abfd, scnhdr_int->s_flags, scnhdr_ext->s_flags); |
797 | 1.22k | if (scnhdr_int->s_nlnno <= MAX_SCNHDR_NLNNO) |
798 | 1.22k | PUT_SCNHDR_NLNNO (abfd, scnhdr_int->s_nlnno, scnhdr_ext->s_nlnno); |
799 | 0 | else |
800 | 0 | { |
801 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; |
802 | |
|
803 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); |
804 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; |
805 | 0 | _bfd_error_handler |
806 | | /* xgettext:c-format */ |
807 | 0 | (_("%pB: warning: %s: line number overflow: 0x%lx > 0xffff"), |
808 | 0 | abfd, buf, scnhdr_int->s_nlnno); |
809 | 0 | PUT_SCNHDR_NLNNO (abfd, 0xffff, scnhdr_ext->s_nlnno); |
810 | 0 | } |
811 | | |
812 | 1.22k | if (scnhdr_int->s_nreloc <= MAX_SCNHDR_NRELOC) |
813 | 1.22k | PUT_SCNHDR_NRELOC (abfd, scnhdr_int->s_nreloc, scnhdr_ext->s_nreloc); |
814 | 0 | else |
815 | 0 | { |
816 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; |
817 | |
|
818 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); |
819 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; |
820 | | /* xgettext:c-format */ |
821 | 0 | _bfd_error_handler (_("%pB: %s: reloc overflow: 0x%lx > 0xffff"), |
822 | 0 | abfd, buf, scnhdr_int->s_nreloc); |
823 | 0 | bfd_set_error (bfd_error_file_truncated); |
824 | 0 | PUT_SCNHDR_NRELOC (abfd, 0xffff, scnhdr_ext->s_nreloc); |
825 | 0 | ret = 0; |
826 | 0 | } |
827 | | |
828 | | #ifdef COFF_ADJUST_SCNHDR_OUT_POST |
829 | 154 | COFF_ADJUST_SCNHDR_OUT_POST (abfd, in, out); |
830 | | #endif |
831 | 1.22k | return ret; |
832 | 1.22k | } coff-alpha.c:alpha_ecoff_swap_scnhdr_out Line | Count | Source | 780 | 23 | { | 781 | 23 | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 782 | 23 | SCNHDR *scnhdr_ext = (SCNHDR *) out; | 783 | 23 | unsigned int ret = bfd_coff_scnhsz (abfd); | 784 | | | 785 | | #ifdef COFF_ADJUST_SCNHDR_OUT_PRE | 786 | | COFF_ADJUST_SCNHDR_OUT_PRE (abfd, in, out); | 787 | | #endif | 788 | 23 | memcpy (scnhdr_ext->s_name, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 789 | | | 790 | 23 | PUT_SCNHDR_VADDR (abfd, scnhdr_int->s_vaddr, scnhdr_ext->s_vaddr); | 791 | 23 | PUT_SCNHDR_PADDR (abfd, scnhdr_int->s_paddr, scnhdr_ext->s_paddr); | 792 | 23 | PUT_SCNHDR_SIZE (abfd, scnhdr_int->s_size, scnhdr_ext->s_size); | 793 | 23 | PUT_SCNHDR_SCNPTR (abfd, scnhdr_int->s_scnptr, scnhdr_ext->s_scnptr); | 794 | 23 | PUT_SCNHDR_RELPTR (abfd, scnhdr_int->s_relptr, scnhdr_ext->s_relptr); | 795 | 23 | PUT_SCNHDR_LNNOPTR (abfd, scnhdr_int->s_lnnoptr, scnhdr_ext->s_lnnoptr); | 796 | 23 | PUT_SCNHDR_FLAGS (abfd, scnhdr_int->s_flags, scnhdr_ext->s_flags); | 797 | 23 | if (scnhdr_int->s_nlnno <= MAX_SCNHDR_NLNNO) | 798 | 23 | PUT_SCNHDR_NLNNO (abfd, scnhdr_int->s_nlnno, scnhdr_ext->s_nlnno); | 799 | 0 | else | 800 | 0 | { | 801 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 802 | |
| 803 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 804 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 805 | 0 | _bfd_error_handler | 806 | | /* xgettext:c-format */ | 807 | 0 | (_("%pB: warning: %s: line number overflow: 0x%lx > 0xffff"), | 808 | 0 | abfd, buf, scnhdr_int->s_nlnno); | 809 | 0 | PUT_SCNHDR_NLNNO (abfd, 0xffff, scnhdr_ext->s_nlnno); | 810 | 0 | } | 811 | | | 812 | 23 | if (scnhdr_int->s_nreloc <= MAX_SCNHDR_NRELOC) | 813 | 23 | PUT_SCNHDR_NRELOC (abfd, scnhdr_int->s_nreloc, scnhdr_ext->s_nreloc); | 814 | 0 | else | 815 | 0 | { | 816 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 817 | |
| 818 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 819 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 820 | | /* xgettext:c-format */ | 821 | 0 | _bfd_error_handler (_("%pB: %s: reloc overflow: 0x%lx > 0xffff"), | 822 | 0 | abfd, buf, scnhdr_int->s_nreloc); | 823 | 0 | bfd_set_error (bfd_error_file_truncated); | 824 | 0 | PUT_SCNHDR_NRELOC (abfd, 0xffff, scnhdr_ext->s_nreloc); | 825 | 0 | ret = 0; | 826 | 0 | } | 827 | | | 828 | | #ifdef COFF_ADJUST_SCNHDR_OUT_POST | 829 | | COFF_ADJUST_SCNHDR_OUT_POST (abfd, in, out); | 830 | | #endif | 831 | 23 | return ret; | 832 | 23 | } |
coff-x86_64.c:coff_swap_scnhdr_out Line | Count | Source | 780 | 216 | { | 781 | 216 | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 782 | 216 | SCNHDR *scnhdr_ext = (SCNHDR *) out; | 783 | 216 | unsigned int ret = bfd_coff_scnhsz (abfd); | 784 | | | 785 | | #ifdef COFF_ADJUST_SCNHDR_OUT_PRE | 786 | | COFF_ADJUST_SCNHDR_OUT_PRE (abfd, in, out); | 787 | | #endif | 788 | 216 | memcpy (scnhdr_ext->s_name, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 789 | | | 790 | 216 | PUT_SCNHDR_VADDR (abfd, scnhdr_int->s_vaddr, scnhdr_ext->s_vaddr); | 791 | 216 | PUT_SCNHDR_PADDR (abfd, scnhdr_int->s_paddr, scnhdr_ext->s_paddr); | 792 | 216 | PUT_SCNHDR_SIZE (abfd, scnhdr_int->s_size, scnhdr_ext->s_size); | 793 | 216 | PUT_SCNHDR_SCNPTR (abfd, scnhdr_int->s_scnptr, scnhdr_ext->s_scnptr); | 794 | 216 | PUT_SCNHDR_RELPTR (abfd, scnhdr_int->s_relptr, scnhdr_ext->s_relptr); | 795 | 216 | PUT_SCNHDR_LNNOPTR (abfd, scnhdr_int->s_lnnoptr, scnhdr_ext->s_lnnoptr); | 796 | 216 | PUT_SCNHDR_FLAGS (abfd, scnhdr_int->s_flags, scnhdr_ext->s_flags); | 797 | 216 | if (scnhdr_int->s_nlnno <= MAX_SCNHDR_NLNNO) | 798 | 216 | PUT_SCNHDR_NLNNO (abfd, scnhdr_int->s_nlnno, scnhdr_ext->s_nlnno); | 799 | 0 | else | 800 | 0 | { | 801 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 802 | |
| 803 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 804 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 805 | 0 | _bfd_error_handler | 806 | | /* xgettext:c-format */ | 807 | 0 | (_("%pB: warning: %s: line number overflow: 0x%lx > 0xffff"), | 808 | 0 | abfd, buf, scnhdr_int->s_nlnno); | 809 | 0 | PUT_SCNHDR_NLNNO (abfd, 0xffff, scnhdr_ext->s_nlnno); | 810 | 0 | } | 811 | | | 812 | 216 | if (scnhdr_int->s_nreloc <= MAX_SCNHDR_NRELOC) | 813 | 216 | PUT_SCNHDR_NRELOC (abfd, scnhdr_int->s_nreloc, scnhdr_ext->s_nreloc); | 814 | 0 | else | 815 | 0 | { | 816 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 817 | |
| 818 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 819 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 820 | | /* xgettext:c-format */ | 821 | 0 | _bfd_error_handler (_("%pB: %s: reloc overflow: 0x%lx > 0xffff"), | 822 | 0 | abfd, buf, scnhdr_int->s_nreloc); | 823 | 0 | bfd_set_error (bfd_error_file_truncated); | 824 | 0 | PUT_SCNHDR_NRELOC (abfd, 0xffff, scnhdr_ext->s_nreloc); | 825 | 0 | ret = 0; | 826 | 0 | } | 827 | | | 828 | | #ifdef COFF_ADJUST_SCNHDR_OUT_POST | 829 | | COFF_ADJUST_SCNHDR_OUT_POST (abfd, in, out); | 830 | | #endif | 831 | 216 | return ret; | 832 | 216 | } |
coff64-rs6000.c:coff_swap_scnhdr_out Line | Count | Source | 780 | 33 | { | 781 | 33 | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 782 | 33 | SCNHDR *scnhdr_ext = (SCNHDR *) out; | 783 | 33 | unsigned int ret = bfd_coff_scnhsz (abfd); | 784 | | | 785 | | #ifdef COFF_ADJUST_SCNHDR_OUT_PRE | 786 | | COFF_ADJUST_SCNHDR_OUT_PRE (abfd, in, out); | 787 | | #endif | 788 | 33 | memcpy (scnhdr_ext->s_name, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 789 | | | 790 | 33 | PUT_SCNHDR_VADDR (abfd, scnhdr_int->s_vaddr, scnhdr_ext->s_vaddr); | 791 | 33 | PUT_SCNHDR_PADDR (abfd, scnhdr_int->s_paddr, scnhdr_ext->s_paddr); | 792 | 33 | PUT_SCNHDR_SIZE (abfd, scnhdr_int->s_size, scnhdr_ext->s_size); | 793 | 33 | PUT_SCNHDR_SCNPTR (abfd, scnhdr_int->s_scnptr, scnhdr_ext->s_scnptr); | 794 | 33 | PUT_SCNHDR_RELPTR (abfd, scnhdr_int->s_relptr, scnhdr_ext->s_relptr); | 795 | 33 | PUT_SCNHDR_LNNOPTR (abfd, scnhdr_int->s_lnnoptr, scnhdr_ext->s_lnnoptr); | 796 | 33 | PUT_SCNHDR_FLAGS (abfd, scnhdr_int->s_flags, scnhdr_ext->s_flags); | 797 | 33 | if (scnhdr_int->s_nlnno <= MAX_SCNHDR_NLNNO) | 798 | 33 | PUT_SCNHDR_NLNNO (abfd, scnhdr_int->s_nlnno, scnhdr_ext->s_nlnno); | 799 | 0 | else | 800 | 0 | { | 801 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 802 | |
| 803 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 804 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 805 | 0 | _bfd_error_handler | 806 | | /* xgettext:c-format */ | 807 | 0 | (_("%pB: warning: %s: line number overflow: 0x%lx > 0xffff"), | 808 | 0 | abfd, buf, scnhdr_int->s_nlnno); | 809 | 0 | PUT_SCNHDR_NLNNO (abfd, 0xffff, scnhdr_ext->s_nlnno); | 810 | 0 | } | 811 | | | 812 | 33 | if (scnhdr_int->s_nreloc <= MAX_SCNHDR_NRELOC) | 813 | 33 | PUT_SCNHDR_NRELOC (abfd, scnhdr_int->s_nreloc, scnhdr_ext->s_nreloc); | 814 | 0 | else | 815 | 0 | { | 816 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 817 | |
| 818 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 819 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 820 | | /* xgettext:c-format */ | 821 | 0 | _bfd_error_handler (_("%pB: %s: reloc overflow: 0x%lx > 0xffff"), | 822 | 0 | abfd, buf, scnhdr_int->s_nreloc); | 823 | 0 | bfd_set_error (bfd_error_file_truncated); | 824 | 0 | PUT_SCNHDR_NRELOC (abfd, 0xffff, scnhdr_ext->s_nreloc); | 825 | 0 | ret = 0; | 826 | 0 | } | 827 | | | 828 | 33 | #ifdef COFF_ADJUST_SCNHDR_OUT_POST | 829 | 33 | COFF_ADJUST_SCNHDR_OUT_POST (abfd, in, out); | 830 | 33 | #endif | 831 | 33 | return ret; | 832 | 33 | } |
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 coff-mips.c:mips_ecoff_swap_scnhdr_out Line | Count | Source | 780 | 216 | { | 781 | 216 | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 782 | 216 | SCNHDR *scnhdr_ext = (SCNHDR *) out; | 783 | 216 | unsigned int ret = bfd_coff_scnhsz (abfd); | 784 | | | 785 | | #ifdef COFF_ADJUST_SCNHDR_OUT_PRE | 786 | | COFF_ADJUST_SCNHDR_OUT_PRE (abfd, in, out); | 787 | | #endif | 788 | 216 | memcpy (scnhdr_ext->s_name, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 789 | | | 790 | 216 | PUT_SCNHDR_VADDR (abfd, scnhdr_int->s_vaddr, scnhdr_ext->s_vaddr); | 791 | 216 | PUT_SCNHDR_PADDR (abfd, scnhdr_int->s_paddr, scnhdr_ext->s_paddr); | 792 | 216 | PUT_SCNHDR_SIZE (abfd, scnhdr_int->s_size, scnhdr_ext->s_size); | 793 | 216 | PUT_SCNHDR_SCNPTR (abfd, scnhdr_int->s_scnptr, scnhdr_ext->s_scnptr); | 794 | 216 | PUT_SCNHDR_RELPTR (abfd, scnhdr_int->s_relptr, scnhdr_ext->s_relptr); | 795 | 216 | PUT_SCNHDR_LNNOPTR (abfd, scnhdr_int->s_lnnoptr, scnhdr_ext->s_lnnoptr); | 796 | 216 | PUT_SCNHDR_FLAGS (abfd, scnhdr_int->s_flags, scnhdr_ext->s_flags); | 797 | 216 | if (scnhdr_int->s_nlnno <= MAX_SCNHDR_NLNNO) | 798 | 216 | PUT_SCNHDR_NLNNO (abfd, scnhdr_int->s_nlnno, scnhdr_ext->s_nlnno); | 799 | 0 | else | 800 | 0 | { | 801 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 802 | |
| 803 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 804 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 805 | 0 | _bfd_error_handler | 806 | | /* xgettext:c-format */ | 807 | 0 | (_("%pB: warning: %s: line number overflow: 0x%lx > 0xffff"), | 808 | 0 | abfd, buf, scnhdr_int->s_nlnno); | 809 | 0 | PUT_SCNHDR_NLNNO (abfd, 0xffff, scnhdr_ext->s_nlnno); | 810 | 0 | } | 811 | | | 812 | 216 | if (scnhdr_int->s_nreloc <= MAX_SCNHDR_NRELOC) | 813 | 216 | PUT_SCNHDR_NRELOC (abfd, scnhdr_int->s_nreloc, scnhdr_ext->s_nreloc); | 814 | 0 | else | 815 | 0 | { | 816 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 817 | |
| 818 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 819 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 820 | | /* xgettext:c-format */ | 821 | 0 | _bfd_error_handler (_("%pB: %s: reloc overflow: 0x%lx > 0xffff"), | 822 | 0 | abfd, buf, scnhdr_int->s_nreloc); | 823 | 0 | bfd_set_error (bfd_error_file_truncated); | 824 | 0 | PUT_SCNHDR_NRELOC (abfd, 0xffff, scnhdr_ext->s_nreloc); | 825 | 0 | ret = 0; | 826 | 0 | } | 827 | | | 828 | | #ifdef COFF_ADJUST_SCNHDR_OUT_POST | 829 | | COFF_ADJUST_SCNHDR_OUT_POST (abfd, in, out); | 830 | | #endif | 831 | 216 | return ret; | 832 | 216 | } |
coff-rs6000.c:coff_swap_scnhdr_out Line | Count | Source | 780 | 68 | { | 781 | 68 | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 782 | 68 | SCNHDR *scnhdr_ext = (SCNHDR *) out; | 783 | 68 | unsigned int ret = bfd_coff_scnhsz (abfd); | 784 | | | 785 | | #ifdef COFF_ADJUST_SCNHDR_OUT_PRE | 786 | | COFF_ADJUST_SCNHDR_OUT_PRE (abfd, in, out); | 787 | | #endif | 788 | 68 | memcpy (scnhdr_ext->s_name, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 789 | | | 790 | 68 | PUT_SCNHDR_VADDR (abfd, scnhdr_int->s_vaddr, scnhdr_ext->s_vaddr); | 791 | 68 | PUT_SCNHDR_PADDR (abfd, scnhdr_int->s_paddr, scnhdr_ext->s_paddr); | 792 | 68 | PUT_SCNHDR_SIZE (abfd, scnhdr_int->s_size, scnhdr_ext->s_size); | 793 | 68 | PUT_SCNHDR_SCNPTR (abfd, scnhdr_int->s_scnptr, scnhdr_ext->s_scnptr); | 794 | 68 | PUT_SCNHDR_RELPTR (abfd, scnhdr_int->s_relptr, scnhdr_ext->s_relptr); | 795 | 68 | PUT_SCNHDR_LNNOPTR (abfd, scnhdr_int->s_lnnoptr, scnhdr_ext->s_lnnoptr); | 796 | 68 | PUT_SCNHDR_FLAGS (abfd, scnhdr_int->s_flags, scnhdr_ext->s_flags); | 797 | 68 | if (scnhdr_int->s_nlnno <= MAX_SCNHDR_NLNNO) | 798 | 68 | PUT_SCNHDR_NLNNO (abfd, scnhdr_int->s_nlnno, scnhdr_ext->s_nlnno); | 799 | 0 | else | 800 | 0 | { | 801 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 802 | |
| 803 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 804 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 805 | 0 | _bfd_error_handler | 806 | | /* xgettext:c-format */ | 807 | 0 | (_("%pB: warning: %s: line number overflow: 0x%lx > 0xffff"), | 808 | 0 | abfd, buf, scnhdr_int->s_nlnno); | 809 | 0 | PUT_SCNHDR_NLNNO (abfd, 0xffff, scnhdr_ext->s_nlnno); | 810 | 0 | } | 811 | | | 812 | 68 | if (scnhdr_int->s_nreloc <= MAX_SCNHDR_NRELOC) | 813 | 68 | PUT_SCNHDR_NRELOC (abfd, scnhdr_int->s_nreloc, scnhdr_ext->s_nreloc); | 814 | 0 | else | 815 | 0 | { | 816 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 817 | |
| 818 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 819 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 820 | | /* xgettext:c-format */ | 821 | 0 | _bfd_error_handler (_("%pB: %s: reloc overflow: 0x%lx > 0xffff"), | 822 | 0 | abfd, buf, scnhdr_int->s_nreloc); | 823 | 0 | bfd_set_error (bfd_error_file_truncated); | 824 | 0 | PUT_SCNHDR_NRELOC (abfd, 0xffff, scnhdr_ext->s_nreloc); | 825 | 0 | ret = 0; | 826 | 0 | } | 827 | | | 828 | | #ifdef COFF_ADJUST_SCNHDR_OUT_POST | 829 | | COFF_ADJUST_SCNHDR_OUT_POST (abfd, in, out); | 830 | | #endif | 831 | 68 | return ret; | 832 | 68 | } |
coff-sh.c:coff_swap_scnhdr_out Line | Count | Source | 780 | 99 | { | 781 | 99 | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 782 | 99 | SCNHDR *scnhdr_ext = (SCNHDR *) out; | 783 | 99 | unsigned int ret = bfd_coff_scnhsz (abfd); | 784 | | | 785 | | #ifdef COFF_ADJUST_SCNHDR_OUT_PRE | 786 | | COFF_ADJUST_SCNHDR_OUT_PRE (abfd, in, out); | 787 | | #endif | 788 | 99 | memcpy (scnhdr_ext->s_name, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 789 | | | 790 | 99 | PUT_SCNHDR_VADDR (abfd, scnhdr_int->s_vaddr, scnhdr_ext->s_vaddr); | 791 | 99 | PUT_SCNHDR_PADDR (abfd, scnhdr_int->s_paddr, scnhdr_ext->s_paddr); | 792 | 99 | PUT_SCNHDR_SIZE (abfd, scnhdr_int->s_size, scnhdr_ext->s_size); | 793 | 99 | PUT_SCNHDR_SCNPTR (abfd, scnhdr_int->s_scnptr, scnhdr_ext->s_scnptr); | 794 | 99 | PUT_SCNHDR_RELPTR (abfd, scnhdr_int->s_relptr, scnhdr_ext->s_relptr); | 795 | 99 | PUT_SCNHDR_LNNOPTR (abfd, scnhdr_int->s_lnnoptr, scnhdr_ext->s_lnnoptr); | 796 | 99 | PUT_SCNHDR_FLAGS (abfd, scnhdr_int->s_flags, scnhdr_ext->s_flags); | 797 | 99 | if (scnhdr_int->s_nlnno <= MAX_SCNHDR_NLNNO) | 798 | 99 | PUT_SCNHDR_NLNNO (abfd, scnhdr_int->s_nlnno, scnhdr_ext->s_nlnno); | 799 | 0 | else | 800 | 0 | { | 801 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 802 | |
| 803 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 804 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 805 | 0 | _bfd_error_handler | 806 | | /* xgettext:c-format */ | 807 | 0 | (_("%pB: warning: %s: line number overflow: 0x%lx > 0xffff"), | 808 | 0 | abfd, buf, scnhdr_int->s_nlnno); | 809 | 0 | PUT_SCNHDR_NLNNO (abfd, 0xffff, scnhdr_ext->s_nlnno); | 810 | 0 | } | 811 | | | 812 | 99 | if (scnhdr_int->s_nreloc <= MAX_SCNHDR_NRELOC) | 813 | 99 | PUT_SCNHDR_NRELOC (abfd, scnhdr_int->s_nreloc, scnhdr_ext->s_nreloc); | 814 | 0 | else | 815 | 0 | { | 816 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 817 | |
| 818 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 819 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 820 | | /* xgettext:c-format */ | 821 | 0 | _bfd_error_handler (_("%pB: %s: reloc overflow: 0x%lx > 0xffff"), | 822 | 0 | abfd, buf, scnhdr_int->s_nreloc); | 823 | 0 | bfd_set_error (bfd_error_file_truncated); | 824 | 0 | PUT_SCNHDR_NRELOC (abfd, 0xffff, scnhdr_ext->s_nreloc); | 825 | 0 | ret = 0; | 826 | 0 | } | 827 | | | 828 | | #ifdef COFF_ADJUST_SCNHDR_OUT_POST | 829 | | COFF_ADJUST_SCNHDR_OUT_POST (abfd, in, out); | 830 | | #endif | 831 | 99 | return ret; | 832 | 99 | } |
Unexecuted instantiation: coff-stgo32.c:coff_swap_scnhdr_out coff-tic30.c:coff_swap_scnhdr_out Line | Count | Source | 780 | 126 | { | 781 | 126 | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 782 | 126 | SCNHDR *scnhdr_ext = (SCNHDR *) out; | 783 | 126 | unsigned int ret = bfd_coff_scnhsz (abfd); | 784 | | | 785 | | #ifdef COFF_ADJUST_SCNHDR_OUT_PRE | 786 | | COFF_ADJUST_SCNHDR_OUT_PRE (abfd, in, out); | 787 | | #endif | 788 | 126 | memcpy (scnhdr_ext->s_name, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 789 | | | 790 | 126 | PUT_SCNHDR_VADDR (abfd, scnhdr_int->s_vaddr, scnhdr_ext->s_vaddr); | 791 | 126 | PUT_SCNHDR_PADDR (abfd, scnhdr_int->s_paddr, scnhdr_ext->s_paddr); | 792 | 126 | PUT_SCNHDR_SIZE (abfd, scnhdr_int->s_size, scnhdr_ext->s_size); | 793 | 126 | PUT_SCNHDR_SCNPTR (abfd, scnhdr_int->s_scnptr, scnhdr_ext->s_scnptr); | 794 | 126 | PUT_SCNHDR_RELPTR (abfd, scnhdr_int->s_relptr, scnhdr_ext->s_relptr); | 795 | 126 | PUT_SCNHDR_LNNOPTR (abfd, scnhdr_int->s_lnnoptr, scnhdr_ext->s_lnnoptr); | 796 | 126 | PUT_SCNHDR_FLAGS (abfd, scnhdr_int->s_flags, scnhdr_ext->s_flags); | 797 | 126 | if (scnhdr_int->s_nlnno <= MAX_SCNHDR_NLNNO) | 798 | 126 | PUT_SCNHDR_NLNNO (abfd, scnhdr_int->s_nlnno, scnhdr_ext->s_nlnno); | 799 | 0 | else | 800 | 0 | { | 801 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 802 | |
| 803 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 804 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 805 | 0 | _bfd_error_handler | 806 | | /* xgettext:c-format */ | 807 | 0 | (_("%pB: warning: %s: line number overflow: 0x%lx > 0xffff"), | 808 | 0 | abfd, buf, scnhdr_int->s_nlnno); | 809 | 0 | PUT_SCNHDR_NLNNO (abfd, 0xffff, scnhdr_ext->s_nlnno); | 810 | 0 | } | 811 | | | 812 | 126 | if (scnhdr_int->s_nreloc <= MAX_SCNHDR_NRELOC) | 813 | 126 | PUT_SCNHDR_NRELOC (abfd, scnhdr_int->s_nreloc, scnhdr_ext->s_nreloc); | 814 | 0 | else | 815 | 0 | { | 816 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 817 | |
| 818 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 819 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 820 | | /* xgettext:c-format */ | 821 | 0 | _bfd_error_handler (_("%pB: %s: reloc overflow: 0x%lx > 0xffff"), | 822 | 0 | abfd, buf, scnhdr_int->s_nreloc); | 823 | 0 | bfd_set_error (bfd_error_file_truncated); | 824 | 0 | PUT_SCNHDR_NRELOC (abfd, 0xffff, scnhdr_ext->s_nreloc); | 825 | 0 | ret = 0; | 826 | 0 | } | 827 | | | 828 | | #ifdef COFF_ADJUST_SCNHDR_OUT_POST | 829 | | COFF_ADJUST_SCNHDR_OUT_POST (abfd, in, out); | 830 | | #endif | 831 | 126 | return ret; | 832 | 126 | } |
Unexecuted instantiation: coff-tic4x.c:coff_swap_scnhdr_out coff-tic54x.c:coff_swap_scnhdr_out Line | Count | Source | 780 | 121 | { | 781 | 121 | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 782 | 121 | SCNHDR *scnhdr_ext = (SCNHDR *) out; | 783 | 121 | unsigned int ret = bfd_coff_scnhsz (abfd); | 784 | | | 785 | 121 | #ifdef COFF_ADJUST_SCNHDR_OUT_PRE | 786 | 121 | COFF_ADJUST_SCNHDR_OUT_PRE (abfd, in, out); | 787 | 121 | #endif | 788 | 121 | memcpy (scnhdr_ext->s_name, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 789 | | | 790 | 121 | PUT_SCNHDR_VADDR (abfd, scnhdr_int->s_vaddr, scnhdr_ext->s_vaddr); | 791 | 121 | PUT_SCNHDR_PADDR (abfd, scnhdr_int->s_paddr, scnhdr_ext->s_paddr); | 792 | 121 | PUT_SCNHDR_SIZE (abfd, scnhdr_int->s_size, scnhdr_ext->s_size); | 793 | 121 | PUT_SCNHDR_SCNPTR (abfd, scnhdr_int->s_scnptr, scnhdr_ext->s_scnptr); | 794 | 121 | PUT_SCNHDR_RELPTR (abfd, scnhdr_int->s_relptr, scnhdr_ext->s_relptr); | 795 | 121 | PUT_SCNHDR_LNNOPTR (abfd, scnhdr_int->s_lnnoptr, scnhdr_ext->s_lnnoptr); | 796 | 121 | PUT_SCNHDR_FLAGS (abfd, scnhdr_int->s_flags, scnhdr_ext->s_flags); | 797 | 121 | if (scnhdr_int->s_nlnno <= MAX_SCNHDR_NLNNO) | 798 | 121 | PUT_SCNHDR_NLNNO (abfd, scnhdr_int->s_nlnno, scnhdr_ext->s_nlnno); | 799 | 0 | else | 800 | 0 | { | 801 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 802 | |
| 803 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 804 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 805 | 0 | _bfd_error_handler | 806 | | /* xgettext:c-format */ | 807 | 0 | (_("%pB: warning: %s: line number overflow: 0x%lx > 0xffff"), | 808 | 0 | abfd, buf, scnhdr_int->s_nlnno); | 809 | 0 | PUT_SCNHDR_NLNNO (abfd, 0xffff, scnhdr_ext->s_nlnno); | 810 | 0 | } | 811 | | | 812 | 121 | if (scnhdr_int->s_nreloc <= MAX_SCNHDR_NRELOC) | 813 | 121 | PUT_SCNHDR_NRELOC (abfd, scnhdr_int->s_nreloc, scnhdr_ext->s_nreloc); | 814 | 0 | else | 815 | 0 | { | 816 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 817 | |
| 818 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 819 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 820 | | /* xgettext:c-format */ | 821 | 0 | _bfd_error_handler (_("%pB: %s: reloc overflow: 0x%lx > 0xffff"), | 822 | 0 | abfd, buf, scnhdr_int->s_nreloc); | 823 | 0 | bfd_set_error (bfd_error_file_truncated); | 824 | 0 | PUT_SCNHDR_NRELOC (abfd, 0xffff, scnhdr_ext->s_nreloc); | 825 | 0 | ret = 0; | 826 | 0 | } | 827 | | | 828 | 121 | #ifdef COFF_ADJUST_SCNHDR_OUT_POST | 829 | 121 | COFF_ADJUST_SCNHDR_OUT_POST (abfd, in, out); | 830 | 121 | #endif | 831 | 121 | return ret; | 832 | 121 | } |
coff-z80.c:coff_swap_scnhdr_out Line | Count | Source | 780 | 107 | { | 781 | 107 | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 782 | 107 | SCNHDR *scnhdr_ext = (SCNHDR *) out; | 783 | 107 | unsigned int ret = bfd_coff_scnhsz (abfd); | 784 | | | 785 | | #ifdef COFF_ADJUST_SCNHDR_OUT_PRE | 786 | | COFF_ADJUST_SCNHDR_OUT_PRE (abfd, in, out); | 787 | | #endif | 788 | 107 | memcpy (scnhdr_ext->s_name, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 789 | | | 790 | 107 | PUT_SCNHDR_VADDR (abfd, scnhdr_int->s_vaddr, scnhdr_ext->s_vaddr); | 791 | 107 | PUT_SCNHDR_PADDR (abfd, scnhdr_int->s_paddr, scnhdr_ext->s_paddr); | 792 | 107 | PUT_SCNHDR_SIZE (abfd, scnhdr_int->s_size, scnhdr_ext->s_size); | 793 | 107 | PUT_SCNHDR_SCNPTR (abfd, scnhdr_int->s_scnptr, scnhdr_ext->s_scnptr); | 794 | 107 | PUT_SCNHDR_RELPTR (abfd, scnhdr_int->s_relptr, scnhdr_ext->s_relptr); | 795 | 107 | PUT_SCNHDR_LNNOPTR (abfd, scnhdr_int->s_lnnoptr, scnhdr_ext->s_lnnoptr); | 796 | 107 | PUT_SCNHDR_FLAGS (abfd, scnhdr_int->s_flags, scnhdr_ext->s_flags); | 797 | 107 | if (scnhdr_int->s_nlnno <= MAX_SCNHDR_NLNNO) | 798 | 107 | PUT_SCNHDR_NLNNO (abfd, scnhdr_int->s_nlnno, scnhdr_ext->s_nlnno); | 799 | 0 | else | 800 | 0 | { | 801 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 802 | |
| 803 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 804 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 805 | 0 | _bfd_error_handler | 806 | | /* xgettext:c-format */ | 807 | 0 | (_("%pB: warning: %s: line number overflow: 0x%lx > 0xffff"), | 808 | 0 | abfd, buf, scnhdr_int->s_nlnno); | 809 | 0 | PUT_SCNHDR_NLNNO (abfd, 0xffff, scnhdr_ext->s_nlnno); | 810 | 0 | } | 811 | | | 812 | 107 | if (scnhdr_int->s_nreloc <= MAX_SCNHDR_NRELOC) | 813 | 107 | PUT_SCNHDR_NRELOC (abfd, scnhdr_int->s_nreloc, scnhdr_ext->s_nreloc); | 814 | 0 | else | 815 | 0 | { | 816 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 817 | |
| 818 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 819 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 820 | | /* xgettext:c-format */ | 821 | 0 | _bfd_error_handler (_("%pB: %s: reloc overflow: 0x%lx > 0xffff"), | 822 | 0 | abfd, buf, scnhdr_int->s_nreloc); | 823 | 0 | bfd_set_error (bfd_error_file_truncated); | 824 | 0 | PUT_SCNHDR_NRELOC (abfd, 0xffff, scnhdr_ext->s_nreloc); | 825 | 0 | ret = 0; | 826 | 0 | } | 827 | | | 828 | | #ifdef COFF_ADJUST_SCNHDR_OUT_POST | 829 | | COFF_ADJUST_SCNHDR_OUT_POST (abfd, in, out); | 830 | | #endif | 831 | 107 | return ret; | 832 | 107 | } |
coff-z8k.c:coff_swap_scnhdr_out Line | Count | Source | 780 | 219 | { | 781 | 219 | struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; | 782 | 219 | SCNHDR *scnhdr_ext = (SCNHDR *) out; | 783 | 219 | unsigned int ret = bfd_coff_scnhsz (abfd); | 784 | | | 785 | | #ifdef COFF_ADJUST_SCNHDR_OUT_PRE | 786 | | COFF_ADJUST_SCNHDR_OUT_PRE (abfd, in, out); | 787 | | #endif | 788 | 219 | memcpy (scnhdr_ext->s_name, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 789 | | | 790 | 219 | PUT_SCNHDR_VADDR (abfd, scnhdr_int->s_vaddr, scnhdr_ext->s_vaddr); | 791 | 219 | PUT_SCNHDR_PADDR (abfd, scnhdr_int->s_paddr, scnhdr_ext->s_paddr); | 792 | 219 | PUT_SCNHDR_SIZE (abfd, scnhdr_int->s_size, scnhdr_ext->s_size); | 793 | 219 | PUT_SCNHDR_SCNPTR (abfd, scnhdr_int->s_scnptr, scnhdr_ext->s_scnptr); | 794 | 219 | PUT_SCNHDR_RELPTR (abfd, scnhdr_int->s_relptr, scnhdr_ext->s_relptr); | 795 | 219 | PUT_SCNHDR_LNNOPTR (abfd, scnhdr_int->s_lnnoptr, scnhdr_ext->s_lnnoptr); | 796 | 219 | PUT_SCNHDR_FLAGS (abfd, scnhdr_int->s_flags, scnhdr_ext->s_flags); | 797 | 219 | if (scnhdr_int->s_nlnno <= MAX_SCNHDR_NLNNO) | 798 | 219 | PUT_SCNHDR_NLNNO (abfd, scnhdr_int->s_nlnno, scnhdr_ext->s_nlnno); | 799 | 0 | else | 800 | 0 | { | 801 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 802 | |
| 803 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 804 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 805 | 0 | _bfd_error_handler | 806 | | /* xgettext:c-format */ | 807 | 0 | (_("%pB: warning: %s: line number overflow: 0x%lx > 0xffff"), | 808 | 0 | abfd, buf, scnhdr_int->s_nlnno); | 809 | 0 | PUT_SCNHDR_NLNNO (abfd, 0xffff, scnhdr_ext->s_nlnno); | 810 | 0 | } | 811 | | | 812 | 219 | if (scnhdr_int->s_nreloc <= MAX_SCNHDR_NRELOC) | 813 | 219 | PUT_SCNHDR_NRELOC (abfd, scnhdr_int->s_nreloc, scnhdr_ext->s_nreloc); | 814 | 0 | else | 815 | 0 | { | 816 | 0 | char buf[sizeof (scnhdr_int->s_name) + 1]; | 817 | |
| 818 | 0 | memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name)); | 819 | 0 | buf[sizeof (scnhdr_int->s_name)] = '\0'; | 820 | | /* xgettext:c-format */ | 821 | 0 | _bfd_error_handler (_("%pB: %s: reloc overflow: 0x%lx > 0xffff"), | 822 | 0 | abfd, buf, scnhdr_int->s_nreloc); | 823 | 0 | bfd_set_error (bfd_error_file_truncated); | 824 | 0 | PUT_SCNHDR_NRELOC (abfd, 0xffff, scnhdr_ext->s_nreloc); | 825 | 0 | ret = 0; | 826 | 0 | } | 827 | | | 828 | | #ifdef COFF_ADJUST_SCNHDR_OUT_POST | 829 | | COFF_ADJUST_SCNHDR_OUT_POST (abfd, in, out); | 830 | | #endif | 831 | 219 | return ret; | 832 | 219 | } |
|