]>
Commit | Line | Data |
---|---|---|
25263aad JJ |
1 | 2001-10-18 Jakub Jelinek <[email protected]> |
2 | ||
3 | * section.c (_bfd_strip_section_from_output): Don't count | |
4 | SEC_EXCLUDE sections as references. Set SEC_EXCLUDE. | |
5 | ||
973ffd63 AM |
6 | 2001-10-17 Alan Modra <[email protected]> |
7 | ||
8 | * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to | |
9 | Elf_Internal_Shdr.contents now that it's no longer a PTR. | |
10 | * elf-m10300.c (mn10300_elf_relax_section): Likewise. | |
11 | * elf32-h8300.c (elf32_h8_relax_section): Likewise. | |
12 | * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise. | |
13 | * elf32-sh.c (sh_elf_relax_section): Likewise. | |
14 | * elf64-alpha.c (elf64_alpha_relax_section): Likewise. | |
15 | * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise. | |
16 | * elf.c (setup_group): Warning fixes. | |
17 | * elflink.h (elf_link_sort_relocs): Likewise. | |
18 | * pdp11.c (slurp_reloc_table): Likewise. | |
19 | ||
df22989b JH |
20 | 2001-10-16 Jeff Holcomb <[email protected]> |
21 | ||
22 | * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer | |
23 | casts. | |
24 | ||
1e09179f L |
25 | 2001-10-15 H.J. Lu <[email protected]> |
26 | ||
27 | * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE | |
28 | for relocations against discarded link-once section. | |
29 | ||
1e370bd2 AM |
30 | 2001-10-15 Alan Modra <[email protected]> |
31 | ||
cf5c0c5b AM |
32 | * elf32-i386.c (elf_i386_relocate_section): Report some detail on |
33 | bfd_reloc_outofrange and similar errors. | |
34 | ||
1e370bd2 AM |
35 | * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type |
36 | rather than ind->weakdef. | |
37 | * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise. | |
38 | * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise. | |
39 | * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise. | |
40 | * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise. | |
41 | * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise. | |
42 | ||
bbd7ec4a AM |
43 | 2001-10-15 Alan Modra <[email protected]> |
44 | H.J. Lu <[email protected]> | |
45 | ||
46 | * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc | |
47 | counts for aliases instead of aborting. | |
48 | * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise. | |
49 | * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise. | |
50 | ||
51 | * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset | |
52 | to -1 for non-function symbols. | |
53 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise. | |
54 | * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. | |
55 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise. | |
56 | * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. | |
57 | * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise. | |
58 | * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to | |
59 | plt.offset instead of plt.refcount when setting to -1. | |
60 | ||
6a360bf4 NC |
61 | 2001-10-12 Nick Clifton <[email protected]> |
62 | ||
63 | * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22 | |
64 | like R_ARM_PC24. Include reloc number in error message about | |
65 | unresolvable relocs. | |
66 | ||
290394d6 JJ |
67 | 2001-10-10 Jakub Jelinek <[email protected]> |
68 | ||
69 | * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT | |
70 | relocations against the same symbol in .rel{,a}.dyn section. | |
71 | ||
08da05b0 KH |
72 | 2001-10-10 Kazu Hirata <[email protected]> |
73 | ||
74 | * aout-encap.c: Fix comment typos. | |
75 | * aoutx.h: Likewise. | |
76 | * archive.c: Likewise. | |
77 | * bout.c: Likewise. | |
78 | * coff64-rs6000.c: Likewise. | |
79 | * coffcode.h: Likewise. | |
80 | * coffgen.c: Likewise. | |
81 | * cofflink.c: Likewise. | |
82 | * coff-mips.c: Likewise. | |
83 | * ecoff.c: Likewise. | |
84 | * elf32-m32r.c: Likewise. | |
85 | * libcoff-in.h: Likewise. | |
86 | * libecoff.h: Likewise. | |
87 | * libxcoff.h: Likewise. | |
88 | * nlm32-i386.c: Likewise. | |
89 | * pdp11.c: Likewise. | |
90 | * section.c: Likewise. | |
91 | * som.c: Likewise. | |
92 | * som.h: Likewise. | |
93 | * bfd-in2.h: Regenerate. | |
94 | * libcoff.h: Likewise. | |
95 | ||
079e9a2f AM |
96 | 2001-10-10 Alan Modra <[email protected]> |
97 | ||
98 | * elf.c (elf_map_symbols): Don't create new section symbols; Use | |
99 | existing section syms. Update comments. | |
100 | (copy_private_bfd_data): Formatting fixes. | |
101 | (elfcore_grok_win32pstatus): Likewise. | |
102 | (swap_out_syms): Likewise. Remove unnecessary level of braces. | |
103 | ||
945906ff AM |
104 | 2001-10-09 Alan Modra <[email protected]> |
105 | ||
106 | * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to | |
107 | "group_name". | |
108 | (elf_group_name): Define. | |
109 | (elf_next_in_group): Define. | |
110 | * elf.c: Make use of elf_group_name and elf_next_in_group throughout. | |
111 | (setup_group): Don't use sec->lineno for SHT_GROUP section to store | |
112 | first member section; Instead use elf_next_in_group. | |
113 | (bfd_section_from_shdr): Likewise. | |
114 | (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol. | |
115 | ||
dbb410c3 AM |
116 | 2001-10-09 Alan Modra <[email protected]> |
117 | ||
118 | * elf-bfd.h (struct bfd_elf_section_data): Add "group" and | |
119 | "next_in_group". Fix gp and gp_size comments. | |
120 | * elf.c (union elf_internal_group): New. | |
121 | (setup_group): New function. | |
122 | (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP. | |
123 | Call setup_group for SHF_GROUP sections. | |
124 | (bfd_section_from_shdr): Build a BFD section for SHT_GROUP. | |
125 | (elf_fake_sections): Set header type for SEC_GROUP, and header | |
126 | flags for sections in a group. | |
127 | (set_group_contents): New function. | |
128 | (_bfd_elf_compute_section_file_positions): Call it. | |
129 | (assign_section_numbers): Set sh_link for SHT_GROUP. | |
945906ff | 130 | |
dbb410c3 AM |
131 | * elflink.h (gc_mark_hook): Handle section groups. |
132 | * elfxx-target.h: Add SEC_GROUP to applicable_flags. | |
133 | * section.c (SEC_GROUP): Define. | |
134 | (struct sec): Comment fixes. | |
135 | * bfd-in2.h: Regenerate. | |
136 | ||
137 | * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression | |
138 | out of function args. | |
139 | (_bfd_elf_canonicalize_reloc): Similarly. | |
140 | (_bfd_elf_get_symtab): Here too. | |
141 | (_bfd_elf_canonicalize_dynamic_symtab): And here. | |
142 | * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for | |
143 | bfd_bread, and remove unnecessary cast. | |
144 | ||
24c603fa AH |
145 | 2001-10-08 Aldy Hernandez <[email protected]> |
146 | ||
bbd7ec4a | 147 | * bfd/config.bfd (targ_cpu): Add arm9e-*-elf. |
24c603fa | 148 | |
3f5864e1 SC |
149 | 2001-10-06 Stephane Carrez <[email protected]> |
150 | ||
151 | * dwarf2.c (comp_unit_find_nearest_line): Check for end of | |
152 | compilation unit. | |
153 | ||
fb9ceeac AM |
154 | 2001-10-06 Alan Modra <[email protected]> |
155 | ||
aec2f561 AM |
156 | * bfd.c (bfd_assert): Report bfd version. |
157 | (_bfd_abort): Likewise. | |
158 | ||
50b4d486 AM |
159 | * elflink.h (elf_link_input_bfd): Don't zero discarded link-once |
160 | section sym values. Instead replace any relocs against them with | |
161 | relocs against STN_UNDEF, which has a zero value. | |
162 | ||
fb9ceeac AM |
163 | * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all |
164 | relocs. | |
165 | ||
17617495 JL |
166 | 2001-10-05 Jeff Law <[email protected]> |
167 | ||
168 | * som.h (som_exec_data): New field "version_id". | |
169 | * som.c (som_object_setup): Record the version_id if it | |
170 | exists. | |
171 | (som_prep_headers): Do not initialize version_id here. | |
172 | (som_finish_writing): Initialize version_id here. | |
173 | ||
174 | 2000-10-05 Thiemo Seufer <[email protected]> | |
7e766c3b TS |
175 | |
176 | * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos | |
177 | according to the MIPS/SGI ELF64 ABI Draft. | |
178 | (mips_elf_sort_hash_table): Typo. | |
179 | ||
58e3d09d AM |
180 | 2001-10-04 Alan Modra <[email protected]> |
181 | ||
8ea52284 AM |
182 | * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo. |
183 | ||
58e3d09d AM |
184 | * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after |
185 | copying flags if this is a weakdef. | |
186 | ||
b13c7b49 AM |
187 | 2001-10-04 Alan Modra <[email protected]> |
188 | ||
a90b9fca AM |
189 | * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better |
190 | packing. | |
191 | ||
bbd7ec4a | 192 | * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset |
3a6b8597 AM |
193 | to 1 rather than 0 to avoid confusing copy_indirect_symbol. |
194 | (mips_elf_sort_hash_table_f): Compare got.offset against 1. | |
195 | ||
b13c7b49 AM |
196 | * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything |
197 | depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those | |
198 | backends we configure. Run "make dep-am". | |
199 | (install-data-local): Install symcat.h. | |
200 | * dep-in.sed: Remove symcat.h from dependencies. | |
201 | * Makefile.in: Regenerate. | |
202 | ||
8bd621d8 AM |
203 | 2001-10-03 Vassili Karpov <[email protected]> |
204 | ||
205 | * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc. | |
206 | ||
1e2be829 TS |
207 | 2001-10-03 Thiemo Seufer <[email protected]> |
208 | ||
209 | * elf64-mips.c (elf_backend_may_use_rela_p): New define. | |
210 | (elf_backend_default_use_rela_p): New define. | |
211 | ||
0a991dfe AM |
212 | 2001-10-03 Alan Modra <[email protected]> |
213 | ||
57c7194e AM |
214 | * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last |
215 | change. | |
216 | ||
87b632fc AM |
217 | * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h. |
218 | * configure: Regenerate. | |
219 | * Makefile.am (BFD_H_FILES): Add version.h. | |
220 | * Makefile.in: Regenerate. | |
221 | * po/SRC-POTFILES.in: Regenerate. | |
222 | ||
0a991dfe AM |
223 | * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using |
224 | elf_backend_copy_indirect_symbol so that backend has a chance to | |
225 | copy other necessary fields. | |
226 | * elf-bfd.h (struct elf_backend_data): Update description of | |
227 | elf_backend_copy_indirect_symbol. | |
228 | * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after | |
229 | copying flags if this is a weakdef. | |
230 | * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise. | |
231 | (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather | |
232 | than bfd_link_hash_lookup. | |
bbd7ec4a | 233 | * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy |
0a991dfe AM |
234 | reloc processing for weakdefs. |
235 | * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise. | |
236 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise. | |
237 | ||
a33d1f77 AM |
238 | 2001-10-02 Alan Modra <[email protected]> |
239 | ||
240 | * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast | |
241 | result of ELF64_R_TYPE to enum before using in a switch. | |
242 | (ppc64_elf_gc_mark_hook): Likewise. | |
243 | (ppc64_elf_gc_sweep_hook): Likewise. | |
244 | (ppc64_elf_reloc_type_class): Likewise. | |
245 | ||
e43d48cc AM |
246 | 2001-10-02 Alan Modra <[email protected]> |
247 | ||
248 | * version.h: New file. | |
249 | * bfd-in.h: (BFD_VERSION): Substitute bfd_version. | |
250 | (BFD_VERSION_DATE): Define. | |
251 | (BFD_VERSION_STRING): Define. | |
252 | * configure.in: AC_SUBST bfd_version, bfd_version_date and | |
253 | bfd_version_string. | |
254 | (AC_OUTPUT <bfd-in3.h>): Depend on version.h. | |
255 | * bfd-in2.h: Regenerate. | |
256 | * configure: Regenerate. | |
257 | * Makefile.am: Run "make dep-am". | |
258 | * Makefile.in: Regenerate. | |
259 | ||
260 | * bfd-in.h: Include "symcat.h". | |
261 | (CONCAT4): Redefine as for old CAT4. | |
262 | * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros. | |
263 | Add warning regarding whitespace. | |
264 | * aout-cris.c: Likewise. | |
265 | * aout-ns32k.c: Likewise. | |
266 | * aout-sparcle.c: Likewise. | |
267 | * aout-tic30.c: Likewise. | |
268 | * aout0.c: Likewise. | |
269 | * armnetbsd.c: Likewise. | |
270 | * demo64.c: Likewise. | |
271 | * elf-bfd.h: Likewise. | |
272 | * gen-aout.c: Likewise. | |
273 | * host-aout.c: Likewise. | |
274 | * hp300bsd.c: Likewise. | |
275 | * hp300hpux.c: Likewise. | |
276 | * i386aout.c: Likewise. | |
277 | * i386bsd.c: Likewise. | |
278 | * i386dynix.c: Likewise. | |
279 | * i386freebsd.c: Likewise. | |
280 | * i386linux.c: Likewise. | |
281 | * i386lynx.c: Likewise. | |
282 | * i386mach3.c: Likewise. | |
283 | * i386netbsd.c: Likewise. | |
284 | * libaout.h: Likewise. | |
285 | * m68k4knetbsd.c: Likewise. | |
286 | * m68klinux.c: Likewise. | |
287 | * m68klynx.c: Likewise. | |
288 | * m68knetbsd.c: Likewise. | |
289 | * m88kmach3.c: Likewise. | |
290 | * mipsbsd.c: Likewise. | |
291 | * newsos3.c: Likewise. | |
292 | * ns32knetbsd.c: Likewise. | |
293 | * pc532-mach.c: Likewise. | |
294 | * pdp11.c: Likewise. | |
295 | * riscix.c: Likewise. | |
296 | * sparclinux.c: Likewise. | |
297 | * sparclynx.c: Likewise. | |
298 | * sparcnetbsd.c: Likewise. | |
299 | * sunos.c: Likewise. | |
300 | * targets.c: Likewise. | |
301 | * vaxnetbsd.c: Likewise. | |
302 | * vms-hdr.c: Likewise. | |
303 | ||
4eef72c7 AM |
304 | 2001-10-01 Alan Modra <[email protected]> |
305 | ||
306 | * bfd-in.h: Remove comments regarding generated files. | |
307 | * libbfd-in.h: Likewise. | |
308 | * libcoff-in.h: Likewise. | |
309 | * bfd-in2.h: Regenerate. | |
310 | * libbfd.h: Likewise. | |
311 | * libcoff.h: Likewise. | |
312 | ||
146be91a | 313 | 2001-09-30 kaz Kojima <[email protected]> |
bbd7ec4a | 314 | Hans-Peter Nilsson <[email protected]> |
146be91a HPN |
315 | |
316 | * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make | |
317 | partial_inplace, matching assembler output. Set src_mask to | |
318 | all ones. | |
319 | (sh_elf_relocate_section): Delete misplaced comment. | |
320 | For relocatable linking against section symbol, call | |
321 | _bfd_relocate_contents for partial_inplace relocs and adjust | |
322 | rel->r_addend for others. | |
323 | <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with | |
324 | bfd_get_32, not at rel->r_addend. | |
325 | ||
3c3e9281 AM |
326 | 2001-09-30 Alan Modra <[email protected]> |
327 | ||
328 | * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to | |
329 | the old dir refcount, so we indirectly set them to init_refcount. | |
330 | Short-circuit asserts when we've just verified they are true. | |
331 | ||
862517b6 AM |
332 | 2001-09-29 Alan Modra <[email protected]> |
333 | ||
334 | * section.c (struct sec): Remove kept_section. | |
335 | (STD_SECTION): Remove kept_section initialisation. | |
336 | (bfd_make_section_anyway): Here too. | |
337 | * ecoff.c (bfd_debug_section): Remove kept_section initialisation. | |
338 | * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section. | |
339 | * elflink.h (elf_link_input_bfd): Set discarded link-once section | |
340 | symbols to zero, and remove all code involved with kept_section | |
341 | and tracking section symbol values. | |
342 | * bfd-in2.h: Regenerate. | |
343 | * configure.in: Bump version number. | |
344 | * configure: Regenerate. | |
345 | ||
65f38f15 AM |
346 | 2001-09-29 Alan Modra <[email protected]> |
347 | ||
348 | * elf64-ppc.c (struct ppc_dyn_relocs): New. | |
349 | (IS_ABSOLUTE_RELOC): Define. | |
350 | (struct ppc_link_hash_entry): New. | |
351 | (struct ppc_link_hash_table): New. | |
352 | (ppc_hash_table): Define. | |
353 | (link_hash_newfunc): New function. | |
354 | (ppc64_elf_link_hash_table_create): New function. | |
355 | (create_got_section): New function. | |
356 | (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash | |
357 | pointers to our dynamic sections in hash table. | |
358 | (ppc64_elf_copy_indirect_symbol): New function. | |
359 | (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to | |
360 | dynamic sections. Localise vars. Modify code for refcounts | |
361 | starting from zero. Don't allocate here, or force symbols dynamic. | |
362 | Don't copy all relocs if shared, select ones we need. Add code | |
363 | to track possible copy relocs for non-shared link. | |
364 | (ppc64_elf_gc_mark_hook): Update comment. | |
365 | (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too. | |
366 | (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt | |
367 | code for reference counting garbage collection. Don't create .plt | |
368 | entries for functions that don't comply with ABI naming convention, | |
369 | and don't allocate .plt space here. Use short-cuts to dynamic | |
370 | sections. If possible, keep dynamic relocations instead of using | |
371 | copy relocs. Remove confused comments. | |
372 | (ppc_adjust_dynindx): Delete. | |
373 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. | |
374 | (allocate_dynrelocs): New function. | |
375 | (readonly_dynrelocs): New function. | |
376 | (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got | |
377 | space here, and call allocate_dynrelocs to allocate space for | |
378 | global .plt, .got and reloc sections. Use short-cuts to dynamic | |
379 | sections. Call readonly_dynrelocs to determine whether we need | |
380 | DT_TEXTREL. Don't generate section symbols here, the generic | |
381 | ELF linker code does it for us. | |
382 | (ppc64_elf_final_link): Call regular ELF backend linker rather than | |
383 | gc variety, since we do our own .got handling. | |
384 | (ppc64_elf_relocate_section): Remove DEBUG code. Make use of | |
385 | dynamic section short-cuts. Localise vars, and delay setting. | |
386 | Handle unknown relocs in main switch statement. Replace ugly | |
387 | complicated tests for unresolvable relocs with a simple direct | |
388 | scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY | |
389 | before allowing an undefined sym in a shared lib. Do R_*_DS tests | |
390 | after main switch, when we've set addend. Do non-addend insn | |
391 | tweaks before main swithc. Ignore input_section->vma when | |
392 | calculating reloc offsets as it's always zero. Rewrite dynamic | |
393 | reloc handling. Consolidate R_*_HA handling. Handle more relocs. | |
394 | (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use | |
395 | of dynamic section short-cuts. Reorganise .plt handling code. | |
396 | Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL. | |
397 | Move expressions out of swap_reloca_out function calls. | |
398 | (ppc64_elf_reloc_type_class): New function. | |
399 | (ppc64_elf_info_to_howto): Move common expression to local var. | |
400 | (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use | |
401 | of dynamic section short-cuts. Don't fiddle with section syms | |
402 | here as the ELF linker does it for us. | |
403 | (elf_backend_can_refcount): Define. | |
404 | (bfd_elf64_bfd_link_hash_table_create): Define. | |
405 | (elf_backend_copy_indirect_symbol): Define. | |
406 | (elf_backend_reloc_type_class): Define. | |
407 | (elf_backend_*, bfd_elf64_bfd_* defines): Sort. | |
408 | ||
21d17a58 AM |
409 | 2001-09-29 Alan Modra <[email protected]> |
410 | ||
51b64d56 AM |
411 | * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount. |
412 | (struct elf_backend_data): Add can_refcount. | |
413 | * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set | |
414 | got.refcount and plt.refcount from init_refcount. | |
415 | (_bfd_elf_link_hash_table_init): Set up init_refcount. | |
416 | (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount | |
417 | rather than got/plt.offset, and test for <= 0 rather than -1. | |
418 | * elflink.h (size_dynamic_sections): Set init_refcount to -1. | |
419 | * elfxx-target.h (elf_backend_can_refcount): Define. | |
420 | (elfNN_bed): Init can_refcount. | |
421 | * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts. | |
422 | (_bfd_generic_link_hash_newfunc): Likewise. | |
423 | * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts | |
424 | starting from zero. | |
425 | (elf_backend_can_refcount): Define. | |
426 | * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts | |
427 | starting from zero. | |
428 | (elf32_hppa_copy_indirect_symbol): Make static to agree with | |
429 | prototype. | |
430 | (elf_backend_can_refcount): Define. | |
431 | * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts | |
432 | starting from zero. | |
433 | (allocate_dynrelocs): Set plt/got.offset rather than *.refcount. | |
434 | (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment. | |
435 | (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars. | |
436 | (elf_backend_can_refcount): Define. | |
437 | (elf_i386_copy_indirect_symbol): Make static to agree with | |
438 | prototype. Formatting fix. | |
439 | * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts | |
440 | starting from zero. | |
441 | (elf_backend_can_refcount): Define. | |
442 | * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts | |
443 | starting from zero. | |
444 | (elf_backend_can_refcount): Define. | |
445 | * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts | |
446 | starting from zero. | |
447 | (elf_backend_can_refcount): Define. | |
448 | * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts | |
449 | starting from zero. | |
450 | (elf_backend_can_refcount): Define. | |
451 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts | |
452 | starting from zero. | |
453 | (elf_backend_can_refcount): Define. | |
454 | ||
21d17a58 AM |
455 | * som.c (som_write_symbol_strings): Cast current_offset in |
456 | bfd_seek call to match param type. | |
457 | ||
78ae4cb9 JB |
458 | 2001-09-28 J. Brobecker <[email protected]> |
459 | ||
460 | * som.c (som_write_symbol_strings): Fix incorrect type of | |
461 | current_offset to match the function definition. Fixes a build | |
462 | failure on HPUX-11.00. | |
463 | ||
65db3b0d RH |
464 | 2001-09-28 Richard Henderson <[email protected]> |
465 | ||
e0aae569 RH |
466 | * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA, |
467 | SEC_MERGE, SEC_STRINGS. | |
468 | ||
65db3b0d RH |
469 | * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN. |
470 | * bfd-in2.h: Rebuild. | |
471 | ||
ced53ee5 AM |
472 | 2001-09-28 Alan Modra <[email protected]> |
473 | ||
ffaef159 AM |
474 | * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd |
475 | reloc code using x86_64_reloc_map. | |
476 | ||
3ac8354b AM |
477 | * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we |
478 | no longer allocate here. Localise some vars to blocks where they | |
479 | are used. | |
480 | (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay | |
481 | setting of vars until needed. | |
482 | (allocate_dynrelocs): Don't create a .plt entry without a reloc | |
483 | when symbol visibilty makes a function local. | |
484 | (elf32_hppa_finish_dynamic_symbol): Move expressions out of | |
485 | swap_reloca_out function calls. | |
486 | (elf32_hppa_relocate_section): Likewies. Comment typo fix. | |
487 | (elf32_hppa_finish_dynamic_sections): Migrate common code out of | |
488 | switch statement. | |
489 | ||
0ac8d2ca AM |
490 | * elf32-i386.c (elf_i386_check_relocs): Update comment since we |
491 | no longer allocate here. Localise some vars to blocks where they | |
492 | are used. Remove separate switch stmt for creating .got sec. | |
493 | (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove | |
494 | redundant casts and aborts. Delay setting of vars until needed. | |
495 | (allocate_dynrelocs): Remove redundant casts and aborts. | |
496 | (elf_i386_size_dynamic_sections): Move comment. | |
497 | (elf_i386_finish_dynamic_symbol): Move expressions out of function | |
498 | calls. | |
499 | (elf_i386_relocate_section): Likewise. Comment typo fix. | |
500 | (elf_i386_finish_dynamic_sections): Migrate common code out of | |
501 | switch statement. | |
502 | (elf_backend_* defines): Sort. | |
503 | ||
ced53ee5 AM |
504 | * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry |
505 | without a reloc when symbol visibilty makes a function local. | |
506 | ||
63b0f745 NC |
507 | 2001-09-27 Nick Clifton <[email protected]> |
508 | ||
06317a27 NC |
509 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of |
510 | conflicting float flags. | |
63b0f745 | 511 | |
ebe50bae AM |
512 | 2001-09-26 Alan Modra <[email protected]> |
513 | ||
514 | * elf32-i386 (elf_i386_copy_indirect_symbol): New function. | |
515 | (elf_backend_copy_indirect_symbol): Define. | |
516 | (struct elf_i386_link_hash_entry): Rename "root" to "elf". | |
517 | (struct elf_i386_link_hash_table): Likewise. | |
518 | (link_hash_newfunc): Get rid of unnecessary casts. | |
519 | (elf_i386_link_hash_table_create): Likewise. | |
520 | (elf_i386_check_relocs): Initialise local_got_refcounts to 0. | |
521 | Don't test input section SEC_READONLY here to try to avoid copy | |
522 | relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF. | |
523 | (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY | |
524 | here to properly test whether we need copy relocs. Do so for weak | |
525 | syms too. | |
526 | ||
527 | * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function. | |
528 | (elf_backend_copy_indirect_symbol): Define. | |
529 | (struct elf32_hppa_link_hash_table): Rename "root" to "elf". | |
530 | (stub_hash_newfunc): Get rid of unnecessary casts. | |
531 | (hppa_link_hash_newfunc): Likewise. | |
532 | (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0. | |
533 | Don't test input section SEC_READONLY here to try to avoid copy | |
534 | relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF. | |
535 | (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY | |
536 | here to properly test whether we need copy relocs. Do so for weak | |
537 | syms too. | |
538 | ||
af6166c0 AM |
539 | 2001-09-26 Alan Modra <[email protected]> |
540 | ||
541 | * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS, | |
542 | VA_OPEN, VA_FIXEDARG, VA_CLOSE. | |
543 | (bfd_archive_filename): Cast bfd_malloc arg to the correct size. | |
544 | ||
e62de969 JJ |
545 | 2001-09-25 Jakub Jelinek <[email protected]> |
546 | ||
547 | * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot | |
548 | computation. | |
549 | ||
09c1cc88 L |
550 | 2001-09-25 H.J. Lu <[email protected]> |
551 | ||
552 | * bfd-in2.h: Regenerated. | |
553 | ||
38701953 AM |
554 | 2001-09-25 Alan Modra <[email protected]> |
555 | ||
556 | * elf32-i386.c: Add comment re linker function names and ordering. | |
557 | (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc. | |
558 | (elf_i386_grok_prstatus): Move before linker functions. | |
559 | (elf_i386_grok_psinfo): Likewise. | |
560 | (elf_i386_fake_sections): Move so that functions are ordered. | |
561 | (elf_i386_reloc_type_class): Likewise. Comment function purpose. | |
562 | ||
98ceb8ce AM |
563 | 2001-09-25 Alan Modra <[email protected]> |
564 | ||
0ac8d2ca | 565 | * elf32-hppa.c: Rename occurrences of "hplink" to "htab" |
83c81bfe AM |
566 | throughout file. |
567 | ||
98ceb8ce AM |
568 | * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all |
569 | code handling this option. | |
570 | (LONG_BRANCH_VIA_PLT): Likewise. | |
571 | (RELATIVE_DYNRELOCS): Define as zero. | |
572 | (struct elf32_hppa_dyn_reloc_entry): Add "sec", and | |
573 | "pc_count" fields. Remove "section" field. | |
574 | (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs. | |
575 | (elf32_hppa_check_relocs): Don't allocate space for dynamic | |
576 | relocs here. Instead, record all needed dynamic relocs via | |
577 | dyn_relocs and local_dynrel. Cache pointer to "sreloc" section | |
578 | in elf_section_data. | |
579 | (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. | |
580 | (allocate_plt_and_got_and_discard_relocs): Rename to | |
581 | allocate_dynrelocs. Allocate rather than discarding dyn relocs. | |
582 | (readonly_dynrelocs): New function. | |
583 | (elf32_hppa_size_dynamic_sections): Mark output_bfd unused. | |
584 | Call readonly_dynrelocs to determine need for DT_TEXTREL. | |
585 | Rename "i" to "ibfd". Allocate space for local dyn relocs. | |
586 | (elf32_hppa_relocate_section): Make use of cached sreloc. | |
587 | (elf32_hppa_reloc_type_class): New function. | |
588 | (elf_backend_reloc_type_class): Define. | |
589 | ||
0c715baa AM |
590 | 2001-09-25 Alan Modra <[email protected]> |
591 | ||
592 | * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel" | |
593 | and "sreloc" fields. | |
594 | * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and | |
595 | "pc_count" fields. Remove "section" field. | |
596 | (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't | |
597 | allocate space for dynamic relocs here. Instead, record all | |
598 | needed dynamic relocs via dyn_relocs and local_dynrel. Cache | |
599 | pointer to "sreloc" section in elf_section_data. | |
600 | (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. | |
601 | (allocate_plt_and_got_and_discard_relocs): Rename to | |
602 | allocate_dynrelocs. Allocate rather than discarding dyn relocs. | |
603 | (readonly_dynrelocs): New function. | |
604 | (elf_i386_size_dynamic_sections): Call readonly_dynrelocs. | |
605 | Rename "i" to "ibfd". Allocate space for local dyn relocs. | |
606 | (elf_i386_relocate_section): Make use of cached sreloc. | |
607 | ||
f51e552e AM |
608 | 2001-09-24 Alan Modra <[email protected]> |
609 | ||
610 | * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire | |
611 | reloc rather than just the type. | |
612 | (_bfd_elf_reloc_type_class): Likewise. | |
613 | * elf.c (_bfd_elf_reloc_type_class): Likewise. | |
614 | * elf32-arm.h (elf32_arm_reloc_type_class): Likewise. | |
615 | * elf32-cris.c (elf_cris_reloc_type_class): Likewise. | |
616 | * elf32-i386.c (elf_i386_reloc_type_class): Likewise. | |
617 | * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise. | |
618 | * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise. | |
619 | * elf32-s390.c (elf_s390_reloc_type_class): Likewise. | |
620 | * elf32-sh.c (sh_elf_reloc_type_class): Likewise. | |
621 | * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise. | |
622 | * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise. | |
623 | * elf64-s390.c (elf_s390_reloc_type_class): Likewise. | |
624 | * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise. | |
625 | * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise. | |
626 | * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise. | |
627 | * elflink.h: Formatting fixes. | |
628 | (elf_link_sort_relocs): Make "count" and "size" bfd_size_type. | |
629 | Call bfd_zmalloc rather than calloc. Remove unnecessary cast of | |
630 | o->contents to PTR. Update call to elf_backend_reloc_type_class. | |
631 | ||
0c35f01a AM |
632 | 2001-09-22 John Reiser <[email protected]> |
633 | ||
634 | * elfcode.h (elf_object_p): Allow for no section header at all in | |
635 | non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff. | |
636 | ||
1e738b87 NC |
637 | 2001-09-21 Nick Clifton <[email protected]> |
638 | ||
639 | * elfxx-ia64.c: Fix compile time warning messages. | |
09c1cc88 L |
640 | * coff-mcore.c: Fix compile time warning messages. |
641 | * coff-ppc.c: Fix compile time warning messages. | |
642 | * coffcode.h: Fix compile time warning messages. | |
643 | * elf32-mips.c: Fix compile time warning messages. | |
644 | * elf64-alpha.c: Fix compile time warning messages. | |
645 | * libbfd.c: Fix compile time warning messages. | |
646 | * bfd-in2.h: Regenerate. | |
1e738b87 | 647 | |
923f08ff AM |
648 | 2001-09-21 Alan Modra <[email protected]> |
649 | ||
650 | * Makefile.am: Run "make dep-am". | |
651 | * Makefile.in: Regenerate. | |
652 | ||
653 | * aoutx.h: Formatting fixes. | |
654 | * merge.c (_bfd_merged_section_offset): Break line at 80 chars. | |
655 | ||
656 | * linker.c: Replace bfd_get_filename with bfd_archive_filename | |
657 | in error message. | |
658 | ||
8f615d07 AM |
659 | 2001-09-21 Alan Modra <[email protected]> |
660 | ||
661 | * bfd.c (bfd_archive_filename): New function. | |
662 | * bfd-in2.h: Regenerate. | |
663 | * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename | |
664 | in error messages where the bfd is an input bfd. | |
665 | * aout-cris.c: Likewise. | |
666 | * coff-arm.c: Likewise. | |
667 | * coff-mcore.c: Likewise. | |
668 | * coff-ppc.c: Likewise. | |
669 | * coff-rs6000.c: Likewise. | |
670 | * coff-sh.c: Likewise. | |
671 | * coff-tic54x.c: Likewise. | |
672 | * coff-tic80.c: Likewise. | |
673 | * coff64-rs6000.c: Likewise. | |
674 | * coffcode.h: Likewise. | |
675 | * coffgen.c: Likewise. | |
676 | * cofflink.c: Likewise. | |
677 | * ecofflink.c: Likewise. | |
678 | * elf-hppa.h: Likewise. | |
679 | * elf.c: Likewise. | |
680 | * elf32-arm.h: Likewise. | |
681 | * elf32-cris.c: Likewise. | |
682 | * elf32-gen.c: Likewise. | |
683 | * elf32-hppa.c: Likewise. | |
684 | * elf32-i370.c: Likewise. | |
685 | * elf32-i386.c: Likewise. | |
686 | * elf32-m32r.c: Likewise. | |
687 | * elf32-mcore.c: Likewise. | |
688 | * elf32-mips.c: Likewise. | |
689 | * elf32-ppc.c: Likewise. | |
690 | * elf32-s390.c: Likewise. | |
691 | * elf32-sh.c: Likewise. | |
692 | * elf32-sparc.c: Likewise. | |
693 | * elf32-v850.c: Likewise. | |
694 | * elf64-alpha.c: Likewise. | |
695 | * elf64-gen.c: Likewise. | |
696 | * elf64-ppc.c: Likewise. | |
697 | * elf64-s390.c: Likewise. | |
698 | * elf64-sparc.c: Likewise. | |
699 | * elf64-x86-64.c: Likewise. | |
700 | * elflink.h: Likewise. | |
701 | * elfxx-ia64.c: Likewise. | |
702 | * ieee.c: Likewise. | |
703 | * ihex.c: Likewise. | |
704 | * libbfd.c: Likewise. | |
705 | * pdp11.c: Likewise. | |
706 | * pe-mips.c: Likewise. | |
707 | * peicode.h: Likewise. | |
708 | * srec.c: Likewise. | |
709 | * xcofflink.c: Likewise. | |
710 | ||
711 | * elf32-arm.h: Make _bfd_error_handler calls K&R compatible. | |
712 | ||
713 | * elflink.c (_bfd_elf_create_linker_section): Better grammar for | |
714 | error message. | |
715 | ||
716 | * coff-mcore.c (coff_mcore_relocate_section): Internalionalise | |
717 | error message. | |
718 | ||
719 | * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types. | |
720 | Consolidate error messages, and split long messages to two lines. | |
721 | ||
671bae9c | 722 | 2001-09-20 John Reiser <[email protected]> |
83c81bfe | 723 | |
f51e552e AM |
724 | * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic |
725 | and info->allow_shlib_undefined. | |
726 | * elf32-cris.c: Likewise. | |
727 | * elf32-hppa.c: Likewise. | |
728 | * elf32-m68k.c: Likewise. | |
729 | * elf32-mips.c: Likewise. | |
730 | * elf32-ppc.c: Likewise. | |
731 | * elf32-s390.c: Likewise. | |
732 | * elf32-sh.c: Likewise. | |
733 | * elf32-sparc.c: Likewise. | |
734 | * elf64-alpha.c: Likewise. | |
735 | * elf64-hppa.c: Likewise. | |
736 | * elf64-ppc.c: Likewise. | |
737 | * elf64-s390.c: Likewise. | |
738 | * elf64-sparc.c: Likewise. | |
739 | * elf64-x86-64.c: Likewise. | |
740 | * elfxx-ia64.c: Likewise. | |
671bae9c | 741 | |
3882b010 L |
742 | 2001-09-18 Bruno Haible <[email protected]> |
743 | ||
744 | * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>. | |
745 | (aout_link_write_symbols): Use ISDIGIT instead of isdigit. | |
746 | * archive.c: Include "safe-ctype.h" instead of <ctype.h>. | |
747 | (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit. | |
748 | * archures.c: Include "safe-ctype.h" instead of <ctype.h>. | |
749 | (bfd_default_scan): Use ISDIGIT instead of isdigit. | |
750 | * bfd.c: Include "safe-ctype.h" instead of <ctype.h>. | |
751 | (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of | |
752 | isxdigit/isdigit/islower. | |
753 | * binary.c: Include "safe-ctype.h" instead of <ctype.h>. | |
754 | (mangle_name): Use ISALNUM instead of isalnum. | |
755 | * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>. | |
756 | (scan): Use ISDIGIT instead of isdigit. | |
757 | * hosts/alphavms.h: Don't include <ctype.h>. | |
758 | * ieee.c: Include "safe-ctype.h" instead of <ctype.h>. | |
759 | (ieee_object_p): Use TOUPPER instead of toupper. | |
760 | * ihex.c: Include "safe-ctype.h" instead of <ctype.h>. | |
761 | (ihex_bad_byte): Use ISPRINT instead of isprint. | |
762 | * merge.c: Don't include <ctype.h>. | |
763 | * oasys.c: Include "safe-ctype.h" instead of <ctype.h>. | |
764 | (oasys_write_sections): Use ISDIGIT instead of isdigit. | |
765 | * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>. | |
766 | (aout_link_write_symbols): Use ISDIGIT instead of isdigit. | |
767 | * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>. | |
768 | (mangle_name): Use ISALNUM instead of isalnum. | |
769 | * som.c: Include "safe-ctype.h" instead of <ctype.h>. | |
770 | (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of | |
771 | isupper/islower/isdigit. | |
772 | (som_decode_symclass): Use TOUPPER instead of toupper. | |
773 | * srec.c: Include "safe-ctype.h" instead of <ctype.h>. | |
774 | (srec_bad_byte): Use ISPRINT instead of isprint. | |
775 | (srec_scan): Use ISSPACE instead of isspace. | |
776 | * stabs.c: Include "safe-ctype.h" instead of <ctype.h>. | |
777 | (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit. | |
778 | * syms.c: Include "safe-ctype.h" | |
779 | (islower, toupper): Remove macro definitions. | |
780 | (bfd_decode_symclass): Use TOUPPER instead of toupper. | |
781 | * vms-gsd.c: Don't include <ctype.h>. | |
782 | * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>. | |
783 | (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of | |
784 | islower/toupper. | |
785 | * vms-tir.c: Don't include <ctype.h>. | |
786 | ||
dc810e39 AM |
787 | 2001-09-18 Alan Modra <[email protected]> |
788 | ||
789 | * libbfd.c (bfd_bread): New function replacing bfd_read without | |
790 | redundant params. Allow reads up to (size_t) -2 in length. | |
791 | (bfd_bwrite): Similarly for bfd_write. | |
792 | (real_read): Return a size_t. | |
793 | (bfd_read): Call bfd_bread. | |
794 | (bfd_write): Call bfd_bwrite. | |
795 | (warn_deprecated): New function to annoy everybody. | |
796 | (bfd_get_file_window): Don't call bfd_set_error unnecessarily. | |
797 | * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare. | |
798 | (bfd_read, bfd_write): Define as macro. | |
799 | * aix386-core.c: Replace calls to bfd_read with bfd_bread, and | |
800 | likewise for bfd_write. Ensure function args are correct size by | |
801 | using casts or local vars. In some cases, remove unnecessary | |
802 | casts. Formatting fixes, in some cases removing a large expression | |
803 | from function args by using a local var. Replace CONST with const. | |
804 | Modify variable types to avoid warings. Use casts to avoid | |
805 | warnings when using negative numbers in unsigned expressions. | |
806 | * aout-adobe.c: Likewise. | |
807 | * aout-arm.c: Likewise. | |
808 | * aout-cris.c: Likewise. | |
809 | * aout-encap.c: Likewise. | |
810 | * aout-ns32k.c: Likewise. | |
811 | * aout-target.h: Likewise. | |
812 | * aout-tic30.c: Likewise. | |
813 | * aoutf1.h: Likewise. | |
814 | * aoutx.h: Likewise. | |
815 | * archive.c: Likewise. | |
816 | * archures.c: Likewise. | |
817 | * bfd-in.h: Likewise. | |
818 | * bfd.c: Likewise. | |
819 | * binary.c: Likewise. | |
820 | * bout.c: Likewise. | |
821 | * cache.c: Likewise. | |
822 | * cisco-core.c: Likewise. | |
823 | * coff-a29k.c: Likewise. | |
824 | * coff-alpha.c: Likewise. | |
825 | * coff-arm.c: Likewise. | |
826 | * coff-h8300.c: Likewise. | |
827 | * coff-h8500.c: Likewise. | |
828 | * coff-i386.c: Likewise. | |
829 | * coff-i860.c: Likewise. | |
830 | * coff-i960.c: Likewise. | |
831 | * coff-ia64.c: Likewise. | |
832 | * coff-m68k.c: Likewise. | |
833 | * coff-m88k.c: Likewise. | |
834 | * coff-mcore.c: Likewise. | |
835 | * coff-mips.c: Likewise. | |
836 | * coff-ppc.c: Likewise. | |
837 | * coff-rs6000.c: Likewise. | |
838 | * coff-sh.c: Likewise. | |
839 | * coff-sparc.c: Likewise. | |
840 | * coff-stgo32.c: Likewise. | |
841 | * coff-tic30.c: Likewise. | |
842 | * coff-tic54x.c: Likewise. | |
843 | * coff-tic80.c: Likewise. | |
844 | * coff-w65.c: Likewise. | |
845 | * coff-z8k.c: Likewise. | |
846 | * coff64-rs6000.c: Likewise. | |
847 | * coffcode.h: Likewise. | |
848 | * coffgen.c: Likewise. | |
849 | * cofflink.c: Likewise. | |
850 | * coffswap.h: Likewise. | |
851 | * corefile.c: Likewise. | |
852 | * cpu-arc.c: Likewise. | |
853 | * cpu-h8300.c: Likewise. | |
854 | * cpu-h8500.c: Likewise. | |
855 | * cpu-i960.c: Likewise. | |
856 | * cpu-ia64-opc.c: Likewise. | |
857 | * cpu-ns32k.c: Likewise. | |
858 | * cpu-pdp11.c: Likewise. | |
859 | * cpu-pj.c: Likewise. | |
860 | * cpu-sh.c: Likewise. | |
861 | * cpu-w65.c: Likewise. | |
862 | * cpu-z8k.c: Likewise. | |
863 | * dwarf1.c: Likewise. | |
864 | * dwarf2.c: Likewise. | |
865 | * ecoff.c: Likewise. | |
866 | * ecofflink.c: Likewise. | |
867 | * ecoffswap.h: Likewise. | |
868 | * elf-bfd.h: Likewise. | |
869 | * elf-hppa.h: Likewise. | |
870 | * elf-m10200.c: Likewise. | |
871 | * elf-m10300.c: Likewise. | |
872 | * elf.c: Likewise. | |
873 | * elf32-arc.c: Likewise. | |
874 | * elf32-arm.h: Likewise. | |
875 | * elf32-avr.c: Likewise. | |
876 | * elf32-cris.c: Likewise. | |
877 | * elf32-fr30.c: Likewise. | |
878 | * elf32-gen.c: Likewise. | |
879 | * elf32-h8300.c: Likewise. | |
880 | * elf32-hppa.c: Likewise. | |
881 | * elf32-i370.c: Likewise. | |
882 | * elf32-i386.c: Likewise. | |
883 | * elf32-i860.c: Likewise. | |
884 | * elf32-m32r.c: Likewise. | |
885 | * elf32-m68k.c: Likewise. | |
886 | * elf32-mcore.c: Likewise. | |
887 | * elf32-mips.c: Likewise. | |
888 | * elf32-openrisc.c: Likewise. | |
889 | * elf32-pj.c: Likewise. | |
890 | * elf32-ppc.c: Likewise. | |
891 | * elf32-s390.c: Likewise. | |
892 | * elf32-sh-lin.c: Likewise. | |
893 | * elf32-sh.c: Likewise. | |
894 | * elf32-sparc.c: Likewise. | |
895 | * elf32-v850.c: Likewise. | |
896 | * elf64-alpha.c: Likewise. | |
897 | * elf64-hppa.c: Likewise. | |
898 | * elf64-mips.c: Likewise. | |
899 | * elf64-ppc.c: Likewise. | |
900 | * elf64-s390.c: Likewise. | |
901 | * elf64-sparc.c: Likewise. | |
902 | * elf64-x86-64.c: Likewise. | |
903 | * elfarm-nabi.c: Likewise. | |
904 | * elfcode.h: Likewise. | |
905 | * elfcore.h: Likewise. | |
906 | * elflink.c: Likewise. | |
907 | * elflink.h: Likewise. | |
908 | * elfxx-ia64.c: Likewise. | |
909 | * elfxx-target.h: Likewise. | |
910 | * format.c: Likewise. | |
911 | * hash.c: Likewise. | |
912 | * hp300hpux.c: Likewise. | |
913 | * hppabsd-core.c: Likewise. | |
914 | * hpux-core.c: Likewise. | |
915 | * i386aout.c: Likewise. | |
916 | * i386dynix.c: Likewise. | |
917 | * i386linux.c: Likewise. | |
918 | * i386lynx.c: Likewise. | |
919 | * i386mach3.c: Likewise. | |
920 | * i386msdos.c: Likewise. | |
921 | * i386os9k.c: Likewise. | |
922 | * ieee.c: Likewise. | |
923 | * ihex.c: Likewise. | |
924 | * irix-core.c: Likewise. | |
925 | * libaout.h: Likewise. | |
926 | * libbfd-in.h: Likewise. | |
927 | * libbfd.c: Likewise. | |
928 | * libcoff-in.h: Likewise. | |
929 | * libecoff.h: Likewise. | |
930 | * libieee.h: Likewise. | |
931 | * libnlm.h: Likewise. | |
932 | * libpei.h: Likewise. | |
933 | * libxcoff.h: Likewise. | |
934 | * linker.c: Likewise. | |
935 | * lynx-core.c: Likewise. | |
936 | * m68klinux.c: Likewise. | |
937 | * merge.c: Likewise. | |
938 | * mipsbsd.c: Likewise. | |
939 | * netbsd-core.c: Likewise. | |
940 | * nlm.c: Likewise. | |
941 | * nlm32-alpha.c: Likewise. | |
942 | * nlm32-i386.c: Likewise. | |
943 | * nlm32-ppc.c: Likewise. | |
944 | * nlm32-sparc.c: Likewise. | |
945 | * nlmcode.h: Likewise. | |
946 | * nlmswap.h: Likewise. | |
947 | * ns32k.h: Likewise. | |
948 | * oasys.c: Likewise. | |
949 | * opncls.c: Likewise. | |
950 | * osf-core.c: Likewise. | |
951 | * pc532-mach.c: Likewise. | |
952 | * pdp11.c: Likewise. | |
953 | * pe-mips.c: Likewise. | |
954 | * peXXigen.c: Likewise. | |
955 | * peicode.h: Likewise. | |
956 | * ppcboot.c: Likewise. | |
957 | * ptrace-core.c: Likewise. | |
958 | * reloc.c: Likewise. | |
959 | * reloc16.c: Likewise. | |
960 | * riscix.c: Likewise. | |
961 | * rs6000-core.c: Likewise. | |
962 | * sco5-core.c: Likewise. | |
963 | * section.c: Likewise. | |
964 | * som.c: Likewise. | |
965 | * sparclinux.c: Likewise. | |
966 | * sparclynx.c: Likewise. | |
967 | * srec.c: Likewise. | |
968 | * stabs.c: Likewise. | |
969 | * sunos.c: Likewise. | |
970 | * syms.c: Likewise. | |
971 | * targets.c: Likewise. | |
972 | * tekhex.c: Likewise. | |
973 | * trad-core.c: Likewise. | |
974 | * versados.c: Likewise. | |
975 | * vms-gsd.c: Likewise. | |
976 | * vms-hdr.c: Likewise. | |
977 | * vms-misc.c: Likewise. | |
978 | * vms-tir.c: Likewise. | |
979 | * vms.c: Likewise. | |
980 | * vms.h: Likewise. | |
981 | * xcofflink.c: Likewise. | |
982 | * bfd-in2.h: Regenerate. | |
983 | * libbfd.h: Regenerate. | |
984 | * libcoff.h: Regenerate. | |
985 | ||
986 | * bfd.c (struct _bfd): Make "where" and "origin" unsigned. | |
987 | * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma. | |
988 | (ufile_ptr): Define. | |
989 | (bfd_tell): Return a ufile_ptr. | |
990 | * libbfd.c (bfd_tell): Likewise. | |
991 | (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error | |
992 | unnecessarily. | |
993 | * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0. | |
994 | * aoutf1.h: Likewise. | |
995 | * som.c: Likewise. | |
996 | * cache.c (bfd_cache_lookup_worker): Guard against abfd->where | |
997 | larger than unsigned long can represent. | |
998 | ||
999 | * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if | |
1000 | size overflows size_t. | |
1001 | (bfd_realloc): Likewise. | |
1002 | (bfd_zmalloc): Likewise. | |
1003 | * opncls.c (bfd_alloc): Likewise. | |
1004 | (bfd_zalloc): Likewise. | |
1005 | * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update. | |
1006 | (bfd_alloc, bfd_zalloc): Update. | |
1007 | ||
1008 | * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than | |
1009 | 8 bits. | |
1010 | (bfd_get_signed_8): Likewise. | |
1011 | (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8, | |
1012 | H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8, | |
1013 | H_GET_64, H_GET_32, H_GET_16, H_GET_8, | |
1014 | H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use. | |
1015 | * libaout.h: Likewise define and use here. | |
1016 | * aout-adobe.c: Use H_GET_* and H_PUT_* macros. | |
1017 | * aout-arm.c: Likewise. | |
1018 | * aout-encap.c: Likewise. | |
1019 | * aout-ns32k.c: Likewise. | |
1020 | * aout-tic30.c: Likewise. | |
1021 | * aoutf1.h: Likewise. | |
1022 | * aoutx.h: Likewise. | |
1023 | * bout.c: Likewise. | |
1024 | * coff-alpha.c: Likewise. | |
1025 | * coff-h8300.c: Likewise. | |
1026 | * coff-h8500.c: Likewise. | |
1027 | * coff-i960.c: Likewise. | |
1028 | * coff-ia64.c: Likewise. | |
1029 | * coff-m88k.c: Likewise. | |
1030 | * coff-mips.c: Likewise. | |
1031 | * coff-ppc.c: Likewise. | |
1032 | * coff-rs6000.c: Likewise. | |
1033 | * coff-sh.c: Likewise. | |
1034 | * coff-sparc.c: Likewise. | |
1035 | * coff-stgo32.c: Likewise. | |
1036 | * coff-tic30.c: Likewise. | |
1037 | * coff-tic80.c: Likewise. | |
1038 | * coff-w65.c: Likewise. | |
1039 | * coff-z8k.c: Likewise. | |
1040 | * coff64-rs6000.c: Likewise. | |
1041 | * coffgen.c: Likewise. | |
1042 | * cofflink.c: Likewise. | |
1043 | * coffswap.h: Likewise. | |
1044 | * ecoff.c: Likewise. | |
1045 | * ecoffswap.h: Likewise. | |
1046 | * elf.c: Likewise. | |
1047 | * elf32-mips.c: Likewise. | |
1048 | * elf64-mips.c: Likewise. | |
1049 | * hp300hpux.c: Likewise. | |
1050 | * i386dynix.c: Likewise. | |
1051 | * i386lynx.c: Likewise. | |
1052 | * i386msdos.c: Likewise. | |
1053 | * i386os9k.c: Likewise. | |
1054 | * libpei.h: Likewise. | |
1055 | * nlm32-alpha.c: Likewise. | |
1056 | * nlm32-i386.c: Likewise. | |
1057 | * nlm32-ppc.c: Likewise. | |
1058 | * nlmcode.h: Likewise. | |
1059 | * nlmswap.h: Likewise. | |
1060 | * oasys.c: Likewise. | |
1061 | * pdp11.c: Likewise. | |
1062 | * pe-mips.c: Likewise. | |
1063 | * peXXigen.c: Likewise. | |
1064 | * peicode.h: Likewise. | |
1065 | * riscix.c: Likewise. | |
1066 | * sunos.c: Likewise. | |
1067 | * xcofflink.c: Likewise. | |
1068 | * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word): | |
1069 | Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD. | |
1070 | * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use | |
1071 | equivalent H_PUT_* macro instead. | |
1072 | (GETWORD, GETHALF, GETBYTE): Similarly. | |
1073 | * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise. | |
1074 | (GETWORD, GETHALF, GETBYTE): Likewise. | |
1075 | * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise. | |
1076 | ||
1077 | * bfd-in.h (struct orl): Change "pos" to a union. | |
1078 | * archive.c (_bfd_compute_and_write_armap): Use it instead of casts. | |
1079 | (bsd_write_armap): Here too. | |
1080 | (coff_write_armap): And here. | |
1081 | * coff-rs6000.c (xcoff_write_armap_old): And here. | |
1082 | (xcoff_write_one_armap_big): And here. | |
1083 | (xcoff_write_armap_big): And here. | |
1084 | * ecoff.c (_bfd_ecoff_write_armap): And here. | |
1085 | * elf64-mips.c (mips_elf64_write_armap): And here. | |
1086 | ||
1087 | * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum. | |
1088 | * elf-m10300.c (elf_mn10300_mach): Return an unsigned long. | |
1089 | * elf32-h8300.c (elf32_h8_mach): Likewise. | |
1090 | * elf32-mips.c (elf_mips_mach): Likewise. | |
1091 | * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise. | |
1092 | ||
1093 | * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release | |
1094 | calls. | |
1095 | (aix386_core_vec): Typo fix. | |
1096 | ||
1097 | * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR | |
1098 | etc. to avoid redefined macro warning. | |
1099 | (MY(put_reloc)): Use bfd_vma for "value" rather than long. | |
1100 | (MY(fix_pcrel_26)): Likewise. | |
1101 | * aout-ns32k.c (MY(put_reloc)): Likewise. | |
1102 | * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend. | |
1103 | * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise. | |
1104 | * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset. | |
1105 | ||
1106 | * aout-encap.c: Include "file", not <file> for binutils headers. | |
1107 | (encap_object_p): Half baked attempt to fix compile errors in | |
1108 | code dealing with "magic". | |
1109 | ||
1110 | * aout-ns32k.c: Include "file", not <file> for binutils headers. | |
1111 | (_bfd_ns32k_relocate_contents): get_data and put_data manipulate | |
1112 | bfd_vma's rather than longs. | |
1113 | * cpu-ns32k.c (ns32k_sign_extend): Delete. | |
1114 | (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset. | |
1115 | (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values, | |
1116 | remove case 3. | |
1117 | (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset. | |
1118 | Use unsigned comparisons. | |
1119 | (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values. | |
1120 | (do_ns32k_reloc): get_data and put_data operate on bfd_vma's. | |
1121 | (_bfd_do_ns32k_reloc_contents): Likewise. | |
1122 | * ns32k.h (_bfd_ns32k_get_displacement): Update prototype. | |
1123 | (_bfd_ns32k_get_immediate): Likewise. | |
1124 | (_bfd_ns32k_put_displacement): Likewise. | |
1125 | (_bfd_ns32k_put_immediate): Likewise. | |
1126 | (bfd_reloc_status_type): Likewise. | |
1127 | ||
1128 | * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon' | |
1129 | to avoid shadowing. | |
1130 | * pdp11.c (NAME(aout,find_nearest_line)): Likewise. | |
1131 | * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value". | |
1132 | * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to | |
1133 | avoid shadowing. | |
1134 | (record_toc): Use a bfd_signed_vma for our_toc_offset. | |
1135 | * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing. | |
1136 | * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid | |
1137 | shadow warning. | |
1138 | (_bfd_elfcore_strndup): Likewise for "dup". | |
1139 | * elf32-cris.c (cris_elf_relocate_section): "symname" instead of | |
1140 | "name" to avoid shadowing. | |
1141 | * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate | |
1142 | definition of "off". | |
1143 | * elf32-i386.c (elf_i386_relocate_section): Likewise. | |
1144 | * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate | |
1145 | definition of "s". | |
1146 | (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate | |
1147 | "secpp". | |
1148 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx" | |
1149 | to avoid shadowing. | |
1150 | * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink" | |
1151 | to avoid shadowing. | |
1152 | (elf_link_input_bfd): Likewise. | |
1153 | (elf_bfd_final_link): Remove duplicate innermost "off" var. | |
1154 | * oasys.c (oasys_write_data): Rename innermost "p" to "sym". | |
1155 | * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to | |
1156 | "input_section". | |
1157 | * som.c (som_prep_for_fixups): Rename inner "i" to "j". | |
1158 | * sunos.c (sunos_add_dynamic_symbols): Localise "s" var. | |
1159 | (sunos_write_dynamic_symbol): Remove unused vars. | |
1160 | * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate | |
1161 | innermost "directory_name" and "file_name" vars. | |
1162 | * tekhex.c (first_phase): Rename local var "type" to "stype". | |
1163 | (tekhex_write_object_contents): Rename innermost "s" to "sym". | |
1164 | * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize", | |
1165 | doing comparison at caller. | |
1166 | (vms_esecflag_by_name): Likewise. | |
1167 | * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1". | |
1168 | * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o". | |
1169 | (xcoff_write_global_symbol): Rename "p" param to "inf". | |
1170 | ||
1171 | * cisco-core.c: Add missing prototypes. | |
1172 | (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED. | |
1173 | (cisco_core_file_failing_signal): Likewise. | |
1174 | (cisco_core_file_matches_executable_p): Likewise. | |
1175 | * hpux-core.c (hpux_core_core_file_failing_signal): Likewise. | |
1176 | * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise. | |
1177 | * osf-core.c (osf_core_core_file_matches_executable_p): Likewise. | |
1178 | * sco5-core.c (sco5_core_file_matches_executable_p): Likewise. | |
1179 | ||
1180 | * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for | |
1181 | thumb_glue_size and arm_glue_size. | |
1182 | * elf32-arm.h (elf32_arm_link_hash_table): Likewise here. | |
1183 | ||
1184 | * coff64-rs6000.c: Group prototypes together. | |
1185 | ||
1186 | * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED. | |
1187 | (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type. | |
1188 | ||
1189 | * cpu-arc.c: Add missing prototypes. | |
1190 | * cpu-h8500.c: Likewise. | |
1191 | * cpu-i960.c: Likewise. | |
1192 | * cpu-pj.c: Likewise. | |
1193 | * cpu-sh.c: Likewise. | |
1194 | * cpu-w65.c: Likewise. | |
1195 | * cpu-z8k.c: Likewise. | |
1196 | * elf32-fr30.c: Likewise. | |
1197 | * elf32-h8300.c: Likewise. | |
1198 | * elf32-i370.c: Likewise. | |
1199 | * hpux-core.c: Likewise. | |
1200 | * versados.c: Likewise. | |
1201 | ||
1202 | * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare. | |
1203 | * cpu-h8500.c: Likewise. | |
1204 | * cpu-i960.c: Likewise. | |
1205 | * cpu-z8k.c: Likewise. | |
1206 | ||
1207 | * cpu-ia64-opc.c: Correct comment. | |
1208 | ||
1209 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var. | |
1210 | ||
1211 | * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs | |
1212 | to unsigned. | |
1213 | (bfd_elf32_write_out_phdrs): Likewise. | |
1214 | (bfd_elf64_write_out_phdrs): Likewise. | |
1215 | (elf_linker_section_pointers): Change addend to bfd_vma. | |
1216 | (_bfd_elf_find_pointer_linker_section): Likewise. | |
1217 | (_bfd_elfcore_make_pseudosection): Change size param to size_t and | |
1218 | filepos to unsigned file_ptr. | |
1219 | (_bfd_elfcore_strndup): Change max param to size_t. | |
1220 | * elf.c (_bfd_elfcore_make_pseudosection): As above. | |
1221 | (_bfd_elfcore_strndup): Likewise. | |
1222 | (_bfd_elf_find_pointer_linker_section): Likewise. | |
1223 | ||
1224 | * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change | |
1225 | insn and sym_value to ints. | |
1226 | ||
1227 | * elf.c (elf_read): Make "offset" param a file_ptr, "size" a | |
1228 | bfd_size_type. | |
1229 | (elfcore_read_notes): Likewise. | |
1230 | ||
1231 | * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags | |
1232 | param from unsigned char to int. | |
1233 | (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately | |
1234 | for info_to_howto call. | |
1235 | (add_dynamic_entry): Define macro. | |
1236 | (elf32_arm_size_dynamic_sections): Use add_dynamic_entry. | |
1237 | ||
1238 | * elf32-cris.c (add_dynamic_entry): Define macro. | |
1239 | (elf_cris_size_dynamic_sections): Use add_dynamic_entry. | |
1240 | ||
1241 | * elf32-h8300.c (elf32_h8_final_write_processing): Make static. | |
1242 | (elf32_h8_object_p): Likewise. | |
1243 | (elf32_h8_merge_private_bfd_data): Likewise. | |
1244 | (elf32_h8_relax_section): Cast gap to int so signed comparisons work. | |
1245 | ||
1246 | * elf32-hppa.c (add_dynamic_entry): Define macro. | |
1247 | (elf32_hppa_size_dynamic_sections): Use it. | |
1248 | * elf32-i370.c (add_dynamic_entry): Define macro. | |
1249 | (i370_elf_size_dynamic_sections): Use it. | |
1250 | (i370_noop): Make static. | |
1251 | * elf32-i386.c (add_dynamic_entry): Define macro. | |
1252 | (elf_i386_size_dynamic_sections): Use it. | |
1253 | * elf32-m68k.c (add_dynamic_entry): Define macro. | |
1254 | (elf_m68k_size_dynamic_sections): Use it. | |
1255 | * elf32-ppc.c (add_dynamic_entry): Define macro. | |
1256 | (ppc_elf_size_dynamic_sections): Use it. | |
1257 | * elf32-s390.c (add_dynamic_entry): Define macro. | |
1258 | (elf_s390_size_dynamic_sections): Use it. | |
1259 | * elf64-alpha.c (add_dynamic_entry): Define macro. | |
1260 | (elf64_alpha_size_dynamic_sections): Use it. | |
1261 | * elf64-hppa.c (add_dynamic_entry): Define macro. | |
1262 | (elf64_hppa_size_dynamic_sections): Use it. | |
1263 | * elf64-ppc.c (add_dynamic_entry): Define macro. | |
1264 | (ppc64_elf_size_dynamic_sections): Use it. | |
1265 | * elf64-s390.c (add_dynamic_entry): Define macro. | |
1266 | (elf_s390_size_dynamic_sections): Use it. | |
1267 | * elf64-sparc.c (add_dynamic_entry): Define macro. | |
1268 | (sparc64_elf_size_dynamic_sections): Use it. | |
1269 | * elf64-x86-64.c (add_dynamic_entry): Define macro. | |
1270 | (elf64_x86_64_size_dynamic_sections): Use it. | |
1271 | * elfxx-ia64.c (add_dynamic_entry): Define macro. | |
1272 | (elfNN_ia64_size_dynamic_sections): Use it. | |
1273 | ||
1274 | * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning. | |
1275 | (v850_elf_perform_relocation): Make "r_type" param unsigned. | |
1276 | ||
1277 | * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return | |
1278 | false if the first malloc fails rather than going via error_return. | |
1279 | ||
1280 | * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for | |
1281 | "index" param. | |
1282 | (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too. | |
1283 | ||
1284 | * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message. | |
1285 | ||
1286 | * elfxx-ia64.c (global_sym_index): Return a long. | |
1287 | ||
1288 | * ieee.c (get_symbol): Use int rather than char param. | |
1289 | (ieee_slurp_sections): Move "section" var to inner blocks. | |
1290 | (copy_expression): Don't init "value" to zero or worry about | |
1291 | clearing to zero after using. | |
1292 | (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid | |
1293 | shadowing. | |
1294 | ||
1295 | * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an | |
1296 | unsigned int. | |
1297 | ||
1298 | * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning. | |
1299 | (bfd_write_bigendian_4byte_int): Pass an unsigned int value param. | |
1300 | ||
1301 | * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param. | |
1302 | ||
1303 | * pc532-mach.c (MYNSX): Delete. | |
1304 | (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX. | |
1305 | (write_object_contents): Correct prototype. | |
1306 | ||
1307 | * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather | |
1308 | than unsigned short. | |
1309 | ||
1310 | * section.c (bfd_set_section_contents): Remove redundant | |
1311 | "offset < 0" test. Check that "count" doesn't overflow size_t. | |
1312 | (bfd_get_section_contents): Likewise. | |
1313 | ||
1314 | * som.c (som_fixup_formats): Add missing braces. | |
1315 | (som_reloc_addend): Pass a bfd_vma for "addend". | |
1316 | ||
1317 | * srec.c (srec_write_record): Pass "type" as an unsigned int. | |
1318 | (srec_write_symbols): Remove an unnecessary var. | |
1319 | ||
1320 | * targets.c (_bfd_target_vector): Sort entries. Sort externs | |
1321 | to match. | |
1322 | * configure.in: Sort to match. Bump version number. | |
1323 | * configure: Regenerate. | |
1324 | ||
1325 | * tekhex.c (move_section_contents): Assert offset == 0. | |
1326 | ||
1327 | * versados.c (new_symbol_string): Constify arg. | |
1328 | (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section. | |
1329 | (versados_get_symbol_info): Make static. | |
1330 | (versados_print_symbol): Likewise. | |
1331 | (versados_get_reloc_upper_bound): Likewise. | |
1332 | (versados_canonicalize_reloc): Likewise. | |
1333 | ||
417412a2 NC |
1334 | 2001-09-18 Nick Clifton <[email protected]> |
1335 | ||
1336 | * elflink.h (elf_link_input_bfd): Fix typo in error message. | |
1337 | ||
bb731fb6 L |
1338 | 2001-09-17 H.J. Lu <[email protected]> |
1339 | ||
1340 | * dwarf1.c (parse_die): Take a new arg for the end of the | |
1341 | section. Return false if die is beyond the section. | |
1342 | (parse_functions_in_unit): Pass the end of the section to | |
1343 | parse_die (). | |
1344 | (_bfd_dwarf1_find_nearest_line): Likewise. | |
1345 | ||
841989d6 NC |
1346 | 2001-09-14 Michael Rauch <[email protected]> |
1347 | ||
1348 | * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32 | |
1349 | just like R_SPARC_32. | |
1350 | ||
056a1d49 NC |
1351 | 2001-09-14 Kevin Lo <[email protected]> |
1352 | ||
1353 | * configure.bfd: Add arm-openbsd target. | |
1354 | ||
4008bd9b TS |
1355 | 2001-09-14 Thiemo Seufer <[email protected]> |
1356 | ||
1357 | * config.bfd: Change machine triplets from mips*el*-* to mips*el-*. | |
1358 | Add support for mips64. | |
1359 | ||
c11cc227 AO |
1360 | 2001-09-13 Alexandre Oliva <[email protected]> |
1361 | ||
1362 | * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD. | |
1363 | ||
aa4f99bb AO |
1364 | 2001-09-12 Alexandre Oliva <[email protected]> |
1365 | ||
1366 | * elf.c (prep_headers): Get the machine code from the elf | |
1367 | backend data. | |
1368 | * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200. | |
1369 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200. | |
1370 | * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300. | |
1371 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300. | |
1372 | * elf-arc.c (arc_elf_final_write_processing): Don't override | |
1373 | e_machine, it's now properly set in prep_headers. | |
1374 | * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and | |
1375 | EM_AVR_OLD. | |
1376 | (ELF_MACHINE_ALT1): Define to EM_AVR_OLD. | |
1377 | * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V. | |
1378 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V. | |
1379 | * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V. | |
1380 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V. | |
1381 | * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30. | |
1382 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30. | |
1383 | * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R. | |
1384 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R. | |
1385 | * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD. | |
1386 | * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850. | |
1387 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850. | |
1388 | ||
204692d7 RH |
1389 | 2001-09-11 Richard Henderson <[email protected]> |
1390 | ||
1391 | * elf64-alpha.c (elf64_alpha_section_flags): New. | |
1392 | (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL. | |
1393 | ||
f94952df RH |
1394 | 2001-09-11 Richard Henderson <[email protected]> |
1395 | ||
1396 | * elf64-alpha.c (elf64_alpha_relocate_section): Do not | |
1397 | apply HINT relocations against dynamic symbols. | |
1398 | ||
146f1a87 L |
1399 | 2001-09-11 H.J. Lu <[email protected]> |
1400 | ||
f94952df | 1401 | * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM. |
146f1a87 | 1402 | |
1cd6895c RH |
1403 | 2001-09-09 Richard Henderson <[email protected]> |
1404 | ||
96e2734b RH |
1405 | * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code. |
1406 | ||
1cd6895c RH |
1407 | * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp |
1408 | following a call to a near function. | |
1409 | ||
f16fbd61 RH |
1410 | 2001-09-08 Richard Henderson <[email protected]> |
1411 | ||
1412 | * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail | |
1413 | relocation errors. Fail gp-relative relocations against | |
1414 | dynamic symbols. | |
1415 | ||
56882138 AM |
1416 | 2001-09-08 Alan Modra <[email protected]> |
1417 | ||
1418 | * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR | |
1419 | as well as DEF_DYNAMIC in test for avoided copy relocs. | |
1420 | (allocate_plt_and_got_and_discard_relocs): Likewise. | |
1421 | * elf32-hppa.c (elf_i386_relocate_section): Likewise. | |
1422 | (allocate_plt_and_got_and_discard_relocs): Likewise. | |
1423 | ||
cb56d3d3 TS |
1424 | 2001-09-07 Thiemo Seufer <[email protected]> |
1425 | ||
1426 | * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling | |
1427 | of R_MIPS_PC16. | |
56882138 AM |
1428 | |
1429 | 2001-09-06 Thiemo Seufer <[email protected]> | |
1430 | ||
1431 | * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO | |
1432 | definitions. | |
1433 | (mips_elf64_howto_table_rel): Likewise. | |
1434 | ||
1435 | 2001-09-05 Tom Rix <[email protected]> | |
1436 | ||
1437 | * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO | |
1438 | and syscall symbols. | |
1439 | (write_global_symbol) : Same. | |
1440 | (bfd_xcoff_export_symbol): Remove unused syscall param. | |
1441 | * libxcoff.h: Change prototype of bfd_xcoff_export symbol and | |
1442 | bfd_xcoff_import_symbol. | |
1443 | * bfd-in.h: Same. | |
1444 | * bfd-in2.h : Regenerate. | |
1445 | ||
1446 | 2001-09-04 Richard Henderson <[email protected]> | |
1447 | ||
1448 | * elf64-alpha.c (SKIP_HOWTO): New. | |
1449 | (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs. | |
1450 | Fix sizes of 16-bit mem format relocs. | |
1451 | (elf64_alpha_reloc_map): Update to match. | |
1452 | (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate. | |
1453 | (elf64_alpha_relax_without_lituse): Likewise. | |
1454 | (elf64_alpha_check_relocs): Handle GPREL16. | |
1455 | (elf64_alpha_relocate_section): Likewise. | |
1456 | * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove. | |
1457 | (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New. | |
1458 | * bfd-in2.h, libbfd.h: Rebuild. | |
1459 | ||
1460 | 2001-09-04 Jeff Law <[email protected]> | |
1461 | ||
1462 | * elf32-h8300.c (elf32_h8_relax_section): New function. | |
1463 | (elf32_h8_relax_delete_bytes): Likewise. | |
1464 | (elf32_h8_symbol_address_p): Likewise. | |
1465 | (elf32_h8_get_relocated_section_contents): Likewise. | |
1466 | (bfd_elf32_bfd_relax_section): Define. | |
1467 | (bfd_elf32_bfd_get_relocated_section_contents): Likewise. | |
1468 | ||
1469 | * elf32-h8300.c (special): New function. | |
1470 | (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in | |
1471 | all relocations. | |
1472 | (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit | |
1473 | relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8. | |
1474 | Fix minor problems with 8bit and 16bit PC relative relocations. | |
1475 | ||
1476 | 2001-09-01 Andreas Jaeger <[email protected]> | |
1477 | ||
1478 | * vms-tir.c: Add missing prototypes. | |
1479 | * vms-hdr.c: Likewise. | |
1480 | * vms-gsd.c: Likewise. | |
1481 | * vms-misc.c: Likewise. | |
1482 | ||
1483 | 2001-08-31 H.J. Lu <[email protected]> | |
1484 | ||
1485 | * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename | |
1486 | with bad relocation. | |
1487 | ||
1488 | 2001-08-31 Eric Christopher <[email protected]> | |
1489 | Jason Eckhardt <[email protected]> | |
1490 | ||
1491 | * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32, | |
1492 | mips32_4k and mips64. | |
1493 | * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k, | |
1494 | bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64. | |
1495 | * bfd/cpu-mips.c: Ditto. | |
1496 | * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto. | |
1497 | * bfd/bfd-in2.h: Regenerate. | |
1498 | ||
1499 | 2001-08-31 Jakub Jelinek <[email protected]> | |
1500 | ||
1501 | * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory | |
1502 | value into R_ALPHA_RELATIVE's addend. | |
1503 | (elf64_alpha_finish_dynamic_symbol): Likewise. | |
1504 | ||
1505 | 2001-08-31 Nick Clifton <[email protected]> | |
1506 | ||
1507 | * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift | |
1508 | recomputed addend during relocatable link if not USE_REL. | |
1509 | ||
1510 | * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one | |
1511 | error. | |
1512 | ||
1513 | 2001-08-30 H.J. Lu <[email protected]> | |
1514 | ||
1515 | * elf32-mips.c (mips_elf_calculate_relocation): Revert the last | |
1516 | 2 changes. | |
1517 | (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic | |
1518 | relocations for weak definitions. | |
1519 | ||
1520 | 2001-08-30 H.J. Lu <[email protected]> | |
1521 | ||
1522 | * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo. | |
1523 | (BFD32_BACKENDS_CFILES): Add elf32-h8300.c. | |
1524 | * Makefile.in: Rebuild. | |
1525 | ||
1526 | 2001-08-30 H.J. Lu <[email protected]> | |
1527 | ||
1528 | * elf32-mips.c (mips_elf_calculate_relocation): Don't create | |
1529 | dynamic relocation for undefined weak symbols when creating | |
1530 | executables. Check h->root.root.type, instead of h->root.type. | |
1531 | ||
1532 | 2001-08-29 Joel Sherrill <[email protected]> | |
1533 | ||
1534 | * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change | |
1535 | default from coff to elf. | |
1536 | ||
1537 | 2001-08-29 Jeff Law <[email protected]> | |
1538 | ||
1539 | * elf32-h8300.c (h8_elf_howto_table): Add new PC relative | |
1540 | relocations. | |
1541 | (h8_reloc_map): Similarly. | |
1542 | (elf32_h8_final_link_relocate): Remove incorrect overflow tests. | |
1543 | Add support for PC relative relocations. | |
1544 | ||
1545 | * elf32-h8300.c: Put all prototypes together. | |
1546 | (elf32_h8_info_to_howto): Parameter elf_reloc is used. | |
1547 | (elf32_h8_final_link_relocate): New function for linker. | |
1548 | (elf32_h8_relocate_section): Similarly. | |
1549 | (elf_backend_relocate_section): Define. | |
1550 | ||
1551 | * cpu-h8300.c (h8300_scan, compatible): Prototype. | |
1552 | (h8300_scan): Handle architecture:machine encodings typically | |
1553 | found in linker scripts. | |
1554 | * elf.c (prep_headers): Do not try to do H8 machine recognition | |
1555 | here. | |
1556 | * elf32-h8300.c: Add some missing prototypes. | |
1557 | (elf32_h8_mach, elf32_h8_final_write_processing): New functions. | |
1558 | (elf32_h8_object_p): Similarly. | |
1559 | ||
1560 | 2001-08-29 Tom Rix <[email protected]> | |
1561 | ||
1562 | * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that | |
1563 | does not follow a XTY_SD. | |
1564 | ||
1565 | 2001-08-29 Alan Modra <[email protected]> | |
1566 | ||
1567 | * targmatch.sed: Delete case statements. | |
1568 | * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for | |
1569 | aix4.3 and above. | |
1570 | ||
1571 | Wed Aug 29 02:27:36 2001 J"orn Rennecke <[email protected]> | |
1572 | ||
1573 | * Makefile.am (elf32-h8300.lo): New target. | |
1574 | * config.bfd (h8300*-*-elf): New case. | |
1575 | * configure.in (bfd_elf32_h8300_vec): New case. | |
1576 | * elf.c (prep_headers): Add case for bfd_arch_h8300. | |
1577 | * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation. | |
1578 | (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise. | |
1579 | (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise. | |
1580 | * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration. | |
1581 | * elf32-h8300.c: New file. | |
1582 | * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated. | |
1583 | ||
1584 | 2001-08-28 Nick Clifton <[email protected]> | |
1585 | ||
1586 | * sparclynx.c: Add missing prototypes. | |
1587 | * coff-mcore.c: Add missing prototypes. | |
1588 | * elf32-pj.c: Add missing prototypes. | |
1589 | * nlm32-sparc.c: Add missing prototypes. | |
1590 | * oasys.c: Add missing prototypes. | |
1591 | * pdp11.c: Add missing prototypes. | |
1592 | * pe-mips.c: Add missing prototypes. | |
1593 | * riscix.c: Add missing prototypes. | |
1594 | ||
1595 | 2001-08-27 Daniel Jacobowitz <[email protected]> | |
1596 | ||
1597 | * elf32-i386.c: Add missing prototypes. | |
1598 | * elf32-ppc.c: Likewise. | |
1599 | * elf32-sh-lin.c: Likewise. | |
1600 | * elfarm-nabi.c: Likewise. | |
1601 | ||
1602 | 2001-08-27 Daniel Jacobowitz <[email protected]> | |
1603 | ||
1604 | * elf32-i386.c (elf_i386_grok_prstatus): New function. | |
1605 | (elf_i386_grok_psinfo): New function. | |
1606 | (elf_backend_grok_prstatus): Define. | |
1607 | (elf_backend_grok_psinfo): Likewise. | |
1608 | * elf32-ppc.c (ppc_elf_grok_prstatus): New function. | |
1609 | (ppc_elf_grok_psinfo): New function. | |
1610 | (elf_backend_grok_prstatus): Define. | |
1611 | (elf_backend_grok_psinfo): Likewise. | |
1612 | * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function. | |
1613 | (elf32_shlin_grok_psinfo): New function. | |
1614 | (elf_backend_grok_prstatus): Define. | |
1615 | (elf_backend_grok_psinfo): Likewise. | |
1616 | * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function. | |
1617 | (elf32_arm_nabi_grok_psinfo): New function. | |
1618 | (elf_backend_grok_prstatus): Define. | |
1619 | (elf_backend_grok_psinfo): Likewise. | |
1620 | ||
1621 | 2001-08-27 H.J. Lu <[email protected]> | |
1622 | ||
1623 | * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more | |
1624 | sanity check. | |
1625 | (mips_elf_calculate_relocation): Create dynamic relocation for | |
1626 | symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR | |
1627 | bit is not set. | |
1628 | ||
1629 | 2001-08-27 H.J. Lu <[email protected]> | |
1630 | ||
1631 | * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype. | |
1632 | (_bfd_mips_elf_copy_indirect_symbol): Likewise. | |
1633 | (_bfd_elf32_mips_grok_prstatus): Likewise. | |
1634 | (_bfd_elf32_mips_grok_psinfo): Likewise. | |
1635 | (_bfd_mips_elf_hide_symbol): Make it static and cast to | |
1636 | `struct mips_elf_link_hash_entry *'. | |
1637 | (_bfd_mips_elf_copy_indirect_symbol): Make it static. | |
1638 | ||
1639 | 2001-08-27 Nick Clifton <[email protected]> | |
1640 | ||
1641 | * mipsbsd.c: Add missing prototypes. | |
1642 | * hp300hpux.c: Add missing prototypes. | |
1643 | * i386aout.c: Add missing prototypes. | |
1644 | * i386lynx.c: Add missing prototypes. | |
1645 | * i386mach3.c: Add missing prototypes. | |
1646 | * i386msdos.c: Add missing prototypes. | |
1647 | * i386os9k.c: Add missing prototypes. | |
1648 | ||
1649 | 2001-08-27 Linus Nordberg <[email protected]> | |
1650 | Torbjorn Granlund <[email protected]> | |
1651 | Staffan Ulfberg <[email protected]> | |
1652 | Alan Modra <[email protected]> | |
1653 | ||
1654 | * config.bfd: Add powerpc64 target. Add powerpc64 vectors to | |
1655 | targ64_selvecs for 32 bit powerpc targets. | |
1656 | * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo. | |
1657 | (BFD64_BACKENDS_CFILES): Add elf64-ppc.c. | |
1658 | Run "make dep-am". | |
1659 | * Makefile.in: Regenerate. | |
1660 | * configure.in: Add elf64_powerpc vecs. | |
1661 | * configure: Regenerate. | |
1662 | * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit. | |
1663 | * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target. | |
1664 | * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec. | |
1665 | * elf64-ppc.c: New file. | |
1666 | * reloc.c: Add powerpc64 relocs. | |
1667 | * libbfd.h: Regenerate. | |
1668 | * bfd-in2.h: Regenerate. | |
1669 | ||
1670 | 2001-08-27 Andreas Schwab <[email protected]> | |
1671 | ||
1672 | * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the | |
1673 | reloc is against read-only section. | |
1674 | (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1675 | looking up section names for DT_TEXTREL. | |
1676 | (elf32_m68k_reloc_type_class): New function. | |
1677 | (elf_backend_reloc_type_class): Define. | |
1678 | ||
1679 | 2001-08-27 Andreas Jaeger <[email protected]> | |
1680 | ||
1681 | * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the | |
1682 | reloc is against read-only section. | |
1683 | (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1684 | looking up section names for DT_TEXTREL. | |
1685 | (elf_s390_reloc_type_class): New. | |
1686 | (elf_backend_reloc_type_class): Define. | |
1687 | ||
1688 | * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the | |
1689 | reloc is against read-only section. | |
1690 | (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1691 | looking up section names for DT_TEXTREL. | |
1692 | (elf_s390_reloc_type_class): New. | |
1693 | (elf_backend_reloc_type_class): Define. | |
1694 | ||
1695 | * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc | |
1696 | is against read-only section. | |
1697 | (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1698 | looking up section names for DT_TEXTREL. | |
1699 | (ppc_elf_reloc_type_class): New. | |
1700 | (elf_backend_reloc_type_class): Define. | |
1701 | ||
1702 | 2001-08-26 Andreas Jaeger <[email protected]> | |
1703 | ||
1704 | * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the | |
1705 | reloc is against read-only section. | |
1706 | (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1707 | looking up section names for DT_TEXTREL. | |
1708 | (elf_cris_reloc_type_class): New. | |
1709 | (elf_backend_reloc_type_class): Define. | |
1710 | ||
1711 | * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is | |
1712 | against read-only section. | |
1713 | (elf_backend_reloc_type_class): Define. | |
1714 | (sh_elf_reloc_type_class): New. | |
1715 | (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1716 | looking up section names for DT_TEXTREL. | |
1717 | ||
1718 | * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the | |
1719 | reloc is against read-only section. | |
1720 | (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1721 | looking up section names for DT_TEXTREL. | |
1722 | (elf32_arm_reloc_type_class): New. | |
1723 | (elf_backend_reloc_type_class): Define. | |
1724 | ||
1725 | 2001-08-25 Andreas Jaeger <[email protected]> | |
1726 | ||
1727 | * oasys.c: Add missing prototypes. | |
1728 | ||
1729 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused | |
1730 | attribute for parameter. | |
1731 | * elf.c (_bfd_elf_reloc_type_class): Likewise. | |
1732 | ||
1733 | * versados.c (get_4): Make static. | |
1734 | (get_10): Make static. | |
1735 | Add missing prototypes. | |
1736 | (process_esd): Fix call to versados_new_symbol. | |
1737 | ||
1738 | 2001-08-25 Nick Clifton <[email protected]> | |
1739 | ||
1740 | * coff-a29k.c: Add missing prototypes. | |
1741 | * coff-apollo.c: Add missing prototypes. | |
1742 | * coff-arm.c: Add missing prototypes. | |
1743 | * coff-i860.c: Add missing prototypes. | |
1744 | * coff-rs6000.c: Add missing prototypes. | |
1745 | * coff-tic80.c: Add missing prototypes. | |
1746 | * elf-m10200.c: Add missing prototypes. | |
1747 | * elf-m10300.c: Add missing prototypes. | |
1748 | * elf32-arm.h: Add missing prototypes. | |
1749 | * elf32-d10v.c: Add missing prototypes. | |
1750 | * elf32-m32r.c: Add missing prototypes. | |
1751 | * elf32-mcore.c: Add missing prototypes. | |
1752 | * elf32-openrisc.c: Add missing prototypes. | |
1753 | * elf32-sh.c: Add missing prototypes. | |
1754 | * elf32-sparc.c: Add missing prototypes. | |
1755 | * elf32-v850.c: Add missing prototypes. | |
1756 | * elfarm-nabi.c: Add missing prototypes. | |
1757 | * elfarm-oabi.c: Add missing prototypes. | |
1758 | ||
1759 | 2001-08-25 Thiemo Seufer <[email protected]> | |
1760 | ||
1761 | * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for | |
1762 | E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64 | |
1763 | ||
1764 | 2001-08-24 H.J. Lu <[email protected]> | |
1765 | ||
1766 | * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF | |
1767 | hash structure. | |
1768 | ||
1769 | 2001-08-24 Nick Clifton <[email protected]> | |
1770 | ||
1771 | * elf-bfd.h (elf_hash_table): Revert definition. | |
1772 | (is_elf_hash_table): New macro. | |
1773 | * elflink.h (elf_link_add_object_symbols): Test | |
1774 | is_elf_hash_table before accessing ELF only fields in hash | |
1775 | structure. | |
1776 | (elf_link_create_dynamic_sections): Fail if not using an ELF | |
1777 | hash structure. | |
1778 | (elf_add_dynamic_entry): Fail if not using an ELF hash | |
1779 | structure. | |
1780 | (elf_link_record_local_dynamic_symbol): Fail if not using an | |
1781 | ELF hash structure. | |
1782 | (size_dynamic_sections): Fail if not using an ELF hash | |
1783 | structure. | |
1784 | (elf_adjust_dynamic_symbol): Fail if not using an ELF | |
1785 | hash structure. | |
1786 | (elf_bfd_final_link): Fail if not using an ELF hash | |
1787 | structure. | |
1788 | ||
1789 | 2001-08-24 H.J. Lu <[email protected]> | |
1790 | ||
1791 | * elf-bfd.h (elf_hash_table): Return NULL if the linker hash | |
1792 | table is not an ELF linker hash table. | |
1793 | ||
1794 | * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash | |
1795 | table type to bfd_link_elf_hash_table. | |
1796 | ||
1797 | * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert | |
1798 | the last change. | |
1799 | ||
1800 | * linker.c (_bfd_link_hash_table_init): Set the linker hash | |
1801 | table type to bfd_link_generic_hash_table. | |
1802 | ||
1803 | 2001-08-24 Alexandre Oliva <[email protected]> | |
1804 | ||
1805 | * bfd.c (bfd_alt_mach_code): New function. | |
1806 | * bfd-in2.h: Rebuilt. | |
1807 | ||
1808 | 2001-08-24 Alexandre Oliva <[email protected]> | |
1809 | ||
1810 | * elf-m10300.c (mn10300_elf_relocate_section): Test the right | |
1811 | `type' field in the hash entry when deciding whether to follow a | |
1812 | link. | |
1813 | ||
1814 | 2001-08-24 Jakub Jelinek <[email protected]> | |
1815 | ||
1816 | * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not | |
1817 | last. | |
1818 | (elf_link_sort_relocs): Adjust accordingly. | |
1819 | ||
1820 | * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag. | |
1821 | (elf64_alpha_check_relocs): Set it if section this reloc is against | |
1822 | is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against | |
1823 | read-only section. | |
1824 | (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation | |
1825 | is is against read-only section. | |
1826 | (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't | |
1827 | check section names. | |
1828 | (elf64_alpha_reloc_type_class): New. | |
1829 | (elf_backend_reloc_type_class): Define. | |
1830 | ||
1831 | 2001-08-24 Thiemo Seufer <[email protected]> | |
1832 | ||
1833 | * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca() | |
1834 | by bfd_malloc(). | |
1835 | ||
1836 | 2001-08-23 Andreas Jaeger <[email protected]> | |
1837 | ||
1838 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if | |
1839 | the reloc is against read-only section. | |
1840 | (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead | |
1841 | of looking up section names for DT_TEXTREL. | |
1842 | (elf64_x86_64_reloc_type_class): New. | |
1843 | (elf_backend_reloc_type_class): Define. | |
1844 | ||
1845 | 2001-08-23 H.J. Lu <[email protected]> | |
1846 | ||
1847 | * syms.c (bfd_print_symbol_vandf): Add abfd to arg. | |
1848 | * bfd-in2.h (bfd_print_symbol_vandf): Regenerated. | |
1849 | ||
1850 | * aoutx.h (NAME(aout,print_symbol)): Pass abfd to | |
1851 | bfd_print_symbol_vandf. | |
1852 | * coffgen.c (coff_print_symbol): Likewise. | |
1853 | * elf.c (bfd_elf_print_symbol): Likewise. | |
1854 | * ieee.c (ieee_print_symbol): Likewise. | |
1855 | * nlmcode.h (nlm_print_symbol): Likewise. | |
1856 | * oasys.c (oasys_print_symbol): Likewise. | |
1857 | * pdp11.c (NAME(aout,print_symbol)): Likewise. | |
1858 | * som.c (som_print_symbol): Likewise. | |
1859 | * srec.c (srec_print_symbol): Likewise. | |
1860 | * tekhex.c (tekhex_print_symbol): Likewise. | |
1861 | * versados.c (versados_print_symbol): Likewise. | |
1862 | * vms.c (vms_print_symbol): Likewise. | |
1863 | ||
1864 | * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma | |
1865 | with bfd_fprintf_vma. | |
1866 | (bfd_elf_print_symbol): Likewise. | |
1867 | * syms.c (bfd_print_symbol_vandf): Likewise. | |
1868 | ||
1869 | 2001-08-23 Nick Clifton <[email protected]> | |
1870 | ||
1871 | * aoutf1.h (sunos_write_object_contents): Silence compile time | |
1872 | warning. | |
1873 | * libaout.h (N_SET_DYNAMIC): Silence compile time warning. | |
1874 | ||
1875 | * bout.c: Add missing function prototypes. Fix formatting. | |
1876 | * coff-z8k.c: Add missing function prototypes. Fix formatting. | |
1877 | * coff-w65.c: Add missing function prototypes. Fix formatting. | |
1878 | * coff-h8500.c: Add missing function prototypes. Fix formatting. | |
1879 | * coff-h8300.c: Add missing function prototypes. Fix formatting. | |
1880 | * coff-tic54x.c: Add missing function prototypes. Fix formatting. | |
1881 | * coff-tic30.c: Add missing function prototypes. Fix formatting. | |
1882 | * coff-m68k.c: Add missing function prototypes. Fix formatting. | |
1883 | * coff-rs6000.c: Add missing function prototypes. Fix formatting. | |
1884 | * coff-sh.c: Add missing function prototypes. Fix formatting. | |
1885 | ||
1886 | 2001-08-23 Jakub Jelinek <[email protected]> | |
1887 | ||
1888 | * elf-bfd.h (enum elf_reloc_type_class): New. | |
1889 | (struct elf_backend_data): Add elf_backend_reloc_type_class. | |
1890 | (_bfd_elf_reloc_type_class): New. | |
1891 | * elfxx-target.h (elf_backend_reloc_type_class): Define. | |
1892 | (elfNN_bed): Add elf_backend_reloc_type_class. | |
1893 | * elf.c (_bfd_elf_reloc_type_class): New. | |
1894 | * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc | |
1895 | is against read-only section. | |
1896 | (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1897 | looking up section names for DT_TEXTREL. | |
1898 | (elf_i386_reloc_type_class): New. | |
1899 | (elf_backend_reloc_type_class): Define. | |
1900 | * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the | |
1901 | reloc is against read-only section. | |
1902 | (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1903 | looking up section names for DT_TEXTREL. | |
1904 | (elf32_sparc_reloc_type_class): New. | |
1905 | (elf_backend_reloc_type_class): Define. | |
1906 | * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the | |
1907 | reloc is against read-only section. | |
1908 | (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
1909 | looking up section names for DT_TEXTREL. | |
1910 | (sparc64_elf_reloc_type_class): New. | |
1911 | (elf_backend_reloc_type_class): Define. | |
1912 | * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field. | |
1913 | (elfNN_ia64_hash_table_create): Clear ia64_info. | |
1914 | (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only | |
1915 | section. | |
1916 | (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag | |
1917 | instead of looking up section names for DT_TEXTREL. | |
1918 | (elfNN_ia64_reloc_type_class): New. | |
1919 | (elf_backend_reloc_type_class): Define. | |
1920 | * elflink.h (size_dynamic_sections): Add spare DT_NULL tags. | |
1921 | (struct elf_link_sort_rela): New. | |
1922 | (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New. | |
1923 | (elf_bfd_final_link): Call elf_link_sort_relocs. | |
1924 | Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if | |
1925 | necessary. | |
1926 | ||
1927 | 2001-08-23 Nick Clifton <[email protected]> | |
1928 | ||
1929 | * configure.in (x86-bsdi): No corefile support. | |
1930 | * configure: Regenerate. | |
1931 | ||
1932 | 2001-08-22 Nick Clifton <[email protected]> | |
1933 | ||
1934 | * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing | |
1935 | comma. | |
1936 | ||
1937 | 2001-08-21 Mark Elbrecht <[email protected]> | |
1938 | ||
1939 | * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set | |
1940 | the alignment of dwarf2 linkonce sections to 0. | |
1941 | * coff-sto32.c: Likewise. | |
1942 | ||
1943 | 2001-08-20 Andreas Jaeger <[email protected]> | |
1944 | ||
1945 | * coff-sparc.c: Add missing prototypes. | |
1946 | * elf32-s390.c: Likewise. | |
1947 | * elf32-i960.c: Likewise. | |
1948 | * aout-target.h: Likewise. | |
1949 | ||
1950 | 2001-08-20 H.J. Lu <[email protected]> | |
1951 | ||
1952 | * elf-bfd.h (elf_obj_tdata): Add num_section_syms. | |
1953 | (elf_num_section_syms): New for num_section_syms. | |
1954 | ||
1955 | * elf.c (elf_map_symbols): Set num_section_syms. | |
1956 | (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for | |
1957 | the section symbol index. | |
1958 | ||
1959 | 2001-08-20 Nick Clifton <[email protected]> | |
1960 | ||
1961 | * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never | |
1962 | select the generic has table creator. All elf backends need elf | |
1963 | specific fields in the hash table. | |
1964 | ||
1965 | 2001-08-20 Alan Modra <[email protected]> | |
1966 | ||
1967 | * archive.c (offsetof): Remove define. | |
1968 | * elf.c: Likewise. | |
1969 | * oasys.c: Likewise | |
1970 | * sysdep.h (offsetof): Define. | |
1971 | ||
1972 | 2001-08-17 Alan Modra <[email protected]> | |
1973 | ||
1974 | * bfd.c (bfd_get_gp_size): Return an unsigned int. | |
1975 | (bfd_set_gp_size): Make param unsigned. | |
1976 | * bfd-in2.h: Regenerate. | |
1977 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather | |
1978 | than calling bfd_get_gp_size. | |
1979 | * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise. | |
1980 | * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise. | |
1981 | ||
1982 | 2001-08-17 Alan Modra <[email protected]> | |
1983 | ||
1984 | * linker.c (default_fill_link_order): Handle four byte fill value. | |
1985 | ||
1986 | 2001-08-17 Alan Modra <[email protected]> | |
1987 | ||
1988 | * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing | |
1989 | prototype. | |
1990 | * nlm32-alpha.c (nlm_alpha_write_external): Fix warning. | |
1991 | ||
1992 | * elf64-mips.c (UNUSED_RELOC): Define. | |
1993 | (mips_elf64_howto_table_rel): Use it. | |
1994 | (mips_elf64_howto_table_rela): Here too. | |
1995 | (mips_elf64_write_relocs): Fix signed/unsigned warning. | |
1996 | ||
1997 | * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to | |
1998 | silence warning. | |
1999 | * coffgen.c (coff_print_symbol): Fix warnings. | |
2000 | (coff_find_nearest_line): Likewise. | |
2001 | * cofflink.c (_bfd_coff_link_input_bfd): Likewise. | |
2002 | * coff-alpha.c (alpha_convert_external_reloc): Likewise. | |
2003 | * format.c (bfd_check_format_matches): Likewise. | |
2004 | (bfd_set_format): Likewise. | |
2005 | * coff-ia64.c: Add missing prototypes. | |
2006 | * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend | |
2007 | signed to silence warnings. | |
2008 | (elf64_alpha_relocate_section): Likewise. | |
2009 | (elf64_alpha_find_reloc_at_ofs): Fix warnings. | |
2010 | (elf64_alpha_add_symbol_hook): Likewise. | |
2011 | (elf64_alpha_final_link): Likewise. | |
2012 | (elf64_alpha_relax_section): Remove redundant assign to info.gotent. | |
2013 | (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args. | |
2014 | (elf64_alpha_size_got_sections): Likewise. | |
2015 | * elfxx-ia64.c: Add missing prototypes. | |
2016 | (elfNN_ia64_relocate_section): Fix warning. | |
2017 | (elfNN_ia64_unwind_entry_compare): Make params const. | |
2018 | ||
2019 | 2001-08-17 Alan Modra <[email protected]> | |
2020 | ||
2021 | * config.bfd (targ64_selvecs): New. | |
2022 | <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef. | |
2023 | ||
2024 | * bfd-in.h (BFD_VERSION): Remove wrong comment. | |
2025 | (BFD_DEFAULT_TARGET_SIZE): New. | |
2026 | (BFD_ARCH_SIZE): Comment. | |
2027 | * configure.in (target_size): New. Set instead of target64 in | |
2028 | selvecs case statement. Set target64 from it. | |
2029 | (bfd_default_target_size): New. Set from taget_size. AC_SUBST. | |
2030 | * bfd-in2.h: Regenerate. | |
2031 | * configure: Regenerate. | |
2032 | ||
2033 | 2001-08-17 Alan Modra <[email protected]> | |
2034 | ||
2035 | * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format. | |
2036 | (bfd_errmsgs): Add corresponding message. | |
2037 | * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when | |
2038 | finding an archive that contains different format object files. | |
2039 | Return bfd_error_wrong_object_format for this case. | |
2040 | * format.c: Formatting fixes. s/CONST/const/. | |
2041 | (bfd_check_format_matches): Accept archives that give | |
2042 | bfd_error_wrong_object_format if no full match is found. Tidy | |
2043 | code handling matching_vector. Don't return a pointer to freed | |
2044 | memory in `matching'. Handle ambiguous matches as for partial | |
2045 | archive matches. | |
2046 | * bfd-in2.h: Regenerate. | |
2047 | ||
2048 | 2001-08-15 Alan Modra <[email protected]> | |
2049 | ||
2050 | * libieee.h (common_header_type): Add last_byte field. | |
2051 | ||
2052 | * ieee.c: Add missing prototypes. Some format fixes. | |
2053 | (struct output_buffer_struct): Move for availability to prototypes. | |
2054 | (ieee_part_after): New function. | |
2055 | (ieee_slurp_debug): Use it here. | |
2056 | (ieee_seek): Pass in ieee_data_struct rather than bfd. Use | |
2057 | ieee_part_after to set last_byte to one past end of current part. | |
2058 | Update callers. | |
2059 | (ieee_pos): Pass in ieee_data_struct rather than bfd. | |
2060 | Update callers. | |
2061 | (parse_expression): Don't go beyond the end of the current part. | |
2062 | (ieee_slurp_external_symbols): Correct type passed to read_2bytes. | |
2063 | (ieee_get_symtab_upper_bound, ieee_get_symtab, | |
2064 | ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook, | |
2065 | ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block, | |
2066 | ieee_set_section_contents, ieee_write_object_contents, | |
2067 | ieee_make_empty_symbol): Make static. | |
2068 | (ieee_archive_p): Correct comments regarding bfd_read. | |
2069 | (ieee_object_p): Similarly. | |
2070 | (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr, | |
2071 | output_ptr_end, input_ptr_start, input_ptr, input_ptr_end, | |
2072 | input_bfd, output_bfd, output_buffer. | |
2073 | (do_as_repeat): Write out ieee_set_current_pc_enum value as for | |
2074 | do_with_relocs, ie. as a symbol for relocatable files. | |
2075 | (ieee_vec): Add comments showing functions referenced by macros. | |
2076 | ||
2077 | 2001-08-14 Nick Clifton <[email protected]> | |
2078 | ||
2079 | * aout-tic30.c: Add missing prototypes. Fix formatting. | |
2080 | * aout-ns32k.c: Add missing prototypes. Fix formatting. | |
2081 | * peXXigen.c: Add missining prototypes. Fix formatting. | |
2082 | * aout-adobe.c: Add missining prototypes. Fix formatting. | |
2083 | ||
2084 | 2001-08-13 Nick Clifton <[email protected]> | |
2085 | ||
2086 | * elf32-v850.c: Add missing function prototypes. | |
2087 | Fix some formatting. | |
2088 | ||
2089 | * cpu-v850.c: Add missing function prototype. | |
2090 | Fix some formatting. | |
2091 | ||
2092 | 2001-08-11 Nick Clifton <[email protected]> | |
2093 | ||
2094 | * elf-bfd.h (struct elf_backend_data): Add new fields | |
2095 | 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'. | |
2096 | (bfd_elf_sprintf_vma): Rename function prototype to | |
2097 | '_bfd_elf_sprintf_vma'. | |
2098 | (bfd_elf_fprintf_vma): Rename function prototype to | |
2099 | '_bfd_elf_fprintf_vma'. | |
2100 | * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma | |
2101 | directly, instead indirect via the elf_backend_data structure. | |
2102 | (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly, | |
2103 | instead indirect via the elf_backend_data structure. | |
2104 | * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma. | |
2105 | (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma. | |
2106 | * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not | |
2107 | already defined. | |
2108 | (elf_backend_fprintf_vma): Initialise if not already defined. | |
2109 | (struct elf_backend_data): Initialise the | |
2110 | elf_backend_sprintf_vma and elf_backend_fprintf_vma fields. | |
2111 | ||
2112 | 2001-08-10 Andreas Jaeger <[email protected]> | |
2113 | ||
2114 | * elf64-sparc.c: Add missing prototypes. | |
2115 | * elf32-cris.c: Likewise. | |
2116 | * elf32-i370.c: Likewise. | |
2117 | * elf64-hppa.c: Likewise. | |
2118 | * elf64-s390.c: Likewise. | |
2119 | ||
2120 | 2001-08-10 Andreas Jaeger <[email protected]> | |
2121 | ||
2122 | * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static. | |
2123 | Add prototypes where needed. | |
2124 | ||
2125 | 2001-08-10 H.J. Lu <[email protected]> | |
2126 | ||
2127 | * bfd.c (bfd_sprintf_vma): Fix a typo in the last change. | |
2128 | (bfd_fprintf_vma): Likewise. | |
2129 | ||
2130 | 2001-08-10 H.J. Lu <[email protected]> | |
2131 | ||
2132 | * bfd.c (bfd_sprintf_vma): Don't return void. | |
2133 | (bfd_fprintf_vma): Likewise. | |
2134 | ||
2135 | 2001-08-10 Andreas Jaeger <[email protected]> | |
2136 | ||
2137 | * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes | |
2138 | to build warnings. | |
2139 | * configure: Regenerate. | |
2140 | ||
2141 | 2001-08-10 Alan Modra <[email protected]> | |
2142 | ||
2143 | * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet | |
2144 | warning if not BFD64. Add braces so emacs auto format works. | |
2145 | (bfd_elf_fprintf_vma): Likewise. | |
2146 | ||
2147 | * libxcoff.h (struct xcoff_backend_data_rec): Constify src param | |
2148 | of _xcoff_swap_ld*. | |
2149 | * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external | |
2150 | param to agree with libxcoff.h. | |
2151 | (xcoff_swap_ldhdr_out): Likewise. | |
2152 | (xcoff_swap_ldsym_in): Likewise. | |
2153 | (xcoff_swap_ldsym_out): Likewise. | |
2154 | (xcoff_swap_ldrel_in): Likewise. | |
2155 | (xcoff_swap_ldrel_out): Likewise. | |
2156 | (xcoff_create_csect_from_smclas): Likewise. | |
2157 | * coff64-rs6000.c: Add missing prototypes. | |
2158 | (xcoff64_swap_ldhdr_in): Modify type of external param to agree | |
2159 | with libxcoff.h. | |
2160 | (xcoff64_swap_ldhdr_out): Likewise. | |
2161 | (xcoff64_swap_ldsym_in): Likewise. | |
2162 | (xcoff64_swap_ldsym_out): Likewise. | |
2163 | (xcoff64_swap_ldrel_in): Likewise. | |
2164 | (xcoff64_swap_ldrel_out): Likewise. | |
2165 | (xcoff64_ppc_relocate_section): Make static. | |
2166 | (xcoff64_slurp_armap): Likewise. | |
2167 | (xcoff64_archive_p): Likewise. | |
2168 | (xcoff64_openr_next_archived_file): Likewise. | |
2169 | (xcoff64_sizeof_headers): Likewise. | |
2170 | (xcoff64_is_lineno_count_overflow): Likewise. | |
2171 | (xcoff64_is_reloc_count_overflow): Likewise. | |
2172 | (xcoff64_loader_symbol_offset): Likewise. | |
2173 | (xcoff64_loader_reloc_offset): Likewise. | |
2174 | * elf64-gen.c: Add missing prototypes. | |
2175 | ||
2176 | 2001-08-09 H.J. Lu <[email protected]> | |
2177 | ||
2178 | * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64. | |
2179 | (bfd_elf_fprintf_vma): Likewise. | |
2180 | ||
2181 | 2001-08-09 H.J. Lu <[email protected]> | |
2182 | ||
2183 | * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved | |
2184 | to ... | |
2185 | * elf-bfd.h: Here. | |
2186 | * bfd-in2.h: Regenerated. | |
2187 | ||
2188 | 2001-08-09 H.J. Lu <[email protected]> | |
2189 | ||
2190 | * bfd-in.h (bfd_sprintf_vma): New prototype. | |
2191 | (bfd_fprintf_vma): Likewise. | |
2192 | (bfd_elf_sprintf_vma): Likewise. | |
2193 | (bfd_elf_fprintf_vma): Likewise. | |
2194 | (bfd_printf_vma): New. Defined with bfd_fprintf_vma. | |
2195 | * bfd-in2.h: Regenerated. | |
2196 | ||
2197 | * bfd.c (bfd_sprintf_vma): New. Defined. | |
2198 | (bfd_fprintf_vma): Likewise. | |
2199 | ||
2200 | * elf.c (bfd_elf_sprintf_vma): New. Defined. | |
2201 | (bfd_elf_fprintf_vma): Likewise. | |
2202 | ||
2203 | 2001-08-09 Alan Modra <[email protected]> | |
2204 | ||
2205 | * coff-rs6000.c: Add missing prototypes. | |
2206 | (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow, | |
2207 | xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset, | |
2208 | xcoff_loader_reloc_offset): Make static. | |
2209 | * dwarf1.c: Add missing prototypes. | |
2210 | * dwarf2.c: Add missing prototypes. | |
2211 | (struct abbrev_info): Move definition. | |
2212 | (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise. | |
2213 | * elf.c: Add missing prototypes. | |
2214 | * elf32-gen.c: Likewise. | |
2215 | * elf32-i386.c: Likewise. | |
2216 | * elf32-ppc.c: Likewise. | |
2217 | (ppc_elf_sort_rela): Use PTR instead of "void *". | |
2218 | * elflink.h: Add missing prototypes. Formatting fixes. | |
2219 | * merge.c: Add missing prototypes. | |
2220 | (last4_eq): Use PTR instead of "void *". | |
2221 | (last_eq): Likewise. | |
2222 | * syms.c: Add missing prototypes. | |
2223 | ||
2224 | 2001-08-09 Nick Clifton <[email protected]> | |
2225 | ||
2226 | * bfd.c: Fix formatting. | |
2227 | * bfd-in2.h: Regenerate. | |
2228 | ||
2229 | 2001-08-09 Nick Clifton <[email protected]> | |
2230 | ||
2231 | * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to | |
2232 | true (this target uses REL relocations) and 'pcrel_offset' to | |
2233 | false (the PC is implied, not stored in the offset). | |
2234 | ||
2235 | 2001-08-08 Alan Modra <[email protected]> | |
2236 | ||
2237 | 1999-10-19 Linus Nordberg <[email protected]> | |
2238 | * elf-bfd.h (struct elf_backend_data): Add want_got_sym. | |
2239 | * elfxx-target.h (elf_backend_want_got_sym): Define. | |
2240 | (elfNN_bed): Add elf_backend_want_got_sym. | |
2241 | * elflink.c (_bfd_elf_create_got_section): Define | |
2242 | _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym. | |
2243 | ||
2244 | 2001-08-08 Alexandre Oliva <[email protected]> | |
2245 | ||
2246 | * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms. | |
2247 | (find_rela_addend): New function. | |
2248 | (parse_comp_unit): Call it to find the abbrev offset addend. | |
2249 | (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new | |
2250 | members of dwarf2_debug as debugging information is read. | |
2251 | ||
2252 | 2001-08-07 Nick Clifton <[email protected]> | |
2253 | ||
2254 | * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff | |
2255 | targets as well as sh-pe. | |
2256 | ||
2257 | 2001-08-03 Ben Harris <[email protected]> | |
2258 | ||
2259 | * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of | |
2260 | reloc from start of section when computing value for R_ARM_REL32 | |
2261 | reloc. | |
2262 | ||
2263 | 2001-08-03 Alan Modra <[email protected]> | |
2264 | ||
2265 | From H.J. Lu <[email protected]> | |
2266 | * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't | |
2267 | keep relocs for undefined syms if there are no dynamic sections in | |
2268 | executable. | |
2269 | * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise. | |
2270 | ||
2271 | 2001-08-02 Paul Sokolovsky <[email protected]> | |
2272 | ||
2273 | * cofflink.c (coff_link_check_ar_symbols): also search for | |
2274 | __imp__symbol as well as _symbol. | |
2275 | * linker.c (_bfd_generic_link_add_archive_symbols): also | |
2276 | search for __imp__symbol as well as _symbol. | |
2277 | ||
2278 | 2001-08-01 Adam Nemet <[email protected]> | |
2279 | ||
2280 | * elf.c (elf_sort_sections): Return zero only as the last step. | |
2281 | ||
2282 | 2001-08-01 Nick Clifton <[email protected]> | |
2283 | ||
2284 | * config.bfd (arm-vxworks): Change name of define from VXWORKS to | |
2285 | ARM_COFF_BUGFIX. | |
2286 | (arm-epoc-pe): Define ARM_COFF_BUGFIX. | |
2287 | coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with | |
2288 | ARM_COFF_BUGFIX. | |
2289 | ||
2290 | 2001-07-30 Rainer Orth <[email protected]> | |
2291 | ||
2292 | * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type | |
2293 | to match corresponding bfd_coff_backend data member. | |
2294 | ||
2295 | 2001-07-24 Alan Modra <[email protected]> | |
2296 | ||
2297 | * Makefile.am: Update dependencies with "make dep-am". | |
2298 | * Makefile.in: Regenerate | |
2299 | ||
2300 | 2001-07-15 H.J. Lu <[email protected]> | |
2301 | ||
2302 | * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp. | |
2303 | (po/BLD-POTFILES.in): Use tmp.bld instead of tmp. | |
2304 | * Makefile.in: Regenerate. | |
2305 | ||
2306 | 2001-07-11 H.J. Lu <[email protected]> | |
2307 | ||
2308 | * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD | |
2309 | flags when creating the reloc section if the ALLOC flag in the | |
2310 | source section is set. | |
2311 | ||
2312 | 2001-07-11 Steve Ellcey <[email protected]> | |
2313 | ||
2314 | * reloc.c (bfd_reloc_code_type): Add IA64 relocs | |
2315 | BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB | |
2316 | * bfd-in2.h: Regenerate. | |
2317 | * libbfd.h: Regenerate. | |
2318 | * elfxx-ia64.c (ia64_howto_table): Define how to handle | |
2319 | new relocations. | |
2320 | (elfNN_ia64_reloc_type_lookup): Handle new relocations. | |
2321 | (elfNN_ia64_check_relocs): Likewise. | |
2322 | (elfNN_ia64_install_value): Likewise. | |
2323 | (elfNN_ia64_relocate_section): Likewise. | |
2324 | ||
2325 | 2001-07-11 Jakub Jelinek <[email protected]> | |
2326 | ||
2327 | * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for | |
2328 | R_SPARC_UA64. | |
2329 | (elf32_sparc_check_relocs): Likewise. | |
2330 | Only create .rela section for alloced sections in shared libraries. | |
2331 | (elf32_sparc_relocate_section): Likewise. | |
2332 | Remove redundant check. | |
2333 | Optimize unaligned reloc usage. | |
2334 | * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant | |
2335 | check. | |
2336 | ||
2337 | 2001-07-11 H.J. Lu <[email protected]> | |
2338 | ||
2339 | * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same | |
2340 | ALLOC|LOAD flags as the source section for debugging sections | |
2341 | when creating the reloc section. | |
2342 | ||
2343 | 2001-07-05 Jim Wilson <[email protected]> | |
2344 | ||
2345 | * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use | |
2346 | the section of the bigger symbol. | |
2347 | ||
2348 | * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM. | |
2349 | ||
2350 | 2001-07-05 Nick Clifton <[email protected]> | |
2351 | ||
2352 | * peicode.h (coff_swap_scnhdr_in): For sections containing | |
2353 | uninitialised data, only set their size to s_paddr if this does | |
2354 | not reset their size to zero. MS's latest compilers will set | |
2355 | s_paddr to zero. | |
2356 | ||
2357 | 2001-07-04 H.J. Lu <[email protected]> | |
2358 | ||
2359 | * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): | |
2360 | Handle bfd_mach_mips4400, bfd_mach_mips4600 and | |
2361 | bfd_mach_mips5000. | |
2362 | ||
2363 | 2001-07-03 Mark Elbrecht <[email protected]> | |
2364 | ||
2365 | * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets. | |
2366 | ||
2367 | * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from | |
2368 | sections being discarded. | |
2369 | ||
2370 | 2001-06-30 Alan Modra <[email protected]> | |
2371 | ||
2372 | * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly | |
2373 | instead of _bfd_elfcore_section_from_phdr. | |
2374 | * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove. | |
2375 | * elf.c (_bfd_elfcore_section_from_phdr): Remove. | |
2376 | (_bfd_elfcore_make_pseudosection): Expedite tail-call. | |
2377 | (elfcore_grok_prstatus): Likewise. | |
2378 | (elfcore_grok_lwpstatus): Likewise. | |
2379 | (bfd_get_elf_phdr_upper_bound): Likewise. | |
2380 | (elfcore_make_note_pseudosection): Formatting. | |
2381 | (_bfd_elfcore_strndup): Formatting. | |
2382 | * elf32-mips.c (mips_elf_sym_is_global): Formatting. | |
2383 | (_bfd_elf32_mips_grok_prstatus): Expedite tail-call. | |
2384 | ||
2385 | 2001-06-29 Daniel Jacobowitz <[email protected]> | |
2386 | ||
2387 | * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection | |
2388 | and _bfd_elfcore_strndup. | |
2389 | (struct elf_backend_data): Add elf_backend_grok_prstatus | |
2390 | and elf_backend_grok_psinfo. | |
2391 | * elf.c (_bfd_elfcore_make_pseudosection): New function. | |
2392 | (elfcore_grok_prstatus): Use it. | |
2393 | (elfcore_make_note_pseudosection): Likewise. | |
2394 | (elfcore_strndup): Rename to... | |
2395 | (_bfd_elfcore_strndup): Here, and make global. | |
2396 | (elfcore_grok_psinfo): Use _bfd_elfcore_strndup. | |
2397 | (elfcore_grok_note): Call elf_backend_grok_prstatus | |
2398 | and elf_backend_grok_psinfo if available. | |
2399 | * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function. | |
2400 | (_bfd_elf32_mips_grok_psinfo): New function. | |
2401 | (elf_backend_grok_prstatus): Define. | |
2402 | (elf_backend_grok_psinfo): Define. | |
2403 | * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL. | |
2404 | (elf_backend_grok_psinfo): Likewise. | |
2405 | (elfNN_bed): Include elf_backend_grok_prstatus and | |
2406 | elf_backend_grok_psinfo. | |
2407 | ||
2408 | 2001-06-29 H.J. Lu <[email protected]> | |
2409 | ||
2410 | * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if | |
2411 | hplink->sgot is NULL before filling GOT. Check if hplink->splt | |
2412 | is NULL before filling PLT. | |
2413 | ||
2414 | 2001-06-29 Alan Modra <[email protected]> | |
2415 | ||
2416 | * elflink.h (elf_link_output_extsym): Revert 1999-04-10. | |
2417 | ||
2418 | 2001-06-27 Alan Modra <[email protected]> | |
2419 | ||
2420 | * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic | |
2421 | here.. | |
2422 | (elf32_hppa_adjust_dynamic_symbol): ..nor here.. | |
2423 | (allocate_plt_and_got_and_discard_relocs): .. instead do so here | |
2424 | after gc has run. | |
2425 | ||
2426 | * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete. | |
2427 | (IS_ABSOLUTE_RELOC): Define. | |
2428 | (elf32_hppa_link_hash_entry): Always include reloc_entries field. | |
2429 | (hppa_link_hash_newfunc): Always init it. | |
2430 | (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to | |
2431 | create COPY relocs only when the reloc is in a read-only section. | |
2432 | Instead, allocate space for a dynamic reloc to reference the | |
2433 | library symbol directly. Keep track of space we allocate using | |
2434 | relocs_entries. | |
2435 | (hppa_discard_copies): Delete, and move code to.. | |
2436 | (allocate_plt_and_got): ..here. Rename to | |
2437 | allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic | |
2438 | relocs for non-shared link. | |
2439 | (elf32_hppa_size_dynamic_sections): Update calls to above. | |
2440 | (elf32_hppa_relocate_section): Write out the dynamic relocs used | |
2441 | in lieu of COPY relocs. | |
2442 | ||
2443 | * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic | |
2444 | here.. | |
2445 | (elf_i386_adjust_dynamic_symbol): ..nor here.. | |
2446 | (allocate_plt_and_got_and_discard_relocs): .. instead do so here | |
2447 | after gc has run. | |
2448 | (elf_i386_size_dynamic_sections): Fix a comment. | |
2449 | (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code | |
2450 | involved in writing reloc out. | |
2451 | ||
2452 | 2001-06-25 Alan Modra <[email protected]> | |
2453 | ||
2454 | * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>): | |
2455 | Ensure syms are dynamic if we might be emitting a reloc. | |
2456 | (allocate_plt_and_got_and_discard_relocs): Don't discard relocs | |
2457 | for undefweak or undefined syms.. | |
2458 | (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit. | |
2459 | ||
2460 | * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard | |
2461 | relocs without ELF_LINK_HASH_DEF_DYNAMIC set. | |
2462 | (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove | |
2463 | redundant bfd_link_hash_defined, bfd_link_hash_defweak test. | |
2464 | ||
2465 | 2001-06-24 H.J. Lu <[email protected]> | |
2466 | ||
2467 | * cpu-i960.c (scan_960_mach): Don't modify const char *. Use | |
2468 | strncasecmp/strcasecmp instead of strncmp/strcmp. | |
2469 | ||
2470 | 2001-06-23 H.J. Lu <[email protected]> | |
2471 | ||
2472 | * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>): | |
2473 | Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined | |
2474 | in the regular object file and treat the weak definition as | |
2475 | the normal one. | |
2476 | ||
2477 | 2001-06-23 Alan Modra <[email protected]> | |
2478 | ||
2479 | * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten | |
2480 | unresolved_reloc test to exclude cases where we use "relocation" | |
2481 | before setting it to point into the .got. Reinstate fudge for | |
2482 | unresolved relocs in debugging sections. | |
2483 | ||
2484 | * elf32-i386.c (elf_i386_relocate_section): Replace ugly | |
2485 | complicated tests for unresolvable relocs with a simple direct | |
2486 | scheme using "unresolved_reloc" var. | |
2487 | ||
2488 | * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to | |
2489 | elf_i386_dyn_relocs. Update comment. | |
2490 | (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to | |
2491 | dyn_relocs. | |
2492 | (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change | |
2493 | others to aborts. | |
2494 | (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with | |
2495 | abort. | |
2496 | (elf_i386_size_dynamic_sections): Likewise. | |
2497 | (elf_i386_finish_dynamic_symbol): Likewise. | |
2498 | (elf_i386_finish_dynamic_sections): Likewise. | |
2499 | (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error | |
2500 | handling code. | |
2501 | ||
2502 | Avoid creating COPY relocs if possible. | |
2503 | * elf32-i386.c (elf_i386_check_relocs): Tweak condition under | |
2504 | which .got created. Mark symbols used by R_386_32 and R_386_PC32 | |
2505 | relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the | |
2506 | reloc is in a read-only section. Instead, allocate space for a | |
2507 | dynamic reloc to reference the library symbol directly. Keep | |
2508 | track of space we allocate using pcrel_relocs_copied. | |
2509 | (discard_copies): Delete, and move code to .. | |
2510 | (allocate_plt_and_got): ..here. Rename to | |
2511 | allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic | |
2512 | relocs for non-shared link. | |
2513 | (elf_i386_size_dynamic_sections): Update calls to above functions. | |
2514 | (elf_i386_relocate_section): Write out the dynamic relocs. Add | |
2515 | more ugly logic to avoid "unresolvable relocation" error. Use | |
2516 | htab shortcut in place of elf_hash_table macro. | |
2517 | (elf_i386_finish_dynamic_sections): Allow that dynamic .got may | |
2518 | not always be created now. | |
2519 | ||
2520 | 2001-06-20 Bo Thorsen <[email protected]> | |
2521 | ||
2522 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of | |
2523 | shared libraries. | |
2524 | ||
2525 | 2001-06-18 Thiemo Seufer <[email protected]> | |
2526 | ||
2527 | * configure.host (mips64-*-linux): Reformat. | |
2528 | ||
2529 | 2001-06-21 Alan Modra <[email protected]> | |
2530 | ||
2531 | * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always | |
2532 | allocate local .got space. Use shortcuts from hash table for .got | |
2533 | and .plt rather than comparing section names. | |
2534 | (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than | |
2535 | adjusting index into local_got_refcounts to document what we are | |
2536 | really doing. | |
2537 | (elf32_hppa_relocate_section): Similarly for local_plt_offsets. | |
2538 | Tidy .got and .plt error checking. | |
2539 | ||
2540 | 2001-06-20 Catherine Moore <[email protected]> | |
2541 | ||
2542 | * elf-bfd.h (struct elf_backend_data): | |
2543 | elf_backend_emit_relocs: New field: Function for emitting | |
2544 | relocs. | |
2545 | elf_backend_count_relocs: New field: Function for determining | |
2546 | the number of relocs to be emitted. | |
2547 | * elfxx-target.h: Provide default (NULL) values for | |
2548 | elf_backend_emit_relocs and elf_backend_count_relocs. | |
2549 | * elflink.h (elf_link_size_reloc_section): Make the hash table | |
2550 | big enough to hold the relocs counted by either reloc_count or | |
2551 | o->reloc_count. | |
2552 | (elf_bfd_final_link) emit_relocs: New boolean, set if relocs | |
2553 | should be emitted, either because of a command line option | |
2554 | stored in the info structure or because the target provides a | |
2555 | special reloc emitting function. | |
2556 | If the target provides a reloc counting function use it, | |
2557 | unless performing a relocatable link or emitting all relocs. | |
2558 | Also set the SEC_RELOC flag on any output section which will | |
2559 | contain relocs. | |
2560 | (elf_link_input_bfd): emit_relocs: New boolean, set if relocs | |
2561 | should be emitted, either because of a command line option | |
2562 | stored in the info structure or because the target provides a | |
2563 | special reloc emitting function. | |
2564 | If the target provides a reloc emitting function, use it, | |
2565 | unless performing a relocatable link or emitting all relocs. | |
2566 | ||
2567 | 2001-06-20 H.J. Lu <[email protected]> | |
2568 | ||
2569 | * elf32-i386.c (elf_i386_size_dynamic_sections): Always | |
2570 | allocate local .got space. | |
2571 | ||
2572 | 2001-06-19 Andreas Jaeger <[email protected]> | |
2573 | ||
2574 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of | |
2575 | dynamic symbols. | |
2576 | ||
2577 | 2001-06-18 Hans-Peter Nilsson <[email protected]> | |
2578 | ||
2579 | * elflink.h (struct elf_assign_sym_version_info): Remove member | |
2580 | export_dynamic. All users changed to use info member. | |
2581 | NAME(bfd_elf,size_dynamic_sections)): Remove parameter | |
2582 | export_dynamic, instead use member in parameter info. | |
2583 | * bfd-in.h (bfd_elf32_size_dynamic_sections, | |
2584 | bfd_elf64_size_dynamic_sections): Update prototype. | |
2585 | * bfd-in2.h: Regenerate. | |
2586 | ||
2587 | 2001-06-18 H.J. Lu <[email protected]> | |
2588 | ||
2589 | * elflink.h (elf_info_failed): Add a new field, verdefs. | |
2590 | (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to | |
2591 | elf_export_symbol. | |
2592 | (elf_export_symbol): Check eif->verdefs to decide if a symbol | |
2593 | should be exported. | |
2594 | ||
2595 | 2001-06-17 H.J. Lu <[email protected]> | |
2596 | ||
2597 | * elf32-mips.c (mips_elf_link_hash_entry): Add a new field, | |
2598 | readonly_reloc, to record if a relocation in the .rel.dyn | |
2599 | section is against a read-only section. | |
2600 | (mips_elf_link_hash_newfunc): Initialize the readonly_reloc | |
2601 | field to false. | |
2602 | (_bfd_mips_elf_check_relocs): Record if there is a relocation | |
2603 | in the .rel.dyn section against a read-only section by setting | |
2604 | DF_TEXTREL or readonly_reloc. | |
2605 | (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if | |
2606 | it is true. | |
2607 | (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if | |
2608 | there is a relocation in the .rel.dyn section against a | |
2609 | read-only section. | |
2610 | (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if | |
2611 | DF_TEXTREL is set. | |
2612 | ||
2613 | 2001-06-12 Nick Clifton <[email protected]> | |
2614 | ||
2615 | * coffcode.h (styp_flags_to_sec_flags): Change to a boolean | |
2616 | function. Move flagword result into parameter list. Remove | |
2617 | comment about setting bfd_error_handler to intercept failure | |
2618 | results. | |
2619 | * coffgen.c (make_a_section_from_file): Examine result of | |
2620 | calling bfd_coff_styp_to_sec_flags and pass a failure back to | |
2621 | caller. | |
2622 | * ecoff.h (styp_flags_to_sec_flags): Change to a boolean | |
2623 | function. Move flagword result into parameter list. | |
2624 | * libcoff.h: Regenerate. | |
2625 | * libecoff.h: Regenerate. | |
2626 | ||
2627 | 2001-06-13 Nick Clifton <[email protected]> | |
2628 | ||
2629 | * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data | |
2630 | section is going to follow it. | |
2631 | ||
2632 | 2001-06-12 Catherine Moore <[email protected]> | |
2633 | ||
2634 | * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN | |
2635 | with the file_align entry from elf_backend_data. | |
2636 | (elf_gc_smash_unused_vtentry_relocs): Likewise. | |
2637 | (elf_gc_record_vtentry): Likewise. | |
2638 | ||
2639 | 2001-06-10 Alan Modra <[email protected]> | |
2640 | ||
2641 | * elflink.h: Whitespace changes. | |
2642 | (elf_link_read_relocs_from_section): Use "unsigned int" iterator | |
2643 | rather than "unsigned char". | |
2644 | (elf_link_output_relocs): Likewise. | |
2645 | (elf_link_input_bfd): Likewise. | |
2646 | (elf_reloc_link_order): LIkewise. | |
2647 | * elf.c: s/CONST/const/. Whitespace changes. | |
2648 | * elf32-mips.c: Formatting fix. | |
2649 | ||
2650 | * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h. | |
2651 | * Makefile.in: Regenerate. | |
2652 | * po/Make-in: Remove trailing tab. | |
2653 | ||
2654 | 2001-06-09 Philip Blundell <[email protected]> | |
2655 | ||
2656 | * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last | |
2657 | change. | |
2658 | (elf32_arm_plt_entry): Likewise. | |
2659 | ||
2660 | 2001-06-08 H.J. Lu <[email protected]> | |
2661 | ||
2662 | * elf.c (swap_out_syms): Keep names for global section symbols. | |
2663 | ||
2664 | 2001-06-07 H.J. Lu <[email protected]> | |
2665 | ||
2666 | * config.bfd: Put back ecoff for Linux/mips. Firmwares on some | |
2667 | MIPS-based machines need it. | |
2668 | ||
2669 | 2001-06-07 H.J. Lu <[email protected]> | |
2670 | ||
2671 | * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab | |
2672 | for SGI only. | |
2673 | ||
2674 | * config.bfd: Remove ecoff from Linux/mips. | |
2675 | ||
2676 | 2001-06-07 Andreas Jaeger <[email protected]> | |
2677 | ||
2678 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an | |
2679 | assertion. | |
2680 | (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an | |
2681 | alignment of 8 for .rela sections; handle further relocations. | |
2682 | ||
2683 | 2001-06-06 Christian Groessler <[email protected]> | |
2684 | ||
2685 | * coff-z8k.c: Fix formatting. | |
2686 | Fix howtos: howto->size was always 1. | |
2687 | ||
2688 | 2001-06-05 Thiemo Seufer <[email protected]> | |
2689 | ||
2690 | * configure.host (mips64*-*-linux*): Define. | |
2691 | ||
2692 | 2001-06-05 Alan Modra <[email protected]> | |
2693 | ||
2694 | * elf32-i386.c (elf_i386_discard_copies): Rename to | |
2695 | discard_copies, and use elf_link_hash_entry arg rather than | |
2696 | elf_i386_link_hash_entry. | |
2697 | (elf_i386_link_hash_traverse): Delete. | |
2698 | (elf_i386_size_dynamic_sections): Adjust call to discard_copies. | |
2699 | Tidy sizing of dynamic sections. | |
2700 | (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count | |
2701 | possible .plt entries. | |
2702 | (elf_i386_gc_sweep_hook): Likewise. | |
2703 | (elf_i386_adjust_dynamic_symbol): Discard .plt entries for | |
2704 | everything with plt.refcount <= 0. | |
2705 | ||
2706 | * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and | |
2707 | .relgot space here. | |
2708 | (elf_i386_gc_sweep_hook): ..and no need to deallocate here.. | |
2709 | (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and | |
2710 | .rel.plt here.. | |
2711 | (allocate_plt_and_got): ..instead do it all here. New function. | |
2712 | (elf_i386_size_dynamic_sections): Allocate local .got space and | |
2713 | call allocate_plt_and_got. No need to zap .relgot if not dynamic. | |
2714 | (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link | |
2715 | rather than gc variety). | |
2716 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. | |
2717 | (elf_i386_relocate_section): Use it here and correct handling of | |
2718 | R_386_GOT32. Provide section and offset for "unresolvable | |
2719 | relocation" error message. | |
2720 | (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32. | |
2721 | ||
2722 | * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot, | |
2723 | sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields. | |
2724 | (elf_i386_link_hash_table_create): Init them. | |
2725 | (create_got_section): New function. | |
2726 | (elf_i386_create_dynamic_sections): New function. | |
2727 | (elf_backend_create_dynamic_sections): Set to above. | |
2728 | (elf_i386_check_relocs): Use shortcuts from hash table rather than | |
2729 | calling bfd_get_section_by_name. | |
2730 | (elf_i386_gc_sweep_hook): Likewise. | |
2731 | (elf_i386_adjust_dynamic_symbol): Likewise. | |
2732 | (elf_i386_size_dynamic_sections): Likewise. | |
2733 | (elf_i386_relocate_section): Likewise. | |
2734 | (elf_i386_finish_dynamic_sections): Likewise. | |
2735 | ||
2736 | * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms. | |
2737 | ||
2738 | 2001-06-02 H.J. Lu <[email protected]> | |
2739 | ||
2740 | * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX | |
2741 | and ELFOSABI_HPUX. | |
2742 | * elf64-hppa.c (elf64_hppa_object_p): Likewise. | |
2743 | ||
2744 | 2001-06-02 H.J. Lu <[email protected]> | |
2745 | ||
2746 | * aout-cris.c (MACHTYPE_OK): New. Defined. | |
2747 | ||
2748 | 2001-06-02 Hans-Peter Nilsson <[email protected]> | |
2749 | ||
2750 | * section.c (_bfd_strip_section_from_output): Handle NULL | |
2751 | output_section. | |
2752 | ||
2753 | 2001-06-02 H.J. Lu <[email protected]> | |
2754 | ||
2755 | * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add | |
2756 | rs6000coff64_vec only if BFD64 is defined. | |
2757 | (powerpc64-*-aix*): Enable only if BFD64 is defined. | |
2758 | ||
2759 | 2001-06-02 H.J. Lu <[email protected]> | |
2760 | ||
2761 | * coff-ia64.c (ia64coff_object_p): Rewrite with | |
2762 | external_PEI_DOS_hdr and external_PEI_IMAGE_hdr. | |
2763 | ||
2764 | 2001-06-01 Andreas Jaeger <[email protected]> | |
2765 | ||
2766 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8 | |
2767 | relocation, small reformatting. | |
2768 | ||
2769 | 2001-05-29 Andreas Jaeger <[email protected]> | |
2770 | ||
2771 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64. | |
2772 | (elf64_x86_64_relocate_section): Likewise. | |
2773 | ||
2774 | 2001-05-30 Alan Modra <[email protected]> | |
2775 | ||
2776 | * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for | |
2777 | millicode. Don't allocate .got and .rela.got space here.. | |
2778 | (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here.. | |
2779 | (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and | |
2780 | .rela.plt here.. | |
2781 | (hppa_handle_PIC_calls): ..nor here.. | |
2782 | (allocate_plt_and_got): ..instead do it all here. New function. | |
2783 | (elf32_hppa_size_dynamic_sections): Allocate local .got space and | |
2784 | call allocate_plt_and_got. No need to zap .got if not dynamic. | |
2785 | (elf32_hppa_final_link): Call regular bfd_final_link instead of | |
2786 | gc_common_final_link. | |
2787 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. | |
2788 | (elf32_hppa_relocate_section): Use it here. | |
2789 | (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of | |
2790 | dynamic_sections_created. | |
2791 | (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym. | |
2792 | ||
2793 | 2001-05-28 Andreas Jaeger <[email protected]> | |
2794 | ||
2795 | * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the | |
2796 | generic version since we want a hashsize of 4. | |
2797 | (elf_backend_size_info): Likewise. | |
2798 | ||
2799 | 2001-05-28 Thiemo Seufer <[email protected]> | |
2800 | ||
2801 | * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of | |
2802 | a zeroing loop. | |
2803 | (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly. | |
2804 | (elf_link_input_bfd): Likewise. | |
2805 | (elf_reloc_link_order): Likewise. | |
2806 | (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64 | |
2807 | relocations correctly. | |
2808 | ||
2809 | 2001-05-28 Nicolas Pitre <[email protected]> | |
2810 | ||
2811 | * elf32-arm.h: fix PLT generation for big endian ARM | |
2812 | ||
2813 | 2001-05-28 Alan Modra <[email protected]> | |
2814 | ||
2815 | * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries | |
2816 | for symbols forced local that need plabels. | |
2817 | (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in | |
2818 | .plt.rela for local syms if non-shared. | |
2819 | (hppa_build_one_stub): Mask lsb of plt.offset. | |
2820 | (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set. | |
2821 | (clobber_millicode_symbols): Correct comment. | |
2822 | (elf32_hppa_relocate_section): Likewise. | |
2823 | (elf32_hppa_finish_dynamic_symbol): Likewise. | |
2824 | ||
2825 | 2001-05-28 Jeff Sturm <[email protected]> | |
2826 | ||
2827 | * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64. | |
2828 | * bfd-in2.h: Regenerate. | |
2829 | * libbfd.h: Regenerate. | |
2830 | * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32 | |
2831 | and BFD_RELOC_SPARC_UA64 mapping | |
2832 | * elf64-sparc.c: Likewise. | |
2833 | ||
2834 | 2001-05-25 H.J. Lu <[email protected]> | |
2835 | ||
2836 | * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo. | |
2837 | (BFD32_BACKENDS_CFILES): Remove coff-pmac.c. | |
2838 | (coff-rs6000.lo): Remove the old dependency. | |
2839 | * Makefile.in: Rebuild. | |
2840 | ||
2841 | * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with | |
2842 | coff-rs6000.lo. | |
2843 | ||
2844 | 2001-05-25 H.J. Lu <[email protected]> | |
2845 | ||
2846 | * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p, | |
2847 | rs6000coff_core_file_matches_executable_p, | |
2848 | rs6000coff_core_file_failing_command and | |
2849 | rs6000coff_core_file_failing_signal only if AIX_CORE is | |
2850 | defined. | |
2851 | (pmac_xcoff_vec): Likewise. | |
2852 | * coff64-rs6000.c (rs6000coff64_vec): Likewise. | |
2853 | ||
2854 | 2001-05-25 Timothy Wall <[email protected]> | |
2855 | ||
2856 | * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry | |
2857 | for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs. | |
2858 | ||
2859 | 2001-05-25 H.J. Lu <[email protected]> | |
2860 | ||
2861 | * bfd-in2.h: Regenerated. | |
2862 | * libcoff.h: Likewise. | |
2863 | ||
2864 | 2001-05-25 Alan Modra <[email protected]> | |
2865 | ||
2866 | * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow | |
2867 | undefined millicode syms in shared libs. | |
2868 | (hppa_build_one_stub): Turn BFD_ASSERTs into aborts. | |
2869 | (elf32_hppa_check_relocs): Likewise. | |
2870 | (elf32_hppa_adjust_dynamic_symbol): Likewise. | |
2871 | (elf32_hppa_size_dynamic_sections): Likewise. | |
2872 | (elf32_hppa_relocate_section): Likewise. | |
2873 | (elf32_hppa_finish_dynamic_symbol): Likewise. | |
2874 | (elf32_hppa_finish_dynamic_sections): Likewise. | |
2875 | ||
2876 | 2001-05-24 Tom Rix <[email protected]> | |
2877 | ||
2878 | * Makefile.am coff-pmac bfd now defined in coff-rs6000.c | |
2879 | xcoff-target.h not used to define rs6000 or ppc bfd. | |
2880 | * Makefile.in same | |
2881 | ||
2882 | * bfd-in.h : (struct lineno_cache_entry) promote element "offset" | |
2883 | to 64 bit. | |
2884 | ||
2885 | * coff-rs6000.c : Many changes for 64 bit support. Move common | |
2886 | 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec | |
2887 | and pmac_xcoff_vec | |
2888 | ||
2889 | * coff64-rs6000.c : Many changes for 64 bit support. 64 bit | |
2890 | linker now supported. Explictly define the rs6000coff64_vec. | |
2891 | ||
2892 | * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support | |
2893 | (coff_print_aux) same | |
2894 | (coff_write_object_contents) same | |
2895 | (coff_slurp_line_table) same | |
2896 | ||
2897 | * coffgen.c : (coff_fix_symbol_name) formatting | |
2898 | (coff_mangle_symbols) xcoff 64 bit support | |
2899 | (coff_write_symbol) same | |
2900 | (coff_write_alien_symbol) same | |
2901 | (coff_write_native_symbol) same | |
2902 | (coff_write_symbols) same | |
2903 | (coff_get_symbol_info) same | |
2904 | (bfd_coff_get_syment) same | |
2905 | (coff_print_symbol) same | |
2906 | ||
2907 | * config.bfd : add powerpc64-*-aix* target | |
2908 | ||
2909 | * libcoff-in.h : formatting | |
2910 | ||
2911 | * libcoff.h : move xcoff extern declarations to libxcoff.h | |
2912 | ||
2913 | * libxcoff.h : New file | |
2914 | ||
2915 | * xcofflink.c : Many changes for xcoff64 support. Move common | |
2916 | structures to include/coff/xcoff.h. Move specific structure to | |
2917 | backends coff-rs6000.c and coff64-rs6000.c. Use new backend | |
2918 | functions, defined in libxcoff.h, to isolate 32/64 dependencies. | |
2919 | ||
2920 | (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for | |
2921 | aix4.2+ -binitfini. | |
2922 | ||
2923 | (xcoff_build_ldsyms) : handle special __rtinit symbol. | |
2924 | ||
2925 | 2001-05-23 Alexandre Oliva <[email protected]> | |
2926 | ||
2927 | * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo | |
2928 | s/ENTIRES/ENTRIES/. | |
2929 | ||
2930 | 2001-05-23 Thiemo Seufer <[email protected]> | |
2931 | ||
2932 | * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations. | |
2933 | * libbfd.h: Regenerate. | |
2934 | * bfd-in2.h: Regenerate. | |
2935 | ||
2936 | * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support. | |
2937 | * archures.c (bfd_mach_mips12000): Define. | |
2938 | * cpu-mips.c (arch_info_struct): Add MIPS r12k support. | |
2939 | * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k | |
2940 | support. | |
2941 | (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef. | |
2942 | * bfd-in2.h: Regenerate. | |
2943 | * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol. | |
2944 | ||
2945 | 2001-05-23 kaz Kojima <[email protected]> | |
2946 | ||
2947 | * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry, | |
2948 | elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be, | |
2949 | elf_sh_pic_plt_entry): New PLT code, that does not use r2, since | |
2950 | that is used by GCC. | |
2951 | ||
2952 | 2001-05-23 Nick Clifton <[email protected]> | |
2953 | ||
2954 | * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number | |
2955 | of entries in a structured section. | |
2956 | * elf.c: Use new macro. | |
2957 | * elf32-i386.c: Use new macro. | |
2958 | * elf32-mips.c: Use new macro. | |
2959 | * elf64-alpha.c: Use new macro. | |
2960 | * elf64-sparc.c: Use new macro. | |
2961 | * elfcode.h: Use new macro. | |
2962 | * elflink.h: Use new macro. | |
2963 | ||
2964 | 2001-05-23 Nick Clifton <[email protected]> | |
2965 | ||
2966 | * bfdint.texi: Replace -oformat with --oformat. | |
2967 | ||
2968 | 2001-05-21 Andreas Jaeger <[email protected]> | |
2969 | ||
2970 | * dwarf2.c (decode_line_info): Fix error message. | |
2971 | (read_abbrevs): Fix test for offset as suggested by Alan Modra and | |
2972 | adjust error message. | |
2973 | ||
2974 | 2001-05-18 H.J. Lu <[email protected]> | |
2975 | ||
2976 | * elflink.h (elf_link_add_object_symbols): Revert the last | |
2977 | change. | |
2978 | ||
2979 | 2001-05-17 Alan Modra <[email protected]> | |
2980 | ||
2981 | * elf32-hppa.c (clobber_millicode_symbols): Temporarily set | |
2982 | ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change. | |
2983 | (hppa_build_one_stub): Add an assert to check plt.offset. | |
2984 | ||
2985 | 2001-05-17 H.J. Lu <[email protected]> | |
2986 | ||
2987 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the | |
2988 | version definition to basename of the output filename. | |
2989 | ||
2990 | 2001-05-17 H.J. Lu <[email protected]> | |
2991 | ||
2992 | * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to | |
2993 | basename of the bfd filename. | |
2994 | ||
2995 | 2001-05-16 Alan Modra <[email protected]> | |
2996 | ||
2997 | * section.c (asection): Add linker_has_input field. | |
2998 | (STD_SECTION): Adjust initialization to suit. | |
2999 | * ecoff.c (bfd_debug_section): Likewise. | |
3000 | * bfd-in2.h: Regenerate. | |
3001 | ||
3002 | 2001-05-15 Alexandre Oliva <[email protected]> | |
3003 | ||
3004 | * elf-m10300.c (mn10300_elf_relax_section): Don't relax | |
3005 | negative 32-bit operands to 16 operands when the operand is | |
3006 | going to be zero-extended by the modified opcode. | |
3007 | ||
3008 | 2001-05-12 Peter Targett <[email protected]> | |
3009 | ||
3010 | * cpu-arc.c (arch_info_struct): Add entry 'base' representing old | |
3011 | name for 'arc5' core versions. | |
3012 | (bfd_arc_arch): Make bfd_mach_arc_6 default. | |
3013 | ||
3014 | * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default | |
3015 | architecture. | |
3016 | (arc_elf_final_write_processing): Make bfd_mach_arc_6 default. | |
3017 | ||
3018 | 2001-05-11 Jakub Jelinek <[email protected]> | |
3019 | ||
3020 | * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind | |
3021 | sections as well. | |
3022 | (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO | |
3023 | to .gnu.linkonce.t.FOO text section. | |
3024 | ||
3025 | 2001-05-11 Jakub Jelinek <[email protected]> | |
3026 | ||
3027 | * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix | |
3028 | fields, change sec into secinfo. | |
3029 | (struct sec_merge_info): Add chain, remove last fields. | |
3030 | (struct sec_merge_sec_info): Add next, sec, psecinfo fields. | |
3031 | (sec_merge_hash_lookup): If lookup could not use a string only | |
3032 | because it has bad alignment, mark the old string for deletion. | |
3033 | (sec_merge_add): Add secinfo argument. Don't compute entry's | |
3034 | position, instead record the section. | |
3035 | (sec_merge_emit): Update for the sec into secinfo change in | |
3036 | struct sec_merge_hash_entry. | |
3037 | (_bfd_merge_section): Only record the section for merging, defer | |
3038 | putting strings into the hash table. | |
3039 | (cmplengthentry, last4_eq, last_eq, record_section, merge_strings, | |
3040 | _bfd_merge_sections): New functions. | |
3041 | (_bfd_merged_section_offset): Update for the sec_merge_hash_entry | |
3042 | changes. | |
3043 | * libbfd-in.h (_bfd_merge_sections): Add prototype. | |
3044 | (_bfd_nolink_bfd_merge_sections): Define. | |
3045 | * libbfd.h: Likewise. | |
3046 | (bfd_generic_merge_sections): Add prototype. | |
3047 | * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections. | |
3048 | (struct bfd_target): Likewise. | |
3049 | * bfd.c (bfd_merge_sections): Define. | |
3050 | * bfd-in2.h: Rebuilt. | |
3051 | * elf.c (_bfd_elf_merge_sections): New function. | |
3052 | * elf-bfd.h (_bfd_elf_merge_sections): Add prototype. | |
3053 | * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define. | |
3054 | * reloc.c (bfd_generic_merge_sections): New function. | |
3055 | * vms.c (vms_bfd_merge_sections): New function. | |
3056 | * aout-adobe.c (aout_32_bfd_merge_sections): Define. | |
3057 | * aout-target.h (MY_bfd_merge_sections): Define. | |
3058 | * aout-tic30.c (MY_bfd_merge_sections): Define. | |
3059 | * binary.c (binary_bfd_merge_sections): Define. | |
3060 | * bout.c (b_out_bfd_merge_sections): Define. | |
3061 | * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define. | |
3062 | * coffcode.c (coff_bfd_merge_sections): Define. | |
3063 | * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define. | |
3064 | * i386msdos.c (msdos_bfd_merge_sections): Define. | |
3065 | * i386os9k.c (os9k_bfd_merge_sections): Define. | |
3066 | * ieee.c (ieee_bfd_merge_sections): Define. | |
3067 | * ihex.c (ihex_bfd_merge_sections): Define. | |
3068 | * nlm-target.h (nlm_bfd_merge_sections): Define. | |
3069 | * oasys.c (oasys_bfd_merge_sections): Define. | |
3070 | * ppcboot.c (ppcboot_bfd_merge_sections): Define. | |
3071 | * som.c (som_bfd_merge_sections): Define. | |
3072 | * srec.c (srec_bfd_merge_sections): Define. | |
3073 | * tekhex.c (tekhex_bfd_merge_sections): Define. | |
3074 | * versados.c (versados_bfd_merge_sections): Define. | |
3075 | * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define. | |
3076 | ||
3077 | 2001-05-11 Nick Clifton <[email protected]> | |
3078 | ||
3079 | * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr' | |
3080 | to be unsigned long, in order to match its use. | |
3081 | ||
3082 | 2001-05-10 H.J. Lu <[email protected]> | |
3083 | ||
3084 | * linker.c (_bfd_generic_link_add_one_symbol): Check loop on | |
3085 | indirect symbols. | |
3086 | ||
3087 | 2001-05-09 H.J. Lu <[email protected]> | |
3088 | ||
3089 | * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate | |
3090 | versymhdr->sh_size bytes for extversym instead of hdr->sh_size. | |
3091 | Remove the unused veriable `dynver'. | |
3092 | ||
3093 | 2001-05-08 Ian Lance Taylor <[email protected]> | |
3094 | ||
3095 | * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is | |
3096 | NULL or is not COFF. | |
3097 | (coff_i386_rtype_to_howto): Don't dump core if output section | |
3098 | owner is not COFF. | |
3099 | ||
3100 | 2001-05-07 Thiemo Seufer <[email protected]> | |
3101 | ||
3102 | * ecoff.c (bfd_debug_section): Fix initialization. | |
3103 | * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it | |
3104 | is always a positive integer. Cast away sign mismatch. | |
3105 | * elf32-mips.c: Fix misleading comment and typo. | |
3106 | (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use | |
3107 | correct data type. | |
3108 | * elflink.c: Fix typo. | |
3109 | (_bfd_elf_create_dynamic_sections): Remove superfluous initialization. | |
3110 | * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch. | |
3111 | ||
3112 | 2001-05-04 Richard Henderson <[email protected]> | |
3113 | ||
3114 | * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true. | |
3115 | ||
3116 | 2001-05-04 Nick Clifton <[email protected]> | |
3117 | ||
3118 | * elf32-arm.h (elf32_arm_final_link_relocate): Set | |
3119 | EF_ARM_HASENTRY if the start address is set. | |
3120 | ||
3121 | 2001-05-03 Nick Clifton <[email protected]> | |
3122 | ||
3123 | * targets.c (_bfd_target_vector_entries): Compute value based on | |
3124 | the size of the _bfd_target_vector and not bfd_target_vector. | |
3125 | ||
3126 | 2001-05-03 H.J. Lu <[email protected]> | |
3127 | ||
3128 | * elfcode.h: Include "libiberty.h". | |
3129 | ||
3130 | * elflink.h (elf_link_add_object_symbols): Set | |
3131 | elf_dt_name (abfd) to basename of the bfd filename. | |
3132 | (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename | |
3133 | of the bfd filename. | |
3134 | ||
3135 | 2001-05-03 Andreas Jaeger <[email protected]> | |
3136 | ||
3137 | * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute. | |
3138 | (elf_generic_info_to_howto_rel): Likewise. | |
3139 | * coff-alpha.c (reloc_nil): Likewise. | |
3140 | (alpha_ecoff_bad_format_hook): Likewise. | |
3141 | (alpha_adjust_reloc_out): Likewise. | |
3142 | (alpha_bfd_reloc_type_lookup): Likewise. | |
3143 | (alpha_convert_external_reloc): Likewise. | |
3144 | * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise. | |
3145 | (elf64_alpha_reloc_bad): Likewise. | |
3146 | (elf64_alpha_reloc_gpdisp): Likewise. | |
3147 | (elf64_alpha_bfd_reloc_type_lookup): Likewise. | |
3148 | (elf64_alpha_info_to_howto): Likewise. | |
3149 | (elf64_alpha_add_symbol_hook): Likewise. | |
3150 | (elf64_alpha_create_got_section): Likewise. | |
3151 | (elf64_alpha_is_local_label_name): Likewise. | |
3152 | (elf64_alpha_merge_ind_symbols): Likewise. | |
3153 | * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise. | |
3154 | (mips_elf64_get_reloc_upper_bound): Likewise. | |
3155 | * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise. | |
3156 | (nlm_alpha_get_public_offset): Likewise. | |
3157 | ||
3158 | 2001-05-02 Johan Rydberg <[email protected]> | |
3159 | ||
3160 | * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain | |
3161 | about overflow in R_OPENRISC_LO_16_IN_INSN and | |
3162 | R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c | |
3163 | ||
3164 | 2001-04-30 H.J. Lu <[email protected]> | |
3165 | ||
3166 | * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1 | |
3167 | only for ELF_LINK_FORCED_LOCAL. | |
3168 | * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise. | |
3169 | * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise. | |
3170 | * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise. | |
3171 | ||
3172 | * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL | |
3173 | if the symbol has hidden or internal visibility. | |
3174 | ||
3175 | 2001-04-30 Alan Modra <[email protected]> | |
3176 | ||
3177 | * elf32-hppa.c (final_link_relocate): Branch to .+8 for | |
3178 | calls to undefined weak symbols. | |
3179 | ||
3180 | 2001-04-30 Andreas Jaeger <[email protected]>, Andreas Schwab <[email protected]> | |
3181 | ||
3182 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for | |
3183 | R_X86_64_GOTPCREL, don't use assignments instead of comparisons. | |
3184 | ||
3185 | 2001-04-27 Andreas Jaeger <[email protected]> | |
3186 | ||
3187 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap | |
3188 | out handled entries. | |
3189 | (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries. | |
3190 | (elf64_x86_64_relocate_section): Fix GOTPCREL calculation. | |
3191 | (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and | |
3192 | GOT32. | |
3193 | ||
3194 | 2001-04-27 Sean McNeil <[email protected]> | |
3195 | ||
3196 | * config.bfd: Add arm-vxworks target. | |
3197 | * coff-arm (coff_arm_relocate_section): Add in symbol value to | |
3198 | addend (fro VXworks targets). | |
3199 | ||
3200 | 2001-04-26 H.J. Lu <[email protected]> | |
3201 | ||
3202 | * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is | |
3203 | valid. | |
3204 | ||
3205 | 2001-04-25 Frank Ch. Eigler <[email protected]> | |
3206 | ||
3207 | * bfd-in.h (bfd_cache_close): Declare newly exported function. | |
3208 | * bfd-in2.h: Regenerated. | |
3209 | ||
3210 | 2001-04-24 Jakub Jelinek <[email protected]> | |
3211 | ||
3212 | * merge.c (struct sec_merge_hash_entry): Add alignment field. | |
3213 | (struct sec_merge_hash): Remove alignment_power. | |
3214 | (sec_merge_hash_newfunc): Clear alignment. | |
3215 | (sec_merge_hash_lookup): Pass alignment as argument. | |
3216 | Use hashp->root.next, not hashp->next to walk the hash chain. | |
3217 | If a string already in the hashtable does not have required | |
3218 | alignment, create a new hashtable entry. | |
3219 | (sec_merge_init): Remove alignment_power argument. | |
3220 | (sec_merge_add): Add alignment argument. | |
3221 | (sec_merge_emit): Alignment is now a per-entity thing, not per | |
3222 | section. | |
3223 | (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections | |
3224 | for proper alignment. | |
3225 | Pass alignment information to sec_merge_add. | |
3226 | ||
3227 | 2001-04-24 Christian Groessler <[email protected]> | |
3228 | ||
3229 | * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR | |
3230 | and R_REL16 reloc types; accept odd values for R_REL16 type | |
3231 | ||
3232 | 2001-04-24 Johan Rydberg <[email protected]> | |
3233 | ||
3234 | * cpu-openrisc.c: New file. | |
3235 | * elf32-openrisc.c: Likewise. | |
3236 | ||
3237 | * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo. | |
3238 | (ALL_MACHINES_CFILES): Add cpu-openrisc.c. | |
3239 | (BFD32_BACKENDS): Add elf32-openrisc.lo. | |
3240 | (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c. | |
3241 | (cpu-openrisc.lo, elf32-openrisc.lo): New rules. | |
3242 | * Makefile.in: Regenerated. | |
3243 | * config.bfd: (openrisc-*-elf): New target. | |
3244 | * configure.in (bfd_elf32_openrisc_vec): New vector. | |
3245 | * configure: Regenerated. | |
3246 | * libbfd.h: Regenerated. | |
3247 | * bfd-in2.h: Regenerated. | |
3248 | * reloc.c: Add OpenRISC relocations. | |
3249 | * targets.c (bfd_elf32_openrisc_vec): Declare. | |
3250 | (bfd_target_vect): Add bfd_elf32_openrisc_vec. | |
3251 | * archures.c (enum bfd_architecture): Add bfd_arch_openrisc. | |
3252 | (bfd_openrisc_arch): Declare. | |
3253 | (bfd_archures_list): Add bfd_openrisc_arch. | |
3254 | * elf.c (prep_headers): Add bfd_arch_openrisc. | |
3255 | ||
3256 | 2001-04-23 Bo Thorsen <[email protected]> | |
3257 | ||
3258 | * elf64-x86-64.c: Add c++ vtable hack. | |
3259 | Small whitespace and comment changes. | |
3260 | ||
3261 | 2001-04-19 Andreas Jaeger <[email protected]> | |
3262 | ||
3263 | * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions. | |
3264 | (elf64_x86_64_plt_entry): Likewise. | |
3265 | (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation. | |
3266 | (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation. | |
3267 | ||
3268 | 2001-04-17 Hans-Peter Nilsson <[email protected]> | |
3269 | ||
3270 | * elf32-cris.c: Tweak comments related to dynamic linking. | |
3271 | (cris_elf_relocate_section): When not creating shared object, fill | |
3272 | in the .got table for any symbol not in the dynamic symbol table. | |
3273 | (elf_cris_finish_dynamic_symbol): When not creating shared object, | |
3274 | only emit a .got.rela reloc if the symbol is in the dynamic symbol | |
3275 | table. | |
3276 | (cris_elf_check_relocs): Use variable r_type in all places rather | |
3277 | than the original expression. Add default case in switch for | |
3278 | reloc types. | |
3279 | (elf_cris_size_dynamic_sections): Iterate over | |
3280 | elf_cris_discard_excess_program_dynamics when not creating shared | |
3281 | library. | |
3282 | (elf_cris_discard_excess_dso_dynamics): Renamed from | |
3283 | elf_cris_discard_copies. Correct typo, s/Rel/Rela/. | |
3284 | (elf_cris_discard_excess_program_dynamics): New. | |
3285 | ||
3286 | 2001-04-14 Mark Elbrecht <[email protected]> | |
3287 | ||
3288 | * coffcode.h (coff_write_object_contents): Use | |
3289 | bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out. | |
3290 | ||
3291 | 2001-04-14 H.J. Lu <[email protected]> | |
3292 | ||
3293 | * bfd-in2.h: Regenerate. | |
3294 | ||
3295 | 2001-04-14 Jakub Jelinek <[email protected]> | |
3296 | ||
3297 | * section.c (STD_SECTION): Add entsize. | |
3298 | ||
3299 | 2001-04-13 H.J. Lu <[email protected]> | |
3300 | ||
3301 | * section.c (SEC_MERGE): Define new flag for merging. | |
3302 | (SEC_STRINGS): Likewise. | |
3303 | (entsize): New field. | |
3304 | ||
3305 | 2001-04-13 Roger Sayle <[email protected]> | |
3306 | ||
3307 | * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section | |
3308 | flag on pe-i386 targets. | |
3309 | ||
3310 | 2001-04-13 Jakub Jelinek <[email protected]> | |
3311 | ||
3312 | * libbfd-in.h (_bfd_merge_section): New. | |
3313 | (_bfd_write_merged_section): New. | |
3314 | (_bfd_merged_section_offset): New. | |
3315 | * libbfd.h: Rebuilt. | |
3316 | * linker.c (_bfd_generic_link_output_symbols): Handle | |
3317 | discard_sec_merge. | |
3318 | * aoutx.h (aout_link_write_symbols): Likewise. | |
3319 | * pdp11.c (aout_link_write_symbols): Likewise. | |
3320 | * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section. | |
3321 | (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE | |
3322 | sections. | |
3323 | (elf_link_sec_merge_syms): New. | |
3324 | (elf_link_input_bfd): Call _bfd_merged_section_offset | |
3325 | and _bfd_write_merged_section. | |
3326 | Handle discard_sec_merge. | |
3327 | * elf-bfd.h (struct elf_link_hash_table): Add merge_info | |
3328 | field. | |
3329 | (struct bfd_elf_section_data): Likewise. | |
3330 | * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and | |
3331 | SEC_STRINGS section flags and entsize from their ELF counterparts. | |
3332 | (_bfd_elf_link_hash_table_init): Initialize merge_info. | |
3333 | (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize | |
3334 | from their BFD counterparts. | |
3335 | * merge.c: New file. | |
3336 | * Makefile.am: Add strtab.lo. | |
3337 | * Makefile.in: Rebuilt. | |
3338 | ||
3339 | 2001-04-09 Hans-Peter Nilsson <[email protected]> | |
3340 | ||
3341 | * elflink.h (elf_fix_symbol_flags): For non-default visibilities, | |
3342 | only hide symbols marked STV_INTERNAL or STV_HIDDEN. | |
3343 | ||
3344 | 2001-04-05 Steven J. Hill <[email protected]> | |
3345 | ||
3346 | * config.bfd (mips*el*-*-linux-gnu*): Use traditional little | |
3347 | endian MIPS ELF target. | |
3348 | * config.bfd (mips*-*-linux-gnu*): Use traditional big endian | |
3349 | MIPS ELF target. | |
3350 | ||
3351 | * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional | |
3352 | 64bit big endian MIPS ELF target. | |
3353 | (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little | |
3354 | endian MIPS ELF target. | |
3355 | * configure: Regenerated. | |
3356 | ||
3357 | * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and | |
3358 | little endian targets. | |
3359 | (mips_elf_sym_is_global): Handle traditional targets. | |
3360 | ||
3361 | * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional | |
3362 | 64bit big endian MIPS ELF target. | |
3363 | (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little | |
3364 | endian MIPS ELF target. | |
3365 | ||
3366 | * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec | |
3367 | and bfd_elf64_tradlittlemips_vec. | |
3368 | ||
3369 | 2001-04-05 David Mosberger <[email protected]> | |
3370 | ||
3371 | * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an | |
3372 | ordinary "progbits" section. | |
3373 | ||
3374 | 2001-04-04 Alan Modra <[email protected]> | |
3375 | ||
3376 | * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol | |
3377 | when -Bsymbolic causes a symbol to no longer need a .plt entry. | |
3378 | ||
3379 | 2001-04-03 David Mosberger <[email protected]> | |
3380 | ||
3381 | * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted. | |
3382 | ||
3383 | 2001-03-30 H.J. Lu <[email protected]> | |
3384 | ||
3385 | * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ... | |
3386 | (PEI_DEFAULT_TARGET_SUBSYSTEM): This. | |
3387 | ||
3388 | 2001-03-26 H.J. Lu <[email protected]> | |
3389 | ||
3390 | * elf32-gen.c (elf32_generic_link_add_symbols): New. Check | |
3391 | if there are any relocations for generic ELF. | |
3392 | (bfd_elf32_bfd_link_add_symbols): Defined to | |
3393 | elf32_generic_link_add_symbols. | |
3394 | * elf64-gen.c (elf64_generic_link_add_symbols): New. Check | |
3395 | if there are any relocations for generic ELF. | |
3396 | (bfd_elf64_bfd_link_add_symbols): Defined to | |
3397 | elf64_generic_link_add_symbols. | |
3398 | ||
3399 | 2001-03-23 Nick Clifton <[email protected]> | |
3400 | ||
3401 | * Makefile.am (BUILD_CFILES): New variable: List of C source | |
3402 | files created in build directory. | |
3403 | (BUILD_HFILES): New variable: List of header files created in | |
3404 | build directory. | |
3405 | (POTFILES): Delete. | |
3406 | (po/POTFILES.in): Replace rule with empty entry. | |
3407 | (po/SRC-POTFILES.in): New rule: Create a list of source files | |
3408 | in the source directory. | |
3409 | (po/BLD-POTFILES.in): New rule: Create a list of source files | |
3410 | in the build directory. | |
3411 | (MOSTLYCLEAN): Do not delete source files created in build | |
3412 | directory. | |
3413 | * Makefile.in: Regenerate. | |
3414 | * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in | |
3415 | into po/Makefile. | |
3416 | * configure: Regenerate. | |
3417 | ||
3418 | * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES | |
3419 | and BLD_POTFILES. | |
3420 | Add .. to the search path when building bfd.pot. | |
3421 | Delete POTFILES when performing distclean. | |
3422 | Add comment describing why distclean is broken in maintainer mode. | |
3423 | * po/POTFILES.in: Delete. | |
3424 | * po/SRC-POTFILES.in: New file. | |
3425 | * po/BLD-POTFILES.in: New file. | |
3426 | * po/bfd.pot: Regenerate. | |
3427 | ||
3428 | 2001-03-22 Hans-Peter Nilsson <[email protected]> | |
3429 | ||
3430 | * elf32-cris.c: Shlib and PIC support. PCREL tweaks. | |
3431 | (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got, | |
3432 | elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc, | |
3433 | elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol, | |
3434 | elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol, | |
3435 | elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New | |
3436 | functions. | |
3437 | (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL, | |
3438 | R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false. | |
3439 | <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE, | |
3440 | R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT, | |
3441 | R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>: | |
3442 | New HOWTO members for new relocs. | |
3443 | (cris_reloc_map): Map new relocs. | |
3444 | (ELF_DYNAMIC_INTERPRETER): Define. | |
3445 | (PLT_ENTRY_SIZE): Define. | |
3446 | (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry, | |
3447 | elf_cris_pic_plt_entry): New, PLT templates. | |
3448 | (struct elf_cris_pcrel_relocs_copied, struct | |
3449 | elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New. | |
3450 | (elf_cris_link_hash_traverse, elf_cris_hash_table): Define. | |
3451 | (cris_final_link_relocate): Check that 16-bit GOT relocs have | |
3452 | positive values. Adjust PCREL relocs to be relative to location | |
3453 | after relocation. | |
3454 | (cris_elf_relocate_section): Handle relocations to dynamic | |
3455 | objects. Handle new relocations. Call error handler when seeing | |
3456 | non-PIC relocation for read-only sections while generating shared | |
3457 | object. | |
3458 | (cris_elf_check_relocs): Set reference counts for GOT and PLT | |
3459 | entries. | |
3460 | (bfd_elf32_bfd_link_hash_table_create, | |
3461 | elf_backend_adjust_dynamic_symbol, | |
3462 | elf_backend_size_dynamic_sections, | |
3463 | elf_backend_finish_dynamic_symbol, | |
3464 | elf_backend_finish_dynamic_sections, | |
3465 | elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link, | |
3466 | elf_backend_hide_symbol, elf_backend_want_got_plt, | |
3467 | elf_backend_plt_readonly, elf_backend_want_plt_sym, | |
3468 | elf_backend_got_header_size, elf_backend_plt_header_size): | |
3469 | Define. | |
3470 | ||
3471 | * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT, | |
3472 | BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE, | |
3473 | BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT, | |
3474 | BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT, | |
3475 | BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL, | |
3476 | BFD_RELOC_CRIS_32_PLT_PCREL): New relocs. | |
3477 | * bfd-in2.h, libbfd.h: Regenerate. | |
3478 | ||
3479 | 2001-03-21 Diego Novillo <[email protected]> | |
3480 | ||
3481 | (_bfd_mips_elf_relocate_section): Give a better error message when | |
3482 | a relocation is not recognized. | |
3483 | ||
3484 | 2001-03-21 Alan Modra <[email protected]> | |
3485 | ||
3486 | * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section | |
3487 | non-NULL before attempting to dereference. | |
3488 | ||
3489 | 2001-03-20 H.J. Lu <[email protected]> | |
3490 | ||
3491 | * configure.in: Remove the redundent AC_ARG_PROGRAM. | |
3492 | * configure: Rebuild. | |
3493 | ||
3494 | 2001-03-20 Andreas Schwab <[email protected]> | |
3495 | ||
3496 | * elf32-m68k.c (elf_m68k_relocate_section): Don't need the | |
3497 | relocation value when resolving a reference from a debugging | |
3498 | section. | |
3499 | ||
3500 | 2001-03-16 Scott Thomason <[email protected]> | |
3501 | ||
3502 | * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors. | |
3503 | (xcoff64_swap_sym_out): Fix syntax errors. | |
3504 | ||
3505 | 2001-03-16 Richard Sandiford <[email protected]> | |
3506 | ||
3507 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning. | |
3508 | ||
3509 | 2001-03-15 Alan Modra <[email protected]> | |
3510 | ||
3511 | * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call. | |
3512 | (hppa_link_hash_newfunc): Init it. | |
3513 | (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller | |
3514 | section appears to be non-PIC. | |
3515 | (final_link_relocate): Likewise. | |
3516 | (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any | |
3517 | possible candidate function, and set pic_call for those that will | |
3518 | only have a .plt entry for the PIC call stub. | |
3519 | (hppa_handle_PIC_calls): Set maybe_pic_call. | |
3520 | ||
3521 | 2001-03-12 DJ Delorie <[email protected]> | |
3522 | ||
3523 | * elf32-sh.c (sh_elf_relocate_section): Only relocation | |
3524 | R_SH_DIR8WP* relocs if they're against external symbols, else | |
3525 | they're just for relaxing. Validate the reloc values. | |
3526 | ||
3527 | 2001-03-12 Stefan Geuken <[email protected]> | |
3528 | ||
3529 | * binary.c (bfd_external_binary_architecture): Declare. | |
3530 | (binary_object_p): If bfd_external_binary_architecture is defined, | |
3531 | set the architecture to this string. | |
3532 | ||
3533 | 2001-03-11 Philip Blundell <[email protected]> | |
3534 | ||
3535 | * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT | |
3536 | entries that could serve as a definition for a weak symbol. | |
3537 | ||
3538 | 2001-03-08 Nick Clifton <[email protected]> | |
3539 | ||
3540 | * Most files: Update copyright notices using Perl script created | |
3541 | by Kevin Buettner <[email protected]>. | |
3542 | ||
3543 | 2001-03-07 Nick Clifton <[email protected]> | |
3544 | ||
3545 | * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise | |
3546 | prior patch on ! defined OLD_ARM_ABI. | |
3547 | ||
3548 | 2001-03-07 Andreas Jaeger <[email protected]> | |
3549 | ||
3550 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of | |
3551 | some relocation values. | |
3552 | ||
3553 | 2001-03-06 Nick Clifton <[email protected]> | |
3554 | ||
3555 | * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero | |
3556 | of offset in BLX(1) instruction. | |
3557 | * coff-arm.c (coff_arm_relocate_section): Clear bit zero of | |
3558 | offset in BLX(1) instruction. | |
3559 | Fix formatting. | |
3560 | ||
3561 | 2001-03-06 Nick Clifton <[email protected]> | |
3562 | ||
3563 | * coff-arm.c (coff_arm_reloc_type_lookup): Add | |
3564 | BFD_RELOC_THUMB_PCREL_BLX. | |
3565 | ||
3566 | 2001-03-06 Igor Shevlyakov <[email protected]> | |
3567 | ||
3568 | * archures.c (bfd_default_scan): Add Coldfire CPUs. | |
3569 | * bfd-in2.h: Regenerate. | |
3570 | * cpu-m68k.c: Add Coldfire CPUs for arch table. | |
3571 | * ieee.c (ieee_write_processor): Set proper id for | |
3572 | Coldfire CPUs. | |
3573 | ||
3574 | 2001-03-01 D.J. Barrow <[email protected],[email protected]> | |
3575 | ||
3576 | * configure.in: Add s390 target. | |
3577 | * configure: Regenerate. | |
3578 | ||
3579 | 2001-02-28 Andreas Jaeger <[email protected]> | |
3580 | ||
3581 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation | |
3582 | to addend. | |
3583 | ||
3584 | 2001-02-28 Philip Blundell <[email protected]> | |
3585 | ||
3586 | * elf32-arm.h: Update mentions of renamed EF_xx constants. | |
3587 | (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2. | |
3588 | ||
3589 | 2001-02-27 H.J. Lu <[email protected]> | |
3590 | ||
3591 | * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if | |
3592 | abfd->tdata.aout_data == NULL. | |
3593 | ||
3594 | 2001-02-27 Alan Modra <[email protected]> | |
3595 | ||
3596 | * elf32-hppa.c: Correct field selector in stub comments. | |
3597 | (clobber_millicode_symbols): Formatting fix. | |
3598 | ||
3599 | * configure.in: Bump version to 2.11.90. | |
3600 | * configure: Regenerate. | |
3601 | * Makefile.am (CFILES): Rename to SOURCE_CFILES. | |
3602 | (CFILES): $SOURCE_CFILES + generated C files. | |
3603 | (POTFILES): Include $HFILES not $SOURCE_HFILES. | |
3604 | Run "make dep-am" | |
3605 | * Makefile.in: Regenerate. | |
3606 | * doc/Makefile.in: This too. | |
3607 | ||
3608 | 2001-02-26 Timothy Wall <[email protected]> | |
3609 | ||
3610 | * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete | |
3611 | comments. | |
3612 | ||
3613 | 2001-02-26 Nick Clifton <[email protected]> | |
3614 | ||
3615 | * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy | |
3616 | up, replacing multiple if statements with a switch. | |
3617 | (handle_COMDAT): New function. | |
3618 | ||
3619 | 2001-02-26 H.J. Lu <[email protected]> | |
3620 | ||
3621 | * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue | |
3622 | a warning for section flags we do not handle instead of | |
3623 | aborting. | |
3624 | ||
3625 | 2001-02-26 Andreas Jaeger <[email protected]> | |
3626 | ||
3627 | * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries. | |
3628 | ||
3629 | 2001-02-22 Timothy Wall <[email protected]> | |
3630 | ||
3631 | * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey). | |
3632 | * configure.in: Add objects for elf64_ia64_aix vectors. | |
3633 | * configure: Regenerated. | |
3634 | * configure.host: Recognize ia64-*-aix*. | |
3635 | * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors | |
3636 | for AIX. AIX5 requires most relocations to be dynamic (*all* | |
3637 | binaries are somewhat similar to shared libraries). | |
3638 | * targets.c: Add elf64_ia64_aix vectors. | |
3639 | ||
3640 | 2001-02-21 David Mosberger <[email protected]> | |
3641 | ||
3642 | * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for | |
3643 | C8 said "1" instead of "8". Clarify error string for IMM22: | |
3644 | "signed integer" instead of just "integer". | |
3645 | ||
3646 | 2001-02-20 Andreas Jaeger <[email protected]> | |
3647 | ||
3648 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make | |
3649 | PLT entries that could serve as a definition for a weak symbol. | |
3650 | ||
3651 | 2001-02-19 Jakub Jelinek <[email protected]> | |
3652 | ||
3653 | * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT | |
3654 | entries that could serve as a definition for a weak symbol. | |
3655 | * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise. | |
3656 | ||
3657 | 2001-02-18 David O'Brien <obrien@FreeBSD> | |
3658 | ||
3659 | * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat | |
3660 | FreeBSD/i386-CURRENT differently until I can figure out the needed | |
3661 | corefile changes. | |
3662 | * configure: Regenerate. | |
3663 | * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm, | |
3664 | FreeBSD/PowerPC, and FreeBSD/sparc64. | |
3665 | ||
3666 | 2001-02-18 lars brinkhoff <[email protected]> | |
3667 | ||
3668 | * Makefile.am: Add PDP-11 a.out target. | |
3669 | * config.bfd: Likewise. | |
3670 | * configure.in: Likewise. | |
3671 | * targets.c: Likewise. | |
3672 | * archures.c: Likewise. | |
3673 | * bfd-in2.h: Likewise. Add PDP-11 relocations. | |
3674 | * libbfd.h: Add PDP-11 relocations. | |
3675 | * reloc.c: Likewise. | |
3676 | * cpu-pdp11.c: New file. | |
3677 | * pdp11.c: New file. | |
3678 | ||
3679 | * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define. | |
3680 | (GET_SWORD) [ARCH_SIZE==16]: Likewise. | |
3681 | (GET_SWORD) [ARCH_SIZE==16]: Likewise. | |
3682 | (PUT_WORD) [ARCH_SIZE==16]: Likewise. | |
3683 | (GET_MAGIC): New macro. | |
3684 | (PUT_MAGIC): Likewise. | |
3685 | * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word. | |
3686 | ||
3687 | 2001-02-18 Jim Kingdon <[email protected]> | |
3688 | ||
3689 | * irix-core.c (irix_core_core_file_p): Set the architecture (GDB | |
3690 | multiarch needs it). | |
3691 | ||
3692 | 2001-02-18 H.J. Lu <[email protected]> | |
3693 | ||
3694 | * elflink.h (elf_link_input_bfd): Ignore invalid section symbol | |
3695 | index. | |
3696 | ||
3697 | 2001-02-18 Kazu Hirata <[email protected]> | |
3698 | ||
3699 | * vms-misc.c: Fix formatting. | |
3700 | ||
3701 | 2001-02-16 Kazu Hirata <[email protected]> | |
3702 | ||
3703 | * vms.c: Fix formatting. | |
3704 | ||
3705 | 2001-02-14 H.J. Lu <[email protected]> | |
3706 | ||
3707 | * elf.c (elf_find_function): New function. | |
3708 | (_bfd_elf_find_nearest_line): Call elf_find_function () to find | |
3709 | the file name and function name. | |
3710 | ||
3711 | 2001-02-14 Nick Clifton <[email protected]> | |
3712 | ||
3713 | * ecoff.c (bfd_debug_section): Update to initialise new fields in | |
3714 | asection structure. | |
3715 | ||
3716 | * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c | |
3717 | (BFD64_BACKENDS): Add pepigen.c | |
3718 | Add rules to create peigen.c and pepigen.c from peXXigen.c. | |
3719 | ||
3720 | * Makefile.in: Regenerate. | |
3721 | * configure: Regenerate. | |
3722 | * po/POTFILES.in: Regenerate. | |
3723 | * po/bfd.pot: Regenerate. | |
3724 | ||
3725 | 2001-02-14 H.J. Lu <[email protected]> | |
3726 | ||
3727 | * libcoff-in.h (pe_tdata): Add members target_subsystem and | |
3728 | force_minimum_alignment. | |
3729 | ||
3730 | 2001-02-14 Bo Thorsen <[email protected]> | |
3731 | ||
3732 | * elf64-x86-64.c: Small formatting fixes and rearrangements of code. | |
3733 | (elf64_86_64_size_info): Struct added to fix a problem | |
3734 | with the hashtable string entries. | |
3735 | (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt. | |
3736 | (elf64_x86_64_size_dynamic_sections): A FIXME removed. | |
3737 | (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and | |
3738 | remove the FIXME for this. | |
3739 | (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt | |
3740 | section. Also removed the FIXME for it. | |
3741 | (x86_64_elf_howto_table): Use bfd_elf_generic_reloc. | |
3742 | (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker. | |
3743 | (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing. | |
3744 | ||
3745 | 2001-02-13 Richard Henderson <[email protected]> | |
3746 | ||
3747 | * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required | |
3748 | and not user provided. | |
3749 | ||
3750 | 2001-02-13 Kazu Hirata <[email protected]> | |
3751 | ||
3752 | * vms.c (vms_print_symbol): Remove unreachable code. | |
3753 | ||
3754 | * rs6000-core.c: Fix formatting. | |
3755 | ||
3756 | 2001-02-13 David Mosberger <[email protected]> | |
3757 | ||
3758 | * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define | |
3759 | as _bfd_XXi_only_swap_filehdr_out. | |
3760 | (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set | |
3761 | pe->force_minimum_alignment to TRUE. | |
3762 | (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to | |
3763 | PEI_TARGET_SUBSYSTEM. | |
3764 | (pe_print_private_bfd_data): Call | |
3765 | _bfd_XX_print_private_bfd_data_common() instead of | |
3766 | _bfd_pe_print_private_bfd_data_common(). | |
3767 | (pe_bfd_copy_private_bfd_data): Call | |
3768 | _bfd_XX_bfd_copy_private_bfd_data_common() instead of | |
3769 | _bfd_pe_bfd_copy_private_bfd_data_common(). | |
3770 | (coff_bfd_copy_private_section_data): Define as | |
3771 | _bfd_XX_bfd_copy_private_section_data instead of | |
3772 | _bfd_pe_bfd_copy_private_section_data. | |
3773 | (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead | |
3774 | of a _bfd_pe_get_symbol_info. | |
3775 | ||
3776 | * peigen.c: Delete. | |
3777 | ||
3778 | * peXXigen.c: Renamed from peigen.c. | |
3779 | (COFF_WITH_XX): Define this macro (will get expanded into | |
3780 | COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being | |
3781 | compiled as peigen.c or pepigen.c. | |
3782 | [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to | |
3783 | define the canonical PEP structures and definitions. | |
3784 | (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in | |
3785 | effect, enforce minimum file and section alignments. If | |
3786 | extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to | |
3787 | pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN, | |
3788 | so, by default, this is a no-op). | |
3789 | ||
3790 | * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep. | |
3791 | (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map | |
3792 | _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to | |
3793 | _bfd_pefoo if it's not defined. Use these macros to define | |
3794 | coff swap macros. | |
3795 | ||
3796 | * libcoff.h (pe_tdata): Add members target_subsystem and | |
3797 | force_minimum_alignment. | |
3798 | ||
3799 | * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to | |
3800 | COFF_WITH_pep. | |
3801 | (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM. | |
3802 | ||
3803 | * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of | |
3804 | peigen.lo. | |
3805 | ||
3806 | * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep. | |
3807 | (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and | |
3808 | PEPAOUTHDR. | |
3809 | ||
3810 | * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo. | |
3811 | (BFD64_BACKENDS_CFILES): Mention pepigen.c | |
3812 | (peigen.c): Add rule to generate from peXXigen.c. | |
3813 | (pepigen.c): Ditto. | |
3814 | (pepigen.lo): List dependencies for pepigen.lo. | |
3815 | ||
3816 | 2001-02-13 Alan Modra <[email protected]> | |
3817 | ||
3818 | * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If | |
3819 | $global$ referenced but not defined, set its value here. | |
3820 | ||
3821 | 2001-02-09 Bo Thorsen <[email protected]> | |
3822 | ||
3823 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section | |
3824 | alignment to 3. | |
3825 | (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry | |
3826 | and relocation. | |
3827 | (elf64_x86_64_relocate_section): Fix formatting. | |
3828 | (elf64_x86_64_relocate_section): Fix addend for relocation of | |
3829 | R_X86_64_(8|16|32|PC8|PC16|PC32). | |
3830 | ||
3831 | 2001-02-12 Jan Hubicka <[email protected]> | |
3832 | ||
3833 | * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL. | |
3834 | ||
3835 | 2001-02-11 H.J. Lu <[email protected]> | |
3836 | ||
3837 | * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB | |
3838 | alignment. | |
3839 | ||
3840 | 2001-02-11 Maciej W. Rozycki <[email protected]> | |
3841 | ||
3842 | * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch | |
3843 | from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32 | |
3844 | relocations against dynsym symbols. | |
3845 | ||
3846 | * elf32-mips.c (elf_mips_howto_table): Fix the comment on | |
3847 | the R_MIPS_26 relocation. | |
3848 | (mips_elf_calculate_relocation): Use (p + 4) instead of p for | |
3849 | the R_MIPS_26 relocation. | |
3850 | (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26 | |
3851 | relocation. | |
3852 | * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on | |
3853 | the R_MIPS_26 relocation. | |
3854 | (mips_elf64_howto_table_rela): Likewise. | |
3855 | ||
3856 | * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub | |
3857 | member to mark symbols that have non-CALL relocations against | |
3858 | them. | |
3859 | (mips_elf_link_hash_newfunc): Initialize no_fn_stub. | |
3860 | (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like | |
3861 | R_MIPS_GOT16. | |
3862 | (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a | |
3863 | non-CALL relocation against it is encountered. | |
3864 | (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well. | |
3865 | (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if | |
3866 | no_fn_stub is not set. | |
3867 | ||
3868 | * elf32-mips.c (mips_elf_output_extsym): Get the output section | |
3869 | information from the real symbol for indirect ones. | |
3870 | Check no_fn_stub to find out if a symbol has a function stub | |
3871 | indeed. | |
3872 | ||
3873 | 2001-02-11 Michael Sokolov <[email protected]> | |
3874 | ||
3875 | * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory. | |
3876 | * Makefile.in: Regenerate. | |
3877 | ||
3878 | 2001-02-09 David Mosberger <[email protected]> | |
3879 | ||
3880 | * elfxx-ia64.c (is_unwind_section_name): New function. Returns | |
3881 | true if section name is an unwind table section name. | |
3882 | (elfNN_ia64_additional_program_headers): Count each unwind section | |
3883 | separately. | |
3884 | (elfNN_ia64_modify_segment_map): Install one unwind program header | |
3885 | for each unwind separate section. Note: normally the linker | |
3886 | script merges the unwind sections that go into a single segment, | |
3887 | so this still generates at most one unwind program header per | |
3888 | segment. | |
3889 | ||
3890 | * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section | |
3891 | name for SHT_IA_64_UNWIND, not just .IA_64.unwind. | |
3892 | (elfNN_ia64_fake_sections): Mark sections with names that start | |
3893 | with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64 | |
3894 | unwind section. | |
3895 | ||
3896 | * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function. | |
3897 | Use it to make sh_info in unwind section point to the text section | |
3898 | it applies to. | |
3899 | ||
3900 | 2001-02-09 Martin Schwidefsky <[email protected]> | |
3901 | ||
3902 | * Makefile.am: Add linux target for S/390. | |
3903 | * archures.c: Likewise. | |
3904 | * bfd-in2.h: Likewise. | |
3905 | * config.bfd: Likewise. | |
3906 | * configure.in: Likewise. | |
3907 | * elf.c: Likewise. | |
3908 | * libbfd.h: Likewise. | |
3909 | * targets.c: Likewise. | |
3910 | * cpu-s390.c: New file. | |
3911 | * elf32-s390.c: New file. | |
3912 | * elf64-s390.c: New file. | |
3913 | ||
3914 | 2001-02-09 Nick Clifton <[email protected]> | |
3915 | ||
3916 | * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of | |
3917 | ImageBase. This has already been done by coff_swap_hdr_in. | |
3918 | ||
3919 | 2001-02-09 Jakub Jelinek <[email protected]> | |
3920 | ||
3921 | * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function. | |
3922 | ||
3923 | 2001-02-09 Jakub Jelinek <[email protected]> | |
3924 | ||
3925 | * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count. | |
3926 | (sparc64_elf_relocate_section): Likewise. | |
3927 | ||
3928 | 2001-02-09 Mark Kettenis <[email protected]> | |
3929 | ||
3930 | * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32 | |
3931 | similar to R_SPARC_32. | |
3932 | * elf64-sparc.c (sparc64_elf_howto_table): Likewise. | |
3933 | ||
3934 | 2001-02-08 H.J. Lu <[email protected]> | |
3935 | ||
3936 | * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32 | |
3937 | relocation entries for weak definitions when building DSO with | |
3938 | -Bsymbolic. | |
3939 | ||
3940 | 2001-02-08 Richard Henderson <[email protected]> | |
3941 | ||
3942 | * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness | |
3943 | before visibility. Locally defined protected symbols are not | |
3944 | dynamic. | |
3945 | ||
3946 | 2001-02-08 Geoffrey Keating <[email protected]> | |
3947 | ||
3948 | * config.bfd: Enable coff64 for rs6000-*. Patch from | |
3949 | <[email protected]>. | |
3950 | ||
3951 | 2001-02-07 Mark Elbrecht <[email protected]> | |
3952 | ||
3953 | * coffgen.c (coff_find_nearest_line): If stabs info is successfully | |
3954 | found, do not attempt to find dwarf2 info before returning. | |
3955 | ||
3956 | 2001-02-07 Jakub Jelinek <[email protected]> | |
3957 | ||
3958 | * elflink.h (is_global_symbol_definition): Rename to | |
3959 | is_global_data_symbol_definition and have it reject function | |
3960 | symbols. | |
3961 | (elf_link_is_defined_archive_symbol): Use renamed function. | |
3962 | ||
3963 | 2001-02-07 Todd Vierling <[email protected]> | |
3964 | ||
3965 | * libbfd-in.h (bfd_target_vector): Change extern array to pointer. | |
3966 | * libbfd.h (bfd_target_vector): Likewise. | |
3967 | * targets.c (bfd_target_vector): Rename to _bfd_target_vector and | |
3968 | make static; create pointer reference named bfd_target_vector. | |
3969 | (_bfd_target_vector_entries): Calculate this based on the array | |
3970 | typed _bfd_target_vector. | |
3971 | ||
3972 | 2001-02-06 H.J. Lu <[email protected]> | |
3973 | ||
3974 | * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and | |
3975 | internal symbols are not dynamic. | |
3976 | * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise. | |
3977 | ||
3978 | 2001-02-06 Nick Clifton <[email protected]> | |
3979 | ||
3980 | * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so | |
3981 | that it will not be pulled into the list of files that make up | |
3982 | po/POTFILES.in. | |
3983 | * Makefile.in: Regenerate. | |
3984 | * po/bfd.pot: Regenerate. | |
3985 | ||
3986 | 2001-02-06 H.J. Lu <[email protected]> | |
3987 | ||
3988 | * peicode.h (coff_swap_filehdr_in): Remove the e_magic | |
3989 | checking. | |
3990 | (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and | |
3991 | external_PEI_IMAGE_hdr. | |
3992 | ||
3993 | 2001-02-06 Kazu Hirata <[email protected]> | |
3994 | ||
3995 | * elf-m10200.c: Fix formatting. | |
3996 | ||
3997 | 2001-02-04 Nick Clifton <[email protected]> | |
3998 | ||
3999 | * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC | |
4000 | rel, it will be handled later on. | |
4001 | ||
4002 | 2001-02-02 Fred Fish <[email protected]> | |
4003 | ||
4004 | * Makefile.in: Fix typo. | |
4005 | ||
4006 | 2001-02-01 Kazu Hirata <[email protected]> | |
4007 | ||
4008 | * elf-m10300.c: Fix formatting. | |
4009 | ||
4010 | 2001-01-30 Alan Modra <[email protected]> | |
4011 | ||
4012 | * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function. | |
4013 | (elf_backend_get_symbol_type): Define. | |
4014 | (elf64_hppa_object_p): Set architecture and machine from elf | |
4015 | header flags. | |
4016 | ||
4017 | 2001-01-30 Curtis L. Janssen <[email protected]> | |
4018 | ||
4019 | * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2 | |
4020 | before mdebug. | |
4021 | ||
4022 | 2001-01-26 Richard Henderson <[email protected]> | |
4023 | ||
4024 | * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false | |
4025 | for non-default visibility. | |
4026 | * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but | |
4027 | delete ugly macro and replace with pretty function. | |
4028 | ||
4029 | 2001-01-25 Mark Elbrecht <[email protected]> | |
4030 | ||
4031 | * coff-go32.c: Update copyright. | |
4032 | * coff-stgo32.c: Likewise. | |
4033 | * coff-go32.c (COFF_LONG_FILENAMES): Define. | |
4034 | * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise. | |
4035 | * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry. | |
4036 | * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. | |
4037 | ||
4038 | 2001-01-25 Kazu Hirata <[email protected]> | |
4039 | ||
4040 | * bfd-in2.h: Rebuild. | |
4041 | * libbfd.h: Likewise. | |
4042 | ||
4043 | 2001-01-23 H.J. Lu <[email protected]> | |
4044 | ||
4045 | * bfd-in2.h: Rebuild. | |
4046 | ||
4047 | 2001-01-23 H.J. Lu <[email protected]> | |
4048 | ||
4049 | * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf) | |
4050 | is NULL or PRIV(vms_rec) is outside of the buffer. | |
4051 | ||
4052 | 2001-01-23 Kazu Hirata <[email protected]> | |
4053 | ||
4054 | * coff64-rs6000.c: Fix formatting. | |
4055 | * coff-arm.c: Likewise. | |
4056 | * coffgen.c: Likewise. | |
4057 | * cofflink.c: Likewise. | |
4058 | * coff-mcore.c: Likewise. | |
4059 | * coff-mips.c: Likewise. | |
4060 | * coff-pmac.c: Likewise. | |
4061 | * coff-ppc.c: Likewise. | |
4062 | * coff-rs6000.c: Likewise. | |
4063 | * elf32.c: Likewise. | |
4064 | * elf32-fr30.c: Likewise. | |
4065 | * elf32-i370.c: Likewise. | |
4066 | * elf32-i860.c: Likewise. | |
4067 | * elf32-m32r.c: Likewise. | |
4068 | * elf32-m68k.c: Likewise. | |
4069 | * elf32-mcore.c: Likewise. | |
4070 | * elf32-ppc.c: Likewise. | |
4071 | * elf32-sh.c: Likewise. | |
4072 | * elf32-v850.c: Likewise. | |
4073 | * elf64-alpha.c: Likewise. | |
4074 | * elf64-sparc.c: Likewise. | |
4075 | * elflink.c: Likewise. | |
4076 | * elflink.h: Likewise. | |
4077 | * elf-m10200.c: Likewise. | |
4078 | * elf-m10300.c: Likewise. | |
4079 | * elfxx-ia64.c: Likewise. | |
4080 | ||
4081 | * aoutx.h: Fix formatting. | |
4082 | * bfd.c: Likewise. | |
4083 | * bfd-in2.h: Likewise. | |
4084 | * bfd-in.h: Likewise. | |
4085 | * cpu-i386.c: Likewise. | |
4086 | * cpu-m68hc11.c: Likewise. | |
4087 | * dwarf2.c: Likewise. | |
4088 | * elf64-x86-64.c: Likewise. | |
4089 | * format.c: Likewise. | |
4090 | * freebsd.h: Likewise. | |
4091 | * hash.c: Likewise. | |
4092 | * hp300hpux.c: Likewise. | |
4093 | * hppabsd-core.c: Likewise. | |
4094 | * hpux-core.c: Likewise. | |
4095 | ||
4096 | 2001-01-22 Bo Thorsen <[email protected]> | |
4097 | ||
4098 | * elf64-x86-64.c: Added PIC support for X86-64. | |
4099 | (elf64_x86_64_link_hash_newfunc): Function added. | |
4100 | (elf64_x86_64_link_hash_table_create): Likewise. | |
4101 | (elf64_x86_64_check_relocs): Likewise. | |
4102 | (elf64_x86_64_gc_mark_hook): Likewise. | |
4103 | (elf64_x86_64_gc_sweep_hook): Likewise. | |
4104 | (elf64_x86_64_adjust_dynamic_symbol): Likewise. | |
4105 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
4106 | (elf64_x86_64_discard_copies): Likewise. | |
4107 | (elf64_x86_64_finish_dynamic_symbol): Likewise. | |
4108 | (elf64_x86_64_finish_dynamic_sections): Likewise. | |
4109 | (elf64_x86_64_relocate_section): Add relocation of PIC sections. | |
4110 | ||
4111 | 2001-01-21 Maciej W. Rozycki <[email protected]> | |
4112 | ||
4113 | * Makefile.am (install-data-local): Make use of $(DESTDIR). | |
4114 | * Makefile.in: Regenerate. | |
4115 | ||
4116 | 2001-01-21 Kazu Hirata <[email protected]> | |
4117 | ||
4118 | * coff-a29k.c: Fix formatting. | |
4119 | ||
4120 | 2001-01-19 H.J. Lu <[email protected]> | |
4121 | ||
4122 | * elf32-i386.c (elf_i386_check_relocs): Report files with bad | |
4123 | relocation section names. | |
4124 | (elf_i386_relocate_section): Report files with bad relocation | |
4125 | section names and return false. | |
4126 | ||
4127 | 2001-01-17 Bo Thorsen <[email protected]> | |
4128 | ||
4129 | * targets.c: Alphabetize list of xvecs. | |
4130 | ||
4131 | 2001-01-14 Alan Modra <[email protected]> | |
4132 | ||
4133 | * config.bfd: Add linux target variant for elfxx-hppa. | |
4134 | * configure.in: Recognize bfd_elf32_hppa_linux_vec and | |
4135 | bfd_elf64_hppa_linux_vec. | |
4136 | * configure: Regenerate. | |
4137 | * elf64-hppa.c: Include elf64-target.h again to support linux | |
4138 | target variant. | |
4139 | (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux. | |
4140 | * elf32-hppa.c: Include elf32-target.h again to support linux | |
4141 | target variant. | |
4142 | (elf32_hppa_post_process_headers): New function. | |
4143 | (elf_backend_post_process_headers): Define. | |
4144 | * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and | |
4145 | bfd_elf32_hppa_linux_vec. | |
4146 | ||
4147 | * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base, | |
4148 | and data_segment_base fields. | |
4149 | (elf32_hppa_link_hash_table_create ): Init them. | |
4150 | (elf32_hppa_check_relocs): Update comments. | |
4151 | (hppa_record_segment_addr): New function. | |
4152 | (elf32_hppa_relocate_section): Call it. | |
4153 | (final_link_relocate): Handle R_PARISC_SEGREL32. | |
4154 | (elf32_hppa_final_link): New function. | |
4155 | (bfd_elf32_bfd_final_link): Define to call it. | |
4156 | (hppa_unwind_entry_compare): New function. | |
4157 | * cache.c (bfd_open_file): Create files in write+read mode. | |
4158 | ||
4159 | * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for | |
4160 | SEGREL32 and numerous other relocs. Change duplicate | |
4161 | R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED. | |
4162 | ||
4163 | * opncls.c (bfd_fdopenr): Add parens like the comment says around | |
4164 | O_ACCMODE. | |
4165 | ||
4166 | * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create | |
4167 | .plt entries for DT_INIT and DT_FINI. | |
4168 | (elf32_hppa_finish_dynamic_sections): Remove special handling of | |
4169 | DT_INIT and DT_FINI. | |
4170 | ||
4171 | * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit | |
4172 | offsets for stub .plt access if wide mode. Check offset in range. | |
4173 | ||
4174 | 2001-01-13 Nick Clifton <[email protected]> | |
4175 | ||
4176 | * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank | |
4177 | line. | |
4178 | ||
4179 | * coffcode.h (coff_canonicalize_reloc): Remove spurious blank | |
4180 | line. | |
4181 | ||
4182 | 2001-01-12 Alan Modra <[email protected]> | |
4183 | ||
4184 | * configure.in ([bfd_elf64_x86_64_vec]): Set target64. | |
4185 | * configure: Regenerate. | |
4186 | ||
4187 | 2001-01-11 Peter Targett <[email protected]> | |
4188 | ||
4189 | * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5, | |
4190 | bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants. | |
4191 | * cpu-arc.c (arch_info_struct): Add entries for variants. | |
4192 | (bfd_arc_arch) Set default to bfd_mach_arc_5. | |
4193 | (arc_get_mach) Don't assume machine names prefixed arc- before | |
4194 | testing. | |
4195 | * elf32-arc.c (arc_elf_object_p): Set machine number based on new | |
4196 | selections. | |
4197 | (arc_elf_final_write_processing) Likewise. | |
4198 | (ELF_MACHINE_CODE) Use EM_ARC. | |
4199 | ||
4200 | 2001-01-10 Nick Clifton <[email protected]> | |
4201 | ||
4202 | * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "". | |
4203 | ||
4204 | 2001-01-07 Philip Blundell <[email protected]> | |
4205 | ||
4206 | * README: Replace `[email protected]' with | |
4207 | `[email protected]'. | |
4208 | ||
4209 | 2001-01-04 Kazu Hirata <[email protected]> | |
4210 | ||
4211 | * som.c: Fix formatting. | |
4212 | ||
4213 | 2001-01-03 Kazu Hirata <[email protected]> | |
4214 | ||
4215 | * ecoffswap.h: Fix formatting. | |
4216 | * elf-bfd.h: Likewise. | |
4217 | * elfarm-nabi.c: Likewise. | |
4218 | * elfarm-oabi.c: Likewise. | |
4219 | * elfcode.h: Likewise. | |
4220 | * elfcore.h: Likewise. | |
4221 | * elflink.c: Likewise. | |
4222 | * elflink.h: Likewise. | |
4223 | * elfxx-ia64.c: Likewise. | |
4224 | * elfxx-target.h: Likewise. | |
4225 | * libbfd.c: Likewise | |
4226 | * linker.c: Likewise. | |
4227 | * lynx-core.c: Likewise. | |
4228 | ||
4229 | 2001-01-02 Kazu Hirata <[email protected]> | |
4230 | ||
4231 | * pc532-mach.c: Fix formatting. | |
4232 | * pe-arm.c: Likewise. | |
4233 | * pe-i386.c: Likewise. | |
4234 | * pe-mips.c: Likewise. | |
4235 | * pe-ppc.c: Likewise. | |
4236 | * pe-sh.c: Likewise. | |
4237 | * pei-mips.c: Likewise. | |
4238 | * pei-sh.c: Likewise. | |
4239 | * peicode.h: Likewise. | |
4240 | * ppcboot.c: Likewise. | |
4241 | * ptrace-core.c: Likewise. | |
4242 | ||
4243 | 2001-01-01 Kazu Hirata <[email protected]> | |
4244 | ||
4245 | * reloc.c: Fix formatting. | |
4246 | * riscix.c: Likewise. | |
4247 | * rs6000-core.c: Likewise. | |
4248 | * xcoff-target.h: Likewise. | |
4249 | ||
4250 | 2000-12-29 Hans-Peter Nilsson <[email protected]> | |
4251 | ||
4252 | * elfcode.h (elf_object_p): Also restore the bfd mach field on | |
4253 | error, by calling bfd_default_set_arch_mach with incoming | |
4254 | values. | |
4255 | ||
4256 | 2000-12-26 Kazu Hirata <[email protected]> | |
4257 | ||
4258 | * vaxnetbsd.c: Fix formatting. | |
4259 | * versados.c: Likewise. | |
4260 | * vms-gsd.c: Likewise. | |
4261 | * vms-hdr.c: Likewise. | |
4262 | * vms-misc.c: Likewise. | |
4263 | ||
4264 | 2000-12-25 Alexandre Oliva <[email protected]> | |
4265 | ||
4266 | * archive.c (coff_write_armap): Don't write more than symbol_count | |
4267 | `archive_member_file_ptr's. | |
4268 | ||
4269 | 2000-12-25 Kazu Hirata <[email protected]> | |
4270 | ||
4271 | * vms-tir.c: Fix formatting. | |
4272 | ||
4273 | 2000-12-23 Kazu Hirata <[email protected]> | |
4274 | ||
4275 | * vms.c: Fix formatting. | |
4276 | * vms.h: Likewise. | |
4277 | ||
4278 | 2000-12-21 Santeri Paavolainen <[email protected]> | |
4279 | ||
4280 | * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined. | |
4281 | ||
4282 | * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM. | |
4283 | ||
4284 | * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *) | |
4285 | arithmetic. | |
4286 | ||
4287 | * elf32-fr30.c: Add casts to avoid (void *) arithmetic. | |
4288 | ||
4289 | * coffcode.h (styp_to_sec_flags): Add empty statement after label. | |
4290 | ||
4291 | 2000-12-21 Richard Sandiford <[email protected]> | |
4292 | ||
4293 | * libbfd.c (bfd_get_bits): Added | |
4294 | (bfd_put_bits): Likewise | |
4295 | * bfd-in.h: Declared the above. | |
4296 | * bfd-in2.h: Regenerated. | |
4297 | ||
4298 | 2000-12-20 Kazu Hirata <[email protected]> | |
4299 | ||
4300 | * targets.c: Fix formatting. | |
4301 | * tekhex.c: Likewise. | |
4302 | * trad-core.c: Likewise. | |
4303 | ||
4304 | 2000-12-19 Kazu Hirata <[email protected]> | |
4305 | ||
4306 | * sco5-core.c: Fix formatting. | |
4307 | * section.c: Likewise. | |
4308 | * sparclinux.c: Likewise. | |
4309 | * sparclynx.c: Likewise. | |
4310 | * sparcnetbsd.c: Likewise. | |
4311 | * srec.c: Likewise. | |
4312 | * stabs.c: Likewise. | |
4313 | * stab-syms.c: Likewise. | |
4314 | * sunos.c: Likewise. | |
4315 | * syms.c: Likewise. | |
4316 | * sysdep.h: Likewise. | |
4317 | ||
4318 | 2000-12-18 Nick Clifton <[email protected]> | |
4319 | ||
4320 | * coff-arm.c (EXTRA_S_FLAGS): Only define if not already | |
4321 | defined. | |
4322 | * epoc-pe-arm.c (EXTRA_S_FLAGS): Define. | |
4323 | * epoc-pei-arm.c (EXTRA_S_FLAGS): Define. | |
4324 | ||
4325 | 2000-12-18 Nick Clifton <[email protected]> | |
4326 | ||
4327 | * vms-misc.c (_bfd_vms_get_record): Add default case to | |
4328 | file_format switch. | |
4329 | ||
4330 | 2000-12-15 Miloslav Trmac <[email protected]> | |
4331 | ||
4332 | * elfcore.h (elf_core_file_p): Move to the start of the program | |
4333 | headers before attempting to read them. | |
4334 | ||
4335 | 2000-12-14 Kazu Hirata <[email protected]> | |
4336 | ||
4337 | * peigen.c: Fix formatting. | |
4338 | * som.c: Likewise. | |
4339 | * som.h: Likewise. | |
4340 | ||
4341 | 2000-12-13 Kazu Hirata <[email protected]> | |
4342 | ||
4343 | * peigen.c: Fix formatting. | |
4344 | ||
4345 | 2000-12-12 Jim Wilson <[email protected]> | |
4346 | ||
4347 | * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *. | |
4348 | ||
4349 | 2000-12-08 Mark Salter <[email protected]> | |
4350 | ||
4351 | * binary.c (binary_set_section_contents): Ignore sections | |
4352 | with zero size. | |
4353 | ||
4354 | 2000-12-12 Kazu Hirata <[email protected]> | |
4355 | ||
4356 | * m68klinux.c: Fix formatting. | |
4357 | * m68knetbsd.c: Likewise. | |
4358 | * mipsbsd.c: Likewise. | |
4359 | * netbsd-core.c: Likewise. | |
4360 | * netbsd.h: Likewise. | |
4361 | * newsos3.c: Likewise. | |
4362 | * nlm32-alpha.c: Likewise. | |
4363 | * nlm32-i386.c: Likewise. | |
4364 | * nlm32-ppc.c: Likewise. | |
4365 | * nlm32-sparc.c: Likewise. | |
4366 | * nlmcode.h: Likewise. | |
4367 | * nlmswap.h: Likewise. | |
4368 | * nlm-target.h: Likewise. | |
4369 | * ns32knetbsd.c: Likewise. | |
4370 | ||
4371 | 2000-12-10 Fred Fish <[email protected]> | |
4372 | ||
4373 | * elflink.h (elf_link_output_extsym): Don't complain about undefined | |
4374 | symbols in shared objects if allow_shlib_undefined is true. | |
4375 | ||
4376 | 2000-12-12 Nick Clifton <[email protected]> | |
4377 | ||
4378 | * cpu-sh.c: Fix formattng. | |
4379 | * elf.c: Fix formattng. | |
4380 | * elf32-mips.c: Fix formattng. | |
4381 | * elf32-sh.c: Fix formattng. | |
4382 | * elf64-alpha.c: Fix formattng. | |
4383 | ||
4384 | 2000-12-09 Nick Clifton <[email protected]> | |
4385 | ||
4386 | * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass | |
4387 | dwarf2_find_line_info as last parameter to invocation of | |
4388 | _bfd_dwarf2_find_nearest_line. | |
4389 | * elf32-arm.h (elf32_arm_find_nearest_line): Pass | |
4390 | dwarf2_find_line_info as last parameter to invocation of | |
4391 | _bfd_dwarf2_find_nearest_line. | |
4392 | ||
4393 | 2000-12-08 Mark Elbrecht <[email protected]> | |
4394 | ||
4395 | * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here... | |
4396 | (BFD_LIBS): ...to here. | |
4397 | (BFD32_BACKENDS_CFILES): Move dwarf2.c from here... | |
4398 | (BFD_LIBS_CFILES): ...to here. | |
4399 | * Makefile.in: Regenerate. | |
4400 | * configure.in: Remove dwarf.lo from the elf shell variable. | |
4401 | * configure: Regenerate. | |
4402 | * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info. | |
4403 | * libcoff.h: Regenerate. | |
4404 | * coffgen.c (coff_find_nearest_line): Call | |
4405 | _bfd_dwarf2_find_nearest_line. | |
4406 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update | |
4407 | accordingly. | |
4408 | (read_abbrevs): Likewise | |
4409 | (decode_line_info): Likewise. | |
4410 | (parse_comp_unit): Likewise. | |
4411 | (comp_unit_find_nearest_line): Likewise. | |
4412 | * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype. | |
4413 | * libbfd.h: Regenerate. | |
4414 | * elf.c (_bfd_elf_find_nearest_line): Update call. | |
4415 | * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR. | |
4416 | * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH. | |
4417 | * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros. | |
4418 | (sec_to_styp_flags): Use them. Handle DWARF2 sections. | |
4419 | (styp_to_sec_flags): Handle DWARF2 sections. | |
4420 | * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call | |
4421 | to _bfd_find_nearest_line. | |
4422 | * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to | |
4423 | call to _bfd_find_nearest_line. | |
4424 | ||
4425 | 2000-12-08 Kazu Hirata <[email protected]> | |
4426 | ||
4427 | * coffgen.c: Fix formatting. | |
4428 | * elf-m10300.c: Likewise. | |
4429 | * elf32-i386.c: Likewise. | |
4430 | * elf32-i960.c: Likewise. | |
4431 | * elf32-m68k.c: Likewise. | |
4432 | * elf32-mcore.c: Likewise. | |
4433 | * elf32-ppc.c: Likewise. | |
4434 | * elf32-sh.c: Likewise. | |
4435 | * elf32-sparc.c: Likewise. | |
4436 | * elf32-v850.c: Likewise. | |
4437 | * elf64-alpha.c: Likewise. | |
4438 | * elf64-hppa.c: Likewise. | |
4439 | * elf64-mips.c: Likewise. | |
4440 | * elf64-sparc.c: Likewise. | |
4441 | ||
4442 | 2000-12-07 Kazu Hirata <[email protected]> | |
4443 | ||
4444 | * elf32-ppc.c: Fix formatting. | |
4445 | * elf64-x86-64.c: Likewise. | |
4446 | ||
4447 | 2000-12-06 Ulf Carlsson <[email protected]> | |
4448 | ||
4449 | From Ralf Baechle <[email protected]> | |
4450 | ||
4451 | * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit | |
4452 | BFDs containing no sections or empty .text, .data or .bss sections | |
4453 | to be merged, regardless of their flags. | |
4454 | ||
4455 | 2000-12-06 Kazu Hirata <[email protected]> | |
4456 | ||
4457 | * elf32-m32r.c: Fix formatting. | |
4458 | * elf32-m68hc11.c: Likewise. | |
4459 | * elf32-m68hc12.c: Likewise. | |
4460 | * elf32-m68k.c: Likewise. | |
4461 | * elf32-mcore.c: Likewise. | |
4462 | * elf32-pj.c: Likewise. | |
4463 | * elf32-ppc.c: Likewise. | |
4464 | ||
4465 | 2000-12-05 Kazu Hirata <[email protected]> | |
4466 | ||
4467 | * elf32-fr30.c: Fix formatting. | |
4468 | * elf32-hppa.c: Likewise. | |
4469 | * elf32-i370.c: Likewise. | |
4470 | * elf32-i386.c: Likewise. | |
4471 | * elf32-i860.c: Likewise. | |
4472 | * elf32-i960.c: Likewise. | |
4473 | ||
4474 | 2000-12-03 Kazu Hirata <[email protected]> | |
4475 | ||
4476 | * elf32-arm.h: Fix formatting. | |
4477 | * elf32-avr.c: Likewise. | |
4478 | * elf32-cris.c: Likewise. | |
4479 | * elf32-d10v.c: Likewise. | |
4480 | * elf32-d30v.c: Likewise. | |
4481 | * elf-hppa.h: Likewise. | |
4482 | * elf-m10200.c: Likewise. | |
4483 | * elf-m10300.c: Likewise. | |
4484 | ||
4485 | 2000-12-01 Chris Demetriou <[email protected]> | |
4486 | ||
4487 | * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and | |
4488 | bfd_mach_mips32_4k. Update FIXME comment. | |
4489 | * archures.c (bfd_mach_mips32): New constant. | |
4490 | (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to | |
4491 | the latter, renumber it. | |
4492 | * bfd-in2.h (bfd_mach_mips32): New constant. | |
4493 | (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to | |
4494 | the latter, renumber it. | |
4495 | * cpu-mips.c (I_mips32): New constant. | |
4496 | (I_mips4K, I_mips32_4k): Rename the former to the latter. | |
4497 | (arch_info_struct): Add bfd_mach_mips32 entry, replace | |
4498 | bfd_mach_mips4K entry with bfd_mach_mips32_4k entry. | |
4499 | * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case. | |
4500 | (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32 | |
4501 | with E_MIPS_MACH_MIPS32_4K. | |
4502 | (_bfd_mips_elf_final_write_processing): Replace | |
4503 | bfd_mach_mips4K with bfd_mach_mips32_4k case, add | |
4504 | bfd_mach_mips32 case. | |
4505 | (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing | |
4506 | comparison with support for MIPS32. | |
4507 | (_bfd_mips_elf_print_private_bfd_data): Print ISA name for | |
4508 | MIPS32. | |
4509 | ||
4510 | * aoutx.h (NAME(aout,machine_type)): Add cases for | |
4511 | bfd_mach_mips5 and bfd_mach_mips64. | |
4512 | * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants. | |
4513 | * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise. | |
4514 | * cpu_mips.c (I_mips5, I_mips64): New definitions. | |
4515 | (arch_info_struct): Add entries for bfd_mach_mips5 and | |
4516 | bfd_mach_mips64. | |
4517 | * elf32-mips.c (elf_mips_isa, elf_mips_mach, | |
4518 | _bfd_mips_elf_print_private_bfd_data): Add cases for | |
4519 | E_MIPS_ARCH_5 and E_MIPS_ARCH_64. | |
4520 | (_bfd_mips_elf_final_write_processing): Add cases for | |
4521 | bfd_mach_mips5 and bfd_mach_mips64. | |
4522 | ||
4523 | * aoutx.h (NAME(aout,machine_type)): Add a | |
4524 | bfd_mach_mips_sb1 case. | |
4525 | * archures.c (bfd_mach_mips_sb1): New constant. | |
4526 | * bfd-in2.h (bfd_mach_mips_sb1): New constant. | |
4527 | * cpu-mips.c (I_sb1): New constant. | |
4528 | (arch_info_struct): Add entry for bfd_mach_mips_sb1. | |
4529 | * elf32-mips.c (elf_mips_mach): Add case for | |
4530 | E_MIPS_MACH_SB1. | |
4531 | (_bfd_mips_elf_final_write_processing): Add case for | |
4532 | bfd_mach_mips_sb1. | |
4533 | ||
4534 | 2000-12-01 Joel Sherrill <[email protected]> | |
4535 | ||
4536 | * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets. | |
4537 | (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets. | |
4538 | (sparc*-*-rtems*): Switched from a.out to ELF. | |
4539 | ||
4540 | 2000-11-30 Jan Hubicka <[email protected]> | |
4541 | ||
4542 | * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo | |
4543 | BFD64_BACKENDS_CFILES): Add elf64-x86-64.c | |
4544 | (elf64-x86-64.lo): Add dependencies. | |
4545 | * archures.c (DESCRIPTION): Add bfd_mach_x86_64, | |
4546 | bfd_mach_x86_64_intel_syntax. | |
4547 | * elf.c (prep_headers): Use EM_x86_64 for 64bit output. | |
4548 | * config.bfd (x86_64): Add. | |
4549 | * configure.in: Add support for bfd_elf64_x86_64_vec. | |
4550 | * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add. | |
4551 | (bfd_i386_arch, i8086_ar): Link in. | |
4552 | * elf64-x86-64.c: New file. | |
4553 | * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*. | |
4554 | * targets.c (bfd_elf64_x86_64_vec): Add. | |
4555 | (bfd_target_vect): Add bfd_elf64_x86_64_vec. | |
4556 | ||
4557 | 2000-11-30 Kazu Hirata <[email protected]> | |
4558 | ||
4559 | * xcofflink.c: Fix formatting. | |
4560 | ||
4561 | 2000-11-28 Kazu Hirata <[email protected]> | |
4562 | ||
4563 | * aoutx.h: Fix formatting. | |
4564 | * bfd-in.h: Likewise. | |
4565 | * bfd-in2.h: Likewise. | |
4566 | * cache.c: Likewise. | |
4567 | * cisco-core.c: Likewise. | |
4568 | * coff64-rs6000.c: Likewise. | |
4569 | * coffcode.h: Likewise. | |
4570 | * coffswap.h: Likewise. | |
4571 | * corefile.c: Likewise. | |
4572 | * elf32-mips.c: Likewise. | |
4573 | ||
4574 | 2000-11-27 Kazu Hirata <[email protected]> | |
4575 | ||
4576 | * aout-adobe.c: Fix formatting. | |
4577 | * coff64-rs6000.c: Likewise. | |
4578 | * coffgen.c: Likewise. | |
4579 | * cofflink.c: Likewise. | |
4580 | ||
4581 | 2000-11-27 Philip Blundell <[email protected]> | |
4582 | ||
4583 | * libcoff-in.h (coff_tdata): Add `strings_written' flag. | |
4584 | (obj_coff_strings_written): New accessor macro for above. | |
4585 | * libcoff.h: Regenerate. | |
4586 | * cofflink.c (_bfd_coff_final_link): Say that we wrote the | |
4587 | strings. | |
4588 | * coffcode.h (coff_write_object_contents): No need to write out | |
4589 | the string table if it's already been done. | |
4590 | ||
4591 | 2000-11-22 Philip Blundell <[email protected]> | |
4592 | ||
4593 | * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to | |
4594 | weak undefined symbols. | |
4595 | ||
4596 | 2000-11-24 Nick Clifton <[email protected]> | |
4597 | ||
4598 | * archures.c (bfd_mach_arm_5TE): Define. | |
4599 | (bfd_mach_arm+XScale): Define. | |
4600 | * bfd-in2.h: Regenerate. | |
4601 | ||
4602 | * coff-arm.c (coff_arm_reloc_type_lookup): Accept | |
4603 | BFD_RELOC_ARM_PCREL_BLX. | |
4604 | ||
4605 | * coffcode.h (coff_set_flags): Set flags for 5t, 5te and | |
4606 | XScale machine numbers. | |
4607 | ||
4608 | * config.bfd (xscale-elf): Add target. | |
4609 | (xscale-coff): Add target. | |
4610 | ||
4611 | * cpu-arm.c: Add xscale machine name. | |
4612 | Add v5t, v5te and XScale machine numbers. | |
4613 | ||
4614 | 2000-11-23 Kazu Hirata <[email protected]> | |
4615 | ||
4616 | * aix386-core.c: Fix formatting. | |
4617 | ||
4618 | 2000-11-22 Jim Wilson <[email protected]> | |
4619 | ||
4620 | * coff-ia64.c (howto_table): Use EMPTY_HOWTO. | |
4621 | (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters. | |
4622 | * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise. | |
4623 | (ins_imms_scaled): Initialize sign_bit at function entry. | |
4624 | (elf64_ia64_operands): Add missing initializers. | |
4625 | * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup, | |
4626 | elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections, | |
4627 | elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name, | |
4628 | elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff, | |
4629 | elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused | |
4630 | parameters. | |
4631 | (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents, | |
4632 | and free_extsyms at function entry. | |
4633 | (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result. | |
4634 | (elfNN_ia64_create_dynamic_sections): Delete unused local h. | |
4635 | (get_got): Delete unused local srel. | |
4636 | (elfNN_ia64_check_relocs): Initialize dynrel_type when declared. | |
4637 | (elfNN_ia64_relocate_section): Delete unused local dynindx. | |
4638 | ||
4639 | 2000-11-21 Kazu Hirata <[email protected]> | |
4640 | ||
4641 | * coff-a29k.c: Fix formatting. | |
4642 | * coff-h8500.c: Likewise. | |
4643 | * coff-i960.c: Likewise. | |
4644 | * coff-ppc.c: Likewise. | |
4645 | * coff-rs6000.c: Likewise. | |
4646 | * coff-stgo32.c: Likewise. | |
4647 | * coff-tic54x.c: Likewise. | |
4648 | * coff-w65.c: Likewise. | |
4649 | * cpu-h8500.c: Likewise. | |
4650 | * cpu-hppa.c: Likewise. | |
4651 | * cpu-ns32k.c: Likewise. | |
4652 | * ecoff.c: Likewise. | |
4653 | * ecofflink.c: Likewise. | |
4654 | ||
4655 | 2000-11-21 Nick Clifton <[email protected]> | |
4656 | ||
4657 | * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and | |
4658 | remove possibility of infinite loop. | |
4659 | ||
4660 | 2000-11-20 Kazu Hirata <[email protected]> | |
4661 | ||
4662 | * aix386-core.c: Fix formatting. | |
4663 | * aout-adobe.c: Likewise. | |
4664 | * aout-arm.c: Likewise. | |
4665 | * aout-encap.c: Likewise. | |
4666 | * aout-ns32k.c: Likewise. | |
4667 | * aout-target.h: Likewise. | |
4668 | * aout-tic30.c: Likewise. | |
4669 | * aoutf1.h: Likewise. | |
4670 | * aoutx.h: Likewise. | |
4671 | * archive.c: Likewise. | |
4672 | * bfd-in.h: Likewise. | |
4673 | * bfd-in2.h: Likewise. | |
4674 | * bfd.c: Likewise. | |
4675 | * bout.c: Likewise. | |
4676 | ||
4677 | 2000-11-17 H.J. Lu <[email protected]> | |
4678 | ||
4679 | * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create | |
4680 | pltoff entries for DT_INIT and DT_FINI. | |
4681 | (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries. | |
4682 | (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI | |
4683 | entries. | |
4684 | ||
4685 | 2000-11-16 Richard Henderson <[email protected]> | |
4686 | ||
4687 | * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs. | |
4688 | (allocate_dynrel_entries): Likewise. | |
4689 | (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly. | |
4690 | (set_pltoff_entry): Likewise. | |
4691 | (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB | |
4692 | (elfNN_ia64_reloc_type_lookup): Likewise. | |
4693 | (elfNN_ia64_install_value): Likewise. | |
4694 | (elfNN_ia64_relocate_section): Likewise. | |
4695 | * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove. | |
4696 | (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove. | |
4697 | ||
4698 | 2000-11-16 Kazu Hirata <[email protected]> | |
4699 | ||
4700 | * cpu-a29k.c: Fix formatting. | |
4701 | * cpu-alpha.c: Likewise. | |
4702 | * cpu-arm.c: Likewise. | |
4703 | * cpu-avr.c: Likewise. | |
4704 | * cpu-d10v.c: Likewise. | |
4705 | * cpu-h8500.c: Likewise. | |
4706 | * cpu-hppa.c: Likewise. | |
4707 | * cpu-i370.c: Likewise. | |
4708 | * cpu-i386.c: Likewise. | |
4709 | * cpu-i960.c: Likewise. | |
4710 | * cpu-ia64-opc.c: Likewise. | |
4711 | * cpu-ia64.c: Likewise. | |
4712 | * cpu-m32r.c: Likewise. | |
4713 | * cpu-m68hc11.c: Likewise. | |
4714 | * cpu-m68hc12.c: Likewise. | |
4715 | * cpu-m68k.c: Likewise. | |
4716 | * cpu-m88k.c: Likewise. | |
4717 | * cpu-mips.c: Likewise. | |
4718 | * cpu-ns32k.c: Likewise. | |
4719 | * cpu-pj.c: Likewise. | |
4720 | * cpu-powerpc.c: Likewise. | |
4721 | * cpu-sh.c: Likewise. | |
4722 | * cpu-sparc.c: Likewise. | |
4723 | * cpu-tic54x.c: Likewise. | |
4724 | * cpu-v850.c: Likewise. | |
4725 | * cpu-vax.c: Likewise. | |
4726 | * cpu-w65.c: Likewise. | |
4727 | * cpu-we32k.c: Likewise. | |
4728 | * cpu-z8k.c: Likewise. | |
4729 | * dwarf1.c: Likewise. | |
4730 | * dwarf2.c: Likewise. | |
4731 | ||
4732 | 2000-11-15 Kazu Hirata <[email protected]> | |
4733 | ||
4734 | * coff-arm.c: Fix formatting. | |
4735 | * coff-ppc.c: Likewise. | |
4736 | * coff-rs6000.c: Likewise. | |
4737 | * coff-sh.c: Likewise. | |
4738 | * coff-sparc.c: Likewise. | |
4739 | * coff-tic30.c: Likewise. | |
4740 | * coff-tic54x.c: Likewise. | |
4741 | * coff-tic80.c: Likewise. | |
4742 | * coff-w65.c: Likewise. | |
4743 | * coff-we32k.c: Likewise. | |
4744 | * coff-z8k.c: Likewise. | |
4745 | ||
4746 | 2000-11-15 Richard Henderson <[email protected]> | |
4747 | ||
4748 | * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc | |
4749 | section with the same ALLOC|LOAD flags as the source section. | |
4750 | ||
4751 | 2000-11-14 Jakub Jelinek <[email protected]> | |
4752 | ||
4753 | * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used | |
4754 | by STO_ALPHA constants. | |
4755 | ||
4756 | 2000-11-14 Kazu Hirata <[email protected]> | |
4757 | ||
4758 | * coff-pmac.c: Fix formatting. | |
4759 | * coff-ppc.c: Likewise. | |
4760 | ||
4761 | 2000-11-13 H.J. Lu <[email protected]> | |
4762 | ||
4763 | * elflink.h (elf_link_add_object_symbols): Also add indirect | |
4764 | symbols for common symbols with the default version. | |
4765 | ||
4766 | 2000-11-09 Philip Blundell <[email protected]> | |
4767 | ||
4768 | * section.c (STD_SECTION): Set gc_mark flag. | |
4769 | ||
4770 | 2000-11-11 Kazu Hirata <[email protected]> | |
4771 | ||
4772 | * coff-i960.c: Likewise. | |
4773 | * coff-m68k.c: Likewise. | |
4774 | * coff-m88k.c: Likewise. | |
4775 | * coff-mcore.c: Likewise. | |
4776 | * coff-mips.c: Likewise. | |
4777 | ||
4778 | 2000-11-11 Bernd Schmidt <[email protected]> | |
4779 | ||
4780 | * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs. | |
4781 | ||
4782 | 2000-11-10 Kazu Hirata <[email protected]> | |
4783 | ||
4784 | * coff-h8300.c: Fix formatting. | |
4785 | * coff-h8500.c: Likewise. | |
4786 | * coff-i386.c: Likewise. | |
4787 | * coff-i860.c: Likewise. | |
4788 | * coff-i960.c: Likewise. | |
4789 | * coff-ia64.c: Likewise. | |
4790 | ||
4791 | 2000-11-09 Kazu Hirata <[email protected]> | |
4792 | ||
4793 | * archive.c: Fix formatting. | |
4794 | * archures.c: Likewise. | |
4795 | ||
4796 | 2000-11-07 Richard Henderson <[email protected]> | |
4797 | ||
4798 | * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec. | |
4799 | Set it before bfd_elf64_bfd_final_link call. Use it after the call. | |
4800 | * section.c (bfd_set_section_contents): Call memcpy if | |
4801 | section->contents set and location not equal to contents plus offset. | |
4802 | ||
4803 | 2000-11-08 Kazu Hirata <[email protected]> | |
4804 | ||
4805 | * bfd-in.h: Fix formatting. | |
4806 | * bfd-in2.h: Likewise. | |
4807 | * bfd.c: Likewise. | |
4808 | * binary.c: Likewise. | |
4809 | * bout.c: Likewise. | |
4810 | * coff-a29k.c: Likewise. | |
4811 | * coff-alpha.c: Likewise. | |
4812 | * coff-apollo.c: Likewise. | |
4813 | * coff-aux.c: Likewise. | |
4814 | ||
4815 | 2000-11-07 Kazu Hirata <[email protected]> | |
4816 | ||
4817 | * aix386-core.c: Fix formatting. | |
4818 | * aoutf1.h: Likewise. | |
4819 | * aoutx.h: Likewise. | |
4820 | * archures.c: Likewise. | |
4821 | * armnetbsd.c: Likewise. | |
4822 | ||
4823 | 2000-11-07 Alan Modra <[email protected]> | |
4824 | ||
4825 | * coff-h8300.c (special): Adjust reloc address. | |
4826 | ||
4827 | 2000-11-06 Steve Ellcey <[email protected]> | |
4828 | ||
4829 | * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines | |
4830 | to differentiate elf32 and elf64 on ia64. | |
4831 | * bfd-in2.h: Regenerate. | |
4832 | * config.bfd: Add target for "ia64*-*-hpux*". | |
4833 | * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch. | |
4834 | * configure: Regenerate. | |
4835 | * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure. | |
4836 | * targets.c: Add bfd_target bfd_elf32_ia64_big_vec. | |
4837 | ||
4838 | * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects | |
4839 | from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo. | |
4840 | * Makefile.in: Regnerate. | |
4841 | * elf64-ia64.c: Deleted. | |
4842 | * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c. | |
4843 | ||
4844 | 2000-11-06 Kazu Hirata <[email protected]> | |
4845 | ||
4846 | * aout-adobe.c: Fix formatting. | |
4847 | * aout-arm.c: Likewise. | |
4848 | * aout-cris.c: Likewise. | |
4849 | * aout-encap.c: Likewise. | |
4850 | * aout-ns32k.c: Likewise. | |
4851 | * aout-target.h: Likewise. | |
4852 | * aout-tic30.c: Likewise. | |
4853 | ||
4854 | 2000-11-05 Philip Blundell <[email protected]> | |
4855 | ||
4856 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit | |
4857 | BFDs containing no sections to be merged, regardless of their flags. | |
4858 | ||
4859 | 2000-11-04 Philip Blundell <[email protected]> | |
4860 | ||
4861 | * elf32-arm.h (elf32_arm_relocate_section): Suppress error message | |
4862 | if a relocation for an undefined symbol also results in an | |
4863 | overflow. | |
4864 | ||
4865 | 2000-11-06 Christopher Faylor <[email protected]> | |
4866 | ||
4867 | * config.bfd: Add support for Sun Chorus. | |
4868 | ||
4869 | 2000-11-05 David O'Brien <[email protected]> | |
4870 | ||
4871 | * configure.in: Recognize alpha-*-freebsd*. | |
4872 | * configure: Regenerate. | |
4873 | ||
4874 | 2000-11-02 Luciano Gemme <[email protected]> | |
4875 | ||
4876 | * srec.c (CHUNK): Rename to DEFAULT_CHUNK. | |
4877 | (Chunk): New global variable set by a parameter in objcopy.c. | |
4878 | (S3Forced): New global variable set by a parameter in | |
4879 | objcopy.c. | |
4880 | (srec_set_section_contents): If S3Forced is true, always generate | |
4881 | S3 records. | |
4882 | (srec_write_section): Use 'Chunk' to limit maximum length of S | |
4883 | records. | |
4884 | ||
4885 | 2000-11-02 Per Lundberg <[email protected]> | |
4886 | ||
4887 | * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos. | |
4888 | * Makefile.in: Regenerate. | |
4889 | * bfd-in2.h: Regenerate. | |
4890 | * po/bfd.pot: Regenerate. | |
4891 | ||
4892 | 2000-10-31 Philip Blundell <[email protected]> | |
4893 | ||
4894 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle | |
4895 | EF_SOFT_FLOAT if it is defined. | |
4896 | ||
4897 | 2000-10-27 Philip Blundell <[email protected]> | |
4898 | ||
4899 | * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse | |
4900 | attempts to mix PIC code with non-PIC, just mark the output as | |
4901 | being position dependent. | |
4902 | (elf32_arm_merge_private_bfd_data): Likewise. Print an error | |
4903 | message for EF_SOFT_FLOAT mismatches. Display diagnostics for | |
4904 | all mismatches, not just the first one. | |
4905 | ||
4906 | 2000-10-25 Chris Demetriou <[email protected]> | |
4907 | ||
4908 | * ieee.c (ieee_archive_p): Plug one of many possible | |
4909 | memory leaks in error handling. | |
4910 | ||
4911 | 2000-10-20 Jakub Jelinek <[email protected]> | |
4912 | ||
4913 | * elf32-sparc.c (elf32_sparc_merge_private_bfd_data, | |
4914 | elf32_sparc_object_p, elf32_sparc_final_write_processing): | |
4915 | Support v8plusb. | |
4916 | * elf64-sparc.c (sparc64_elf_merge_private_bfd_data, | |
4917 | sparc64_elf_object_p): Support v9b. | |
4918 | * archures.c: Declare v8plusb and v9b machines. | |
4919 | * bfd-in2.h: Ditto. | |
4920 | * cpu-sparc.c: Ditto. | |
4921 | ||
4922 | 2000-10-16 Geoffrey Keating <[email protected]> | |
4923 | ||
4924 | * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location | |
4925 | of a GOT reloc. | |
4926 | ||
4927 | * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro. | |
4928 | (SYMBOL_CALLS_LOCAL): New macro. | |
4929 | (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL. | |
4930 | (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL. | |
4931 | (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL. | |
4932 | (ppc_elf_relocate_section): Use flag variable to determine | |
4933 | whether the relocation refers to a local symbol. | |
4934 | Test whether a PLTREL24 reloc will produce a reloc by looking | |
4935 | to see whether a PLT entry was made. | |
4936 | ||
4937 | 2000-10-14 Geoffrey Keating <[email protected]> | |
4938 | ||
4939 | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT | |
4940 | entries that could serve as a definition for a weak symbol. | |
4941 | ||
4942 | 2000-10-13 Ulf Carlsson <[email protected]> | |
4943 | ||
4944 | From Ralf Baechle <[email protected]> | |
4945 | ||
4946 | * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument | |
4947 | local_p. Add symbol value only for non-R_MIPS_REL32 relocations | |
4948 | against local symbols. | |
4949 | (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01. | |
4950 | ||
4951 | 2000-10-12 Alan Modra <[email protected]> | |
4952 | ||
4953 | * section.c (struct sec): Add kept_section. | |
4954 | (struct bfd_comdat_info): Remove sec, we can use above. | |
4955 | (STD_SECTION): Add initializer. | |
4956 | (bfd_make_section_anyway): Init here too. | |
4957 | ||
4958 | * bfd-in2.h: Regenerate. | |
4959 | ||
4960 | * elflink.h (elf_link_add_object_symbols): Remove unnecessary | |
4961 | zeroing of `flags'. | |
4962 | (elf_link_input_bfd): Set all asection->symbol->value's here, and | |
4963 | fudge values for discarded link-once section symbols. | |
4964 | ||
4965 | * elf64-hppa.c: Include alloca-conf.h | |
4966 | ||
4967 | 2000-10-11 Alan Modra <[email protected]> | |
4968 | ||
4969 | * elf.c (swap_out_syms): Revert 2000-10-07 changes. | |
4970 | ||
4971 | * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg. | |
4972 | ||
4973 | 2000-10-10 Alan Modra <[email protected]> | |
4974 | ||
4975 | * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc. | |
4976 | ||
4977 | 2000-10-10 Tom Rix <[email protected]> | |
4978 | ||
4979 | * section.c (bfd_make_section_anyway): Release newsect ptr when | |
4980 | newsect->symbol fails to alloc. Use bfd_release instead of free. | |
4981 | ||
4982 | 2000-10-09 Richard Henderson <[email protected] | |
4983 | ||
4984 | * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New. | |
4985 | (elf64_ia64_unwind_entry_compare): New. | |
4986 | (elf64_ia64_final_link): Sort the .IA_64.unwind section. | |
4987 | ||
4988 | 2000-10-07 Alan Modra <[email protected]> | |
4989 | ||
4990 | * elflink.h (size_dynamic_sections): Don't create various tags if | |
4991 | .dynstr is excluded from the link. Don't set first dynsym entry | |
4992 | if dynsymcount is zero. | |
4993 | (elf_bfd_final_link): Don't try to swap out dynamic syms if | |
4994 | .dynsym excluded from the link. Don't try to write any dynamic | |
4995 | sections excluded from the link. | |
4996 | ||
4997 | * elf.c (swap_out_syms): Handle global section symbols. | |
4998 | ||
4999 | 2000-10-05 DJ Delorie <[email protected]> | |
5000 | ||
5001 | * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs | |
5002 | * coffcode.h (coff_set_alignment_hook): read extended reloc count | |
5003 | (coff_write_relocs): write extended reloc count | |
5004 | (coff_write_object_contents): account for extended relocs | |
5005 | ||
5006 | 2000-10-05 Jim Wilson <[email protected]> | |
5007 | ||
5008 | * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags | |
5009 | field. | |
5010 | * elf.c (_bfd_elf_make_section_from_shdr): Call the | |
5011 | elf_backend_section_flags function. | |
5012 | * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion | |
5013 | code. | |
5014 | (elf64_ia64_section_flags): New function containing flag conversion | |
5015 | code. | |
5016 | (elf_backend_section_flags): Define to elf64_ia64_section_flags. | |
5017 | * elfxx-target.h (elf_backend_section_flags): Define. | |
5018 | (elfNN_bed): Initialize elf_backend_section_flags field. | |
5019 | ||
5020 | 2000-10-02 Alan Modra <[email protected]> | |
5021 | ||
5022 | * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to | |
5023 | _bfd_elf32_gc_record_vtable. Correct a comment. | |
5024 | ||
5025 | 2000-10-01 Ulf Carlsson <[email protected]> | |
5026 | ||
5027 | From Ralf Baechle <[email protected]> | |
5028 | ||
5029 | * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld | |
5030 | produces binaries with got[1] = 0x80000001 to differenciate them | |
5031 | for the dynamic linker from the broken binaries produced by old | |
5032 | versions. | |
5033 | ||
5034 | 2000-09-30 Petr Sorfa <[email protected]> | |
5035 | ||
5036 | * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t. | |
5037 | (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t. | |
5038 | * configure.in: Add check for pxstatus_t and lwpxstatus_t. | |
5039 | * configure: Regenerate. | |
5040 | ||
5041 | 2000-09-27 Hans-Peter Nilsson <[email protected]> | |
5042 | ||
5043 | Define two bfd_targets for absence and presence of leading | |
5044 | underscore on symbols. Make sure to only link same kind. | |
5045 | * elf32-cris.c (cris_elf_object_p, | |
5046 | cris_elf_final_write_processing, cris_elf_print_private_bfd_data, | |
5047 | cris_elf_merge_private_bfd_data): New. | |
5048 | (elf_backend_object_p, elf_backend_final_write_processing, | |
5049 | bfd_elf32_bfd_print_private_bfd_data, | |
5050 | bfd_elf32_bfd_merge_private_bfd_data): Define. | |
5051 | <Target vector definition>: Include elf32-target.h twice with | |
5052 | different macro settings: | |
5053 | (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as | |
5054 | bfd_elf32_us_cris_vec. | |
5055 | (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris". | |
5056 | (elf_symbol_leading_char): First as 0, then '_'. | |
5057 | (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h. | |
5058 | * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs. | |
5059 | * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector. | |
5060 | * configure: Regenerate. | |
5061 | * targets.c: Declare bfd_elf32_us_cris_vec. | |
5062 | * po/bfd.pot: Regenerate. | |
5063 | ||
5064 | 2000-09-29 Momchil Velikov <[email protected]> | |
5065 | ||
5066 | * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for | |
5067 | R_ARM_THM_PC22 relocations. | |
5068 | ||
5069 | 2000-09-29 NIIBE Yutaka <[email protected]> | |
5070 | ||
5071 | * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath. | |
5072 | ||
5073 | 2000-09-29 Momchil Velikov <[email protected]> | |
5074 | ||
5075 | * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if | |
5076 | is has the SEC_HAS_CONTENTS flag set. | |
5077 | ||
5078 |