1 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
3 * elf.c (assign_file_positions_for_segments): Combine sentance
4 fragments into a single sentance in order to permit better
5 translation into foreign languages.
7 2001-12-07 Jim Blandy <jimb@redhat.com>
9 * elf32-s390.c (elf32_s390_grok_prstatus): New function.
10 (elf_backend_grok_prstatus): Define.
12 2001-12-07 Jakub Jelinek <jakub@redhat.com>
14 * elf32-sparc.c (elf32_sparc_relocate_section): Revert
17 2001-12-07 Jakub Jelinek <jakub@redhat.com>
19 * elf.c (_bfd_elf_rela_local_sym): Only call
20 _bfd_merged_section_offset if merge_info is non-NULL.
21 (_bfd_elf_rel_local_sym, _bfd_elf_section_offset): New.
22 * elf-bfd.h (_bfd_elf_rel_local_sym, _bfd_elf_section_offset): New
24 * elf32-arm.h (elf32_arm_final_link_relocate): Use
25 _bfd_elf_section_offset.
26 (elf32_arm_relocate_section): Use _bfd_elf_rel_local_sym.
27 * elf32-i386.c (elf_i386_relocate_section): Use
28 _bfd_elf_section_offset and _bfd_elf_rel_local_sym.
29 * elf32-sh.c (sh_elf_relocate_section): Likewise.
30 * elf32-sparc.c (elf32_sparc_relocate_section): Use
31 _bfd_elf_section_offset.
32 * elf32-cris.c (cris_elf_relocate_section): Likewise.
33 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
34 * elf32-i370.c (i370_elf_relocate_section): Likewise.
35 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
36 * elf32-mips.c (mips_elf_create_dynamic_relocation): Likewise.
37 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
38 * elf32-s390.c (elf_s390_relocate_section): Likewise.
39 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
40 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
41 * elf64-s390.c (elf_s390_relocate_section): Likewise.
42 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
43 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
44 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
46 2001-12-07 Alan Modra <amodra@bigpond.net.au>
48 * elf32-hppa.c (clobber_millicode_symbols): Don't do anything if
51 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
53 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Combine
54 fragmented sentence parts into a whole sentence to permit
55 better translation into foreign languages.
57 2001-12-06 Hans-Peter Nilsson <hp@bitrange.com>
59 * configure: Regenerate.
60 * Makefile.in: Regenerate.
62 2001-12-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
64 * Makefile.am: split up BFD_LIBS like statements in BFD32_LIBS and
65 BFD64_LIBS, make the latter depending on the availability of BFD64.
66 Add archive64.c source file.
67 * archive64.c: New file implementing bfd_elf64_archive_slurp_armap
68 and bfd_elf64_archive_write_armap, code from elf64-mips.c
69 * archive.c (bfd_slurp_armap): Add ELF64 archive support.
70 * config.bfd (mips*-*-irix6*): Allow with BFD64 only.
71 (mips64*el-*-linux*): Likewise.
72 (mips*el-*-linux*): Likewise. Reorder entries.
73 * configure.in (bfd_libs): Define in dependency of BFD64 and
75 * elf64-mips.c (mips_elf64_slurp_armap): Remove, use
76 bfd_elf64_archive_slurp_armap instead.
77 (mips_elf64_write_armap): Remove, use bfd_elf64_archive_write_armap
80 2001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
82 * config.bfd: Remove trailing blanks.
83 * elf32-mips.c (gprel16_with_gp): Remove superfluous casts.
85 2001-12-04 Alexandre Oliva <aoliva@redhat.com>
87 * elf32-d10v.c (elf_d10v_howto_table): Adjust bit-size of
88 R_D10V_10_PCREL_L, R_D10V_10_PCREL_R, R_D10V_18,
89 R_D10V_18_PCREL. Check 10_PCREL relocations as signed.
90 Disable pointless overflow checking of NONE and 32.
92 2001-12-04 Alan Modra <amodra@bigpond.net.au>
94 * reloc.c (bfd_install_relocation): Correct reloc address test.
95 (bfd_perform_relocation): Formatting fix.
96 * bfd-in2.h: Regenerate for 2001-12-02 reloc.c change.
98 2001-12-03 Nick Clifton <nickc@cambridge.redhat.com>
100 * configure.in (LINGUAS): Add tr.
101 * configure: Regenerate.
102 * po/tr.po: Import from translation project's web site.
104 2001-12-03 Alan Modra <amodra@bigpond.net.au>
106 * elf32-hppa.c (hppa_get_stub_entry): Remove debug message that
107 happens to trigger on undefined symbols.
108 (final_link_relocate): Return bfd_reloc_undefined for undefined
110 (elf32_hppa_relocate_section): Don't say we can't handle a reloc
111 if we have already warned about an undefined symbol.
113 2001-12-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
115 * elf32-mips.c (NEWABI_P): New define.
116 (USE_REL): Remove, replaced by
117 (elf_backend_may_use_rel_p): New define.
118 (elf_backend_may_use_rela_p): Likewise.
119 (elf_backend_default_use_rela_p): Likewise.
120 (elf_mips_howto_table): Rename to elf_mips_howto_table_rel.
121 Fix some relocation definitions.
122 (elf_mips_howto_table_rela): New RELA relocation definitions for
124 (mips32_64bit_reloc): Use the renamed elf_mips_howto_table_rel.
125 (bfd_elf32_bfd_reloc_type_lookup): Likewise.
126 (mips_rtype_to_howto): Likewise.
127 (_bfd_mips_elf_relocate_section): Likewise.
128 (_bfd_mips_elf_object_p): Typo.
129 (elf_backend_sign_extend_vma): Reordered together with many other
130 defines nearby to resemble the order of declaration in the header
133 2001-12-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
135 * coff-mips.c (mips_bfd_reloc_type_lookup): Replace
136 BFD_RELOC_MIPS_GPREL by BFD_RELOC_GPREL16.
137 * pe-mips.c (mips_bfd_reloc_type_lookup): Likewise.
138 * elf32-mips.c (mips_reloc_map): Likewise. Replace
139 BFD_RELOC_MIPS_GPREL32 by BFD_RELOC_GPREL32.
140 * elf64-mips.c (mips_reloc_map): Likewise.
141 * reloc.c (BFD_RELOC_MIPS_GPREL): Remove.
142 (BFD_RELOC_MIPS_GPREL32): Remove.
144 2001-11-30 H.J. Lu <hjl@gnu.org>
146 * elflink.h (elf_add_default_symbol): New.
147 (elf_link_add_object_symbols): Call elf_add_default_symbol ()
148 to create an indirect symbol from the default for the symbol
149 with the default version if needed.
151 2001-11-29 "Peter.Schauer" <Peter.Schauer@regent.e-technik.tu-muenchen.de>
153 * elf.c (elfcore_grok_prstatus): Do not overwite the core signal
154 if it has already been set by another thread.
156 2001-11-28 Jakub Jelinek <jakub@redhat.com>
158 * elf64-alpha.c (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Defined.
159 (elf64_alpha_relocate_section): Translate local_got_entries
160 for STT_SECTION symbol to SHF_MERGE section the first time
162 * elfxx-ia64.c (struct elfNN_ia64_local_hash_entry): Add
164 (get_local_sym_hash): New, extracted from get_dyn_sym_info.
165 (get_dyn_sym_info): Use it.
166 (elfNN_ia64_relocate_section): Translate local dyn entries
167 for STT_SECTION symbol to SHF_MERGE section the first time
170 2001-11-27 H.J. Lu <hjl@gnu.org>
172 * elflink.h (elf_bfd_discard_info): Skip if the input bfd isn't
175 2001-11-26 Jeffrey A Law (law@cygnus.com)
177 * stabs.c (_bfd_discard_section_stabs): Use PARAMS in function
180 2001-11-24 Alan Modra <amodra@bigpond.net.au>
182 * elf32-hppa.c (elf32_hppa_size_stubs): Decrease default stub
183 group sizes to accommodate c++.
185 2001-11-23 Jakub Jelinek <jakub@redhat.com>
187 * elf32-sparc.c (elf32_sparc_relocate_section): Don't clear
188 relocations in non-alloced sections against global symbols
189 defined in shared library being built.
190 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
192 2001-11-23 Jakub Jelinek <jakub@redhat.com>
194 * elf.c (_bfd_elf_rela_local_sym): New.
195 * elflink.h (elf_link_input_bfd): Don't consider empty
196 merged sections as removed in relocation tests.
197 * elf-bfd.h (_bfd_elf_rela_local_sym): Add prototype.
198 * elf32-i386.c (elf_i386_relocate_section): Handle relocs
199 against STT_SECTION symbol of SHF_MERGE section.
200 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
201 * elf32-avr.c (elf32_avr_relocate_section): Call
202 _bfd_elf_rela_local_sym.
203 * elf32-cris.c (cris_elf_relocate_section): Likewise.
204 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
205 * elf32-fr30.c (fr30_final_link_relocate): Likewise.
206 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
207 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
208 * elf32-i370.c (i370_elf_relocate_section): Likewise.
209 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
210 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
211 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
212 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
213 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
214 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
215 * elf32-s390.c (elf_s390_relocate_section): Likewise.
216 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
217 * elf32-v850.c (v850_elf_relocate_section): Likewise.
218 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
219 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
220 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
221 * elf64-s390.c (elf_s390_relocate_section): Likewise.
222 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
223 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
224 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
225 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
226 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
227 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
228 * elf32-sh.c (sh_elf_relocate_section): Likewise for
229 !partial_inplace relocs. Handle relocs against STT_SECTION
230 symbol of SHF_MERGE for partial_inplace relocs.
232 2001-11-21 Nick Clifton <nickc@cambridge.redhat.com>
234 * po/Make-in (distclean): Move SRC-POTFILES.in and
235 BLD-POTFILES.in to maintainer-clean target.
237 2001-11-21 Alan Modra <amodra@bigpond.net.au>
239 * elfxx-ia64.c (elfNN_ia64_relocate_section): Test r_symndx rather
240 than sym_sec->output_section to detect relocs against discarded
243 2001-11-19 H.J. Lu <hjl@gnu.org>
245 * elflink.h (elf_link_input_bfd): Assert r_symndx != 0 when
246 discarding relocations.
248 2001-11-19 Nick Clifton <nickc@cambridge.redhat.com>
250 * section.c (bfd_is_const_section): New macro. Return true if the
251 given seciton is one of the special, constant, sections.
252 * bfd-in2.h: Regenerate.
253 * coffgen.c (coff_count_linenumbers): Use bfd_is_const_section.
254 (coff_write_native_symbol): Use bfd_is_const_section.
256 2001-11-19 Alan Modra <amodra@bigpond.net.au>
258 * elf32-hppa.c (clobber_millicode_symbols): Dec dynstr refcount.
260 * elf32-hppa.c (elf32_hppa_size_stubs): Don't consider undefined
261 millicode syms as candidates for import stubs.
263 * elf32-hppa.c (PLABEL_PLT_ENTRY_SIZE): Delete.
264 (allocate_PIC_calls): Rename to allocate_plt_static.
265 (allocate_dynrelocs): Move most of code handling .plt entries to..
266 (allocate_plt_static): ..here. Don't drop plabel entries.
268 2001-11-19 Hans-Peter Nilsson <hp@bitrange.com>
270 * mmo.c: Adjust documentation tags to use texinfo 4 features.
272 2001-11-16 Nick Clifton <nickc@cambridge.redhat.com>
274 * section.c (bfd_is_const_section): New macro. Return true if the
275 section pointer refers to one of the special, constant sections.
276 * bfd-in2.h: Regenerate.
278 * coffgen.c (coff_count_linenumbers): Only update the line number
279 count in non-special sections.
280 (coff_write_native_symbol): Only update the line number file
281 position in non-special sections.
283 2001-11-15 Daniel Jacobowitz <drow@mvista.com>
285 * elflink.h (elf_reloc_symbol_deleted_p): Catch all relocs against
286 local syms from discarded sections. Update comment.
288 2001-11-15 Alan Modra <amodra@bigpond.net.au>
290 * po/SRC-POTFILES.in: Regenerate.
292 * elflink.h (elf_link_input_bfd): Complain about all relocs
293 against local syms from discarded sections. K&R fixes.
294 (elf_reloc_symbol_deleted_p): Don't try to swap in external syms.
297 2001-11-15 Alexandre Oliva <aoliva@redhat.com>
299 * elf64-sparc.c (sparc64_elf_relocate_section): Disregard
300 overflows in the .stab section.
302 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
304 * bfd-in.h (bfd_elf32_discard_info): Add prototype.
305 (bfd_elf64_discard_info): Likewise.
306 * bfd-in2.h: Regenerate.
307 * elf-bfd.h (struct elf_reloc_cookie): New.
308 (struct elf_backend_data): Add elf_backend_discard_info,
309 elf_backend_ignore_discarded_relocs, and elf_backend_write_section.
310 (_bfd_elf32_reloc_symbol_deleted_p): Add prototype.
311 (_bfd_elf64_reloc_symbol_deleted_p): Likewise.
312 * elf32-mips.c (_bfd_elf32_mips_discard_info): New.
313 (_bfd_elf32_mips_ignore_discarded_relocs): New.
314 (_bfd_elf32_mips_write_section): New.
315 (elf_backend_discard_info): Define.
316 (elf_backend_ignore_discarded_relocs): Define.
317 (elf_backend_write_section): Define.
318 * elfcode.h (elf_bfd_discard_info): Define.
319 (elf_reloc_symbol_deleted_p): Define.
320 * elflink.h (elf_link_input_bfd): Check
321 elf_section_ignore_discarded_relocs. Call
322 bed->elf_backend_write_section if available.
323 (elf_reloc_symbol_deleted_p): New.
324 (elf_bfd_discard_info): New.
325 (elf_section_ignore_discarded_relocs): New.
326 * elfxx-target.h (elf_backend_discard_info): Define.
327 (elf_backend_ignore_discarded_relocs): Define.
328 (elf_backend_write_section): Define.
329 (elfNN_bed): Add elf_backend_discard_info,
330 elf_backend_ignore_discarded_relocs, and
331 elf_backend_write_section.
332 * libbfd-in.h (_bfd_discard_section_stabs): Add prototype.
333 * libbfd.h: Regenerate.
334 * stabs.c (_bfd_discard_section_stabs): New.
336 2001-11-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
338 * elf32-s390.c (elf_s390_relocate_section): Use the "unresolved_reloc"
339 scheme to get rid of an ugly complicated test.
340 * elf64-s390.c (elf_s390_relocate_section): Likewise.
342 2001-11-14 Andreas Jaeger <aj@suse.de>
344 * cpu-i386.c (bfd_x86_64_arch_intel_syntax,bfd_x86_64_arch): Use
347 2001-11-14 Jakub Jelinek <jakub@redhat.com>
349 * dwarf2.c (struct line_head) [total_length]: Change type to
351 (struct dwarf2_debug): Add dwarf_str_buffer and dwarf_str_size.
352 (struct comp_unit): Add stash and offset_size.
353 (read_8_bytes): Return bfd_vma.
354 (read_indirect_string): New.
355 (read_attribute): Handle DW_FORM_strp.
356 (decode_line_info): Support 64-bit DWARF format.
357 (_bfd_dwarf2_find_nearest_line): Likewise.
358 (parse_comp_unit): Set offset_size and stash.
360 2001-11-13 Keith Walker <keith.walker@arm.com>
362 * dwarf2.c (read_attribute_value): New function to handle
364 (read_attribute): Use it.
366 2001-11-13 Geoffrey Keating <geoffk@redhat.com>
368 * dwarf2.c (decode_line_info): Properly deal with unknown standard
371 2001-11-13 John Marshall <jmarshall@acm.org>
372 Alan Modra <amodra@bigpond.net.au>
374 * section.c (bfd_make_section_anyway): Don't increment section_id
375 and the BFD's section_count if adding the section failed.
376 * vms.c (vms_new_section_hook): Adjust for bfd_make_section_anyway
379 2001-11-12 Orjan Friberg <orjanf@axis.com>
381 * elf32-cris.c (cris_elf_grok_prstatus): Adjust values to match new
384 2001-11-11 H.J. Lu <hjl@gnu.org>
386 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Call
387 _bfd_elf_strtab_size instead of _bfd_stringtab_size.
389 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Change
390 dynstr type to `struct elf_strtab_hash *'.
392 2001-11-11 Hans-Peter Nilsson <hp@bitrange.com>
394 * elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i
395 size_t. Rename second i to j.
397 2001-11-10 Jeffrey A Law (law@cygnus.com)
399 * binary.c: Include safe-ctype.h after bfd.h and sysdep.h.
401 2001-11-10 Alan Modra <amodra@bigpond.net.au>
403 * elf32-arm.h (elf32_arm_final_link_relocate): Don't copy STN_UNDEF
404 relocs into shared libs.
405 * elf32-cris.c (cris_elf_relocate_section): Likewise.
406 * elf32-i370.c (i370_elf_relocate_section): Likewise.
407 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
408 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
409 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
410 * elf32-sh.c (sh_elf_relocate_section): Likewise.
411 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
412 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
413 * elf64-s390.c (elf_s390_relocate_section): Likewise.
414 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
415 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
416 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
418 * elf.c (bfd_section_from_r_symndx): New function.
419 * elf-bfd.h (LOCAL_SYM_CACHE_SIZE): Define.
420 (struct sym_sec_cache): New.
421 (bfd_section_from_r_symndx): Declare.
422 (struct bfd_elf_section_data): Change local_dynrel type to PTR.
423 * elflink.h (elf_link_input_bfd): Don't test for removed linkonce
424 relocs when relocatable. Don't zero entire reloc, just zero the
426 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add sym_sec.
427 (elf32_hppa_link_hash_table_create): Init it.
428 (elf32_hppa_check_relocs): Track dynamic relocs needed for local
429 syms on a per-section basis as we do for globals.
430 (elf32_hppa_gc_sweep_hook): Update for local_dynrel change.
431 (allocate_dynrelocs): Warning fix.
432 (elf32_hppa_size_dynamic_sections): Don't allocate relocs when
433 section has been discarded.
434 (elf32_hppa_relocate_section): Don't copy STN_UNDEF relocs
436 * elf32-i386.c (struct elf_i386_link_hash_table): Add sym_sec.
437 (elf_i386_link_hash_table_create): Init it.
438 (elf_i386_check_relocs): Track dynamic relocs needed for local
439 syms on a per-section basis as we do for globals.
440 (elf_i386_gc_sweep_hook): Update for local_dynrel change.
442 (allocate_dynrelocs): Warning fix.
443 (elf_i386_size_dynamic_sections): Don't allocate relocs when
444 section has been discarded.
445 (elf_i386_relocate_section): Don't copy STN_UNDEF relocs
447 * elf32-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
448 (elf_s390_link_hash_table_create): Init it.
449 (elf_s390_check_relocs): Track dynamic relocs needed for local
450 syms on a per-section basis as we do for globals.
451 (elf_s390_gc_sweep_hook): Update for local_dynrel change.
453 (allocate_dynrelocs): Warning fix.
454 (elf_s390_size_dynamic_sections): Don't allocate relocs when
455 section has been discarded.
456 (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
458 * elf64-ppc.c (struct ppc_link_hash_table): Add sym_sec.
459 (ppc64_link_hash_table_create): Init it.
460 (ppc64_elf_check_relocs): Track dynamic relocs needed for local
461 syms on a per-section basis as we do for globals.
462 (ppc64_elf_gc_sweep_hook): Update for local_dynrel change.
463 (allocate_dynrelocs): Call the correct record_dynamic_dymbol
464 function. Warning fix.
465 (ppc64_elf_size_dynamic_sections): Don't allocate relocs when
466 section has been discarded.
467 (ppc64_elf_relocate_section): Don't copy STN_UNDEF relocs
469 * elf64-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
470 (elf_s390_link_hash_table_create): Init it.
471 (elf_s390_check_relocs): Track dynamic relocs needed for local
472 syms on a per-section basis as we do for globals.
473 (elf_s390_gc_sweep_hook): Update for local_dynrel change.
475 (allocate_dynrelocs): Warning fix.
476 (elf_s390_size_dynamic_sections): Don't allocate relocs when
477 section has been discarded.
478 (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
481 2001-11-08 Martin Schwidefsky <schwidefsky@de.ibm.com>
483 * elf32-s390: Major rework that introduces all recent changes to
484 the s390 backends. Get a closer match to elf32-i386.
485 (elf_s390_relocate_section): Make use of dynamic section short-cuts.
486 Localise vars, and delay setting. Better error reporting, replace
487 BFD_ASSERT with abort. Check ELF_LINK_HASH_DEF_DYNAMIC to see if a
488 symbol is not defined in the regular object file and tread the weak
489 definition as the normal one. Don't discard relocs for undefweak or
490 undefined symbols and check !DEF_REGULAR as well as DEF_DYNAMIC in
491 test for avoided copy relocs. Reinstate fudge for unresolved relocs
492 in debugging sections.
493 (elf32_s390_adjust_dynamic_symbol): Handle nocopyreloc. Don't do copy
494 reloc processing for weakdefs. Remove redundant casts and aborts.
495 Delay setting of vars until needed. Move creation of dynamic symbols
496 and allocation of .plt and .rela.plt to allocate_dynrelocs. Replace
497 BFD_ASSERT with abort. Discard .plt entries for everything with
499 (elf_s390_check_relocs): Don't allocate space for dynamic relocs,
500 .got or .relgot here but do it in allocate_dynrelocs. Reference count
501 possible .plt and .got entries. Don't test input section SEC_READONLY
502 here to try to avoid copy relocs, and keep dyn_relocs regardless of
503 ELF_LINK_NON_GOT_REF. Don't set DF_TEXTREL here. Delay setting of
504 variables until needed. Remove separate switch stmt for creating .got
505 section. Initialise local_got_refcounts to 0. Cache pointer to
506 "sreloc" section in elf_section_data. Tweak condition under which .got
507 created. Report files with bad relocation section names.
508 (elf_s390_finish_dynamic_symbol): Don't copy relocs for symbols that
509 have been forced local. Use same test to decide if we can use a
510 relative reloc for got as elf_s390_relocate_section. Expand SHN_UNDEF
511 comment. Move expressions out of function calls. Replace BFD_ASSERT
513 (elf_s390_finish_dynamic_sections): Migrate common code out of switch
514 statement. Replace BFD_ASSERT with abort.
515 (elf_s390_size_dynamic_sections): Call readonly_dynrelocs. Rename "i"
516 to "ibfd". Allocate space for local dyn relocs. Use DF_TEXTREL flag
517 instead of looking up section names for DT_TEXTREL. Replace
518 BFD_ASSERT with abort. Zero out the dynamic allocated content space.
519 Add a comment to remind us that one day this ought to be fixed.
520 (struct elf_s390_link_hash_entry): Rename "root" to "elf".
521 (struct elf_s390_link_hash_table): Likewise.
522 (elf_s390_link_hash_newfunc): Rename to link_hash_newfunc and get
523 rid of unnecessary casts.
524 (struct elf_s390_dyn_relocs): Add "sec", and "pc_count" fields.
525 Remove "section" field.
526 (elf_s390_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
527 Reference count possible .plt entries. Don't deallocate .got and
529 (struct elf_s390_pcrel_relocs_copied): Rename to elf_s390_dyn_relocs.
531 (struct elf_s390_link_hash_entry): Rename pcrel_relocs_copied to
533 (elf_s390_discard_copies): Delete.
534 (elf_s390_link_hash_traverse): Delete.
535 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
536 rather than gc variety).
537 (struct elf_s390_link_hash_table): Add sgot, sgotplt, srelgot, splt,
538 srelplt, sdynbss, srelbss fields.
539 (elf_s390_link_hash_table_create): Init them.
540 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
541 (allocate_dynrelocs): New function.
542 (create_got_section): New function.
543 (elf_backend_can_refcount): Define.
544 (elf_backend_copy_indirect_symbol): Define.
545 (elf_s390_copy_indirect_symbol): New function.
546 (elf_s390_create_dynamic_sections): New function.
547 (readonly_dynrelocs): New function.
548 * elf64-s390.c: Likewise.
550 2001-11-07 Jakub Jelinek <jakub@redhat.com>
552 * Makefile.am (BFD32_BACKENDS): Add elf-strtab.lo.
553 (BFD32_BACKENDS_CFILES): Add elf-strtab.c.
554 (elf-strtab.lo): Add rule.
555 * Makefile.in: Rebuilt.
556 * configure.in (elf): Add elf-strtab.lo.
557 * configure: Rebuilt.
558 * elf-bfd.h (elf_strtab_hash): Forward declare.
559 (struct elf_link_hash_table): Change dynstr type to
560 struct elf_strtab_hash *.
561 (struct elf_obj_tdata): Change strtab_ptr type to
562 struct elf_strtab_hash *.
563 (_bfd_elf_strtab_init, _bfd_elf_strtab_free, _bfd_elf_strtab_add,
564 _bfd_elf_strtab_addref, _bfd_elf_strtab_delref,
565 _bfd_elf_strtab_clear_all_refs, _bfd_elf_strtab_size,
566 _bfd_elf_strtab_offset, _bfd_elf_strtab_emit,
567 _bfd_elf_strtab_finalize): New prototypes.
568 * elf-strtab.c: New file.
569 * elflink.h (elf_link_add_object_symbols): Use _bfd_elf_strtab_add
570 and _bfd_elf_strtab_size instead of _bfd_stringtab calls.
571 Call _bfd_elf_strtab_delref if DT_NEEDED entry is not needed or
572 when forcing dynamic symbol to local.
573 (elf_link_create_dynamic_sections): Call
574 _bfd_elf_strtab_init instead of elf_stringtab_init.
575 (elf_link_record_local_dynamic_symbol): Likewise, change
576 dynstr type. Use _bfd_elf_strtab functions instead of
577 _bfd_stringtab calls.
578 (size_dynamic_sections): Use _bfd_elf_strtab functions instead of
579 _bfd_stringtab calls. For DT_RUNPATH and Verdaux vda_name fields,
580 call _bfd_elf_strtab_addref. Call elf_finalize_dynstr.
581 (elf_adjust_dynstr_offsets, elf_finalize_dynstr): New functions.
582 (elf_fix_symbol_flags): Call _bfd_elf_strtab_delref when forcing
583 dynamic symbol to local.
584 (elf_link_assign_sym_version): Likewise.
585 (elf_bfd_final_link): Call _bfd_elf_strtab_emit instead of
587 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Change dynstr
588 type. Call _bfd_elf_strtab functions instead of
589 _bfd_stringtab functions.
590 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
591 * elf.c (_bfd_elf_init_reloc_shdr): Likewise.
592 (elf_fake_sections): Likewise.
593 (assign_section_numbers): Call _bfd_elf_strtab_clear_all_refs
594 on shstrtab hash table, call _bfd_elf_strtab_addref on each section
595 name in the output. Call _bfd_elf_strtab_finalize and
596 use _bfd_elf_strtab_offset to finalize sh_name section header fields.
597 (_bfd_elf_compute_section_file_positions): Use _bfd_elf_strtab_size
598 instead of _bfd_stringtab_size.
599 (prep_headers): Change shstrtab type.
600 Use _bfd_elf_strtab calls instead of _bfd_stringtab calls.
602 2001-11-07 Alan Modra <amodra@bigpond.net.au>
604 * elflink.h (elf_link_input_bfd <removed linkonce relocs>): Fix
605 bad symtab segfault. Formatting and warning fixes. Improve
606 error message for internationalisation.
608 2001-11-06 H.J. Lu (hjl@gnu.org)
610 * elflink.h (elf_link_input_bfd): Complain about relocs against
613 2001-11-03 Alan Modra <amodra@bigpond.net.au>
615 * elfxx-target.h (elfNN_bed): Correct want_got_sym, want_dynbss order.
617 2001-11-02 H.J. Lu <hjl@gnu.org>
619 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
620 dynamic relocation for symbols defined in regular objects when
621 creating executables.
623 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
625 * configure.in (ALL_LINGUAS): Add "fr".
626 * configure: Regenerate.
627 * po/fr.po: New file.
629 * coffgen.c (coff_object_p): Add comment to H.J.'s recent patch.
631 2001-11-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
633 * som.c (setup_sections): Initialize subspace_sections.
635 2001-11-02 H.J. Lu (hjl@gnu.org)
637 * coffgen.c (coff_object_p): Return 0 if the header is too big.
639 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
641 * elfcore.h (elf_core_file_p): Preserve and clear abfd section
642 information. Save bfd arch and mach values. Restore on error.
644 2001-11-02 Alan Modra <amodra@bigpond.net.au>
646 * elf32-hppa.c (hppa_handle_PIC_calls): Rename to mark_PIC_calls.
647 (allocate_PIC_calls): New function.
648 (allocate_dynrelocs): Don't allocate pic_call plt entries here.
649 (elf32_hppa_size_dynamic_sections): Call allocate_PIC_calls.
650 (elf32_hppa_finish_dynamic_symbol): Remove dead code.
652 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
654 * elf32-cris.c (cris_elf_grok_prstatus): New function.
655 (cris_elf_grok_psinfo): New function.
656 (elf_backend_grok_prstatus): Define.
657 (elf_backend_grok_psinfo): Define.
659 2001-11-01 Alan Modra <amodra@bigpond.net.au>
661 * elf64-ppc.c (ppc64_elf_relocate_section): Correct branch
664 2001-10-31 Chris Demetriou <cgd@demetriou.com>
666 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Handle PC-relative
667 relocations properly.
669 2001-10-31 H.J. Lu <hjl@gnu.org>
671 * elflink.h (elf_link_output_extsym): Don't clear the visibility
672 field for relocateable.
674 2001-11-01 Alan Modra <amodra@bigpond.net.au>
676 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Don't count
677 .plt relocs in DT_RELASZ.
679 2001-10-29 NIIBE Yutaka <gniibe@m17n.org>
681 * config.bfd: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
684 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
686 * targets.c: Fix typo: bfd_mmo_mmix_vec => bfd_mmo_vec.
688 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
690 * Makefile.am (ALL_MACHINES): Add cpu-mmix.lo.
691 (BFD64_BACKENDS): Add elf64-mmix.lo and mmo.lo.
692 (BFD64_BACKENDS_CFILES): Add elf64-mmix.c and mmo.c.
693 Regenerate dependencies.
694 * configure.in (bfd_elf64_mmix_vec, bfd_mmo_vec): New vectors.
695 * config.bfd: [BFD64] (mmix-*-*): New case.
696 * cpu-mmix.c, mmo.c, elf64-mmix.c: New files.
697 * archures.c (enum bfd_architecture): Add bfd_arch_mmix.
698 (bfd_mmix_arch): Declare.
699 (bfd_archures_list): Add bfd_mmix_arch.
700 * targets.c (enum bfd_flavour): Add bfd_target_mmo_flavour.
701 (bfd_elf64_mmix_vec, bfd_mmo_vec): Declare.
702 (bfd_target_vect) [BFD64]: Add bfd_elf64_mmix_vec and
704 * reloc.c: Add MMIX relocations.
705 * bfd.c (struct _bfd, tdata): Add mmo_data.
706 * Makefile.in: Regenerate.
707 * configure: Regenerate.
708 * libbfd.h: Regenerate.
709 * bfd-in2.h: Regenerate.
710 * configure: Rebuild.
712 2001-10-30 Richard Earnshaw (rearnsha@arm.com)
714 * elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based on the
715 p_paddr of the segment that contains it.
716 (copy_private_bfd_data): If the LMA for a segment is known, use it
717 for matching sections to segments.
718 (assign_file_positions_for_segments): Use the LMA when adjusting
719 for inter-section alignment padding.
721 2001-10-29 Kazu Hirata <kazu@hxi.com>
723 * README: Fix a typo.
725 2001-10-24 Richard Henderson <rth@redhat.com>
727 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
728 timestamp to time_t for ctime.
730 2001-10-24 Hans-Peter Nilsson <hp@axis.com>
732 * elf32-cris.c (cris_reloc_type_lookup): Change loop to use
733 unsigned, increasing index.
735 2001-10-23 H.J. Lu <hjl@gnu.org>
737 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check
738 m != NULL before accessing it.
740 2001-10-23 Alan Modra <amodra@bigpond.net.au>
742 * elflink.h (elf_link_input_bfd): Zero the reloc instead of doing
743 bfd_reloc_type_lookup (bfd, BFD_RELOC_NONE) as bfd_reloc_type_lookup
744 doesn't accept BFD_RELOC_* on some targets, eg. hppa.
746 * elf32-hppa.c (elf32_hppa_link_hash_entry): Remove plt_abs.
747 (hppa_link_hash_newfunc): Likewise.
748 (elf32_hppa_finish_dynamic_symbol): Likewise.
749 (allocate_dynrelocs): Always allocate .got relocs if shared.
750 (elf32_hppa_relocate_section): Output them too. Similarly
751 consolidate .plt reloc code, and no longer initialise .plt
752 when a reloc is output.
753 (elf32_hppa_finish_dynamic_symbol): Only initialise .plt entries
754 when no reloc is output.
756 From Herbert Xu <herbert@gondor.apana.org.au>
757 * elf32-hppa.c (final_link_relocate): Call bfd_set_error for
758 unreachable branches.
760 2001-10-22 H.J. Lu <hjl@gnu.org>
762 * configure.in (WIN32LIBADD): Use -L../libiberty for
764 * configure: Rebuild.
766 2001-10-21 H.J. Lu <hjl@gnu.org>
768 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
769 if shared library is enabled only for Linux hosts.
770 * configure: Rebuild.
772 2001-10-21 H.J. Lu <hjl@gnu.org>
774 * configure.in (WIN32LIBADD): Check if PICFLAG is defined in
775 ../libiberty/Makefile instead of $enable_shared.
776 * configure: Rebuild.
778 2001-10-21 H.J. Lu <hjl@gnu.org>
780 * elf32-cris.c (cris_reloc_type_lookup): Use int for index. Cover
783 2001-10-20 H.J. Lu <hjl@gnu.org>
785 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
786 if shared library is enabled.
787 * configure: Rebuild.
789 2001-10-20 H.J. Lu <hjl@gnu.org>
791 * elf32-cris.c (cris_reloc_type_lookup): Allow index 0.
793 2001-10-19 H.J. Lu <hjl@gnu.org>
795 * elfcode.h (elf_object_p): Don't clear D_PAGED if the section
798 2001-10-18 H.J. Lu <hjl@gnu.org>
800 * elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
801 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
803 2001-10-18 Jakub Jelinek <jakub@redhat.com>
805 * section.c (_bfd_strip_section_from_output): Don't count
806 SEC_EXCLUDE sections as references. Set SEC_EXCLUDE.
808 2001-10-17 Alan Modra <amodra@bigpond.net.au>
810 * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
811 Elf_Internal_Shdr.contents now that it's no longer a PTR.
812 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
813 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
814 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
815 * elf32-sh.c (sh_elf_relax_section): Likewise.
816 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
817 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
818 * elf.c (setup_group): Warning fixes.
819 * elflink.h (elf_link_sort_relocs): Likewise.
820 * pdp11.c (slurp_reloc_table): Likewise.
822 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
824 * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
827 2001-10-15 H.J. Lu <hjl@gnu.org>
829 * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
830 for relocations against discarded link-once section.
832 2001-10-15 Alan Modra <amodra@bigpond.net.au>
834 * elf32-i386.c (elf_i386_relocate_section): Report some detail on
835 bfd_reloc_outofrange and similar errors.
837 * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
838 rather than ind->weakdef.
839 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
840 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
841 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
842 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
843 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
845 2001-10-15 Alan Modra <amodra@bigpond.net.au>
846 H.J. Lu <hjl@gnu.org>
848 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
849 counts for aliases instead of aborting.
850 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
851 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
853 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
854 to -1 for non-function symbols.
855 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
856 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
857 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
858 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
859 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
860 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
861 plt.offset instead of plt.refcount when setting to -1.
863 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
865 * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
866 like R_ARM_PC24. Include reloc number in error message about
869 2001-10-10 Jakub Jelinek <jakub@redhat.com>
871 * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
872 relocations against the same symbol in .rel{,a}.dyn section.
874 2001-10-10 Kazu Hirata <kazu@hxi.com>
876 * aout-encap.c: Fix comment typos.
878 * archive.c: Likewise.
880 * coff64-rs6000.c: Likewise.
881 * coffcode.h: Likewise.
882 * coffgen.c: Likewise.
883 * cofflink.c: Likewise.
884 * coff-mips.c: Likewise.
886 * elf32-m32r.c: Likewise.
887 * libcoff-in.h: Likewise.
888 * libecoff.h: Likewise.
889 * libxcoff.h: Likewise.
890 * nlm32-i386.c: Likewise.
892 * section.c: Likewise.
895 * bfd-in2.h: Regenerate.
896 * libcoff.h: Likewise.
898 2001-10-10 Alan Modra <amodra@bigpond.net.au>
900 * elf.c (elf_map_symbols): Don't create new section symbols; Use
901 existing section syms. Update comments.
902 (copy_private_bfd_data): Formatting fixes.
903 (elfcore_grok_win32pstatus): Likewise.
904 (swap_out_syms): Likewise. Remove unnecessary level of braces.
906 2001-10-09 Alan Modra <amodra@bigpond.net.au>
908 * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
910 (elf_group_name): Define.
911 (elf_next_in_group): Define.
912 * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
913 (setup_group): Don't use sec->lineno for SHT_GROUP section to store
914 first member section; Instead use elf_next_in_group.
915 (bfd_section_from_shdr): Likewise.
916 (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
918 2001-10-09 Alan Modra <amodra@bigpond.net.au>
920 * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
921 "next_in_group". Fix gp and gp_size comments.
922 * elf.c (union elf_internal_group): New.
923 (setup_group): New function.
924 (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
925 Call setup_group for SHF_GROUP sections.
926 (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
927 (elf_fake_sections): Set header type for SEC_GROUP, and header
928 flags for sections in a group.
929 (set_group_contents): New function.
930 (_bfd_elf_compute_section_file_positions): Call it.
931 (assign_section_numbers): Set sh_link for SHT_GROUP.
933 * elflink.h (gc_mark_hook): Handle section groups.
934 * elfxx-target.h: Add SEC_GROUP to applicable_flags.
935 * section.c (SEC_GROUP): Define.
936 (struct sec): Comment fixes.
937 * bfd-in2.h: Regenerate.
939 * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
940 out of function args.
941 (_bfd_elf_canonicalize_reloc): Similarly.
942 (_bfd_elf_get_symtab): Here too.
943 (_bfd_elf_canonicalize_dynamic_symtab): And here.
944 * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
945 bfd_bread, and remove unnecessary cast.
947 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
949 * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
951 2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
953 * dwarf2.c (comp_unit_find_nearest_line): Check for end of
956 2001-10-06 Alan Modra <amodra@bigpond.net.au>
958 * bfd.c (bfd_assert): Report bfd version.
959 (_bfd_abort): Likewise.
961 * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
962 section sym values. Instead replace any relocs against them with
963 relocs against STN_UNDEF, which has a zero value.
965 * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
968 2001-10-05 Jeff Law <law@redhat.com>
970 * som.h (som_exec_data): New field "version_id".
971 * som.c (som_object_setup): Record the version_id if it
973 (som_prep_headers): Do not initialize version_id here.
974 (som_finish_writing): Initialize version_id here.
976 2000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
978 * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
979 according to the MIPS/SGI ELF64 ABI Draft.
980 (mips_elf_sort_hash_table): Typo.
982 2001-10-04 Alan Modra <amodra@bigpond.net.au>
984 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo.
986 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
987 copying flags if this is a weakdef.
989 2001-10-04 Alan Modra <amodra@bigpond.net.au>
991 * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
994 * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
995 to 1 rather than 0 to avoid confusing copy_indirect_symbol.
996 (mips_elf_sort_hash_table_f): Compare got.offset against 1.
998 * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
999 depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
1000 backends we configure. Run "make dep-am".
1001 (install-data-local): Install symcat.h.
1002 * dep-in.sed: Remove symcat.h from dependencies.
1003 * Makefile.in: Regenerate.
1005 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1007 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc.
1009 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1011 * elf64-mips.c (elf_backend_may_use_rela_p): New define.
1012 (elf_backend_default_use_rela_p): New define.
1014 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1016 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
1019 * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
1020 * configure: Regenerate.
1021 * Makefile.am (BFD_H_FILES): Add version.h.
1022 * Makefile.in: Regenerate.
1023 * po/SRC-POTFILES.in: Regenerate.
1025 * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
1026 elf_backend_copy_indirect_symbol so that backend has a chance to
1027 copy other necessary fields.
1028 * elf-bfd.h (struct elf_backend_data): Update description of
1029 elf_backend_copy_indirect_symbol.
1030 * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
1031 copying flags if this is a weakdef.
1032 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
1033 (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
1034 than bfd_link_hash_lookup.
1035 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
1036 reloc processing for weakdefs.
1037 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
1038 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
1040 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1042 * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
1043 result of ELF64_R_TYPE to enum before using in a switch.
1044 (ppc64_elf_gc_mark_hook): Likewise.
1045 (ppc64_elf_gc_sweep_hook): Likewise.
1046 (ppc64_elf_reloc_type_class): Likewise.
1048 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1050 * version.h: New file.
1051 * bfd-in.h: (BFD_VERSION): Substitute bfd_version.
1052 (BFD_VERSION_DATE): Define.
1053 (BFD_VERSION_STRING): Define.
1054 * configure.in: AC_SUBST bfd_version, bfd_version_date and
1056 (AC_OUTPUT <bfd-in3.h>): Depend on version.h.
1057 * bfd-in2.h: Regenerate.
1058 * configure: Regenerate.
1059 * Makefile.am: Run "make dep-am".
1060 * Makefile.in: Regenerate.
1062 * bfd-in.h: Include "symcat.h".
1063 (CONCAT4): Redefine as for old CAT4.
1064 * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
1065 Add warning regarding whitespace.
1066 * aout-cris.c: Likewise.
1067 * aout-ns32k.c: Likewise.
1068 * aout-sparcle.c: Likewise.
1069 * aout-tic30.c: Likewise.
1070 * aout0.c: Likewise.
1071 * armnetbsd.c: Likewise.
1072 * demo64.c: Likewise.
1073 * elf-bfd.h: Likewise.
1074 * gen-aout.c: Likewise.
1075 * host-aout.c: Likewise.
1076 * hp300bsd.c: Likewise.
1077 * hp300hpux.c: Likewise.
1078 * i386aout.c: Likewise.
1079 * i386bsd.c: Likewise.
1080 * i386dynix.c: Likewise.
1081 * i386freebsd.c: Likewise.
1082 * i386linux.c: Likewise.
1083 * i386lynx.c: Likewise.
1084 * i386mach3.c: Likewise.
1085 * i386netbsd.c: Likewise.
1086 * libaout.h: Likewise.
1087 * m68k4knetbsd.c: Likewise.
1088 * m68klinux.c: Likewise.
1089 * m68klynx.c: Likewise.
1090 * m68knetbsd.c: Likewise.
1091 * m88kmach3.c: Likewise.
1092 * mipsbsd.c: Likewise.
1093 * newsos3.c: Likewise.
1094 * ns32knetbsd.c: Likewise.
1095 * pc532-mach.c: Likewise.
1096 * pdp11.c: Likewise.
1097 * riscix.c: Likewise.
1098 * sparclinux.c: Likewise.
1099 * sparclynx.c: Likewise.
1100 * sparcnetbsd.c: Likewise.
1101 * sunos.c: Likewise.
1102 * targets.c: Likewise.
1103 * vaxnetbsd.c: Likewise.
1104 * vms-hdr.c: Likewise.
1106 2001-10-01 Alan Modra <amodra@bigpond.net.au>
1108 * bfd-in.h: Remove comments regarding generated files.
1109 * libbfd-in.h: Likewise.
1110 * libcoff-in.h: Likewise.
1111 * bfd-in2.h: Regenerate.
1112 * libbfd.h: Likewise.
1113 * libcoff.h: Likewise.
1115 2001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp>
1116 Hans-Peter Nilsson <hp@bitrange.com>
1118 * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
1119 partial_inplace, matching assembler output. Set src_mask to
1121 (sh_elf_relocate_section): Delete misplaced comment.
1122 For relocatable linking against section symbol, call
1123 _bfd_relocate_contents for partial_inplace relocs and adjust
1124 rel->r_addend for others.
1125 <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
1126 bfd_get_32, not at rel->r_addend.
1128 2001-09-30 Alan Modra <amodra@bigpond.net.au>
1130 * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
1131 the old dir refcount, so we indirectly set them to init_refcount.
1132 Short-circuit asserts when we've just verified they are true.
1134 2001-09-29 Alan Modra <amodra@bigpond.net.au>
1136 * section.c (struct sec): Remove kept_section.
1137 (STD_SECTION): Remove kept_section initialisation.
1138 (bfd_make_section_anyway): Here too.
1139 * ecoff.c (bfd_debug_section): Remove kept_section initialisation.
1140 * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
1141 * elflink.h (elf_link_input_bfd): Set discarded link-once section
1142 symbols to zero, and remove all code involved with kept_section
1143 and tracking section symbol values.
1144 * bfd-in2.h: Regenerate.
1145 * configure.in: Bump version number.
1146 * configure: Regenerate.
1148 2001-09-29 Alan Modra <amodra@bigpond.net.au>
1150 * elf64-ppc.c (struct ppc_dyn_relocs): New.
1151 (IS_ABSOLUTE_RELOC): Define.
1152 (struct ppc_link_hash_entry): New.
1153 (struct ppc_link_hash_table): New.
1154 (ppc_hash_table): Define.
1155 (link_hash_newfunc): New function.
1156 (ppc64_elf_link_hash_table_create): New function.
1157 (create_got_section): New function.
1158 (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
1159 pointers to our dynamic sections in hash table.
1160 (ppc64_elf_copy_indirect_symbol): New function.
1161 (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
1162 dynamic sections. Localise vars. Modify code for refcounts
1163 starting from zero. Don't allocate here, or force symbols dynamic.
1164 Don't copy all relocs if shared, select ones we need. Add code
1165 to track possible copy relocs for non-shared link.
1166 (ppc64_elf_gc_mark_hook): Update comment.
1167 (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
1168 (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
1169 code for reference counting garbage collection. Don't create .plt
1170 entries for functions that don't comply with ABI naming convention,
1171 and don't allocate .plt space here. Use short-cuts to dynamic
1172 sections. If possible, keep dynamic relocations instead of using
1173 copy relocs. Remove confused comments.
1174 (ppc_adjust_dynindx): Delete.
1175 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1176 (allocate_dynrelocs): New function.
1177 (readonly_dynrelocs): New function.
1178 (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
1179 space here, and call allocate_dynrelocs to allocate space for
1180 global .plt, .got and reloc sections. Use short-cuts to dynamic
1181 sections. Call readonly_dynrelocs to determine whether we need
1182 DT_TEXTREL. Don't generate section symbols here, the generic
1183 ELF linker code does it for us.
1184 (ppc64_elf_final_link): Call regular ELF backend linker rather than
1185 gc variety, since we do our own .got handling.
1186 (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
1187 dynamic section short-cuts. Localise vars, and delay setting.
1188 Handle unknown relocs in main switch statement. Replace ugly
1189 complicated tests for unresolvable relocs with a simple direct
1190 scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
1191 before allowing an undefined sym in a shared lib. Do R_*_DS tests
1192 after main switch, when we've set addend. Do non-addend insn
1193 tweaks before main swithc. Ignore input_section->vma when
1194 calculating reloc offsets as it's always zero. Rewrite dynamic
1195 reloc handling. Consolidate R_*_HA handling. Handle more relocs.
1196 (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
1197 of dynamic section short-cuts. Reorganise .plt handling code.
1198 Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
1199 Move expressions out of swap_reloca_out function calls.
1200 (ppc64_elf_reloc_type_class): New function.
1201 (ppc64_elf_info_to_howto): Move common expression to local var.
1202 (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
1203 of dynamic section short-cuts. Don't fiddle with section syms
1204 here as the ELF linker does it for us.
1205 (elf_backend_can_refcount): Define.
1206 (bfd_elf64_bfd_link_hash_table_create): Define.
1207 (elf_backend_copy_indirect_symbol): Define.
1208 (elf_backend_reloc_type_class): Define.
1209 (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
1211 2001-09-29 Alan Modra <amodra@bigpond.net.au>
1213 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
1214 (struct elf_backend_data): Add can_refcount.
1215 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
1216 got.refcount and plt.refcount from init_refcount.
1217 (_bfd_elf_link_hash_table_init): Set up init_refcount.
1218 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
1219 rather than got/plt.offset, and test for <= 0 rather than -1.
1220 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
1221 * elfxx-target.h (elf_backend_can_refcount): Define.
1222 (elfNN_bed): Init can_refcount.
1223 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
1224 (_bfd_generic_link_hash_newfunc): Likewise.
1225 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
1227 (elf_backend_can_refcount): Define.
1228 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
1230 (elf32_hppa_copy_indirect_symbol): Make static to agree with
1232 (elf_backend_can_refcount): Define.
1233 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
1235 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
1236 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
1237 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
1238 (elf_backend_can_refcount): Define.
1239 (elf_i386_copy_indirect_symbol): Make static to agree with
1240 prototype. Formatting fix.
1241 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
1243 (elf_backend_can_refcount): Define.
1244 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
1246 (elf_backend_can_refcount): Define.
1247 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
1249 (elf_backend_can_refcount): Define.
1250 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
1252 (elf_backend_can_refcount): Define.
1253 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
1255 (elf_backend_can_refcount): Define.
1257 * som.c (som_write_symbol_strings): Cast current_offset in
1258 bfd_seek call to match param type.
1260 2001-09-28 J. Brobecker <brobecker@gnat.com>
1262 * som.c (som_write_symbol_strings): Fix incorrect type of
1263 current_offset to match the function definition. Fixes a build
1264 failure on HPUX-11.00.
1266 2001-09-28 Richard Henderson <rth@redhat.com>
1268 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
1269 SEC_MERGE, SEC_STRINGS.
1271 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
1272 * bfd-in2.h: Rebuild.
1274 2001-09-28 Alan Modra <amodra@bigpond.net.au>
1276 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
1277 reloc code using x86_64_reloc_map.
1279 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
1280 no longer allocate here. Localise some vars to blocks where they
1282 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
1283 setting of vars until needed.
1284 (allocate_dynrelocs): Don't create a .plt entry without a reloc
1285 when symbol visibilty makes a function local.
1286 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
1287 swap_reloca_out function calls.
1288 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
1289 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
1292 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
1293 no longer allocate here. Localise some vars to blocks where they
1294 are used. Remove separate switch stmt for creating .got sec.
1295 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
1296 redundant casts and aborts. Delay setting of vars until needed.
1297 (allocate_dynrelocs): Remove redundant casts and aborts.
1298 (elf_i386_size_dynamic_sections): Move comment.
1299 (elf_i386_finish_dynamic_symbol): Move expressions out of function
1301 (elf_i386_relocate_section): Likewise. Comment typo fix.
1302 (elf_i386_finish_dynamic_sections): Migrate common code out of
1304 (elf_backend_* defines): Sort.
1306 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
1307 without a reloc when symbol visibilty makes a function local.
1309 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
1311 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
1312 conflicting float flags.
1314 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1316 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
1317 (elf_backend_copy_indirect_symbol): Define.
1318 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
1319 (struct elf_i386_link_hash_table): Likewise.
1320 (link_hash_newfunc): Get rid of unnecessary casts.
1321 (elf_i386_link_hash_table_create): Likewise.
1322 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
1323 Don't test input section SEC_READONLY here to try to avoid copy
1324 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
1325 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
1326 here to properly test whether we need copy relocs. Do so for weak
1329 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
1330 (elf_backend_copy_indirect_symbol): Define.
1331 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
1332 (stub_hash_newfunc): Get rid of unnecessary casts.
1333 (hppa_link_hash_newfunc): Likewise.
1334 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
1335 Don't test input section SEC_READONLY here to try to avoid copy
1336 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
1337 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
1338 here to properly test whether we need copy relocs. Do so for weak
1341 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1343 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
1344 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1345 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
1347 2001-09-25 Jakub Jelinek <jakub@redhat.com>
1349 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
1352 2001-09-25 H.J. Lu <hjl@gnu.org>
1354 * bfd-in2.h: Regenerated.
1356 2001-09-25 Alan Modra <amodra@bigpond.net.au>
1358 * elf32-i386.c: Add comment re linker function names and ordering.
1359 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
1360 (elf_i386_grok_prstatus): Move before linker functions.
1361 (elf_i386_grok_psinfo): Likewise.
1362 (elf_i386_fake_sections): Move so that functions are ordered.
1363 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
1365 2001-09-25 Alan Modra <amodra@bigpond.net.au>
1367 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
1370 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
1371 code handling this option.
1372 (LONG_BRANCH_VIA_PLT): Likewise.
1373 (RELATIVE_DYNRELOCS): Define as zero.
1374 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
1375 "pc_count" fields. Remove "section" field.
1376 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
1377 (elf32_hppa_check_relocs): Don't allocate space for dynamic
1378 relocs here. Instead, record all needed dynamic relocs via
1379 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
1380 in elf_section_data.
1381 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1382 (allocate_plt_and_got_and_discard_relocs): Rename to
1383 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
1384 (readonly_dynrelocs): New function.
1385 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
1386 Call readonly_dynrelocs to determine need for DT_TEXTREL.
1387 Rename "i" to "ibfd". Allocate space for local dyn relocs.
1388 (elf32_hppa_relocate_section): Make use of cached sreloc.
1389 (elf32_hppa_reloc_type_class): New function.
1390 (elf_backend_reloc_type_class): Define.
1392 2001-09-25 Alan Modra <amodra@bigpond.net.au>
1394 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
1395 and "sreloc" fields.
1396 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
1397 "pc_count" fields. Remove "section" field.
1398 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
1399 allocate space for dynamic relocs here. Instead, record all
1400 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
1401 pointer to "sreloc" section in elf_section_data.
1402 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1403 (allocate_plt_and_got_and_discard_relocs): Rename to
1404 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
1405 (readonly_dynrelocs): New function.
1406 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
1407 Rename "i" to "ibfd". Allocate space for local dyn relocs.
1408 (elf_i386_relocate_section): Make use of cached sreloc.
1410 2001-09-24 Alan Modra <amodra@bigpond.net.au>
1412 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
1413 reloc rather than just the type.
1414 (_bfd_elf_reloc_type_class): Likewise.
1415 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1416 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
1417 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
1418 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
1419 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
1420 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
1421 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
1422 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
1423 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
1424 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
1425 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
1426 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
1427 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
1428 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
1429 * elflink.h: Formatting fixes.
1430 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
1431 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
1432 o->contents to PTR. Update call to elf_backend_reloc_type_class.
1434 2001-09-22 John Reiser <jreiser@BitWagon.com>
1436 * elfcode.h (elf_object_p): Allow for no section header at all in
1437 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
1439 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
1441 * elfxx-ia64.c: Fix compile time warning messages.
1442 * coff-mcore.c: Fix compile time warning messages.
1443 * coff-ppc.c: Fix compile time warning messages.
1444 * coffcode.h: Fix compile time warning messages.
1445 * elf32-mips.c: Fix compile time warning messages.
1446 * elf64-alpha.c: Fix compile time warning messages.
1447 * libbfd.c: Fix compile time warning messages.
1448 * bfd-in2.h: Regenerate.
1450 2001-09-21 Alan Modra <amodra@bigpond.net.au>
1452 * Makefile.am: Run "make dep-am".
1453 * Makefile.in: Regenerate.
1455 * aoutx.h: Formatting fixes.
1456 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
1458 * linker.c: Replace bfd_get_filename with bfd_archive_filename
1461 2001-09-21 Alan Modra <amodra@bigpond.net.au>
1463 * bfd.c (bfd_archive_filename): New function.
1464 * bfd-in2.h: Regenerate.
1465 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
1466 in error messages where the bfd is an input bfd.
1467 * aout-cris.c: Likewise.
1468 * coff-arm.c: Likewise.
1469 * coff-mcore.c: Likewise.
1470 * coff-ppc.c: Likewise.
1471 * coff-rs6000.c: Likewise.
1472 * coff-sh.c: Likewise.
1473 * coff-tic54x.c: Likewise.
1474 * coff-tic80.c: Likewise.
1475 * coff64-rs6000.c: Likewise.
1476 * coffcode.h: Likewise.
1477 * coffgen.c: Likewise.
1478 * cofflink.c: Likewise.
1479 * ecofflink.c: Likewise.
1480 * elf-hppa.h: Likewise.
1482 * elf32-arm.h: Likewise.
1483 * elf32-cris.c: Likewise.
1484 * elf32-gen.c: Likewise.
1485 * elf32-hppa.c: Likewise.
1486 * elf32-i370.c: Likewise.
1487 * elf32-i386.c: Likewise.
1488 * elf32-m32r.c: Likewise.
1489 * elf32-mcore.c: Likewise.
1490 * elf32-mips.c: Likewise.
1491 * elf32-ppc.c: Likewise.
1492 * elf32-s390.c: Likewise.
1493 * elf32-sh.c: Likewise.
1494 * elf32-sparc.c: Likewise.
1495 * elf32-v850.c: Likewise.
1496 * elf64-alpha.c: Likewise.
1497 * elf64-gen.c: Likewise.
1498 * elf64-ppc.c: Likewise.
1499 * elf64-s390.c: Likewise.
1500 * elf64-sparc.c: Likewise.
1501 * elf64-x86-64.c: Likewise.
1502 * elflink.h: Likewise.
1503 * elfxx-ia64.c: Likewise.
1506 * libbfd.c: Likewise.
1507 * pdp11.c: Likewise.
1508 * pe-mips.c: Likewise.
1509 * peicode.h: Likewise.
1511 * xcofflink.c: Likewise.
1513 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
1515 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
1518 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
1521 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
1522 Consolidate error messages, and split long messages to two lines.
1524 2001-09-20 John Reiser <jreiser@BitWagon.com>
1526 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
1527 and info->allow_shlib_undefined.
1528 * elf32-cris.c: Likewise.
1529 * elf32-hppa.c: Likewise.
1530 * elf32-m68k.c: Likewise.
1531 * elf32-mips.c: Likewise.
1532 * elf32-ppc.c: Likewise.
1533 * elf32-s390.c: Likewise.
1534 * elf32-sh.c: Likewise.
1535 * elf32-sparc.c: Likewise.
1536 * elf64-alpha.c: Likewise.
1537 * elf64-hppa.c: Likewise.
1538 * elf64-ppc.c: Likewise.
1539 * elf64-s390.c: Likewise.
1540 * elf64-sparc.c: Likewise.
1541 * elf64-x86-64.c: Likewise.
1542 * elfxx-ia64.c: Likewise.
1544 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1546 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
1547 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
1548 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
1549 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
1550 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
1551 (bfd_default_scan): Use ISDIGIT instead of isdigit.
1552 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
1553 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
1554 isxdigit/isdigit/islower.
1555 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
1556 (mangle_name): Use ISALNUM instead of isalnum.
1557 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
1558 (scan): Use ISDIGIT instead of isdigit.
1559 * hosts/alphavms.h: Don't include <ctype.h>.
1560 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
1561 (ieee_object_p): Use TOUPPER instead of toupper.
1562 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
1563 (ihex_bad_byte): Use ISPRINT instead of isprint.
1564 * merge.c: Don't include <ctype.h>.
1565 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
1566 (oasys_write_sections): Use ISDIGIT instead of isdigit.
1567 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
1568 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
1569 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
1570 (mangle_name): Use ISALNUM instead of isalnum.
1571 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
1572 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
1573 isupper/islower/isdigit.
1574 (som_decode_symclass): Use TOUPPER instead of toupper.
1575 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
1576 (srec_bad_byte): Use ISPRINT instead of isprint.
1577 (srec_scan): Use ISSPACE instead of isspace.
1578 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
1579 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
1580 * syms.c: Include "safe-ctype.h"
1581 (islower, toupper): Remove macro definitions.
1582 (bfd_decode_symclass): Use TOUPPER instead of toupper.
1583 * vms-gsd.c: Don't include <ctype.h>.
1584 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
1585 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
1587 * vms-tir.c: Don't include <ctype.h>.
1589 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1591 * libbfd.c (bfd_bread): New function replacing bfd_read without
1592 redundant params. Allow reads up to (size_t) -2 in length.
1593 (bfd_bwrite): Similarly for bfd_write.
1594 (real_read): Return a size_t.
1595 (bfd_read): Call bfd_bread.
1596 (bfd_write): Call bfd_bwrite.
1597 (warn_deprecated): New function to annoy everybody.
1598 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
1599 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
1600 (bfd_read, bfd_write): Define as macro.
1601 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
1602 likewise for bfd_write. Ensure function args are correct size by
1603 using casts or local vars. In some cases, remove unnecessary
1604 casts. Formatting fixes, in some cases removing a large expression
1605 from function args by using a local var. Replace CONST with const.
1606 Modify variable types to avoid warings. Use casts to avoid
1607 warnings when using negative numbers in unsigned expressions.
1608 * aout-adobe.c: Likewise.
1609 * aout-arm.c: Likewise.
1610 * aout-cris.c: Likewise.
1611 * aout-encap.c: Likewise.
1612 * aout-ns32k.c: Likewise.
1613 * aout-target.h: Likewise.
1614 * aout-tic30.c: Likewise.
1615 * aoutf1.h: Likewise.
1616 * aoutx.h: Likewise.
1617 * archive.c: Likewise.
1618 * archures.c: Likewise.
1619 * bfd-in.h: Likewise.
1621 * binary.c: Likewise.
1623 * cache.c: Likewise.
1624 * cisco-core.c: Likewise.
1625 * coff-a29k.c: Likewise.
1626 * coff-alpha.c: Likewise.
1627 * coff-arm.c: Likewise.
1628 * coff-h8300.c: Likewise.
1629 * coff-h8500.c: Likewise.
1630 * coff-i386.c: Likewise.
1631 * coff-i860.c: Likewise.
1632 * coff-i960.c: Likewise.
1633 * coff-ia64.c: Likewise.
1634 * coff-m68k.c: Likewise.
1635 * coff-m88k.c: Likewise.
1636 * coff-mcore.c: Likewise.
1637 * coff-mips.c: Likewise.
1638 * coff-ppc.c: Likewise.
1639 * coff-rs6000.c: Likewise.
1640 * coff-sh.c: Likewise.
1641 * coff-sparc.c: Likewise.
1642 * coff-stgo32.c: Likewise.
1643 * coff-tic30.c: Likewise.
1644 * coff-tic54x.c: Likewise.
1645 * coff-tic80.c: Likewise.
1646 * coff-w65.c: Likewise.
1647 * coff-z8k.c: Likewise.
1648 * coff64-rs6000.c: Likewise.
1649 * coffcode.h: Likewise.
1650 * coffgen.c: Likewise.
1651 * cofflink.c: Likewise.
1652 * coffswap.h: Likewise.
1653 * corefile.c: Likewise.
1654 * cpu-arc.c: Likewise.
1655 * cpu-h8300.c: Likewise.
1656 * cpu-h8500.c: Likewise.
1657 * cpu-i960.c: Likewise.
1658 * cpu-ia64-opc.c: Likewise.
1659 * cpu-ns32k.c: Likewise.
1660 * cpu-pdp11.c: Likewise.
1661 * cpu-pj.c: Likewise.
1662 * cpu-sh.c: Likewise.
1663 * cpu-w65.c: Likewise.
1664 * cpu-z8k.c: Likewise.
1665 * dwarf1.c: Likewise.
1666 * dwarf2.c: Likewise.
1667 * ecoff.c: Likewise.
1668 * ecofflink.c: Likewise.
1669 * ecoffswap.h: Likewise.
1670 * elf-bfd.h: Likewise.
1671 * elf-hppa.h: Likewise.
1672 * elf-m10200.c: Likewise.
1673 * elf-m10300.c: Likewise.
1675 * elf32-arc.c: Likewise.
1676 * elf32-arm.h: Likewise.
1677 * elf32-avr.c: Likewise.
1678 * elf32-cris.c: Likewise.
1679 * elf32-fr30.c: Likewise.
1680 * elf32-gen.c: Likewise.
1681 * elf32-h8300.c: Likewise.
1682 * elf32-hppa.c: Likewise.
1683 * elf32-i370.c: Likewise.
1684 * elf32-i386.c: Likewise.
1685 * elf32-i860.c: Likewise.
1686 * elf32-m32r.c: Likewise.
1687 * elf32-m68k.c: Likewise.
1688 * elf32-mcore.c: Likewise.
1689 * elf32-mips.c: Likewise.
1690 * elf32-openrisc.c: Likewise.
1691 * elf32-pj.c: Likewise.
1692 * elf32-ppc.c: Likewise.
1693 * elf32-s390.c: Likewise.
1694 * elf32-sh-lin.c: Likewise.
1695 * elf32-sh.c: Likewise.
1696 * elf32-sparc.c: Likewise.
1697 * elf32-v850.c: Likewise.
1698 * elf64-alpha.c: Likewise.
1699 * elf64-hppa.c: Likewise.
1700 * elf64-mips.c: Likewise.
1701 * elf64-ppc.c: Likewise.
1702 * elf64-s390.c: Likewise.
1703 * elf64-sparc.c: Likewise.
1704 * elf64-x86-64.c: Likewise.
1705 * elfarm-nabi.c: Likewise.
1706 * elfcode.h: Likewise.
1707 * elfcore.h: Likewise.
1708 * elflink.c: Likewise.
1709 * elflink.h: Likewise.
1710 * elfxx-ia64.c: Likewise.
1711 * elfxx-target.h: Likewise.
1712 * format.c: Likewise.
1714 * hp300hpux.c: Likewise.
1715 * hppabsd-core.c: Likewise.
1716 * hpux-core.c: Likewise.
1717 * i386aout.c: Likewise.
1718 * i386dynix.c: Likewise.
1719 * i386linux.c: Likewise.
1720 * i386lynx.c: Likewise.
1721 * i386mach3.c: Likewise.
1722 * i386msdos.c: Likewise.
1723 * i386os9k.c: Likewise.
1726 * irix-core.c: Likewise.
1727 * libaout.h: Likewise.
1728 * libbfd-in.h: Likewise.
1729 * libbfd.c: Likewise.
1730 * libcoff-in.h: Likewise.
1731 * libecoff.h: Likewise.
1732 * libieee.h: Likewise.
1733 * libnlm.h: Likewise.
1734 * libpei.h: Likewise.
1735 * libxcoff.h: Likewise.
1736 * linker.c: Likewise.
1737 * lynx-core.c: Likewise.
1738 * m68klinux.c: Likewise.
1739 * merge.c: Likewise.
1740 * mipsbsd.c: Likewise.
1741 * netbsd-core.c: Likewise.
1743 * nlm32-alpha.c: Likewise.
1744 * nlm32-i386.c: Likewise.
1745 * nlm32-ppc.c: Likewise.
1746 * nlm32-sparc.c: Likewise.
1747 * nlmcode.h: Likewise.
1748 * nlmswap.h: Likewise.
1749 * ns32k.h: Likewise.
1750 * oasys.c: Likewise.
1751 * opncls.c: Likewise.
1752 * osf-core.c: Likewise.
1753 * pc532-mach.c: Likewise.
1754 * pdp11.c: Likewise.
1755 * pe-mips.c: Likewise.
1756 * peXXigen.c: Likewise.
1757 * peicode.h: Likewise.
1758 * ppcboot.c: Likewise.
1759 * ptrace-core.c: Likewise.
1760 * reloc.c: Likewise.
1761 * reloc16.c: Likewise.
1762 * riscix.c: Likewise.
1763 * rs6000-core.c: Likewise.
1764 * sco5-core.c: Likewise.
1765 * section.c: Likewise.
1767 * sparclinux.c: Likewise.
1768 * sparclynx.c: Likewise.
1770 * stabs.c: Likewise.
1771 * sunos.c: Likewise.
1773 * targets.c: Likewise.
1774 * tekhex.c: Likewise.
1775 * trad-core.c: Likewise.
1776 * versados.c: Likewise.
1777 * vms-gsd.c: Likewise.
1778 * vms-hdr.c: Likewise.
1779 * vms-misc.c: Likewise.
1780 * vms-tir.c: Likewise.
1783 * xcofflink.c: Likewise.
1784 * bfd-in2.h: Regenerate.
1785 * libbfd.h: Regenerate.
1786 * libcoff.h: Regenerate.
1788 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
1789 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
1790 (ufile_ptr): Define.
1791 (bfd_tell): Return a ufile_ptr.
1792 * libbfd.c (bfd_tell): Likewise.
1793 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
1795 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
1796 * aoutf1.h: Likewise.
1798 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
1799 larger than unsigned long can represent.
1801 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
1802 size overflows size_t.
1803 (bfd_realloc): Likewise.
1804 (bfd_zmalloc): Likewise.
1805 * opncls.c (bfd_alloc): Likewise.
1806 (bfd_zalloc): Likewise.
1807 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
1808 (bfd_alloc, bfd_zalloc): Update.
1810 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
1812 (bfd_get_signed_8): Likewise.
1813 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
1814 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
1815 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
1816 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
1817 * libaout.h: Likewise define and use here.
1818 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
1819 * aout-arm.c: Likewise.
1820 * aout-encap.c: Likewise.
1821 * aout-ns32k.c: Likewise.
1822 * aout-tic30.c: Likewise.
1823 * aoutf1.h: Likewise.
1824 * aoutx.h: Likewise.
1826 * coff-alpha.c: Likewise.
1827 * coff-h8300.c: Likewise.
1828 * coff-h8500.c: Likewise.
1829 * coff-i960.c: Likewise.
1830 * coff-ia64.c: Likewise.
1831 * coff-m88k.c: Likewise.
1832 * coff-mips.c: Likewise.
1833 * coff-ppc.c: Likewise.
1834 * coff-rs6000.c: Likewise.
1835 * coff-sh.c: Likewise.
1836 * coff-sparc.c: Likewise.
1837 * coff-stgo32.c: Likewise.
1838 * coff-tic30.c: Likewise.
1839 * coff-tic80.c: Likewise.
1840 * coff-w65.c: Likewise.
1841 * coff-z8k.c: Likewise.
1842 * coff64-rs6000.c: Likewise.
1843 * coffgen.c: Likewise.
1844 * cofflink.c: Likewise.
1845 * coffswap.h: Likewise.
1846 * ecoff.c: Likewise.
1847 * ecoffswap.h: Likewise.
1849 * elf32-mips.c: Likewise.
1850 * elf64-mips.c: Likewise.
1851 * hp300hpux.c: Likewise.
1852 * i386dynix.c: Likewise.
1853 * i386lynx.c: Likewise.
1854 * i386msdos.c: Likewise.
1855 * i386os9k.c: Likewise.
1856 * libpei.h: Likewise.
1857 * nlm32-alpha.c: Likewise.
1858 * nlm32-i386.c: Likewise.
1859 * nlm32-ppc.c: Likewise.
1860 * nlmcode.h: Likewise.
1861 * nlmswap.h: Likewise.
1862 * oasys.c: Likewise.
1863 * pdp11.c: Likewise.
1864 * pe-mips.c: Likewise.
1865 * peXXigen.c: Likewise.
1866 * peicode.h: Likewise.
1867 * riscix.c: Likewise.
1868 * sunos.c: Likewise.
1869 * xcofflink.c: Likewise.
1870 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
1871 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
1872 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
1873 equivalent H_PUT_* macro instead.
1874 (GETWORD, GETHALF, GETBYTE): Similarly.
1875 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1876 (GETWORD, GETHALF, GETBYTE): Likewise.
1877 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1879 * bfd-in.h (struct orl): Change "pos" to a union.
1880 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
1881 (bsd_write_armap): Here too.
1882 (coff_write_armap): And here.
1883 * coff-rs6000.c (xcoff_write_armap_old): And here.
1884 (xcoff_write_one_armap_big): And here.
1885 (xcoff_write_armap_big): And here.
1886 * ecoff.c (_bfd_ecoff_write_armap): And here.
1887 * elf64-mips.c (mips_elf64_write_armap): And here.
1889 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
1890 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
1891 * elf32-h8300.c (elf32_h8_mach): Likewise.
1892 * elf32-mips.c (elf_mips_mach): Likewise.
1893 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
1895 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
1897 (aix386_core_vec): Typo fix.
1899 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
1900 etc. to avoid redefined macro warning.
1901 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
1902 (MY(fix_pcrel_26)): Likewise.
1903 * aout-ns32k.c (MY(put_reloc)): Likewise.
1904 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
1905 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
1906 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
1908 * aout-encap.c: Include "file", not <file> for binutils headers.
1909 (encap_object_p): Half baked attempt to fix compile errors in
1910 code dealing with "magic".
1912 * aout-ns32k.c: Include "file", not <file> for binutils headers.
1913 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
1914 bfd_vma's rather than longs.
1915 * cpu-ns32k.c (ns32k_sign_extend): Delete.
1916 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
1917 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
1919 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
1920 Use unsigned comparisons.
1921 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
1922 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
1923 (_bfd_do_ns32k_reloc_contents): Likewise.
1924 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
1925 (_bfd_ns32k_get_immediate): Likewise.
1926 (_bfd_ns32k_put_displacement): Likewise.
1927 (_bfd_ns32k_put_immediate): Likewise.
1928 (bfd_reloc_status_type): Likewise.
1930 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
1932 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
1933 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
1934 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
1936 (record_toc): Use a bfd_signed_vma for our_toc_offset.
1937 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
1938 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
1940 (_bfd_elfcore_strndup): Likewise for "dup".
1941 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
1942 "name" to avoid shadowing.
1943 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
1944 definition of "off".
1945 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1946 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
1948 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
1950 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
1952 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
1954 (elf_link_input_bfd): Likewise.
1955 (elf_bfd_final_link): Remove duplicate innermost "off" var.
1956 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
1957 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
1959 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
1960 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
1961 (sunos_write_dynamic_symbol): Remove unused vars.
1962 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
1963 innermost "directory_name" and "file_name" vars.
1964 * tekhex.c (first_phase): Rename local var "type" to "stype".
1965 (tekhex_write_object_contents): Rename innermost "s" to "sym".
1966 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
1967 doing comparison at caller.
1968 (vms_esecflag_by_name): Likewise.
1969 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
1970 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
1971 (xcoff_write_global_symbol): Rename "p" param to "inf".
1973 * cisco-core.c: Add missing prototypes.
1974 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
1975 (cisco_core_file_failing_signal): Likewise.
1976 (cisco_core_file_matches_executable_p): Likewise.
1977 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
1978 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
1979 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
1980 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
1982 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
1983 thumb_glue_size and arm_glue_size.
1984 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
1986 * coff64-rs6000.c: Group prototypes together.
1988 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
1989 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
1991 * cpu-arc.c: Add missing prototypes.
1992 * cpu-h8500.c: Likewise.
1993 * cpu-i960.c: Likewise.
1994 * cpu-pj.c: Likewise.
1995 * cpu-sh.c: Likewise.
1996 * cpu-w65.c: Likewise.
1997 * cpu-z8k.c: Likewise.
1998 * elf32-fr30.c: Likewise.
1999 * elf32-h8300.c: Likewise.
2000 * elf32-i370.c: Likewise.
2001 * hpux-core.c: Likewise.
2002 * versados.c: Likewise.
2004 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
2005 * cpu-h8500.c: Likewise.
2006 * cpu-i960.c: Likewise.
2007 * cpu-z8k.c: Likewise.
2009 * cpu-ia64-opc.c: Correct comment.
2011 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
2013 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
2015 (bfd_elf32_write_out_phdrs): Likewise.
2016 (bfd_elf64_write_out_phdrs): Likewise.
2017 (elf_linker_section_pointers): Change addend to bfd_vma.
2018 (_bfd_elf_find_pointer_linker_section): Likewise.
2019 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
2020 filepos to unsigned file_ptr.
2021 (_bfd_elfcore_strndup): Change max param to size_t.
2022 * elf.c (_bfd_elfcore_make_pseudosection): As above.
2023 (_bfd_elfcore_strndup): Likewise.
2024 (_bfd_elf_find_pointer_linker_section): Likewise.
2026 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
2027 insn and sym_value to ints.
2029 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
2031 (elfcore_read_notes): Likewise.
2033 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
2034 param from unsigned char to int.
2035 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
2036 for info_to_howto call.
2037 (add_dynamic_entry): Define macro.
2038 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
2040 * elf32-cris.c (add_dynamic_entry): Define macro.
2041 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
2043 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
2044 (elf32_h8_object_p): Likewise.
2045 (elf32_h8_merge_private_bfd_data): Likewise.
2046 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
2048 * elf32-hppa.c (add_dynamic_entry): Define macro.
2049 (elf32_hppa_size_dynamic_sections): Use it.
2050 * elf32-i370.c (add_dynamic_entry): Define macro.
2051 (i370_elf_size_dynamic_sections): Use it.
2052 (i370_noop): Make static.
2053 * elf32-i386.c (add_dynamic_entry): Define macro.
2054 (elf_i386_size_dynamic_sections): Use it.
2055 * elf32-m68k.c (add_dynamic_entry): Define macro.
2056 (elf_m68k_size_dynamic_sections): Use it.
2057 * elf32-ppc.c (add_dynamic_entry): Define macro.
2058 (ppc_elf_size_dynamic_sections): Use it.
2059 * elf32-s390.c (add_dynamic_entry): Define macro.
2060 (elf_s390_size_dynamic_sections): Use it.
2061 * elf64-alpha.c (add_dynamic_entry): Define macro.
2062 (elf64_alpha_size_dynamic_sections): Use it.
2063 * elf64-hppa.c (add_dynamic_entry): Define macro.
2064 (elf64_hppa_size_dynamic_sections): Use it.
2065 * elf64-ppc.c (add_dynamic_entry): Define macro.
2066 (ppc64_elf_size_dynamic_sections): Use it.
2067 * elf64-s390.c (add_dynamic_entry): Define macro.
2068 (elf_s390_size_dynamic_sections): Use it.
2069 * elf64-sparc.c (add_dynamic_entry): Define macro.
2070 (sparc64_elf_size_dynamic_sections): Use it.
2071 * elf64-x86-64.c (add_dynamic_entry): Define macro.
2072 (elf64_x86_64_size_dynamic_sections): Use it.
2073 * elfxx-ia64.c (add_dynamic_entry): Define macro.
2074 (elfNN_ia64_size_dynamic_sections): Use it.
2076 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
2077 (v850_elf_perform_relocation): Make "r_type" param unsigned.
2079 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
2080 false if the first malloc fails rather than going via error_return.
2082 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
2084 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
2086 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
2088 * elfxx-ia64.c (global_sym_index): Return a long.
2090 * ieee.c (get_symbol): Use int rather than char param.
2091 (ieee_slurp_sections): Move "section" var to inner blocks.
2092 (copy_expression): Don't init "value" to zero or worry about
2093 clearing to zero after using.
2094 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
2097 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
2100 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
2101 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
2103 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
2105 * pc532-mach.c (MYNSX): Delete.
2106 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
2107 (write_object_contents): Correct prototype.
2109 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
2110 than unsigned short.
2112 * section.c (bfd_set_section_contents): Remove redundant
2113 "offset < 0" test. Check that "count" doesn't overflow size_t.
2114 (bfd_get_section_contents): Likewise.
2116 * som.c (som_fixup_formats): Add missing braces.
2117 (som_reloc_addend): Pass a bfd_vma for "addend".
2119 * srec.c (srec_write_record): Pass "type" as an unsigned int.
2120 (srec_write_symbols): Remove an unnecessary var.
2122 * targets.c (_bfd_target_vector): Sort entries. Sort externs
2124 * configure.in: Sort to match. Bump version number.
2125 * configure: Regenerate.
2127 * tekhex.c (move_section_contents): Assert offset == 0.
2129 * versados.c (new_symbol_string): Constify arg.
2130 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
2131 (versados_get_symbol_info): Make static.
2132 (versados_print_symbol): Likewise.
2133 (versados_get_reloc_upper_bound): Likewise.
2134 (versados_canonicalize_reloc): Likewise.
2136 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
2138 * elflink.h (elf_link_input_bfd): Fix typo in error message.
2140 2001-09-17 H.J. Lu <hjl@gnu.org>
2142 * dwarf1.c (parse_die): Take a new arg for the end of the
2143 section. Return false if die is beyond the section.
2144 (parse_functions_in_unit): Pass the end of the section to
2146 (_bfd_dwarf1_find_nearest_line): Likewise.
2148 2001-09-14 Michael Rauch <mrauch@netbsd.org>
2150 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
2151 just like R_SPARC_32.
2153 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2155 * configure.bfd: Add arm-openbsd target.
2157 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2159 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
2160 Add support for mips64.
2162 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
2164 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
2166 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
2168 * elf.c (prep_headers): Get the machine code from the elf
2170 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
2171 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
2172 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
2173 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
2174 * elf-arc.c (arc_elf_final_write_processing): Don't override
2175 e_machine, it's now properly set in prep_headers.
2176 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
2178 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
2179 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
2180 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
2181 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
2182 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
2183 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
2184 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
2185 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
2186 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
2187 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
2188 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
2189 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
2191 2001-09-11 Richard Henderson <rth@redhat.com>
2193 * elf64-alpha.c (elf64_alpha_section_flags): New.
2194 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
2196 2001-09-11 Richard Henderson <rth@redhat.com>
2198 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
2199 apply HINT relocations against dynamic symbols.
2201 2001-09-11 H.J. Lu <hjl@gnu.org>
2203 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
2205 2001-09-09 Richard Henderson <rth@redhat.com>
2207 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
2209 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
2210 following a call to a near function.
2212 2001-09-08 Richard Henderson <rth@redhat.com>
2214 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
2215 relocation errors. Fail gp-relative relocations against
2218 2001-09-08 Alan Modra <amodra@bigpond.net.au>
2220 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
2221 as well as DEF_DYNAMIC in test for avoided copy relocs.
2222 (allocate_plt_and_got_and_discard_relocs): Likewise.
2223 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
2224 (allocate_plt_and_got_and_discard_relocs): Likewise.
2226 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2228 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
2231 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2233 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
2235 (mips_elf64_howto_table_rel): Likewise.
2237 2001-09-05 Tom Rix <trix@redhat.com>
2239 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
2240 and syscall symbols.
2241 (write_global_symbol) : Same.
2242 (bfd_xcoff_export_symbol): Remove unused syscall param.
2243 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
2244 bfd_xcoff_import_symbol.
2246 * bfd-in2.h : Regenerate.
2248 2001-09-04 Richard Henderson <rth@redhat.com>
2250 * elf64-alpha.c (SKIP_HOWTO): New.
2251 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
2252 Fix sizes of 16-bit mem format relocs.
2253 (elf64_alpha_reloc_map): Update to match.
2254 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
2255 (elf64_alpha_relax_without_lituse): Likewise.
2256 (elf64_alpha_check_relocs): Handle GPREL16.
2257 (elf64_alpha_relocate_section): Likewise.
2258 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
2259 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
2260 * bfd-in2.h, libbfd.h: Rebuild.
2262 2001-09-04 Jeff Law <law@redhat.com>
2264 * elf32-h8300.c (elf32_h8_relax_section): New function.
2265 (elf32_h8_relax_delete_bytes): Likewise.
2266 (elf32_h8_symbol_address_p): Likewise.
2267 (elf32_h8_get_relocated_section_contents): Likewise.
2268 (bfd_elf32_bfd_relax_section): Define.
2269 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
2271 * elf32-h8300.c (special): New function.
2272 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
2274 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
2275 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
2276 Fix minor problems with 8bit and 16bit PC relative relocations.
2278 2001-09-01 Andreas Jaeger <aj@suse.de>
2280 * vms-tir.c: Add missing prototypes.
2281 * vms-hdr.c: Likewise.
2282 * vms-gsd.c: Likewise.
2283 * vms-misc.c: Likewise.
2285 2001-08-31 H.J. Lu <hjl@gnu.org>
2287 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
2288 with bad relocation.
2290 2001-08-31 Eric Christopher <echristo@redhat.com>
2291 Jason Eckhardt <jle@redhat.com>
2293 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
2294 mips32_4k and mips64.
2295 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
2296 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
2297 * bfd/cpu-mips.c: Ditto.
2298 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
2299 * bfd/bfd-in2.h: Regenerate.
2301 2001-08-31 Jakub Jelinek <jakub@redhat.com>
2303 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
2304 value into R_ALPHA_RELATIVE's addend.
2305 (elf64_alpha_finish_dynamic_symbol): Likewise.
2307 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
2309 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
2310 recomputed addend during relocatable link if not USE_REL.
2312 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
2315 2001-08-30 H.J. Lu <hjl@gnu.org>
2317 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
2319 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
2320 relocations for weak definitions.
2322 2001-08-30 H.J. Lu <hjl@gnu.org>
2324 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
2325 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
2326 * Makefile.in: Rebuild.
2328 2001-08-30 H.J. Lu <hjl@gnu.org>
2330 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
2331 dynamic relocation for undefined weak symbols when creating
2332 executables. Check h->root.root.type, instead of h->root.type.
2334 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2336 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2337 default from coff to elf.
2339 2001-08-29 Jeff Law <law@redhat.com>
2341 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
2343 (h8_reloc_map): Similarly.
2344 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
2345 Add support for PC relative relocations.
2347 * elf32-h8300.c: Put all prototypes together.
2348 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
2349 (elf32_h8_final_link_relocate): New function for linker.
2350 (elf32_h8_relocate_section): Similarly.
2351 (elf_backend_relocate_section): Define.
2353 * cpu-h8300.c (h8300_scan, compatible): Prototype.
2354 (h8300_scan): Handle architecture:machine encodings typically
2355 found in linker scripts.
2356 * elf.c (prep_headers): Do not try to do H8 machine recognition
2358 * elf32-h8300.c: Add some missing prototypes.
2359 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
2360 (elf32_h8_object_p): Similarly.
2362 2001-08-29 Tom Rix <trix@redhat.com>
2364 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
2365 does not follow a XTY_SD.
2367 2001-08-29 Alan Modra <amodra@bigpond.net.au>
2369 * targmatch.sed: Delete case statements.
2370 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
2373 2001-08-29 J"orn Rennecke <amylaar@redhat.com>
2375 * Makefile.am (elf32-h8300.lo): New target.
2376 * config.bfd (h8300*-*-elf): New case.
2377 * configure.in (bfd_elf32_h8300_vec): New case.
2378 * elf.c (prep_headers): Add case for bfd_arch_h8300.
2379 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
2380 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
2381 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
2382 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
2383 * elf32-h8300.c: New file.
2384 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
2386 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2388 * sparclynx.c: Add missing prototypes.
2389 * coff-mcore.c: Add missing prototypes.
2390 * elf32-pj.c: Add missing prototypes.
2391 * nlm32-sparc.c: Add missing prototypes.
2392 * oasys.c: Add missing prototypes.
2393 * pdp11.c: Add missing prototypes.
2394 * pe-mips.c: Add missing prototypes.
2395 * riscix.c: Add missing prototypes.
2397 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
2399 * elf32-i386.c: Add missing prototypes.
2400 * elf32-ppc.c: Likewise.
2401 * elf32-sh-lin.c: Likewise.
2402 * elfarm-nabi.c: Likewise.
2404 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
2406 * elf32-i386.c (elf_i386_grok_prstatus): New function.
2407 (elf_i386_grok_psinfo): New function.
2408 (elf_backend_grok_prstatus): Define.
2409 (elf_backend_grok_psinfo): Likewise.
2410 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
2411 (ppc_elf_grok_psinfo): New function.
2412 (elf_backend_grok_prstatus): Define.
2413 (elf_backend_grok_psinfo): Likewise.
2414 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
2415 (elf32_shlin_grok_psinfo): New function.
2416 (elf_backend_grok_prstatus): Define.
2417 (elf_backend_grok_psinfo): Likewise.
2418 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
2419 (elf32_arm_nabi_grok_psinfo): New function.
2420 (elf_backend_grok_prstatus): Define.
2421 (elf_backend_grok_psinfo): Likewise.
2423 2001-08-27 H.J. Lu <hjl@gnu.org>
2425 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
2427 (mips_elf_calculate_relocation): Create dynamic relocation for
2428 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
2431 2001-08-27 H.J. Lu <hjl@gnu.org>
2433 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
2434 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
2435 (_bfd_elf32_mips_grok_prstatus): Likewise.
2436 (_bfd_elf32_mips_grok_psinfo): Likewise.
2437 (_bfd_mips_elf_hide_symbol): Make it static and cast to
2438 `struct mips_elf_link_hash_entry *'.
2439 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
2441 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2443 * mipsbsd.c: Add missing prototypes.
2444 * hp300hpux.c: Add missing prototypes.
2445 * i386aout.c: Add missing prototypes.
2446 * i386lynx.c: Add missing prototypes.
2447 * i386mach3.c: Add missing prototypes.
2448 * i386msdos.c: Add missing prototypes.
2449 * i386os9k.c: Add missing prototypes.
2451 2001-08-27 Linus Nordberg <linus@swox.se>
2452 Torbjorn Granlund <tege@swox.com>
2453 Staffan Ulfberg <staffanu@swox.se>
2454 Alan Modra <amodra@bigpond.net.au>
2456 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
2457 targ64_selvecs for 32 bit powerpc targets.
2458 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
2459 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
2461 * Makefile.in: Regenerate.
2462 * configure.in: Add elf64_powerpc vecs.
2463 * configure: Regenerate.
2464 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
2465 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
2466 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
2467 * elf64-ppc.c: New file.
2468 * reloc.c: Add powerpc64 relocs.
2469 * libbfd.h: Regenerate.
2470 * bfd-in2.h: Regenerate.
2472 2001-08-27 Andreas Schwab <schwab@suse.de>
2474 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
2475 reloc is against read-only section.
2476 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
2477 looking up section names for DT_TEXTREL.
2478 (elf32_m68k_reloc_type_class): New function.
2479 (elf_backend_reloc_type_class): Define.
2481 2001-08-27 Andreas Jaeger <aj@suse.de>
2483 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
2484 reloc is against read-only section.
2485 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
2486 looking up section names for DT_TEXTREL.
2487 (elf_s390_reloc_type_class): New.
2488 (elf_backend_reloc_type_class): Define.
2490 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
2491 reloc is against read-only section.
2492 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
2493 looking up section names for DT_TEXTREL.
2494 (elf_s390_reloc_type_class): New.
2495 (elf_backend_reloc_type_class): Define.
2497 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
2498 is against read-only section.
2499 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2500 looking up section names for DT_TEXTREL.
2501 (ppc_elf_reloc_type_class): New.
2502 (elf_backend_reloc_type_class): Define.
2504 2001-08-26 Andreas Jaeger <aj@suse.de>
2506 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
2507 reloc is against read-only section.
2508 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
2509 looking up section names for DT_TEXTREL.
2510 (elf_cris_reloc_type_class): New.
2511 (elf_backend_reloc_type_class): Define.
2513 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
2514 against read-only section.
2515 (elf_backend_reloc_type_class): Define.
2516 (sh_elf_reloc_type_class): New.
2517 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2518 looking up section names for DT_TEXTREL.
2520 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
2521 reloc is against read-only section.
2522 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
2523 looking up section names for DT_TEXTREL.
2524 (elf32_arm_reloc_type_class): New.
2525 (elf_backend_reloc_type_class): Define.
2527 2001-08-25 Andreas Jaeger <aj@suse.de>
2529 * oasys.c: Add missing prototypes.
2531 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
2532 attribute for parameter.
2533 * elf.c (_bfd_elf_reloc_type_class): Likewise.
2535 * versados.c (get_4): Make static.
2536 (get_10): Make static.
2537 Add missing prototypes.
2538 (process_esd): Fix call to versados_new_symbol.
2540 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
2542 * coff-a29k.c: Add missing prototypes.
2543 * coff-apollo.c: Add missing prototypes.
2544 * coff-arm.c: Add missing prototypes.
2545 * coff-i860.c: Add missing prototypes.
2546 * coff-rs6000.c: Add missing prototypes.
2547 * coff-tic80.c: Add missing prototypes.
2548 * elf-m10200.c: Add missing prototypes.
2549 * elf-m10300.c: Add missing prototypes.
2550 * elf32-arm.h: Add missing prototypes.
2551 * elf32-d10v.c: Add missing prototypes.
2552 * elf32-m32r.c: Add missing prototypes.
2553 * elf32-mcore.c: Add missing prototypes.
2554 * elf32-openrisc.c: Add missing prototypes.
2555 * elf32-sh.c: Add missing prototypes.
2556 * elf32-sparc.c: Add missing prototypes.
2557 * elf32-v850.c: Add missing prototypes.
2558 * elfarm-nabi.c: Add missing prototypes.
2559 * elfarm-oabi.c: Add missing prototypes.
2561 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2563 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
2564 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
2566 2001-08-24 H.J. Lu <hjl@gnu.org>
2568 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
2571 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
2573 * elf-bfd.h (elf_hash_table): Revert definition.
2574 (is_elf_hash_table): New macro.
2575 * elflink.h (elf_link_add_object_symbols): Test
2576 is_elf_hash_table before accessing ELF only fields in hash
2578 (elf_link_create_dynamic_sections): Fail if not using an ELF
2580 (elf_add_dynamic_entry): Fail if not using an ELF hash
2582 (elf_link_record_local_dynamic_symbol): Fail if not using an
2584 (size_dynamic_sections): Fail if not using an ELF hash
2586 (elf_adjust_dynamic_symbol): Fail if not using an ELF
2588 (elf_bfd_final_link): Fail if not using an ELF hash
2591 2001-08-24 H.J. Lu <hjl@gnu.org>
2593 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
2594 table is not an ELF linker hash table.
2596 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
2597 table type to bfd_link_elf_hash_table.
2599 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
2602 * linker.c (_bfd_link_hash_table_init): Set the linker hash
2603 table type to bfd_link_generic_hash_table.
2605 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2607 * bfd.c (bfd_alt_mach_code): New function.
2608 * bfd-in2.h: Rebuilt.
2610 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2612 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
2613 `type' field in the hash entry when deciding whether to follow a
2616 2001-08-24 Jakub Jelinek <jakub@redhat.com>
2618 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
2620 (elf_link_sort_relocs): Adjust accordingly.
2622 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
2623 (elf64_alpha_check_relocs): Set it if section this reloc is against
2624 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
2626 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
2627 is is against read-only section.
2628 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
2629 check section names.
2630 (elf64_alpha_reloc_type_class): New.
2631 (elf_backend_reloc_type_class): Define.
2633 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2635 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
2638 2001-08-23 Andreas Jaeger <aj@suse.de>
2640 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
2641 the reloc is against read-only section.
2642 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
2643 of looking up section names for DT_TEXTREL.
2644 (elf64_x86_64_reloc_type_class): New.
2645 (elf_backend_reloc_type_class): Define.
2647 2001-08-23 H.J. Lu <hjl@gnu.org>
2649 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
2650 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
2652 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
2653 bfd_print_symbol_vandf.
2654 * coffgen.c (coff_print_symbol): Likewise.
2655 * elf.c (bfd_elf_print_symbol): Likewise.
2656 * ieee.c (ieee_print_symbol): Likewise.
2657 * nlmcode.h (nlm_print_symbol): Likewise.
2658 * oasys.c (oasys_print_symbol): Likewise.
2659 * pdp11.c (NAME(aout,print_symbol)): Likewise.
2660 * som.c (som_print_symbol): Likewise.
2661 * srec.c (srec_print_symbol): Likewise.
2662 * tekhex.c (tekhex_print_symbol): Likewise.
2663 * versados.c (versados_print_symbol): Likewise.
2664 * vms.c (vms_print_symbol): Likewise.
2666 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
2667 with bfd_fprintf_vma.
2668 (bfd_elf_print_symbol): Likewise.
2669 * syms.c (bfd_print_symbol_vandf): Likewise.
2671 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2673 * aoutf1.h (sunos_write_object_contents): Silence compile time
2675 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
2677 * bout.c: Add missing function prototypes. Fix formatting.
2678 * coff-z8k.c: Add missing function prototypes. Fix formatting.
2679 * coff-w65.c: Add missing function prototypes. Fix formatting.
2680 * coff-h8500.c: Add missing function prototypes. Fix formatting.
2681 * coff-h8300.c: Add missing function prototypes. Fix formatting.
2682 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
2683 * coff-tic30.c: Add missing function prototypes. Fix formatting.
2684 * coff-m68k.c: Add missing function prototypes. Fix formatting.
2685 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
2686 * coff-sh.c: Add missing function prototypes. Fix formatting.
2688 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2690 * elf-bfd.h (enum elf_reloc_type_class): New.
2691 (struct elf_backend_data): Add elf_backend_reloc_type_class.
2692 (_bfd_elf_reloc_type_class): New.
2693 * elfxx-target.h (elf_backend_reloc_type_class): Define.
2694 (elfNN_bed): Add elf_backend_reloc_type_class.
2695 * elf.c (_bfd_elf_reloc_type_class): New.
2696 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
2697 is against read-only section.
2698 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
2699 looking up section names for DT_TEXTREL.
2700 (elf_i386_reloc_type_class): New.
2701 (elf_backend_reloc_type_class): Define.
2702 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
2703 reloc is against read-only section.
2704 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
2705 looking up section names for DT_TEXTREL.
2706 (elf32_sparc_reloc_type_class): New.
2707 (elf_backend_reloc_type_class): Define.
2708 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
2709 reloc is against read-only section.
2710 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2711 looking up section names for DT_TEXTREL.
2712 (sparc64_elf_reloc_type_class): New.
2713 (elf_backend_reloc_type_class): Define.
2714 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
2715 (elfNN_ia64_hash_table_create): Clear ia64_info.
2716 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
2718 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
2719 instead of looking up section names for DT_TEXTREL.
2720 (elfNN_ia64_reloc_type_class): New.
2721 (elf_backend_reloc_type_class): Define.
2722 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
2723 (struct elf_link_sort_rela): New.
2724 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
2725 (elf_bfd_final_link): Call elf_link_sort_relocs.
2726 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
2729 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2731 * configure.in (x86-bsdi): No corefile support.
2732 * configure: Regenerate.
2734 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
2736 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
2739 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
2741 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
2742 the alignment of dwarf2 linkonce sections to 0.
2743 * coff-sto32.c: Likewise.
2745 2001-08-20 Andreas Jaeger <aj@suse.de>
2747 * coff-sparc.c: Add missing prototypes.
2748 * elf32-s390.c: Likewise.
2749 * elf32-i960.c: Likewise.
2750 * aout-target.h: Likewise.
2752 2001-08-20 H.J. Lu <hjl@gnu.org>
2754 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
2755 (elf_num_section_syms): New for num_section_syms.
2757 * elf.c (elf_map_symbols): Set num_section_syms.
2758 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
2759 the section symbol index.
2761 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
2763 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
2764 select the generic has table creator. All elf backends need elf
2765 specific fields in the hash table.
2767 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2769 * archive.c (offsetof): Remove define.
2772 * sysdep.h (offsetof): Define.
2774 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2776 * bfd.c (bfd_get_gp_size): Return an unsigned int.
2777 (bfd_set_gp_size): Make param unsigned.
2778 * bfd-in2.h: Regenerate.
2779 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
2780 than calling bfd_get_gp_size.
2781 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
2782 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
2784 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2786 * linker.c (default_fill_link_order): Handle four byte fill value.
2788 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2790 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
2792 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
2794 * elf64-mips.c (UNUSED_RELOC): Define.
2795 (mips_elf64_howto_table_rel): Use it.
2796 (mips_elf64_howto_table_rela): Here too.
2797 (mips_elf64_write_relocs): Fix signed/unsigned warning.
2799 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
2801 * coffgen.c (coff_print_symbol): Fix warnings.
2802 (coff_find_nearest_line): Likewise.
2803 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
2804 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
2805 * format.c (bfd_check_format_matches): Likewise.
2806 (bfd_set_format): Likewise.
2807 * coff-ia64.c: Add missing prototypes.
2808 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
2809 signed to silence warnings.
2810 (elf64_alpha_relocate_section): Likewise.
2811 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
2812 (elf64_alpha_add_symbol_hook): Likewise.
2813 (elf64_alpha_final_link): Likewise.
2814 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
2815 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
2816 (elf64_alpha_size_got_sections): Likewise.
2817 * elfxx-ia64.c: Add missing prototypes.
2818 (elfNN_ia64_relocate_section): Fix warning.
2819 (elfNN_ia64_unwind_entry_compare): Make params const.
2821 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2823 * config.bfd (targ64_selvecs): New.
2824 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
2826 * bfd-in.h (BFD_VERSION): Remove wrong comment.
2827 (BFD_DEFAULT_TARGET_SIZE): New.
2828 (BFD_ARCH_SIZE): Comment.
2829 * configure.in (target_size): New. Set instead of target64 in
2830 selvecs case statement. Set target64 from it.
2831 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
2832 * bfd-in2.h: Regenerate.
2833 * configure: Regenerate.
2835 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2837 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
2838 (bfd_errmsgs): Add corresponding message.
2839 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
2840 finding an archive that contains different format object files.
2841 Return bfd_error_wrong_object_format for this case.
2842 * format.c: Formatting fixes. s/CONST/const/.
2843 (bfd_check_format_matches): Accept archives that give
2844 bfd_error_wrong_object_format if no full match is found. Tidy
2845 code handling matching_vector. Don't return a pointer to freed
2846 memory in `matching'. Handle ambiguous matches as for partial
2848 * bfd-in2.h: Regenerate.
2850 2001-08-15 Alan Modra <amodra@bigpond.net.au>
2852 * libieee.h (common_header_type): Add last_byte field.
2854 * ieee.c: Add missing prototypes. Some format fixes.
2855 (struct output_buffer_struct): Move for availability to prototypes.
2856 (ieee_part_after): New function.
2857 (ieee_slurp_debug): Use it here.
2858 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
2859 ieee_part_after to set last_byte to one past end of current part.
2861 (ieee_pos): Pass in ieee_data_struct rather than bfd.
2863 (parse_expression): Don't go beyond the end of the current part.
2864 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
2865 (ieee_get_symtab_upper_bound, ieee_get_symtab,
2866 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
2867 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
2868 ieee_set_section_contents, ieee_write_object_contents,
2869 ieee_make_empty_symbol): Make static.
2870 (ieee_archive_p): Correct comments regarding bfd_read.
2871 (ieee_object_p): Similarly.
2872 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
2873 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
2874 input_bfd, output_bfd, output_buffer.
2875 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
2876 do_with_relocs, ie. as a symbol for relocatable files.
2877 (ieee_vec): Add comments showing functions referenced by macros.
2879 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2881 * aout-tic30.c: Add missing prototypes. Fix formatting.
2882 * aout-ns32k.c: Add missing prototypes. Fix formatting.
2883 * peXXigen.c: Add missining prototypes. Fix formatting.
2884 * aout-adobe.c: Add missining prototypes. Fix formatting.
2886 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
2888 * elf32-v850.c: Add missing function prototypes.
2889 Fix some formatting.
2891 * cpu-v850.c: Add missing function prototype.
2892 Fix some formatting.
2894 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
2896 * elf-bfd.h (struct elf_backend_data): Add new fields
2897 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
2898 (bfd_elf_sprintf_vma): Rename function prototype to
2899 '_bfd_elf_sprintf_vma'.
2900 (bfd_elf_fprintf_vma): Rename function prototype to
2901 '_bfd_elf_fprintf_vma'.
2902 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
2903 directly, instead indirect via the elf_backend_data structure.
2904 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
2905 instead indirect via the elf_backend_data structure.
2906 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
2907 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
2908 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
2910 (elf_backend_fprintf_vma): Initialise if not already defined.
2911 (struct elf_backend_data): Initialise the
2912 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
2914 2001-08-10 Andreas Jaeger <aj@suse.de>
2916 * elf64-sparc.c: Add missing prototypes.
2917 * elf32-cris.c: Likewise.
2918 * elf32-i370.c: Likewise.
2919 * elf64-hppa.c: Likewise.
2920 * elf64-s390.c: Likewise.
2922 2001-08-10 Andreas Jaeger <aj@suse.de>
2924 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
2925 Add prototypes where needed.
2927 2001-08-10 H.J. Lu <hjl@gnu.org>
2929 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
2930 (bfd_fprintf_vma): Likewise.
2932 2001-08-10 H.J. Lu <hjl@gnu.org>
2934 * bfd.c (bfd_sprintf_vma): Don't return void.
2935 (bfd_fprintf_vma): Likewise.
2937 2001-08-10 Andreas Jaeger <aj@suse.de>
2939 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2941 * configure: Regenerate.
2943 2001-08-10 Alan Modra <amodra@bigpond.net.au>
2945 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
2946 warning if not BFD64. Add braces so emacs auto format works.
2947 (bfd_elf_fprintf_vma): Likewise.
2949 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
2951 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
2952 param to agree with libxcoff.h.
2953 (xcoff_swap_ldhdr_out): Likewise.
2954 (xcoff_swap_ldsym_in): Likewise.
2955 (xcoff_swap_ldsym_out): Likewise.
2956 (xcoff_swap_ldrel_in): Likewise.
2957 (xcoff_swap_ldrel_out): Likewise.
2958 (xcoff_create_csect_from_smclas): Likewise.
2959 * coff64-rs6000.c: Add missing prototypes.
2960 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
2962 (xcoff64_swap_ldhdr_out): Likewise.
2963 (xcoff64_swap_ldsym_in): Likewise.
2964 (xcoff64_swap_ldsym_out): Likewise.
2965 (xcoff64_swap_ldrel_in): Likewise.
2966 (xcoff64_swap_ldrel_out): Likewise.
2967 (xcoff64_ppc_relocate_section): Make static.
2968 (xcoff64_slurp_armap): Likewise.
2969 (xcoff64_archive_p): Likewise.
2970 (xcoff64_openr_next_archived_file): Likewise.
2971 (xcoff64_sizeof_headers): Likewise.
2972 (xcoff64_is_lineno_count_overflow): Likewise.
2973 (xcoff64_is_reloc_count_overflow): Likewise.
2974 (xcoff64_loader_symbol_offset): Likewise.
2975 (xcoff64_loader_reloc_offset): Likewise.
2976 * elf64-gen.c: Add missing prototypes.
2978 2001-08-09 H.J. Lu <hjl@gnu.org>
2980 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
2981 (bfd_elf_fprintf_vma): Likewise.
2983 2001-08-09 H.J. Lu <hjl@gnu.org>
2985 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
2988 * bfd-in2.h: Regenerated.
2990 2001-08-09 H.J. Lu <hjl@gnu.org>
2992 * bfd-in.h (bfd_sprintf_vma): New prototype.
2993 (bfd_fprintf_vma): Likewise.
2994 (bfd_elf_sprintf_vma): Likewise.
2995 (bfd_elf_fprintf_vma): Likewise.
2996 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
2997 * bfd-in2.h: Regenerated.
2999 * bfd.c (bfd_sprintf_vma): New. Defined.
3000 (bfd_fprintf_vma): Likewise.
3002 * elf.c (bfd_elf_sprintf_vma): New. Defined.
3003 (bfd_elf_fprintf_vma): Likewise.
3005 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3007 * coff-rs6000.c: Add missing prototypes.
3008 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
3009 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
3010 xcoff_loader_reloc_offset): Make static.
3011 * dwarf1.c: Add missing prototypes.
3012 * dwarf2.c: Add missing prototypes.
3013 (struct abbrev_info): Move definition.
3014 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
3015 * elf.c: Add missing prototypes.
3016 * elf32-gen.c: Likewise.
3017 * elf32-i386.c: Likewise.
3018 * elf32-ppc.c: Likewise.
3019 (ppc_elf_sort_rela): Use PTR instead of "void *".
3020 * elflink.h: Add missing prototypes. Formatting fixes.
3021 * merge.c: Add missing prototypes.
3022 (last4_eq): Use PTR instead of "void *".
3023 (last_eq): Likewise.
3024 * syms.c: Add missing prototypes.
3026 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
3028 * bfd.c: Fix formatting.
3029 * bfd-in2.h: Regenerate.
3031 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
3033 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
3034 true (this target uses REL relocations) and 'pcrel_offset' to
3035 false (the PC is implied, not stored in the offset).
3037 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3039 1999-10-19 Linus Nordberg <linus@swox.se>
3040 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
3041 * elfxx-target.h (elf_backend_want_got_sym): Define.
3042 (elfNN_bed): Add elf_backend_want_got_sym.
3043 * elflink.c (_bfd_elf_create_got_section): Define
3044 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
3046 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
3048 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
3049 (find_rela_addend): New function.
3050 (parse_comp_unit): Call it to find the abbrev offset addend.
3051 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
3052 members of dwarf2_debug as debugging information is read.
3054 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
3056 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
3057 targets as well as sh-pe.
3059 2001-08-03 Ben Harris <bjh21@netbsd.org>
3061 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
3062 reloc from start of section when computing value for R_ARM_REL32
3065 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3067 From H.J. Lu <hjl@gnu.org>
3068 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
3069 keep relocs for undefined syms if there are no dynamic sections in
3071 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
3073 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3075 * cofflink.c (coff_link_check_ar_symbols): also search for
3076 __imp__symbol as well as _symbol.
3077 * linker.c (_bfd_generic_link_add_archive_symbols): also
3078 search for __imp__symbol as well as _symbol.
3080 2001-08-01 Adam Nemet <anemet@lnxw.com>
3082 * elf.c (elf_sort_sections): Return zero only as the last step.
3084 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
3086 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
3088 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
3089 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
3092 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3094 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
3095 to match corresponding bfd_coff_backend data member.
3097 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3099 * Makefile.am: Update dependencies with "make dep-am".
3100 * Makefile.in: Regenerate
3102 2001-07-15 H.J. Lu <hjl@gnu.org>
3104 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
3105 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
3106 * Makefile.in: Regenerate.
3108 2001-07-11 H.J. Lu <hjl@gnu.org>
3110 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
3111 flags when creating the reloc section if the ALLOC flag in the
3112 source section is set.
3114 2001-07-11 Steve Ellcey <sje@cup.hp.com>
3116 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
3117 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
3118 * bfd-in2.h: Regenerate.
3119 * libbfd.h: Regenerate.
3120 * elfxx-ia64.c (ia64_howto_table): Define how to handle
3122 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
3123 (elfNN_ia64_check_relocs): Likewise.
3124 (elfNN_ia64_install_value): Likewise.
3125 (elfNN_ia64_relocate_section): Likewise.
3127 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3129 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
3131 (elf32_sparc_check_relocs): Likewise.
3132 Only create .rela section for alloced sections in shared libraries.
3133 (elf32_sparc_relocate_section): Likewise.
3134 Remove redundant check.
3135 Optimize unaligned reloc usage.
3136 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
3139 2001-07-11 H.J. Lu <hjl@gnu.org>
3141 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
3142 ALLOC|LOAD flags as the source section for debugging sections
3143 when creating the reloc section.
3145 2001-07-05 Jim Wilson <wilson@redhat.com>
3147 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
3148 the section of the bigger symbol.
3150 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
3152 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
3154 * peicode.h (coff_swap_scnhdr_in): For sections containing
3155 uninitialised data, only set their size to s_paddr if this does
3156 not reset their size to zero. MS's latest compilers will set
3159 2001-07-04 H.J. Lu <hjl@gnu.org>
3161 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
3162 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
3165 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
3167 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
3169 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
3170 sections being discarded.
3172 2001-06-30 Alan Modra <amodra@bigpond.net.au>
3174 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
3175 instead of _bfd_elfcore_section_from_phdr.
3176 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
3177 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
3178 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
3179 (elfcore_grok_prstatus): Likewise.
3180 (elfcore_grok_lwpstatus): Likewise.
3181 (bfd_get_elf_phdr_upper_bound): Likewise.
3182 (elfcore_make_note_pseudosection): Formatting.
3183 (_bfd_elfcore_strndup): Formatting.
3184 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
3185 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
3187 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
3189 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
3190 and _bfd_elfcore_strndup.
3191 (struct elf_backend_data): Add elf_backend_grok_prstatus
3192 and elf_backend_grok_psinfo.
3193 * elf.c (_bfd_elfcore_make_pseudosection): New function.
3194 (elfcore_grok_prstatus): Use it.
3195 (elfcore_make_note_pseudosection): Likewise.
3196 (elfcore_strndup): Rename to...
3197 (_bfd_elfcore_strndup): Here, and make global.
3198 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
3199 (elfcore_grok_note): Call elf_backend_grok_prstatus
3200 and elf_backend_grok_psinfo if available.
3201 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
3202 (_bfd_elf32_mips_grok_psinfo): New function.
3203 (elf_backend_grok_prstatus): Define.
3204 (elf_backend_grok_psinfo): Define.
3205 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
3206 (elf_backend_grok_psinfo): Likewise.
3207 (elfNN_bed): Include elf_backend_grok_prstatus and
3208 elf_backend_grok_psinfo.
3210 2001-06-29 H.J. Lu <hjl@gnu.org>
3212 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
3213 hplink->sgot is NULL before filling GOT. Check if hplink->splt
3214 is NULL before filling PLT.
3216 2001-06-29 Alan Modra <amodra@bigpond.net.au>
3218 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
3220 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3222 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
3224 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
3225 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
3228 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
3229 (IS_ABSOLUTE_RELOC): Define.
3230 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
3231 (hppa_link_hash_newfunc): Always init it.
3232 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
3233 create COPY relocs only when the reloc is in a read-only section.
3234 Instead, allocate space for a dynamic reloc to reference the
3235 library symbol directly. Keep track of space we allocate using
3237 (hppa_discard_copies): Delete, and move code to..
3238 (allocate_plt_and_got): ..here. Rename to
3239 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
3240 relocs for non-shared link.
3241 (elf32_hppa_size_dynamic_sections): Update calls to above.
3242 (elf32_hppa_relocate_section): Write out the dynamic relocs used
3243 in lieu of COPY relocs.
3245 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
3247 (elf_i386_adjust_dynamic_symbol): ..nor here..
3248 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
3250 (elf_i386_size_dynamic_sections): Fix a comment.
3251 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
3252 involved in writing reloc out.
3254 2001-06-25 Alan Modra <amodra@bigpond.net.au>
3256 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
3257 Ensure syms are dynamic if we might be emitting a reloc.
3258 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
3259 for undefweak or undefined syms..
3260 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
3262 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
3263 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
3264 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
3265 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
3267 2001-06-24 H.J. Lu <hjl@gnu.org>
3269 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
3270 strncasecmp/strcasecmp instead of strncmp/strcmp.
3272 2001-06-23 H.J. Lu <hjl@gnu.org>
3274 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
3275 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
3276 in the regular object file and treat the weak definition as
3279 2001-06-23 Alan Modra <amodra@bigpond.net.au>
3281 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
3282 unresolved_reloc test to exclude cases where we use "relocation"
3283 before setting it to point into the .got. Reinstate fudge for
3284 unresolved relocs in debugging sections.
3286 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
3287 complicated tests for unresolvable relocs with a simple direct
3288 scheme using "unresolved_reloc" var.
3290 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
3291 elf_i386_dyn_relocs. Update comment.
3292 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
3294 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
3296 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
3298 (elf_i386_size_dynamic_sections): Likewise.
3299 (elf_i386_finish_dynamic_symbol): Likewise.
3300 (elf_i386_finish_dynamic_sections): Likewise.
3301 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
3304 Avoid creating COPY relocs if possible.
3305 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
3306 which .got created. Mark symbols used by R_386_32 and R_386_PC32
3307 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
3308 reloc is in a read-only section. Instead, allocate space for a
3309 dynamic reloc to reference the library symbol directly. Keep
3310 track of space we allocate using pcrel_relocs_copied.
3311 (discard_copies): Delete, and move code to ..
3312 (allocate_plt_and_got): ..here. Rename to
3313 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
3314 relocs for non-shared link.
3315 (elf_i386_size_dynamic_sections): Update calls to above functions.
3316 (elf_i386_relocate_section): Write out the dynamic relocs. Add
3317 more ugly logic to avoid "unresolvable relocation" error. Use
3318 htab shortcut in place of elf_hash_table macro.
3319 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
3320 not always be created now.
3322 2001-06-20 Bo Thorsen <bo@suse.co.uk>
3324 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
3327 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3329 * configure.host (mips64-*-linux): Reformat.
3331 2001-06-21 Alan Modra <amodra@bigpond.net.au>
3333 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
3334 allocate local .got space. Use shortcuts from hash table for .got
3335 and .plt rather than comparing section names.
3336 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
3337 adjusting index into local_got_refcounts to document what we are
3339 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
3340 Tidy .got and .plt error checking.
3342 2001-06-20 Catherine Moore <clm@redhat.com>
3344 * elf-bfd.h (struct elf_backend_data):
3345 elf_backend_emit_relocs: New field: Function for emitting
3347 elf_backend_count_relocs: New field: Function for determining
3348 the number of relocs to be emitted.
3349 * elfxx-target.h: Provide default (NULL) values for
3350 elf_backend_emit_relocs and elf_backend_count_relocs.
3351 * elflink.h (elf_link_size_reloc_section): Make the hash table
3352 big enough to hold the relocs counted by either reloc_count or
3354 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
3355 should be emitted, either because of a command line option
3356 stored in the info structure or because the target provides a
3357 special reloc emitting function.
3358 If the target provides a reloc counting function use it,
3359 unless performing a relocatable link or emitting all relocs.
3360 Also set the SEC_RELOC flag on any output section which will
3362 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
3363 should be emitted, either because of a command line option
3364 stored in the info structure or because the target provides a
3365 special reloc emitting function.
3366 If the target provides a reloc emitting function, use it,
3367 unless performing a relocatable link or emitting all relocs.
3369 2001-06-20 H.J. Lu <hjl@gnu.org>
3371 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
3372 allocate local .got space.
3374 2001-06-19 Andreas Jaeger <aj@suse.de>
3376 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
3379 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3381 * elflink.h (struct elf_assign_sym_version_info): Remove member
3382 export_dynamic. All users changed to use info member.
3383 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
3384 export_dynamic, instead use member in parameter info.
3385 * bfd-in.h (bfd_elf32_size_dynamic_sections,
3386 bfd_elf64_size_dynamic_sections): Update prototype.
3387 * bfd-in2.h: Regenerate.
3389 2001-06-18 H.J. Lu <hjl@gnu.org>
3391 * elflink.h (elf_info_failed): Add a new field, verdefs.
3392 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
3394 (elf_export_symbol): Check eif->verdefs to decide if a symbol
3397 2001-06-17 H.J. Lu <hjl@gnu.org>
3399 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
3400 readonly_reloc, to record if a relocation in the .rel.dyn
3401 section is against a read-only section.
3402 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
3404 (_bfd_mips_elf_check_relocs): Record if there is a relocation
3405 in the .rel.dyn section against a read-only section by setting
3406 DF_TEXTREL or readonly_reloc.
3407 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
3409 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
3410 there is a relocation in the .rel.dyn section against a
3412 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
3415 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3417 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
3418 function. Move flagword result into parameter list. Remove
3419 comment about setting bfd_error_handler to intercept failure
3421 * coffgen.c (make_a_section_from_file): Examine result of
3422 calling bfd_coff_styp_to_sec_flags and pass a failure back to
3424 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
3425 function. Move flagword result into parameter list.
3426 * libcoff.h: Regenerate.
3427 * libecoff.h: Regenerate.
3429 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
3431 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
3432 section is going to follow it.
3434 2001-06-12 Catherine Moore <clm@redhat.com>
3436 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
3437 with the file_align entry from elf_backend_data.
3438 (elf_gc_smash_unused_vtentry_relocs): Likewise.
3439 (elf_gc_record_vtentry): Likewise.
3441 2001-06-10 Alan Modra <amodra@bigpond.net.au>
3443 * elflink.h: Whitespace changes.
3444 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
3445 rather than "unsigned char".
3446 (elf_link_output_relocs): Likewise.
3447 (elf_link_input_bfd): Likewise.
3448 (elf_reloc_link_order): LIkewise.
3449 * elf.c: s/CONST/const/. Whitespace changes.
3450 * elf32-mips.c: Formatting fix.
3452 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
3453 * Makefile.in: Regenerate.
3454 * po/Make-in: Remove trailing tab.
3456 2001-06-09 Philip Blundell <philb@gnu.org>
3458 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
3460 (elf32_arm_plt_entry): Likewise.
3462 2001-06-08 H.J. Lu <hjl@gnu.org>
3464 * elf.c (swap_out_syms): Keep names for global section symbols.
3466 2001-06-07 H.J. Lu <hjl@gnu.org>
3468 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
3469 MIPS-based machines need it.
3471 2001-06-07 H.J. Lu <hjl@gnu.org>
3473 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
3476 * config.bfd: Remove ecoff from Linux/mips.
3478 2001-06-07 Andreas Jaeger <aj@suse.de>
3480 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
3482 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
3483 alignment of 8 for .rela sections; handle further relocations.
3485 2001-06-06 Christian Groessler <cpg@aladdin.de>
3487 * coff-z8k.c: Fix formatting.
3488 Fix howtos: howto->size was always 1.
3490 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3492 * configure.host (mips64*-*-linux*): Define.
3494 2001-06-05 Alan Modra <amodra@bigpond.net.au>
3496 * elf32-i386.c (elf_i386_discard_copies): Rename to
3497 discard_copies, and use elf_link_hash_entry arg rather than
3498 elf_i386_link_hash_entry.
3499 (elf_i386_link_hash_traverse): Delete.
3500 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
3501 Tidy sizing of dynamic sections.
3502 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
3503 possible .plt entries.
3504 (elf_i386_gc_sweep_hook): Likewise.
3505 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
3506 everything with plt.refcount <= 0.
3508 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
3510 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
3511 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
3513 (allocate_plt_and_got): ..instead do it all here. New function.
3514 (elf_i386_size_dynamic_sections): Allocate local .got space and
3515 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
3516 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
3517 rather than gc variety).
3518 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
3519 (elf_i386_relocate_section): Use it here and correct handling of
3520 R_386_GOT32. Provide section and offset for "unresolvable
3521 relocation" error message.
3522 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
3524 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
3525 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
3526 (elf_i386_link_hash_table_create): Init them.
3527 (create_got_section): New function.
3528 (elf_i386_create_dynamic_sections): New function.
3529 (elf_backend_create_dynamic_sections): Set to above.
3530 (elf_i386_check_relocs): Use shortcuts from hash table rather than
3531 calling bfd_get_section_by_name.
3532 (elf_i386_gc_sweep_hook): Likewise.
3533 (elf_i386_adjust_dynamic_symbol): Likewise.
3534 (elf_i386_size_dynamic_sections): Likewise.
3535 (elf_i386_relocate_section): Likewise.
3536 (elf_i386_finish_dynamic_sections): Likewise.
3538 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
3540 2001-06-02 H.J. Lu <hjl@gnu.org>
3542 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
3544 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
3546 2001-06-02 H.J. Lu <hjl@gnu.org>
3548 * aout-cris.c (MACHTYPE_OK): New. Defined.
3550 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
3552 * section.c (_bfd_strip_section_from_output): Handle NULL
3555 2001-06-02 H.J. Lu <hjl@gnu.org>
3557 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
3558 rs6000coff64_vec only if BFD64 is defined.
3559 (powerpc64-*-aix*): Enable only if BFD64 is defined.
3561 2001-06-02 H.J. Lu <hjl@gnu.org>
3563 * coff-ia64.c (ia64coff_object_p): Rewrite with
3564 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
3566 2001-06-01 Andreas Jaeger <aj@suse.de>
3568 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
3569 relocation, small reformatting.
3571 2001-05-29 Andreas Jaeger <aj@suse.de>
3573 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
3574 (elf64_x86_64_relocate_section): Likewise.
3576 2001-05-30 Alan Modra <amodra@one.net.au>
3578 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
3579 millicode. Don't allocate .got and .rela.got space here..
3580 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
3581 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
3583 (hppa_handle_PIC_calls): ..nor here..
3584 (allocate_plt_and_got): ..instead do it all here. New function.
3585 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
3586 call allocate_plt_and_got. No need to zap .got if not dynamic.
3587 (elf32_hppa_final_link): Call regular bfd_final_link instead of
3588 gc_common_final_link.
3589 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
3590 (elf32_hppa_relocate_section): Use it here.
3591 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
3592 dynamic_sections_created.
3593 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
3595 2001-05-28 Andreas Jaeger <aj@suse.de>
3597 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
3598 generic version since we want a hashsize of 4.
3599 (elf_backend_size_info): Likewise.
3601 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3603 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
3605 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
3606 (elf_link_input_bfd): Likewise.
3607 (elf_reloc_link_order): Likewise.
3608 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
3609 relocations correctly.
3611 2001-05-28 Nicolas Pitre <nico@cam.org>
3613 * elf32-arm.h: fix PLT generation for big endian ARM
3615 2001-05-28 Alan Modra <amodra@one.net.au>
3617 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
3618 for symbols forced local that need plabels.
3619 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
3620 .plt.rela for local syms if non-shared.
3621 (hppa_build_one_stub): Mask lsb of plt.offset.
3622 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
3623 (clobber_millicode_symbols): Correct comment.
3624 (elf32_hppa_relocate_section): Likewise.
3625 (elf32_hppa_finish_dynamic_symbol): Likewise.
3627 2001-05-28 Jeff Sturm <jsturm@one-point.com>
3629 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
3630 * bfd-in2.h: Regenerate.
3631 * libbfd.h: Regenerate.
3632 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
3633 and BFD_RELOC_SPARC_UA64 mapping
3634 * elf64-sparc.c: Likewise.
3636 2001-05-25 H.J. Lu <hjl@gnu.org>
3638 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
3639 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
3640 (coff-rs6000.lo): Remove the old dependency.
3641 * Makefile.in: Rebuild.
3643 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
3646 2001-05-25 H.J. Lu <hjl@gnu.org>
3648 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
3649 rs6000coff_core_file_matches_executable_p,
3650 rs6000coff_core_file_failing_command and
3651 rs6000coff_core_file_failing_signal only if AIX_CORE is
3653 (pmac_xcoff_vec): Likewise.
3654 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
3656 2001-05-25 Timothy Wall <twall@redhat.com>
3658 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
3659 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
3661 2001-05-25 H.J. Lu <hjl@gnu.org>
3663 * bfd-in2.h: Regenerated.
3664 * libcoff.h: Likewise.
3666 2001-05-25 Alan Modra <amodra@one.net.au>
3668 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
3669 undefined millicode syms in shared libs.
3670 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
3671 (elf32_hppa_check_relocs): Likewise.
3672 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3673 (elf32_hppa_size_dynamic_sections): Likewise.
3674 (elf32_hppa_relocate_section): Likewise.
3675 (elf32_hppa_finish_dynamic_symbol): Likewise.
3676 (elf32_hppa_finish_dynamic_sections): Likewise.
3678 2001-05-24 Tom Rix <trix@redhat.com>
3680 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
3681 xcoff-target.h not used to define rs6000 or ppc bfd.
3684 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
3687 * coff-rs6000.c : Many changes for 64 bit support. Move common
3688 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
3691 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
3692 linker now supported. Explictly define the rs6000coff64_vec.
3694 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
3695 (coff_print_aux) same
3696 (coff_write_object_contents) same
3697 (coff_slurp_line_table) same
3699 * coffgen.c : (coff_fix_symbol_name) formatting
3700 (coff_mangle_symbols) xcoff 64 bit support
3701 (coff_write_symbol) same
3702 (coff_write_alien_symbol) same
3703 (coff_write_native_symbol) same
3704 (coff_write_symbols) same
3705 (coff_get_symbol_info) same
3706 (bfd_coff_get_syment) same
3707 (coff_print_symbol) same
3709 * config.bfd : add powerpc64-*-aix* target
3711 * libcoff-in.h : formatting
3713 * libcoff.h : move xcoff extern declarations to libxcoff.h
3715 * libxcoff.h : New file
3717 * xcofflink.c : Many changes for xcoff64 support. Move common
3718 structures to include/coff/xcoff.h. Move specific structure to
3719 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
3720 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
3722 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
3725 (xcoff_build_ldsyms) : handle special __rtinit symbol.
3727 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3729 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
3732 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3734 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
3735 * libbfd.h: Regenerate.
3736 * bfd-in2.h: Regenerate.
3738 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
3739 * archures.c (bfd_mach_mips12000): Define.
3740 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
3741 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
3743 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
3744 * bfd-in2.h: Regenerate.
3745 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
3747 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
3749 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
3750 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
3751 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
3752 that is used by GCC.
3754 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3756 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
3757 of entries in a structured section.
3758 * elf.c: Use new macro.
3759 * elf32-i386.c: Use new macro.
3760 * elf32-mips.c: Use new macro.
3761 * elf64-alpha.c: Use new macro.
3762 * elf64-sparc.c: Use new macro.
3763 * elfcode.h: Use new macro.
3764 * elflink.h: Use new macro.
3766 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3768 * bfdint.texi: Replace -oformat with --oformat.
3770 2001-05-21 Andreas Jaeger <aj@suse.de>
3772 * dwarf2.c (decode_line_info): Fix error message.
3773 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
3774 adjust error message.
3776 2001-05-18 H.J. Lu <hjl@gnu.org>
3778 * elflink.h (elf_link_add_object_symbols): Revert the last
3781 2001-05-17 Alan Modra <amodra@one.net.au>
3783 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
3784 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
3785 (hppa_build_one_stub): Add an assert to check plt.offset.
3787 2001-05-17 H.J. Lu <hjl@gnu.org>
3789 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
3790 version definition to basename of the output filename.
3792 2001-05-17 H.J. Lu <hjl@gnu.org>
3794 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
3795 basename of the bfd filename.
3797 2001-05-16 Alan Modra <amodra@one.net.au>
3799 * section.c (asection): Add linker_has_input field.
3800 (STD_SECTION): Adjust initialization to suit.
3801 * ecoff.c (bfd_debug_section): Likewise.
3802 * bfd-in2.h: Regenerate.
3804 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
3806 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
3807 negative 32-bit operands to 16 operands when the operand is
3808 going to be zero-extended by the modified opcode.
3810 2001-05-12 Peter Targett <peter.targett@arccores.com>
3812 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
3813 name for 'arc5' core versions.
3814 (bfd_arc_arch): Make bfd_mach_arc_6 default.
3816 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
3818 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
3820 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3822 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
3824 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
3825 to .gnu.linkonce.t.FOO text section.
3827 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3829 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
3830 fields, change sec into secinfo.
3831 (struct sec_merge_info): Add chain, remove last fields.
3832 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
3833 (sec_merge_hash_lookup): If lookup could not use a string only
3834 because it has bad alignment, mark the old string for deletion.
3835 (sec_merge_add): Add secinfo argument. Don't compute entry's
3836 position, instead record the section.
3837 (sec_merge_emit): Update for the sec into secinfo change in
3838 struct sec_merge_hash_entry.
3839 (_bfd_merge_section): Only record the section for merging, defer
3840 putting strings into the hash table.
3841 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
3842 _bfd_merge_sections): New functions.
3843 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
3845 * libbfd-in.h (_bfd_merge_sections): Add prototype.
3846 (_bfd_nolink_bfd_merge_sections): Define.
3847 * libbfd.h: Likewise.
3848 (bfd_generic_merge_sections): Add prototype.
3849 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
3850 (struct bfd_target): Likewise.
3851 * bfd.c (bfd_merge_sections): Define.
3852 * bfd-in2.h: Rebuilt.
3853 * elf.c (_bfd_elf_merge_sections): New function.
3854 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
3855 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
3856 * reloc.c (bfd_generic_merge_sections): New function.
3857 * vms.c (vms_bfd_merge_sections): New function.
3858 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
3859 * aout-target.h (MY_bfd_merge_sections): Define.
3860 * aout-tic30.c (MY_bfd_merge_sections): Define.
3861 * binary.c (binary_bfd_merge_sections): Define.
3862 * bout.c (b_out_bfd_merge_sections): Define.
3863 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
3864 * coffcode.c (coff_bfd_merge_sections): Define.
3865 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
3866 * i386msdos.c (msdos_bfd_merge_sections): Define.
3867 * i386os9k.c (os9k_bfd_merge_sections): Define.
3868 * ieee.c (ieee_bfd_merge_sections): Define.
3869 * ihex.c (ihex_bfd_merge_sections): Define.
3870 * nlm-target.h (nlm_bfd_merge_sections): Define.
3871 * oasys.c (oasys_bfd_merge_sections): Define.
3872 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
3873 * som.c (som_bfd_merge_sections): Define.
3874 * srec.c (srec_bfd_merge_sections): Define.
3875 * tekhex.c (tekhex_bfd_merge_sections): Define.
3876 * versados.c (versados_bfd_merge_sections): Define.
3877 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
3879 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3881 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
3882 to be unsigned long, in order to match its use.
3884 2001-05-10 H.J. Lu <hjl@gnu.org>
3886 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
3889 2001-05-09 H.J. Lu <hjl@gnu.org>
3891 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
3892 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
3893 Remove the unused veriable `dynver'.
3895 2001-05-08 Ian Lance Taylor <ian@zembu.com>
3897 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
3898 NULL or is not COFF.
3899 (coff_i386_rtype_to_howto): Don't dump core if output section
3902 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3904 * ecoff.c (bfd_debug_section): Fix initialization.
3905 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
3906 is always a positive integer. Cast away sign mismatch.
3907 * elf32-mips.c: Fix misleading comment and typo.
3908 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
3910 * elflink.c: Fix typo.
3911 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
3912 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
3914 2001-05-04 Richard Henderson <rth@redhat.com>
3916 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
3918 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
3920 * elf32-arm.h (elf32_arm_final_link_relocate): Set
3921 EF_ARM_HASENTRY if the start address is set.
3923 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
3925 * targets.c (_bfd_target_vector_entries): Compute value based on
3926 the size of the _bfd_target_vector and not bfd_target_vector.
3928 2001-05-03 H.J. Lu <hjl@gnu.org>
3930 * elfcode.h: Include "libiberty.h".
3932 * elflink.h (elf_link_add_object_symbols): Set
3933 elf_dt_name (abfd) to basename of the bfd filename.
3934 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
3935 of the bfd filename.
3937 2001-05-03 Andreas Jaeger <aj@suse.de>
3939 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
3940 (elf_generic_info_to_howto_rel): Likewise.
3941 * coff-alpha.c (reloc_nil): Likewise.
3942 (alpha_ecoff_bad_format_hook): Likewise.
3943 (alpha_adjust_reloc_out): Likewise.
3944 (alpha_bfd_reloc_type_lookup): Likewise.
3945 (alpha_convert_external_reloc): Likewise.
3946 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
3947 (elf64_alpha_reloc_bad): Likewise.
3948 (elf64_alpha_reloc_gpdisp): Likewise.
3949 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
3950 (elf64_alpha_info_to_howto): Likewise.
3951 (elf64_alpha_add_symbol_hook): Likewise.
3952 (elf64_alpha_create_got_section): Likewise.
3953 (elf64_alpha_is_local_label_name): Likewise.
3954 (elf64_alpha_merge_ind_symbols): Likewise.
3955 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
3956 (mips_elf64_get_reloc_upper_bound): Likewise.
3957 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
3958 (nlm_alpha_get_public_offset): Likewise.
3960 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3962 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
3963 about overflow in R_OPENRISC_LO_16_IN_INSN and
3964 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
3966 2001-04-30 H.J. Lu <hjl@gnu.org>
3968 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
3969 only for ELF_LINK_FORCED_LOCAL.
3970 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3971 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
3972 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3974 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
3975 if the symbol has hidden or internal visibility.
3977 2001-04-30 Alan Modra <amodra@one.net.au>
3979 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
3980 calls to undefined weak symbols.
3982 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
3984 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
3985 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
3987 2001-04-27 Andreas Jaeger <aj@suse.de>
3989 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
3990 out handled entries.
3991 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
3992 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
3993 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
3996 2001-04-27 Sean McNeil <sean@mcneil.com>
3998 * config.bfd: Add arm-vxworks target.
3999 * coff-arm (coff_arm_relocate_section): Add in symbol value to
4000 addend (fro VXworks targets).
4002 2001-04-26 H.J. Lu <hjl@gnu.org>
4004 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
4007 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
4009 * bfd-in.h (bfd_cache_close): Declare newly exported function.
4010 * bfd-in2.h: Regenerated.
4012 2001-04-24 Jakub Jelinek <jakub@redhat.com>
4014 * merge.c (struct sec_merge_hash_entry): Add alignment field.
4015 (struct sec_merge_hash): Remove alignment_power.
4016 (sec_merge_hash_newfunc): Clear alignment.
4017 (sec_merge_hash_lookup): Pass alignment as argument.
4018 Use hashp->root.next, not hashp->next to walk the hash chain.
4019 If a string already in the hashtable does not have required
4020 alignment, create a new hashtable entry.
4021 (sec_merge_init): Remove alignment_power argument.
4022 (sec_merge_add): Add alignment argument.
4023 (sec_merge_emit): Alignment is now a per-entity thing, not per
4025 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
4026 for proper alignment.
4027 Pass alignment information to sec_merge_add.
4029 2001-04-24 Christian Groessler <cpg@aladdin.de>
4031 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
4032 and R_REL16 reloc types; accept odd values for R_REL16 type
4034 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
4036 * cpu-openrisc.c: New file.
4037 * elf32-openrisc.c: Likewise.
4039 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
4040 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
4041 (BFD32_BACKENDS): Add elf32-openrisc.lo.
4042 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
4043 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
4044 * Makefile.in: Regenerated.
4045 * config.bfd: (openrisc-*-elf): New target.
4046 * configure.in (bfd_elf32_openrisc_vec): New vector.
4047 * configure: Regenerated.
4048 * libbfd.h: Regenerated.
4049 * bfd-in2.h: Regenerated.
4050 * reloc.c: Add OpenRISC relocations.
4051 * targets.c (bfd_elf32_openrisc_vec): Declare.
4052 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
4053 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
4054 (bfd_openrisc_arch): Declare.
4055 (bfd_archures_list): Add bfd_openrisc_arch.
4056 * elf.c (prep_headers): Add bfd_arch_openrisc.
4058 2001-04-23 Bo Thorsen <bo@suse.de>
4060 * elf64-x86-64.c: Add c++ vtable hack.
4061 Small whitespace and comment changes.
4063 2001-04-19 Andreas Jaeger <aj@suse.de>
4065 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
4066 (elf64_x86_64_plt_entry): Likewise.
4067 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
4068 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
4070 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
4072 * elf32-cris.c: Tweak comments related to dynamic linking.
4073 (cris_elf_relocate_section): When not creating shared object, fill
4074 in the .got table for any symbol not in the dynamic symbol table.
4075 (elf_cris_finish_dynamic_symbol): When not creating shared object,
4076 only emit a .got.rela reloc if the symbol is in the dynamic symbol
4078 (cris_elf_check_relocs): Use variable r_type in all places rather
4079 than the original expression. Add default case in switch for
4081 (elf_cris_size_dynamic_sections): Iterate over
4082 elf_cris_discard_excess_program_dynamics when not creating shared
4084 (elf_cris_discard_excess_dso_dynamics): Renamed from
4085 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
4086 (elf_cris_discard_excess_program_dynamics): New.
4088 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
4090 * coffcode.h (coff_write_object_contents): Use
4091 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
4093 2001-04-14 H.J. Lu <hjl@gnu.org>
4095 * bfd-in2.h: Regenerate.
4097 2001-04-14 Jakub Jelinek <jakub@redhat.com>
4099 * section.c (STD_SECTION): Add entsize.
4101 2001-04-13 H.J. Lu <hjl@gnu.org>
4103 * section.c (SEC_MERGE): Define new flag for merging.
4104 (SEC_STRINGS): Likewise.
4105 (entsize): New field.
4107 2001-04-13 Roger Sayle <roger@metaphorics.com>
4109 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
4110 flag on pe-i386 targets.
4112 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4114 * libbfd-in.h (_bfd_merge_section): New.
4115 (_bfd_write_merged_section): New.
4116 (_bfd_merged_section_offset): New.
4117 * libbfd.h: Rebuilt.
4118 * linker.c (_bfd_generic_link_output_symbols): Handle
4120 * aoutx.h (aout_link_write_symbols): Likewise.
4121 * pdp11.c (aout_link_write_symbols): Likewise.
4122 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
4123 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
4125 (elf_link_sec_merge_syms): New.
4126 (elf_link_input_bfd): Call _bfd_merged_section_offset
4127 and _bfd_write_merged_section.
4128 Handle discard_sec_merge.
4129 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
4131 (struct bfd_elf_section_data): Likewise.
4132 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
4133 SEC_STRINGS section flags and entsize from their ELF counterparts.
4134 (_bfd_elf_link_hash_table_init): Initialize merge_info.
4135 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
4136 from their BFD counterparts.
4137 * merge.c: New file.
4138 * Makefile.am: Add strtab.lo.
4139 * Makefile.in: Rebuilt.
4141 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
4143 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
4144 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
4146 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4148 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
4149 endian MIPS ELF target.
4150 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
4153 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
4154 64bit big endian MIPS ELF target.
4155 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
4156 endian MIPS ELF target.
4157 * configure: Regenerated.
4159 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
4160 little endian targets.
4161 (mips_elf_sym_is_global): Handle traditional targets.
4163 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
4164 64bit big endian MIPS ELF target.
4165 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
4166 endian MIPS ELF target.
4168 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
4169 and bfd_elf64_tradlittlemips_vec.
4171 2001-04-05 David Mosberger <davidm@hpl.hp.com>
4173 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
4174 ordinary "progbits" section.
4176 2001-04-04 Alan Modra <alan@linuxcare.com.au>
4178 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
4179 when -Bsymbolic causes a symbol to no longer need a .plt entry.
4181 2001-04-03 David Mosberger <davidm@hpl.hp.com>
4183 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
4185 2001-03-30 H.J. Lu <hjl@gnu.org>
4187 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
4188 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
4190 2001-03-26 H.J. Lu <hjl@gnu.org>
4192 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
4193 if there are any relocations for generic ELF.
4194 (bfd_elf32_bfd_link_add_symbols): Defined to
4195 elf32_generic_link_add_symbols.
4196 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
4197 if there are any relocations for generic ELF.
4198 (bfd_elf64_bfd_link_add_symbols): Defined to
4199 elf64_generic_link_add_symbols.
4201 2001-03-23 Nick Clifton <nickc@redhat.com>
4203 * Makefile.am (BUILD_CFILES): New variable: List of C source
4204 files created in build directory.
4205 (BUILD_HFILES): New variable: List of header files created in
4208 (po/POTFILES.in): Replace rule with empty entry.
4209 (po/SRC-POTFILES.in): New rule: Create a list of source files
4210 in the source directory.
4211 (po/BLD-POTFILES.in): New rule: Create a list of source files
4212 in the build directory.
4213 (MOSTLYCLEAN): Do not delete source files created in build
4215 * Makefile.in: Regenerate.
4216 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
4218 * configure: Regenerate.
4220 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
4222 Add .. to the search path when building bfd.pot.
4223 Delete POTFILES when performing distclean.
4224 Add comment describing why distclean is broken in maintainer mode.
4225 * po/POTFILES.in: Delete.
4226 * po/SRC-POTFILES.in: New file.
4227 * po/BLD-POTFILES.in: New file.
4228 * po/bfd.pot: Regenerate.
4230 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
4232 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
4233 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
4234 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
4235 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
4236 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
4237 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
4239 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
4240 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
4241 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
4242 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
4243 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
4244 New HOWTO members for new relocs.
4245 (cris_reloc_map): Map new relocs.
4246 (ELF_DYNAMIC_INTERPRETER): Define.
4247 (PLT_ENTRY_SIZE): Define.
4248 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
4249 elf_cris_pic_plt_entry): New, PLT templates.
4250 (struct elf_cris_pcrel_relocs_copied, struct
4251 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
4252 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
4253 (cris_final_link_relocate): Check that 16-bit GOT relocs have
4254 positive values. Adjust PCREL relocs to be relative to location
4256 (cris_elf_relocate_section): Handle relocations to dynamic
4257 objects. Handle new relocations. Call error handler when seeing
4258 non-PIC relocation for read-only sections while generating shared
4260 (cris_elf_check_relocs): Set reference counts for GOT and PLT
4262 (bfd_elf32_bfd_link_hash_table_create,
4263 elf_backend_adjust_dynamic_symbol,
4264 elf_backend_size_dynamic_sections,
4265 elf_backend_finish_dynamic_symbol,
4266 elf_backend_finish_dynamic_sections,
4267 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
4268 elf_backend_hide_symbol, elf_backend_want_got_plt,
4269 elf_backend_plt_readonly, elf_backend_want_plt_sym,
4270 elf_backend_got_header_size, elf_backend_plt_header_size):
4273 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
4274 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
4275 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
4276 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
4277 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
4278 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
4279 * bfd-in2.h, libbfd.h: Regenerate.
4281 2001-03-21 Diego Novillo <dnovillo@redhat.com>
4283 (_bfd_mips_elf_relocate_section): Give a better error message when
4284 a relocation is not recognized.
4286 2001-03-21 Alan Modra <alan@linuxcare.com.au>
4288 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
4289 non-NULL before attempting to dereference.
4291 2001-03-20 H.J. Lu <hjl@gnu.org>
4293 * configure.in: Remove the redundent AC_ARG_PROGRAM.
4294 * configure: Rebuild.
4296 2001-03-20 Andreas Schwab <schwab@suse.de>
4298 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
4299 relocation value when resolving a reference from a debugging
4302 2001-03-16 Scott Thomason <SThomaso@hii.com>
4304 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
4305 (xcoff64_swap_sym_out): Fix syntax errors.
4307 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
4309 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
4311 2001-03-15 Alan Modra <alan@linuxcare.com.au>
4313 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
4314 (hppa_link_hash_newfunc): Init it.
4315 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
4316 section appears to be non-PIC.
4317 (final_link_relocate): Likewise.
4318 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
4319 possible candidate function, and set pic_call for those that will
4320 only have a .plt entry for the PIC call stub.
4321 (hppa_handle_PIC_calls): Set maybe_pic_call.
4323 2001-03-12 DJ Delorie <dj@redhat.com>
4325 * elf32-sh.c (sh_elf_relocate_section): Only relocation
4326 R_SH_DIR8WP* relocs if they're against external symbols, else
4327 they're just for relaxing. Validate the reloc values.
4329 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
4331 * binary.c (bfd_external_binary_architecture): Declare.
4332 (binary_object_p): If bfd_external_binary_architecture is defined,
4333 set the architecture to this string.
4335 2001-03-11 Philip Blundell <philb@gnu.org>
4337 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
4338 entries that could serve as a definition for a weak symbol.
4340 2001-03-08 Nick Clifton <nickc@redhat.com>
4342 * Most files: Update copyright notices using Perl script created
4343 by Kevin Buettner <kevinb@redhat.com>.
4345 2001-03-07 Nick Clifton <nickc@redhat.com>
4347 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
4348 prior patch on ! defined OLD_ARM_ABI.
4350 2001-03-07 Andreas Jaeger <aj@suse.de>
4352 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
4353 some relocation values.
4355 2001-03-06 Nick Clifton <nickc@redhat.com>
4357 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
4358 of offset in BLX(1) instruction.
4359 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
4360 offset in BLX(1) instruction.
4363 2001-03-06 Nick Clifton <nickc@redhat.com>
4365 * coff-arm.c (coff_arm_reloc_type_lookup): Add
4366 BFD_RELOC_THUMB_PCREL_BLX.
4368 2001-03-06 Igor Shevlyakov <igor@windriver.com>
4370 * archures.c (bfd_default_scan): Add Coldfire CPUs.
4371 * bfd-in2.h: Regenerate.
4372 * cpu-m68k.c: Add Coldfire CPUs for arch table.
4373 * ieee.c (ieee_write_processor): Set proper id for
4376 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
4378 * configure.in: Add s390 target.
4379 * configure: Regenerate.
4381 2001-02-28 Andreas Jaeger <aj@suse.de>
4383 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
4386 2001-02-28 Philip Blundell <pb@futuretv.com>
4388 * elf32-arm.h: Update mentions of renamed EF_xx constants.
4389 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
4391 2001-02-27 H.J. Lu <hjl@gnu.org>
4393 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
4394 abfd->tdata.aout_data == NULL.
4396 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4398 * elf32-hppa.c: Correct field selector in stub comments.
4399 (clobber_millicode_symbols): Formatting fix.
4401 * configure.in: Bump version to 2.11.90.
4402 * configure: Regenerate.
4403 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
4404 (CFILES): $SOURCE_CFILES + generated C files.
4405 (POTFILES): Include $HFILES not $SOURCE_HFILES.
4407 * Makefile.in: Regenerate.
4408 * doc/Makefile.in: This too.
4410 2001-02-26 Timothy Wall <twall@cygnus.com>
4412 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
4415 2001-02-26 Nick Clifton <nickc@redhat.com>
4417 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
4418 up, replacing multiple if statements with a switch.
4419 (handle_COMDAT): New function.
4421 2001-02-26 H.J. Lu <hjl@gnu.org>
4423 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
4424 a warning for section flags we do not handle instead of
4427 2001-02-26 Andreas Jaeger <aj@suse.de>
4429 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
4431 2001-02-22 Timothy Wall <twall@cygnus.com>
4433 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
4434 * configure.in: Add objects for elf64_ia64_aix vectors.
4435 * configure: Regenerated.
4436 * configure.host: Recognize ia64-*-aix*.
4437 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
4438 for AIX. AIX5 requires most relocations to be dynamic (*all*
4439 binaries are somewhat similar to shared libraries).
4440 * targets.c: Add elf64_ia64_aix vectors.
4442 2001-02-21 David Mosberger <davidm@hpl.hp.com>
4444 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
4445 C8 said "1" instead of "8". Clarify error string for IMM22:
4446 "signed integer" instead of just "integer".
4448 2001-02-20 Andreas Jaeger <aj@suse.de>
4450 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
4451 PLT entries that could serve as a definition for a weak symbol.
4453 2001-02-19 Jakub Jelinek <jakub@redhat.com>
4455 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
4456 entries that could serve as a definition for a weak symbol.
4457 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
4459 2001-02-18 David O'Brien <obrien@FreeBSD>
4461 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
4462 FreeBSD/i386-CURRENT differently until I can figure out the needed
4464 * configure: Regenerate.
4465 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
4466 FreeBSD/PowerPC, and FreeBSD/sparc64.
4468 2001-02-18 lars brinkhoff <lars@nocrew.org>
4470 * Makefile.am: Add PDP-11 a.out target.
4471 * config.bfd: Likewise.
4472 * configure.in: Likewise.
4473 * targets.c: Likewise.
4474 * archures.c: Likewise.
4475 * bfd-in2.h: Likewise. Add PDP-11 relocations.
4476 * libbfd.h: Add PDP-11 relocations.
4477 * reloc.c: Likewise.
4478 * cpu-pdp11.c: New file.
4479 * pdp11.c: New file.
4481 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
4482 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
4483 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
4484 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
4485 (GET_MAGIC): New macro.
4486 (PUT_MAGIC): Likewise.
4487 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
4489 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
4491 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
4492 multiarch needs it).
4494 2001-02-18 H.J. Lu <hjl@gnu.org>
4496 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
4499 2001-02-18 Kazu Hirata <kazu@hxi.com>
4501 * vms-misc.c: Fix formatting.
4503 2001-02-16 Kazu Hirata <kazu@hxi.com>
4505 * vms.c: Fix formatting.
4507 2001-02-14 H.J. Lu <hjl@gnu.org>
4509 * elf.c (elf_find_function): New function.
4510 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
4511 the file name and function name.
4513 2001-02-14 Nick Clifton <nickc@redhat.com>
4515 * ecoff.c (bfd_debug_section): Update to initialise new fields in
4518 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
4519 (BFD64_BACKENDS): Add pepigen.c
4520 Add rules to create peigen.c and pepigen.c from peXXigen.c.
4522 * Makefile.in: Regenerate.
4523 * configure: Regenerate.
4524 * po/POTFILES.in: Regenerate.
4525 * po/bfd.pot: Regenerate.
4527 2001-02-14 H.J. Lu <hjl@gnu.org>
4529 * libcoff-in.h (pe_tdata): Add members target_subsystem and
4530 force_minimum_alignment.
4532 2001-02-14 Bo Thorsen <bo@suse.de>
4534 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
4535 (elf64_86_64_size_info): Struct added to fix a problem
4536 with the hashtable string entries.
4537 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
4538 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
4539 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
4540 remove the FIXME for this.
4541 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
4542 section. Also removed the FIXME for it.
4543 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
4544 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
4545 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
4547 2001-02-13 Richard Henderson <rth@redhat.com>
4549 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
4550 and not user provided.
4552 2001-02-13 Kazu Hirata <kazu@hxi.com>
4554 * vms.c (vms_print_symbol): Remove unreachable code.
4556 * rs6000-core.c: Fix formatting.
4558 2001-02-13 David Mosberger <davidm@hpl.hp.com>
4560 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
4561 as _bfd_XXi_only_swap_filehdr_out.
4562 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
4563 pe->force_minimum_alignment to TRUE.
4564 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
4565 PEI_TARGET_SUBSYSTEM.
4566 (pe_print_private_bfd_data): Call
4567 _bfd_XX_print_private_bfd_data_common() instead of
4568 _bfd_pe_print_private_bfd_data_common().
4569 (pe_bfd_copy_private_bfd_data): Call
4570 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
4571 _bfd_pe_bfd_copy_private_bfd_data_common().
4572 (coff_bfd_copy_private_section_data): Define as
4573 _bfd_XX_bfd_copy_private_section_data instead of
4574 _bfd_pe_bfd_copy_private_section_data.
4575 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
4576 of a _bfd_pe_get_symbol_info.
4580 * peXXigen.c: Renamed from peigen.c.
4581 (COFF_WITH_XX): Define this macro (will get expanded into
4582 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
4583 compiled as peigen.c or pepigen.c.
4584 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
4585 define the canonical PEP structures and definitions.
4586 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
4587 effect, enforce minimum file and section alignments. If
4588 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
4589 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
4590 so, by default, this is a no-op).
4592 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
4593 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
4594 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
4595 _bfd_pefoo if it's not defined. Use these macros to define
4598 * libcoff.h (pe_tdata): Add members target_subsystem and
4599 force_minimum_alignment.
4601 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
4603 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
4605 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
4608 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
4609 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
4612 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
4613 (BFD64_BACKENDS_CFILES): Mention pepigen.c
4614 (peigen.c): Add rule to generate from peXXigen.c.
4616 (pepigen.lo): List dependencies for pepigen.lo.
4618 2001-02-13 Alan Modra <alan@linuxcare.com.au>
4620 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
4621 $global$ referenced but not defined, set its value here.
4623 2001-02-09 Bo Thorsen <bo@suse.de>
4625 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
4627 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
4629 (elf64_x86_64_relocate_section): Fix formatting.
4630 (elf64_x86_64_relocate_section): Fix addend for relocation of
4631 R_X86_64_(8|16|32|PC8|PC16|PC32).
4633 2001-02-12 Jan Hubicka <jh@suse.cz>
4635 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
4637 2001-02-11 H.J. Lu <hjl@gnu.org>
4639 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
4642 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4644 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
4645 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
4646 relocations against dynsym symbols.
4648 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
4649 the R_MIPS_26 relocation.
4650 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
4651 the R_MIPS_26 relocation.
4652 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
4654 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
4655 the R_MIPS_26 relocation.
4656 (mips_elf64_howto_table_rela): Likewise.
4658 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
4659 member to mark symbols that have non-CALL relocations against
4661 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
4662 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
4664 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
4665 non-CALL relocation against it is encountered.
4666 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
4667 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
4668 no_fn_stub is not set.
4670 * elf32-mips.c (mips_elf_output_extsym): Get the output section
4671 information from the real symbol for indirect ones.
4672 Check no_fn_stub to find out if a symbol has a function stub
4675 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4677 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
4678 * Makefile.in: Regenerate.
4680 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4682 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
4683 true if section name is an unwind table section name.
4684 (elfNN_ia64_additional_program_headers): Count each unwind section
4686 (elfNN_ia64_modify_segment_map): Install one unwind program header
4687 for each unwind separate section. Note: normally the linker
4688 script merges the unwind sections that go into a single segment,
4689 so this still generates at most one unwind program header per
4692 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
4693 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
4694 (elfNN_ia64_fake_sections): Mark sections with names that start
4695 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
4698 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
4699 Use it to make sh_info in unwind section point to the text section
4702 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4704 * Makefile.am: Add linux target for S/390.
4705 * archures.c: Likewise.
4706 * bfd-in2.h: Likewise.
4707 * config.bfd: Likewise.
4708 * configure.in: Likewise.
4710 * libbfd.h: Likewise.
4711 * targets.c: Likewise.
4712 * cpu-s390.c: New file.
4713 * elf32-s390.c: New file.
4714 * elf64-s390.c: New file.
4716 2001-02-09 Nick Clifton <nickc@redhat.com>
4718 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
4719 ImageBase. This has already been done by coff_swap_hdr_in.
4721 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4723 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
4725 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4727 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
4728 (sparc64_elf_relocate_section): Likewise.
4730 2001-02-09 Mark Kettenis <kettenis@gnu.org>
4732 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
4733 similar to R_SPARC_32.
4734 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
4736 2001-02-08 H.J. Lu <hjl@gnu.org>
4738 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
4739 relocation entries for weak definitions when building DSO with
4742 2001-02-08 Richard Henderson <rth@redhat.com>
4744 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
4745 before visibility. Locally defined protected symbols are not
4748 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
4750 * config.bfd: Enable coff64 for rs6000-*. Patch from
4751 <hzoli@austin.ibm.com>.
4753 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
4755 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
4756 found, do not attempt to find dwarf2 info before returning.
4758 2001-02-07 Jakub Jelinek <jakub@redhat.com>
4760 * elflink.h (is_global_symbol_definition): Rename to
4761 is_global_data_symbol_definition and have it reject function
4763 (elf_link_is_defined_archive_symbol): Use renamed function.
4765 2001-02-07 Todd Vierling <tv@wasabisystems.com>
4767 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
4768 * libbfd.h (bfd_target_vector): Likewise.
4769 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
4770 make static; create pointer reference named bfd_target_vector.
4771 (_bfd_target_vector_entries): Calculate this based on the array
4772 typed _bfd_target_vector.
4774 2001-02-06 H.J. Lu <hjl@gnu.org>
4776 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
4777 internal symbols are not dynamic.
4778 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
4780 2001-02-06 Nick Clifton <nickc@redhat.com>
4782 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
4783 that it will not be pulled into the list of files that make up
4785 * Makefile.in: Regenerate.
4786 * po/bfd.pot: Regenerate.
4788 2001-02-06 H.J. Lu <hjl@gnu.org>
4790 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
4792 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
4793 external_PEI_IMAGE_hdr.
4795 2001-02-06 Kazu Hirata <kazu@hxi.com>
4797 * elf-m10200.c: Fix formatting.
4799 2001-02-04 Nick Clifton <nickc@redhat.com>
4801 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
4802 rel, it will be handled later on.
4804 2001-02-02 Fred Fish <fnf@ninemoons.com>
4806 * Makefile.in: Fix typo.
4808 2001-02-01 Kazu Hirata <kazu@hxi.com>
4810 * elf-m10300.c: Fix formatting.
4812 2001-01-30 Alan Modra <alan@linuxcare.com.au>
4814 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
4815 (elf_backend_get_symbol_type): Define.
4816 (elf64_hppa_object_p): Set architecture and machine from elf
4819 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
4821 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
4824 2001-01-26 Richard Henderson <rth@redhat.com>
4826 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
4827 for non-default visibility.
4828 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
4829 delete ugly macro and replace with pretty function.
4831 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
4833 * coff-go32.c: Update copyright.
4834 * coff-stgo32.c: Likewise.
4835 * coff-go32.c (COFF_LONG_FILENAMES): Define.
4836 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
4837 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
4838 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4840 2001-01-25 Kazu Hirata <kazu@hxi.com>
4842 * bfd-in2.h: Rebuild.
4843 * libbfd.h: Likewise.
4845 2001-01-23 H.J. Lu <hjl@gnu.org>
4847 * bfd-in2.h: Rebuild.
4849 2001-01-23 H.J. Lu <hjl@gnu.org>
4851 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
4852 is NULL or PRIV(vms_rec) is outside of the buffer.
4854 2001-01-23 Kazu Hirata <kazu@hxi.com>
4856 * coff64-rs6000.c: Fix formatting.
4857 * coff-arm.c: Likewise.
4858 * coffgen.c: Likewise.
4859 * cofflink.c: Likewise.
4860 * coff-mcore.c: Likewise.
4861 * coff-mips.c: Likewise.
4862 * coff-pmac.c: Likewise.
4863 * coff-ppc.c: Likewise.
4864 * coff-rs6000.c: Likewise.
4865 * elf32.c: Likewise.
4866 * elf32-fr30.c: Likewise.
4867 * elf32-i370.c: Likewise.
4868 * elf32-i860.c: Likewise.
4869 * elf32-m32r.c: Likewise.
4870 * elf32-m68k.c: Likewise.
4871 * elf32-mcore.c: Likewise.
4872 * elf32-ppc.c: Likewise.
4873 * elf32-sh.c: Likewise.
4874 * elf32-v850.c: Likewise.
4875 * elf64-alpha.c: Likewise.
4876 * elf64-sparc.c: Likewise.
4877 * elflink.c: Likewise.
4878 * elflink.h: Likewise.
4879 * elf-m10200.c: Likewise.
4880 * elf-m10300.c: Likewise.
4881 * elfxx-ia64.c: Likewise.
4883 * aoutx.h: Fix formatting.
4885 * bfd-in2.h: Likewise.
4886 * bfd-in.h: Likewise.
4887 * cpu-i386.c: Likewise.
4888 * cpu-m68hc11.c: Likewise.
4889 * dwarf2.c: Likewise.
4890 * elf64-x86-64.c: Likewise.
4891 * format.c: Likewise.
4892 * freebsd.h: Likewise.
4894 * hp300hpux.c: Likewise.
4895 * hppabsd-core.c: Likewise.
4896 * hpux-core.c: Likewise.
4898 2001-01-22 Bo Thorsen <bo@suse.de>
4900 * elf64-x86-64.c: Added PIC support for X86-64.
4901 (elf64_x86_64_link_hash_newfunc): Function added.
4902 (elf64_x86_64_link_hash_table_create): Likewise.
4903 (elf64_x86_64_check_relocs): Likewise.
4904 (elf64_x86_64_gc_mark_hook): Likewise.
4905 (elf64_x86_64_gc_sweep_hook): Likewise.
4906 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
4907 (elf64_x86_64_size_dynamic_sections): Likewise.
4908 (elf64_x86_64_discard_copies): Likewise.
4909 (elf64_x86_64_finish_dynamic_symbol): Likewise.
4910 (elf64_x86_64_finish_dynamic_sections): Likewise.
4911 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
4913 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4915 * Makefile.am (install-data-local): Make use of $(DESTDIR).
4916 * Makefile.in: Regenerate.
4918 2001-01-21 Kazu Hirata <kazu@hxi.com>
4920 * coff-a29k.c: Fix formatting.
4922 2001-01-19 H.J. Lu <hjl@gnu.org>
4924 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
4925 relocation section names.
4926 (elf_i386_relocate_section): Report files with bad relocation
4927 section names and return false.
4929 2001-01-17 Bo Thorsen <bo@suse.de>
4931 * targets.c: Alphabetize list of xvecs.
4933 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4935 * config.bfd: Add linux target variant for elfxx-hppa.
4936 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
4937 bfd_elf64_hppa_linux_vec.
4938 * configure: Regenerate.
4939 * elf64-hppa.c: Include elf64-target.h again to support linux
4941 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
4942 * elf32-hppa.c: Include elf32-target.h again to support linux
4944 (elf32_hppa_post_process_headers): New function.
4945 (elf_backend_post_process_headers): Define.
4946 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
4947 bfd_elf32_hppa_linux_vec.
4949 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
4950 and data_segment_base fields.
4951 (elf32_hppa_link_hash_table_create ): Init them.
4952 (elf32_hppa_check_relocs): Update comments.
4953 (hppa_record_segment_addr): New function.
4954 (elf32_hppa_relocate_section): Call it.
4955 (final_link_relocate): Handle R_PARISC_SEGREL32.
4956 (elf32_hppa_final_link): New function.
4957 (bfd_elf32_bfd_final_link): Define to call it.
4958 (hppa_unwind_entry_compare): New function.
4959 * cache.c (bfd_open_file): Create files in write+read mode.
4961 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
4962 SEGREL32 and numerous other relocs. Change duplicate
4963 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
4965 * opncls.c (bfd_fdopenr): Add parens like the comment says around
4968 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
4969 .plt entries for DT_INIT and DT_FINI.
4970 (elf32_hppa_finish_dynamic_sections): Remove special handling of
4971 DT_INIT and DT_FINI.
4973 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
4974 offsets for stub .plt access if wide mode. Check offset in range.
4976 2001-01-13 Nick Clifton <nickc@redhat.com>
4978 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
4981 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
4984 2001-01-12 Alan Modra <alan@linuxcare.com.au>
4986 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
4987 * configure: Regenerate.
4989 2001-01-11 Peter Targett <peter.targett@arccores.com>
4991 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
4992 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
4993 * cpu-arc.c (arch_info_struct): Add entries for variants.
4994 (bfd_arc_arch) Set default to bfd_mach_arc_5.
4995 (arc_get_mach) Don't assume machine names prefixed arc- before
4997 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
4999 (arc_elf_final_write_processing) Likewise.
5000 (ELF_MACHINE_CODE) Use EM_ARC.
5002 2001-01-10 Nick Clifton <nickc@redhat.com>
5004 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
5006 2001-01-07 Philip Blundell <philb@gnu.org>
5008 * README: Replace `bug-gnu-utils@gnu.org' with
5009 `bug-binutils@gnu.org'.
5011 2001-01-04 Kazu Hirata <kazu@hxi.com>
5013 * som.c: Fix formatting.
5015 2001-01-03 Kazu Hirata <kazu@hxi.com>
5017 * ecoffswap.h: Fix formatting.
5018 * elf-bfd.h: Likewise.
5019 * elfarm-nabi.c: Likewise.
5020 * elfarm-oabi.c: Likewise.
5021 * elfcode.h: Likewise.
5022 * elfcore.h: Likewise.
5023 * elflink.c: Likewise.
5024 * elflink.h: Likewise.
5025 * elfxx-ia64.c: Likewise.
5026 * elfxx-target.h: Likewise.
5027 * libbfd.c: Likewise
5028 * linker.c: Likewise.
5029 * lynx-core.c: Likewise.
5031 2001-01-02 Kazu Hirata <kazu@hxi.com>
5033 * pc532-mach.c: Fix formatting.
5034 * pe-arm.c: Likewise.
5035 * pe-i386.c: Likewise.
5036 * pe-mips.c: Likewise.
5037 * pe-ppc.c: Likewise.
5038 * pe-sh.c: Likewise.
5039 * pei-mips.c: Likewise.
5040 * pei-sh.c: Likewise.
5041 * peicode.h: Likewise.
5042 * ppcboot.c: Likewise.
5043 * ptrace-core.c: Likewise.
5045 2001-01-01 Kazu Hirata <kazu@hxi.com>
5047 * reloc.c: Fix formatting.
5048 * riscix.c: Likewise.
5049 * rs6000-core.c: Likewise.
5050 * xcoff-target.h: Likewise.
5052 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
5054 * elfcode.h (elf_object_p): Also restore the bfd mach field on
5055 error, by calling bfd_default_set_arch_mach with incoming
5058 2000-12-26 Kazu Hirata <kazu@hxi.com>
5060 * vaxnetbsd.c: Fix formatting.
5061 * versados.c: Likewise.
5062 * vms-gsd.c: Likewise.
5063 * vms-hdr.c: Likewise.
5064 * vms-misc.c: Likewise.
5066 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
5068 * archive.c (coff_write_armap): Don't write more than symbol_count
5069 `archive_member_file_ptr's.
5071 2000-12-25 Kazu Hirata <kazu@hxi.com>
5073 * vms-tir.c: Fix formatting.
5075 2000-12-23 Kazu Hirata <kazu@hxi.com>
5077 * vms.c: Fix formatting.
5080 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
5082 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
5084 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
5086 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
5089 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
5091 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
5093 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
5095 * libbfd.c (bfd_get_bits): Added
5096 (bfd_put_bits): Likewise
5097 * bfd-in.h: Declared the above.
5098 * bfd-in2.h: Regenerated.
5100 2000-12-20 Kazu Hirata <kazu@hxi.com>
5102 * targets.c: Fix formatting.
5103 * tekhex.c: Likewise.
5104 * trad-core.c: Likewise.
5106 2000-12-19 Kazu Hirata <kazu@hxi.com>
5108 * sco5-core.c: Fix formatting.
5109 * section.c: Likewise.
5110 * sparclinux.c: Likewise.
5111 * sparclynx.c: Likewise.
5112 * sparcnetbsd.c: Likewise.
5114 * stabs.c: Likewise.
5115 * stab-syms.c: Likewise.
5116 * sunos.c: Likewise.
5118 * sysdep.h: Likewise.
5120 2000-12-18 Nick Clifton <nickc@redhat.com>
5122 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
5124 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
5125 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
5127 2000-12-18 Nick Clifton <nickc@redhat.com>
5129 * vms-misc.c (_bfd_vms_get_record): Add default case to
5132 2000-12-15 Miloslav Trmac <mitr@volny.cz>
5134 * elfcore.h (elf_core_file_p): Move to the start of the program
5135 headers before attempting to read them.
5137 2000-12-14 Kazu Hirata <kazu@hxi.com>
5139 * peigen.c: Fix formatting.
5143 2000-12-13 Kazu Hirata <kazu@hxi.com>
5145 * peigen.c: Fix formatting.
5147 2000-12-12 Jim Wilson <wilson@redhat.com>
5149 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
5151 2000-12-08 Mark Salter <msalter@redhat.com>
5153 * binary.c (binary_set_section_contents): Ignore sections
5156 2000-12-12 Kazu Hirata <kazu@hxi.com>
5158 * m68klinux.c: Fix formatting.
5159 * m68knetbsd.c: Likewise.
5160 * mipsbsd.c: Likewise.
5161 * netbsd-core.c: Likewise.
5162 * netbsd.h: Likewise.
5163 * newsos3.c: Likewise.
5164 * nlm32-alpha.c: Likewise.
5165 * nlm32-i386.c: Likewise.
5166 * nlm32-ppc.c: Likewise.
5167 * nlm32-sparc.c: Likewise.
5168 * nlmcode.h: Likewise.
5169 * nlmswap.h: Likewise.
5170 * nlm-target.h: Likewise.
5171 * ns32knetbsd.c: Likewise.
5173 2000-12-10 Fred Fish <fnf@be.com>
5175 * elflink.h (elf_link_output_extsym): Don't complain about undefined
5176 symbols in shared objects if allow_shlib_undefined is true.
5178 2000-12-12 Nick Clifton <nickc@redhat.com>
5180 * cpu-sh.c: Fix formattng.
5181 * elf.c: Fix formattng.
5182 * elf32-mips.c: Fix formattng.
5183 * elf32-sh.c: Fix formattng.
5184 * elf64-alpha.c: Fix formattng.
5186 2000-12-09 Nick Clifton <nickc@redhat.com>
5188 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
5189 dwarf2_find_line_info as last parameter to invocation of
5190 _bfd_dwarf2_find_nearest_line.
5191 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
5192 dwarf2_find_line_info as last parameter to invocation of
5193 _bfd_dwarf2_find_nearest_line.
5195 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
5197 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
5198 (BFD_LIBS): ...to here.
5199 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
5200 (BFD_LIBS_CFILES): ...to here.
5201 * Makefile.in: Regenerate.
5202 * configure.in: Remove dwarf.lo from the elf shell variable.
5203 * configure: Regenerate.
5204 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
5205 * libcoff.h: Regenerate.
5206 * coffgen.c (coff_find_nearest_line): Call
5207 _bfd_dwarf2_find_nearest_line.
5208 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
5210 (read_abbrevs): Likewise
5211 (decode_line_info): Likewise.
5212 (parse_comp_unit): Likewise.
5213 (comp_unit_find_nearest_line): Likewise.
5214 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
5215 * libbfd.h: Regenerate.
5216 * elf.c (_bfd_elf_find_nearest_line): Update call.
5217 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
5218 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
5219 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
5220 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
5221 (styp_to_sec_flags): Handle DWARF2 sections.
5222 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
5223 to _bfd_find_nearest_line.
5224 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
5225 call to _bfd_find_nearest_line.
5227 2000-12-08 Kazu Hirata <kazu@hxi.com>
5229 * coffgen.c: Fix formatting.
5230 * elf-m10300.c: Likewise.
5231 * elf32-i386.c: Likewise.
5232 * elf32-i960.c: Likewise.
5233 * elf32-m68k.c: Likewise.
5234 * elf32-mcore.c: Likewise.
5235 * elf32-ppc.c: Likewise.
5236 * elf32-sh.c: Likewise.
5237 * elf32-sparc.c: Likewise.
5238 * elf32-v850.c: Likewise.
5239 * elf64-alpha.c: Likewise.
5240 * elf64-hppa.c: Likewise.
5241 * elf64-mips.c: Likewise.
5242 * elf64-sparc.c: Likewise.
5244 2000-12-07 Kazu Hirata <kazu@hxi.com>
5246 * elf32-ppc.c: Fix formatting.
5247 * elf64-x86-64.c: Likewise.
5249 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
5251 From Ralf Baechle <ralf@gnu.org>
5253 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
5254 BFDs containing no sections or empty .text, .data or .bss sections
5255 to be merged, regardless of their flags.
5257 2000-12-06 Kazu Hirata <kazu@hxi.com>
5259 * elf32-m32r.c: Fix formatting.
5260 * elf32-m68hc11.c: Likewise.
5261 * elf32-m68hc12.c: Likewise.
5262 * elf32-m68k.c: Likewise.
5263 * elf32-mcore.c: Likewise.
5264 * elf32-pj.c: Likewise.
5265 * elf32-ppc.c: Likewise.
5267 2000-12-05 Kazu Hirata <kazu@hxi.com>
5269 * elf32-fr30.c: Fix formatting.
5270 * elf32-hppa.c: Likewise.
5271 * elf32-i370.c: Likewise.
5272 * elf32-i386.c: Likewise.
5273 * elf32-i860.c: Likewise.
5274 * elf32-i960.c: Likewise.
5276 2000-12-03 Kazu Hirata <kazu@hxi.com>
5278 * elf32-arm.h: Fix formatting.
5279 * elf32-avr.c: Likewise.
5280 * elf32-cris.c: Likewise.
5281 * elf32-d10v.c: Likewise.
5282 * elf32-d30v.c: Likewise.
5283 * elf-hppa.h: Likewise.
5284 * elf-m10200.c: Likewise.
5285 * elf-m10300.c: Likewise.
5287 2000-12-01 Chris Demetriou <cgd@sibyte.com>
5289 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
5290 bfd_mach_mips32_4k. Update FIXME comment.
5291 * archures.c (bfd_mach_mips32): New constant.
5292 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
5293 the latter, renumber it.
5294 * bfd-in2.h (bfd_mach_mips32): New constant.
5295 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
5296 the latter, renumber it.
5297 * cpu-mips.c (I_mips32): New constant.
5298 (I_mips4K, I_mips32_4k): Rename the former to the latter.
5299 (arch_info_struct): Add bfd_mach_mips32 entry, replace
5300 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
5301 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
5302 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
5303 with E_MIPS_MACH_MIPS32_4K.
5304 (_bfd_mips_elf_final_write_processing): Replace
5305 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
5306 bfd_mach_mips32 case.
5307 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
5308 comparison with support for MIPS32.
5309 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
5312 * aoutx.h (NAME(aout,machine_type)): Add cases for
5313 bfd_mach_mips5 and bfd_mach_mips64.
5314 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
5315 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
5316 * cpu_mips.c (I_mips5, I_mips64): New definitions.
5317 (arch_info_struct): Add entries for bfd_mach_mips5 and
5319 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
5320 _bfd_mips_elf_print_private_bfd_data): Add cases for
5321 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
5322 (_bfd_mips_elf_final_write_processing): Add cases for
5323 bfd_mach_mips5 and bfd_mach_mips64.
5325 * aoutx.h (NAME(aout,machine_type)): Add a
5326 bfd_mach_mips_sb1 case.
5327 * archures.c (bfd_mach_mips_sb1): New constant.
5328 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
5329 * cpu-mips.c (I_sb1): New constant.
5330 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
5331 * elf32-mips.c (elf_mips_mach): Add case for
5333 (_bfd_mips_elf_final_write_processing): Add case for
5336 2000-12-01 Joel Sherrill <joel@OARcorp.com>
5338 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
5339 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
5340 (sparc*-*-rtems*): Switched from a.out to ELF.
5342 2000-11-30 Jan Hubicka <jh@suse.cz>
5344 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
5345 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
5346 (elf64-x86-64.lo): Add dependencies.
5347 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
5348 bfd_mach_x86_64_intel_syntax.
5349 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
5350 * config.bfd (x86_64): Add.
5351 * configure.in: Add support for bfd_elf64_x86_64_vec.
5352 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
5353 (bfd_i386_arch, i8086_ar): Link in.
5354 * elf64-x86-64.c: New file.
5355 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
5356 * targets.c (bfd_elf64_x86_64_vec): Add.
5357 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
5359 2000-11-30 Kazu Hirata <kazu@hxi.com>
5361 * xcofflink.c: Fix formatting.
5363 2000-11-28 Kazu Hirata <kazu@hxi.com>
5365 * aoutx.h: Fix formatting.
5366 * bfd-in.h: Likewise.
5367 * bfd-in2.h: Likewise.
5368 * cache.c: Likewise.
5369 * cisco-core.c: Likewise.
5370 * coff64-rs6000.c: Likewise.
5371 * coffcode.h: Likewise.
5372 * coffswap.h: Likewise.
5373 * corefile.c: Likewise.
5374 * elf32-mips.c: Likewise.
5376 2000-11-27 Kazu Hirata <kazu@hxi.com>
5378 * aout-adobe.c: Fix formatting.
5379 * coff64-rs6000.c: Likewise.
5380 * coffgen.c: Likewise.
5381 * cofflink.c: Likewise.
5383 2000-11-27 Philip Blundell <pb@futuretv.com>
5385 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
5386 (obj_coff_strings_written): New accessor macro for above.
5387 * libcoff.h: Regenerate.
5388 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
5390 * coffcode.h (coff_write_object_contents): No need to write out
5391 the string table if it's already been done.
5393 2000-11-22 Philip Blundell <pb@futuretv.com>
5395 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
5396 weak undefined symbols.
5398 2000-11-24 Nick Clifton <nickc@redhat.com>
5400 * archures.c (bfd_mach_arm_5TE): Define.
5401 (bfd_mach_arm+XScale): Define.
5402 * bfd-in2.h: Regenerate.
5404 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
5405 BFD_RELOC_ARM_PCREL_BLX.
5407 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
5408 XScale machine numbers.
5410 * config.bfd (xscale-elf): Add target.
5411 (xscale-coff): Add target.
5413 * cpu-arm.c: Add xscale machine name.
5414 Add v5t, v5te and XScale machine numbers.
5416 2000-11-23 Kazu Hirata <kazu@hxi.com>
5418 * aix386-core.c: Fix formatting.
5420 2000-11-22 Jim Wilson <wilson@redhat.com>
5422 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
5423 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
5424 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
5425 (ins_imms_scaled): Initialize sign_bit at function entry.
5426 (elf64_ia64_operands): Add missing initializers.
5427 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
5428 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
5429 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
5430 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
5431 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
5433 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
5434 and free_extsyms at function entry.
5435 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
5436 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
5437 (get_got): Delete unused local srel.
5438 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
5439 (elfNN_ia64_relocate_section): Delete unused local dynindx.
5441 2000-11-21 Kazu Hirata <kazu@hxi.com>
5443 * coff-a29k.c: Fix formatting.
5444 * coff-h8500.c: Likewise.
5445 * coff-i960.c: Likewise.
5446 * coff-ppc.c: Likewise.
5447 * coff-rs6000.c: Likewise.
5448 * coff-stgo32.c: Likewise.
5449 * coff-tic54x.c: Likewise.
5450 * coff-w65.c: Likewise.
5451 * cpu-h8500.c: Likewise.
5452 * cpu-hppa.c: Likewise.
5453 * cpu-ns32k.c: Likewise.
5454 * ecoff.c: Likewise.
5455 * ecofflink.c: Likewise.
5457 2000-11-21 Nick Clifton <nickc@redhat.com>
5459 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
5460 remove possibility of infinite loop.
5462 2000-11-20 Kazu Hirata <kazu@hxi.com>
5464 * aix386-core.c: Fix formatting.
5465 * aout-adobe.c: Likewise.
5466 * aout-arm.c: Likewise.
5467 * aout-encap.c: Likewise.
5468 * aout-ns32k.c: Likewise.
5469 * aout-target.h: Likewise.
5470 * aout-tic30.c: Likewise.
5471 * aoutf1.h: Likewise.
5472 * aoutx.h: Likewise.
5473 * archive.c: Likewise.
5474 * bfd-in.h: Likewise.
5475 * bfd-in2.h: Likewise.
5479 2000-11-17 H.J. Lu <hjl@gnu.org>
5481 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
5482 pltoff entries for DT_INIT and DT_FINI.
5483 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
5484 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
5487 2000-11-16 Richard Henderson <rth@redhat.com>
5489 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
5490 (allocate_dynrel_entries): Likewise.
5491 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
5492 (set_pltoff_entry): Likewise.
5493 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
5494 (elfNN_ia64_reloc_type_lookup): Likewise.
5495 (elfNN_ia64_install_value): Likewise.
5496 (elfNN_ia64_relocate_section): Likewise.
5497 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
5498 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
5500 2000-11-16 Kazu Hirata <kazu@hxi.com>
5502 * cpu-a29k.c: Fix formatting.
5503 * cpu-alpha.c: Likewise.
5504 * cpu-arm.c: Likewise.
5505 * cpu-avr.c: Likewise.
5506 * cpu-d10v.c: Likewise.
5507 * cpu-h8500.c: Likewise.
5508 * cpu-hppa.c: Likewise.
5509 * cpu-i370.c: Likewise.
5510 * cpu-i386.c: Likewise.
5511 * cpu-i960.c: Likewise.
5512 * cpu-ia64-opc.c: Likewise.
5513 * cpu-ia64.c: Likewise.
5514 * cpu-m32r.c: Likewise.
5515 * cpu-m68hc11.c: Likewise.
5516 * cpu-m68hc12.c: Likewise.
5517 * cpu-m68k.c: Likewise.
5518 * cpu-m88k.c: Likewise.
5519 * cpu-mips.c: Likewise.
5520 * cpu-ns32k.c: Likewise.
5521 * cpu-pj.c: Likewise.
5522 * cpu-powerpc.c: Likewise.
5523 * cpu-sh.c: Likewise.
5524 * cpu-sparc.c: Likewise.
5525 * cpu-tic54x.c: Likewise.
5526 * cpu-v850.c: Likewise.
5527 * cpu-vax.c: Likewise.
5528 * cpu-w65.c: Likewise.
5529 * cpu-we32k.c: Likewise.
5530 * cpu-z8k.c: Likewise.
5531 * dwarf1.c: Likewise.
5532 * dwarf2.c: Likewise.
5534 2000-11-15 Kazu Hirata <kazu@hxi.com>
5536 * coff-arm.c: Fix formatting.
5537 * coff-ppc.c: Likewise.
5538 * coff-rs6000.c: Likewise.
5539 * coff-sh.c: Likewise.
5540 * coff-sparc.c: Likewise.
5541 * coff-tic30.c: Likewise.
5542 * coff-tic54x.c: Likewise.
5543 * coff-tic80.c: Likewise.
5544 * coff-w65.c: Likewise.
5545 * coff-we32k.c: Likewise.
5546 * coff-z8k.c: Likewise.
5548 2000-11-15 Richard Henderson <rth@redhat.com>
5550 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
5551 section with the same ALLOC|LOAD flags as the source section.
5553 2000-11-14 Jakub Jelinek <jakub@redhat.com>
5555 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
5556 by STO_ALPHA constants.
5558 2000-11-14 Kazu Hirata <kazu@hxi.com>
5560 * coff-pmac.c: Fix formatting.
5561 * coff-ppc.c: Likewise.
5563 2000-11-13 H.J. Lu <hjl@gnu.org>
5565 * elflink.h (elf_link_add_object_symbols): Also add indirect
5566 symbols for common symbols with the default version.
5568 2000-11-09 Philip Blundell <pb@futuretv.com>
5570 * section.c (STD_SECTION): Set gc_mark flag.
5572 2000-11-11 Kazu Hirata <kazu@hxi.com>
5574 * coff-i960.c: Likewise.
5575 * coff-m68k.c: Likewise.
5576 * coff-m88k.c: Likewise.
5577 * coff-mcore.c: Likewise.
5578 * coff-mips.c: Likewise.
5580 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
5582 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
5584 2000-11-10 Kazu Hirata <kazu@hxi.com>
5586 * coff-h8300.c: Fix formatting.
5587 * coff-h8500.c: Likewise.
5588 * coff-i386.c: Likewise.
5589 * coff-i860.c: Likewise.
5590 * coff-i960.c: Likewise.
5591 * coff-ia64.c: Likewise.
5593 2000-11-09 Kazu Hirata <kazu@hxi.com>
5595 * archive.c: Fix formatting.
5596 * archures.c: Likewise.
5598 2000-11-07 Richard Henderson <rth@redhat.com>
5600 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
5601 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
5602 * section.c (bfd_set_section_contents): Call memcpy if
5603 section->contents set and location not equal to contents plus offset.
5605 2000-11-08 Kazu Hirata <kazu@hxi.com>
5607 * bfd-in.h: Fix formatting.
5608 * bfd-in2.h: Likewise.
5610 * binary.c: Likewise.
5612 * coff-a29k.c: Likewise.
5613 * coff-alpha.c: Likewise.
5614 * coff-apollo.c: Likewise.
5615 * coff-aux.c: Likewise.
5617 2000-11-07 Kazu Hirata <kazu@hxi.com>
5619 * aix386-core.c: Fix formatting.
5620 * aoutf1.h: Likewise.
5621 * aoutx.h: Likewise.
5622 * archures.c: Likewise.
5623 * armnetbsd.c: Likewise.
5625 2000-11-07 Alan Modra <alan@linuxcare.com.au>
5627 * coff-h8300.c (special): Adjust reloc address.
5629 2000-11-06 Steve Ellcey <sje@cup.hp.com>
5631 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
5632 to differentiate elf32 and elf64 on ia64.
5633 * bfd-in2.h: Regenerate.
5634 * config.bfd: Add target for "ia64*-*-hpux*".
5635 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
5636 * configure: Regenerate.
5637 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
5638 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
5640 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
5641 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
5642 * Makefile.in: Regnerate.
5643 * elf64-ia64.c: Deleted.
5644 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
5646 2000-11-06 Kazu Hirata <kazu@hxi.com>
5648 * aout-adobe.c: Fix formatting.
5649 * aout-arm.c: Likewise.
5650 * aout-cris.c: Likewise.
5651 * aout-encap.c: Likewise.
5652 * aout-ns32k.c: Likewise.
5653 * aout-target.h: Likewise.
5654 * aout-tic30.c: Likewise.
5656 2000-11-05 Philip Blundell <philb@gnu.org>
5658 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
5659 BFDs containing no sections to be merged, regardless of their flags.
5661 2000-11-04 Philip Blundell <philb@gnu.org>
5663 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
5664 if a relocation for an undefined symbol also results in an
5667 2000-11-06 Christopher Faylor <cgf@cygnus.com>
5669 * config.bfd: Add support for Sun Chorus.
5671 2000-11-05 David O'Brien <obrien@FreeBSD.org>
5673 * configure.in: Recognize alpha-*-freebsd*.
5674 * configure: Regenerate.
5676 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
5678 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
5679 (Chunk): New global variable set by a parameter in objcopy.c.
5680 (S3Forced): New global variable set by a parameter in
5682 (srec_set_section_contents): If S3Forced is true, always generate
5684 (srec_write_section): Use 'Chunk' to limit maximum length of S
5687 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5689 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
5690 * Makefile.in: Regenerate.
5691 * bfd-in2.h: Regenerate.
5692 * po/bfd.pot: Regenerate.
5694 2000-10-31 Philip Blundell <philb@gnu.org>
5696 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
5697 EF_SOFT_FLOAT if it is defined.
5699 2000-10-27 Philip Blundell <philb@gnu.org>
5701 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
5702 attempts to mix PIC code with non-PIC, just mark the output as
5703 being position dependent.
5704 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
5705 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
5706 all mismatches, not just the first one.
5708 2000-10-25 Chris Demetriou <cgd@sibyte.com>
5710 * ieee.c (ieee_archive_p): Plug one of many possible
5711 memory leaks in error handling.
5713 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5715 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
5716 elf32_sparc_object_p, elf32_sparc_final_write_processing):
5718 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
5719 sparc64_elf_object_p): Support v9b.
5720 * archures.c: Declare v8plusb and v9b machines.
5722 * cpu-sparc.c: Ditto.
5724 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5726 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
5729 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
5730 (SYMBOL_CALLS_LOCAL): New macro.
5731 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
5732 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
5733 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
5734 (ppc_elf_relocate_section): Use flag variable to determine
5735 whether the relocation refers to a local symbol.
5736 Test whether a PLTREL24 reloc will produce a reloc by looking
5737 to see whether a PLT entry was made.
5739 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5741 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
5742 entries that could serve as a definition for a weak symbol.
5744 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
5746 From Ralf Baechle <ralf@gnu.org>
5748 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
5749 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
5750 against local symbols.
5751 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
5753 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5755 * section.c (struct sec): Add kept_section.
5756 (struct bfd_comdat_info): Remove sec, we can use above.
5757 (STD_SECTION): Add initializer.
5758 (bfd_make_section_anyway): Init here too.
5760 * bfd-in2.h: Regenerate.
5762 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
5764 (elf_link_input_bfd): Set all asection->symbol->value's here, and
5765 fudge values for discarded link-once section symbols.
5767 * elf64-hppa.c: Include alloca-conf.h
5769 2000-10-11 Alan Modra <alan@linuxcare.com.au>
5771 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
5773 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
5775 2000-10-10 Alan Modra <alan@linuxcare.com.au>
5777 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
5779 2000-10-10 Tom Rix <trix@redhat.com>
5781 * section.c (bfd_make_section_anyway): Release newsect ptr when
5782 newsect->symbol fails to alloc. Use bfd_release instead of free.
5784 2000-10-09 Richard Henderson <rth@cygnus.com
5786 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
5787 (elf64_ia64_unwind_entry_compare): New.
5788 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
5790 2000-10-07 Alan Modra <alan@linuxcare.com.au>
5792 * elflink.h (size_dynamic_sections): Don't create various tags if
5793 .dynstr is excluded from the link. Don't set first dynsym entry
5794 if dynsymcount is zero.
5795 (elf_bfd_final_link): Don't try to swap out dynamic syms if
5796 .dynsym excluded from the link. Don't try to write any dynamic
5797 sections excluded from the link.
5799 * elf.c (swap_out_syms): Handle global section symbols.
5801 2000-10-05 DJ Delorie <dj@redhat.com>
5803 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
5804 * coffcode.h (coff_set_alignment_hook): read extended reloc count
5805 (coff_write_relocs): write extended reloc count
5806 (coff_write_object_contents): account for extended relocs
5808 2000-10-05 Jim Wilson <wilson@cygnus.com>
5810 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
5812 * elf.c (_bfd_elf_make_section_from_shdr): Call the
5813 elf_backend_section_flags function.
5814 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
5816 (elf64_ia64_section_flags): New function containing flag conversion
5818 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
5819 * elfxx-target.h (elf_backend_section_flags): Define.
5820 (elfNN_bed): Initialize elf_backend_section_flags field.
5822 2000-10-02 Alan Modra <alan@linuxcare.com.au>
5824 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
5825 _bfd_elf32_gc_record_vtable. Correct a comment.
5827 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
5829 From Ralf Baechle <ralf@gnu.org>
5831 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
5832 produces binaries with got[1] = 0x80000001 to differenciate them
5833 for the dynamic linker from the broken binaries produced by old
5836 2000-09-30 Petr Sorfa <petrs@sco.com>
5838 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
5839 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
5840 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
5841 * configure: Regenerate.
5843 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
5845 Define two bfd_targets for absence and presence of leading
5846 underscore on symbols. Make sure to only link same kind.
5847 * elf32-cris.c (cris_elf_object_p,
5848 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
5849 cris_elf_merge_private_bfd_data): New.
5850 (elf_backend_object_p, elf_backend_final_write_processing,
5851 bfd_elf32_bfd_print_private_bfd_data,
5852 bfd_elf32_bfd_merge_private_bfd_data): Define.
5853 <Target vector definition>: Include elf32-target.h twice with
5854 different macro settings:
5855 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
5856 bfd_elf32_us_cris_vec.
5857 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
5858 (elf_symbol_leading_char): First as 0, then '_'.
5859 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
5860 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
5861 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
5862 * configure: Regenerate.
5863 * targets.c: Declare bfd_elf32_us_cris_vec.
5864 * po/bfd.pot: Regenerate.
5866 2000-09-29 Momchil Velikov <velco@fadata.bg>
5868 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
5869 R_ARM_THM_PC22 relocations.
5871 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
5873 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
5875 2000-09-29 Momchil Velikov <velco@fadata.bg>
5877 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
5878 is has the SEC_HAS_CONTENTS flag set.
5880 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
5881 Hans-Peter Nilsson <hp@axis.com>
5883 * aout-cris.c (N_TXTADDR): Define.
5885 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5887 * som.c: Include alloca-conf.h.
5888 * Makefile.am: "make dep-am"
5889 * Makefile.in: Regenerate.
5891 2000-09-27 Alan Modra <alan@linuxcare.com.au>
5893 * elf32-hppa.c (plt_stub): New.
5894 (PLT_STUB_ENTRY): Define.
5895 (elf32_hppa_link_hash_table): Change multi_subspace to packed
5896 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
5897 (elf32_hppa_link_hash_table_create): Init to suit.
5898 (elf32_hppa_check_relocs): Set has_12bit_branch and
5899 has_17bit_branch as appropriate.
5900 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
5901 non-local functions.
5902 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
5903 Add space for plt_stub as needed.
5904 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
5905 functions at plt_stub.
5906 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
5907 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
5909 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
5910 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
5911 of fixed size, and if negative, disable handling of input sections
5912 before stub section. Set up default stub group size depending
5913 on detected branch relocs.
5914 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
5915 ensure different offsets from sym_value aren't rounded to
5916 different 2k blocks. Use lrsel and rrsel for other stubs too for
5917 consistency rather than necessity.
5918 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
5919 (final_link_relocate): Likewise.
5920 (elf32_hppa_relocate_section): Likewise.
5922 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
5923 (_bfd_elf_hppa_gen_reloc_type): Generate them.
5924 (elf_hppa_final_link_relocate): Handle them.
5925 (elf_hppa_relocate_insn): Likewise.
5926 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
5928 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
5930 * elfcode.h (elf_object_p): Preserve and clear abfd section
5931 information. Restore at error.
5933 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5935 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
5936 is empty, make sure that its rva also 0. NT loader dislikes
5939 2000-09-26 Steve Ellcey <sje@cup.hp.com>
5941 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
5944 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5946 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
5947 currently unused RELATIVE_DYNAMIC_RELOCS code.
5948 (hppa_discard_copies): Likewise.
5949 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
5950 comments. Don't check non-code output sections for stub grouping.
5952 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5954 * section.c (bfd_get_unique_section_name): Return NULL if
5957 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5959 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
5960 instruction sequence to actually work.
5961 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
5964 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
5966 * elf32-sh.c (sh_elf_relocate_section): Use
5967 _bfd_final_link_relocate to apply the relocation against a section
5968 symbol, when doing relocatable links.
5970 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5972 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
5974 (stub_hash_newfunc): Here too.
5975 (hppa_add_stub): And here.
5976 (elf32_hppa_link_hash_table): Remove stub_section_created,
5977 reloc_section_created, first_init_sec and first_fini_sec. Add
5979 (elf32_hppa_link_hash_table_create): Init to suit.
5980 (hppa_get_stub_entry): Add support for grouping stub sections.
5981 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
5982 section code. Index stub vars by section->id.
5983 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
5984 exit paths. Zap allocation of above removed vars. Refine
5987 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
5988 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
5989 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
5990 rather than pointer to bfd_link_info.
5991 (hppa_add_stub): Likewise.
5992 (final_link_relocate): Likewise.
5994 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
5996 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
5999 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
6001 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
6002 ld/emulparams/shelf.sh.
6004 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6006 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
6007 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
6008 * bfd-in2.h: Regenerate.
6010 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
6012 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
6013 LITUSE relocations incorrectly if -relax is specified on the ld
6014 command line and the displacement field of the load or store
6015 instruction is non-zero. (Patch by paul.winalski@compaq.com)
6017 2000-09-15 Alan Modra <alan@linuxcare.com.au>
6019 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
6020 first_fini_sec here.
6021 (elf32_hppa_size_stubs): Instead correctly find the first .init
6022 and .fini section here.
6024 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
6026 * elf32-hppa.c (clobber_millicode_symbols): New function.
6027 (elf32_hppa_size_dynamic_sections): Call it.
6029 2000-09-14 Alan Modra <alan@linuxcare.com.au>
6031 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
6032 packed. Add plabel, plt_abs packed booleans.
6033 (hppa_link_hash_newfunc): Init new fields.
6034 (PLABEL_PLT_ENTRY_SIZE): Define.
6035 (hppa_stub_name): Use size_t len vars.
6036 (hppa_add_stub): Likewise.
6037 (elf32_hppa_build_stubs): Likewise.
6038 (hppa_build_one_stub): Kill some compiler warnings.
6039 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
6040 if dynamic linking. Munge the local plt offsets into
6041 local_got_refcounts. Set h->plabel for all global PLABELs. Use
6042 size_t len vars. Add assert for plabel addend.
6043 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
6044 (elf32_hppa_hide_symbol): New function.
6045 (elf_backend_hide_symbol): Define.
6046 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
6047 with h->plabel set. Don't make plt entries to have dynamic syms
6048 when they have been forced local. If plt entry is used by a
6049 plabel, make it PLABEL_PLT_ENTRY_SIZE.
6050 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
6051 Set up .plt offsets for local syms.
6052 (elf32_hppa_relocate_section): Initialise plt entries for local
6053 syms. Leave weak undefined plabels zero. Make global plabel
6054 relocs against function symbol, and leave the addend zero.
6055 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
6056 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
6057 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
6058 relocs instead of SEGREL32 for dynamic got relocs.
6059 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
6060 (elf_backend_got_header_size): Adjust.
6061 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
6063 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
6064 (hppa_type_of_stub): Use it instead of #if 0
6065 (hppa_discard_copies): Use it here too.
6066 (elf32_hppa_size_dynamic_sections): And here.
6068 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
6069 (elf32_hppa_link_hash_table_create): And here.
6070 (hppa_build_one_stub): And here. Instead keep track of stub
6071 offset using _raw_size.
6072 (elf32_hppa_size_stubs): Likewise.
6073 (elf32_hppa_build_stubs): Likewise.
6074 (hppa_size_one_stub): Likewise. Resize reloc section too.
6076 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
6077 first_fini_sec handling. Don't search for reloc section or set
6078 hplink->reloc_section_created here.
6079 (elf32_hppa_size_stubs): Instead search for reloc sections, and
6080 set reloc_section_created here.
6081 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
6082 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
6084 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
6086 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
6087 with `hplink->root.'.
6088 (elf32_hppa_check_relocs): Likewise.
6089 (elf32_hppa_gc_sweep_hook): Likewise.
6090 (elf32_hppa_adjust_dynamic_symbol): Likewise.
6091 (hppa_handle_PIC_calls): Likewise.
6092 (elf32_hppa_size_dynamic_sections): Likewise.
6093 (elf32_hppa_set_gp): Likewise.
6094 (elf32_hppa_relocate_section): Likewise.
6095 (elf32_hppa_finish_dynamic_symbol): Likewise.
6096 (elf32_hppa_finish_dynamic_sections): Likewise.
6098 From David Huggins-Daines <dhd@linuxcare.com>
6099 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
6100 defined weak symbols in shared links.
6101 (final_link_relocate): Calls to defined weak symbols in shared
6102 objects must go via import stubs, as the target might not be known
6105 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
6107 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
6108 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
6109 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
6110 the original entries with EMPTY_HOWTOs, and added new ones to fill
6112 (sh_elf_info_to_howto): Make sure the new gap isn't used.
6113 (sh_elf_relocate_section): Likewise.
6115 2000-09-13 Anders Norlander <anorland@acc.umu.se>
6117 * cpu-mips.c (arch_info_struct): Add mips:4K
6118 * bfd-in2.h (bfd_mach_mips4K): New define.
6119 * archures.c: Add bfd_mach_mips4K to comment.
6120 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
6121 E_MIPS_ARCH_2 for bfd_mach_mips4K.
6123 2000-09-13 Marco Franzen <marcof@thyron.com>
6125 * som.c (som_write_symbol_strings): Do not used fixed buffers,
6126 use size_t as a counter.
6127 (som_write_space_strings): Similarly.
6129 2000-09-12 Jason Eckhardt <jle@cygnus.com>
6131 * elf32-i860.c (elf32_i860_relocate_pc26): New function
6133 (elf32_i860_relocate_section): Invoke new function from here.
6135 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6137 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
6140 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6142 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
6143 target section name instead of dumping core when the target symbol is
6146 2000-09-09 Kazu Hirata <kazu@hxi.com>
6148 * riscix.c: Remove DEFUN.
6150 2000-09-08 Nick Clifton <nickc@redhat.com>
6152 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
6153 initialise flags in output bfd if the input bfd is the default
6154 architecture with the default flags.
6156 2000-09-08 Kazu Hirata <kazu@hxi.com>
6158 * archive.c: Fix formatting.
6159 * coff-arm.c: Likewise.
6160 * doc/chew.c: Likewise.
6162 2000-09-08 Alan Modra <alan@linuxcare.com.au>
6164 * section.c (bfd_get_unique_section_name): Put a dot before the
6167 2000-09-07 Kazu Hirata <kazu@hxi.com>
6169 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
6170 * elf.c: Fix formatting.
6172 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
6174 * config.bfd (sh-*-linux*): Added.
6175 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
6176 * targets.c: Declare them.
6177 * elf32-sh-lin.c: New file.
6178 * Makefile.am: Compile it.
6179 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
6180 * configure, Makefile.in: Rebuilt.
6182 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
6184 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
6185 pseduo-section when determining where the TOC ends.
6187 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
6188 output x_tvndx as it is only two bytes wide.
6190 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
6191 reloc is 26 or 32 bits wide.
6193 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
6194 for relocs that don't change anything. Also look at the full
6197 2000-09-06 Philip Blundell <philb@gnu.org>
6199 * config.bfd (arm*-*-uclinux*): New target.
6201 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
6203 * configure: Rebuilt with new libtool.m4.
6205 2000-09-06 Alan Modra <alan@linuxcare.com.au>
6207 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
6208 word for variable name.
6209 * bfd-in2.h: Regenerate.
6211 2000-09-05 Nick Clifton <nickc@redhat.com>
6213 * config.in: Regenerate.
6214 * libbfd.h: Regenerate.
6215 * po/bfd.pot: Regenerate.
6216 * doc/bfdint.texi: Remove CVS date string - it foils compares with
6219 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
6221 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
6223 2000-09-05 Alan Modra <alan@linuxcare.com.au>
6225 Shared library and PIC support.
6226 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
6227 (GOT_ENTRY_SIZE): New.
6228 (ELF_DYNAMIC_INTERPRETER): New.
6229 (STUB_SUFFIX): Define.
6230 (LONG_BRANCH_PIC_IN_SHLIB): Define.
6231 (RELATIVE_DYNAMIC_RELOCS): Define.
6232 (enum elf32_hppa_stub_type): New.
6233 (struct elf32_hppa_stub_hash_entry): Rename offset to
6234 stub_offset. Add a number of new fields.
6235 (struct elf32_hppa_link_hash_entry): New.
6236 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
6238 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
6239 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
6240 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
6242 (hppa_link_hash_newfunc): New function.
6243 (elf32_hppa_link_hash_table_create): Use above function. Init new
6245 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
6246 instead of addend, and remove sym_name from args. Don't use
6247 symbol name for local syms, instead use sym index.
6248 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
6249 stub type rather than size. Pass in hash and handle import stub
6250 case. Also pass in reloc instead of offset so we can calculate
6251 PCREL22F and PCREL12F branches properly.
6252 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
6253 import and export stubs too.
6254 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
6255 import and export stub sizing.
6256 (elf32_hppa_check_relocs): New function.
6257 (elf32_hppa_adjust_dynamic_symbol): New function.
6258 (hppa_discard_copies): New function.
6259 (elf32_hppa_size_dynamic_sections): New function.
6260 (elf_backend_size_dynamic_sections): Define.
6261 (elf32_hppa_finish_dynamic_symbol): New function.
6262 (elf_backend_finish_dynamic_symbol): Define.
6263 (elf32_hppa_size_stubs): Stash params in link hash table, and move
6264 some local vars into the link hash table too. For shared links,
6265 trundle over function syms, generating export stubs. Handle
6266 PCREL22F branches. Break out stub creation code from here..
6267 (hppa_add_stub): .. to here. New function.
6268 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
6269 call the bfd linker. Use elf_gp to record global pointer.
6270 Calculate a value from sections if $global$ is missing.
6271 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
6272 (elf32_hppa_gc_mark_hook): New function.
6273 (elf_backend_gc_mark_hook): Define.
6274 (elf32_hppa_gc_sweep_hook): New function.
6275 (elf_backend_gc_sweep_hook): Define.
6276 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
6277 Add rel to args, and remove howto, input_bfd, offset, addend,
6278 sym_name as we can recalculate these locally. Handle calls to
6279 dynamic objects, extra PIC relocs, PCREL22F branches. Change
6280 handling of undefined weak syms. Check that stubs are in range.
6281 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
6282 message on hitting a DPREL21L reloc that needs fixing. Subtract
6283 off PC for PCREL14F. Break out code that does a stub lookup from
6285 (hppa_get_stub_entry): ..to here. New function.
6286 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
6287 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
6289 (elf32_hppa_finish_dynamic_sections): New function.
6290 (elf_backend_finish_dynamic_sections): Define.
6291 (elf_backend_final_write_processing) Define.
6292 (hppa_handle_PIC_calls): New function.
6293 (elf32_hppa_build_stubs): Call it. Pass link_info to
6294 hppa_build_one_stub.
6295 (elf32_hppa_create_dynamic_sections): New function
6296 to create .plt and .got then set .plt flags correctly.
6297 (elf_backend_create_dynamic_sections): Define.
6298 (elf32_hppa_object_p): New function.
6299 (elf_backend_object_p): Define.
6300 (elf32_hppa_elf_get_symbol_type): New function.
6301 (elf_backend_get_symbol_type): Define.
6302 (elf_backend_can_gc_sections): Define.
6303 (elf_backend_want_got_plt): Define.
6304 (elf_backend_plt_alignment): Set to 2.
6305 (elf_backend_plt_readonly): Define.
6306 (elf_backend_want_plt_sym): Define.
6307 (elf_backend_got_header_size): Reserve one entry.
6309 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
6310 (elf32_hppa_size_stubs): Pass in multi_subspace.
6311 (elf32_hppa_set_gp): Declare.
6313 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
6314 (bfd_get_unique_section_name): New function.
6315 * bfd-in2.h: Regenerate.
6317 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
6318 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
6321 From David Huggins-Daines <dhd@linuxcare.com>
6322 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
6323 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
6324 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
6325 been updated in finish_dynamic_symbol before modifying function
6328 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
6329 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
6330 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
6331 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
6332 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
6333 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
6334 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
6335 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
6337 From David Huggins-Daines <dhd@linuxcare.com>
6338 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
6339 style of local labels as well.
6341 2000-09-03 Philip Blundell <philb@gnu.org>
6343 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
6344 references to undefined symbols in debugging sections.
6346 2000-09-02 H.J. Lu <hjl@gnu.org>
6348 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
6349 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
6350 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
6353 2000-09-02 Jason Eckhardt <jle@cygnus.com>
6355 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
6356 (elf32_i860_is_local_label_name): New function and prototype.
6358 2000-09-02 Nick Clifton <nickc@redhat.com>
6360 * configure.in: Increase version number to 2.10.91.
6361 * configure: Regenerate.
6362 * aclocal.m4: Regenerate.
6363 * config.in: Regenerate.
6364 * po/bfd.pot: Regenerate.
6366 2000-09-02 Daniel Berlin <dberlin@redhat.com>
6368 * elf.c (_bfd_elf_make_section_from_shdr): Add
6369 .gnu.linkobce.wi. to the list of debug section names.
6371 2000-09-02 Nick Clifton <nickc@redhat.com>
6373 * dwarf2.c (find_debug_info): New function: Locate a section
6374 containing dwarf2 debug information.
6375 (bfd_dwarf2_find_nearest_line): Find all sections containing
6376 debug information and include them in the stash.
6378 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
6380 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
6381 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
6382 (sh_reloc_map): Add new relocs.
6383 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
6384 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
6385 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
6386 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
6388 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
6389 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
6390 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
6391 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
6392 New array constants.
6393 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
6395 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
6396 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
6397 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
6398 elf_sh_plt_reloc_offset): Define.
6399 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
6400 elf_sh_link_hash_table): New structs.
6401 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
6402 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
6404 (elf_backend_create_dynamic_sections,
6405 bfd_elf32_bfd_link_hash_table_create,
6406 elf_backend_adjust_dynamic_symbol,
6407 elf_backend_size_dynamic_sections,
6408 elf_backend_finish_dynamic_symbol,
6409 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
6410 elf_backend_plt_readonly, elf_backend_want_plt_sym,
6411 elf_backend_got_header_size, elf_backend_plt_header_size):
6413 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
6414 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
6416 * bfd-in2.h, libbfd.h: Rebuilt.
6418 2000-09-01 Alan Modra <alan@linuxcare.com.au>
6420 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
6423 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
6425 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
6426 not initialized, set them to indicate the SH1 instruction set.
6428 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
6430 * acinclude.m4: Include libtool and gettext macros from the
6432 * aclocal.m4, configure: Rebuilt.
6434 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
6436 * elf.c: Eliminate references to __sparcv9 macro; replace with
6437 autoconf variables HAVE_PSINFO32_T etc.
6438 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
6439 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
6441 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
6442 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
6443 * aclocal.m4: Ditto.
6444 * configure: Regenerate.
6446 2000-08-27 Alan Modra <alan@linuxcare.com.au>
6448 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
6449 for any shared link, not just shared -Bsymbolic.
6450 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
6451 any shared link, and pass link info to it.
6452 (elf_i386_size_dynamic_sections): Update comment.
6453 (elf_i386_discard_copies): Modify to discard relocs for symbols
6454 that have been forced local.
6455 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
6456 that have been forced local.
6458 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
6460 * elflink.h (elf_link_add_object_symbols): Allow common
6461 symbols to have an alignment of 1 if explicitly requested, and
6462 not overridden by other definitions.
6464 2000-08-22 Doug Kwan <dkwan@transmeta.com>
6466 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
6467 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
6469 2000-08-22 H.J. Lu <hjl@gnu.org>
6471 * elf-bfd.h (elf_link_hash_table): Add runpath.
6473 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
6474 * bfd-in2.h: Rebuilt.
6476 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
6477 "runpath" field to NULL.
6478 (bfd_elf_get_runpath_list): New function.
6480 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
6483 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
6485 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
6486 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
6487 explicitly. Improve validation of r_type.
6489 2000-08-21 H.J. Lu <hjl@gnu.org>
6491 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
6492 dynamic allocated content space. Add a comment to remind us that
6493 one day this ought to be fixed.
6494 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6495 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6496 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6498 2000-08-21 Jason Eckhardt <jle@cygnus.com>
6500 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
6501 field with the newly relocated value instead of adding it to the
6502 existing immediate field.
6503 (elf32_i860_relocate_splitn): Likewise.
6504 (elf32_i860_relocate_highadj): Likewise.
6506 2000-08-16 Jason Eckhardt <jle@cygnus.com>
6508 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
6509 was previously just a stub).
6511 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
6513 * elflink.c (_bfd_elf_create_got_section): Don't abort().
6515 (_bfd_elf_create_dynamic_sections): Likewise.
6517 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
6519 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
6520 for undefined symbols to be the beginning of the section.
6522 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
6523 four extra entries at the beginning of the .rela.plt section.
6524 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
6525 section to account for the four reserved entries in the .plt section.
6527 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
6529 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
6530 to the list of NOPs we recognize after a branch-and-link.
6531 Use the ori NOP when one is needed.
6533 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
6536 2000-08-14 Jim Wilson <wilson@cygnus.com>
6538 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
6539 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
6540 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
6543 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
6545 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
6547 2000-08-10 Jason Eckhardt <jle@cygnus.com>
6549 * elf32-i860.c (elf32_i860_relocate_section): New function.
6550 (i860_final_link_relocate): New function.
6551 (elf32_i860_relocate_splitn): New function.
6552 (elf32_i860_relocate_pc16): New function.
6553 (elf32_i860_relocate_highadj): New function.
6554 (elf32_i860_howto): Minor adjustments to some relocations.
6555 (elf_info_to_howto_rel): Define.
6556 (elf_backend_relocate_section): Define.
6558 2000-08-10 Nick Clifton <nickc@cygnus.com>
6560 * elf32-arm.h: Fix formatting.
6562 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
6564 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
6566 2000-08-08 Jason Eckhardt <jle@cygnus.com>
6568 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
6570 2000-08-07 Kazu Hirata <kazu@hxi.com>
6572 * ieee.c (ieee_write_debug_part): Rewrite a comment.
6573 * elf64-ia64.c: Fix a typo.
6575 2000-08-05 Jason Eckhardt <jle@cygnus.com>
6577 * elf32-i860.c (elf32_i860_howto_table): New structure.
6578 (lookup_howto): New function.
6579 (elf32_i860_reloc_type_lookup): New function.
6580 (elf32_i860_info_to_howto_rela): New function.
6581 (elf_code_to_howto_index): New structure.
6582 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
6583 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
6584 elf32_i860_reloc_type_lookup.
6586 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
6588 * som.c (struct fixup_format): Constify `format'.
6589 (som_hppa_howto_table): Use SOM_HOWTO macro.
6590 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
6591 (som_bfd_reloc_type_lookup): Likewise.
6592 (compare_subspaces): Remove unused `count1', `count2'.
6593 (som_begin_writing): Remove unused `total_reloc_size'.
6594 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
6595 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
6596 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
6597 (som_find_nearest_line): Decorate unused parameter(s).
6598 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
6599 (som_bfd_link_split_section): Likewise.
6601 2000-08-03 Nick Clifton <nickc@cygnus.com>
6603 * section.c: Restore backed out code.
6604 * elf.c: Restore backed out code.
6605 (copy_private_bfd_data): Fix bug preventing stipped dynamic
6606 binaries from working.
6607 * bfd-in2.h: Regenerate.
6609 2000-08-03 H.J. Lu <hjl@gnu.org>
6611 * section.c: Back out the change made by Nick Clifton
6612 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
6614 * bfd-in2.h: Likewise.
6617 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
6619 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
6621 2000-07-31 Jason Eckhardt <jle@cygnus.com>
6623 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
6624 * bfd-in2.h, libbfd.h: Regenerate.
6626 2000-07-31 Nick Clifton <nickc@cygnus.com>
6628 * section.c (struct sec): Add new boolean field 'segment_mark'.
6629 (STD_SECTION): Initialise new field to zero.
6631 * bfd-in2.h: Regenerate.
6633 * elf.c (copy_private_bfd_data): Reorganise section to segment
6634 mapping to cope with moved sections requiring new segments,
6635 and overlapping segments.
6636 (SEGMENT_END): New macro: Return the end address of a segment.
6637 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
6638 contains a section by comparing their VMA addresses.
6639 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
6640 contains a section by comparing their LMA addresses.
6641 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
6642 section should be included in a segment.
6643 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
6644 follows another in memory.
6645 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
6648 2000-07-22 Jason Eckhardt <jle@cygnus.com>
6650 * cpu-i860.c: Added comments.
6652 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
6653 bfd_elf32_i860_little_vec.
6654 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
6655 (ELF_MAXPAGESIZE): Changed to 4096.
6657 * targets.c (bfd_elf32_i860_little_vec): Declaration of
6659 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
6661 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
6662 config for little endian elf32 i860.
6663 (targ_defvec): Define for the new config above
6664 as "bfd_elf32_i860_little_vec".
6665 (targ_selvecs): Define for the new config above
6666 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
6668 * configure.in (bfd_elf32_i860_little_vec): Added recognition
6671 * configure: Regenerated.
6673 2000-07-27 H.J. Lu <hjl@gnu.org>
6675 * elflink.h (elf_merge_symbol): Take one more argument,
6676 dt_needed, to indicate if the symbol comes from a DT_NEEDED
6677 entry. Don't overide the existing weak definition if dt_needed
6679 (elf_link_add_object_symbols): Pass dt_needed to
6680 elf_merge_symbol ().
6682 2000-07-27 Nick Clifton <nickc@cygnus.com>
6684 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
6687 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
6689 * configure.host (*-*-aix*): AIX has 'long long' always.
6691 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
6692 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
6693 (xcoff_write_archive_contents_big): Don't update the offset
6694 of the symbol table, xcoff_write_armap will do it.
6696 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
6698 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
6699 of dynobj for SGI_COMPAT checks.
6701 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6703 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
6704 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
6705 * bfd-in2.h: Regenerate.
6707 2000-07-21 Nick Clifton <nickc@cygnus.com>
6709 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
6710 range symbol indices in relocs and issue an error message.
6712 2000-07-20 H.J. Lu <hjl@gnu.org>
6714 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
6715 info->new_dtags when setting DT_FLAGS_1. It will only be set
6716 by the new linker options. It shouldn't break anything.
6718 2000-07-20 H.J. Lu <hjl@gnu.org>
6720 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
6721 only if info->new_dtags is true.
6723 2000-07-20 H.J. Lu <hjl@gnu.org>
6725 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
6726 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
6728 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
6730 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
6731 (ALL_MACHINES_CFILES): Add cpu-cris.c.
6732 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
6733 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
6734 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
6735 * Makefile.in: Rebuild.
6736 * aclocal.m4: Rebuild.
6737 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
6738 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
6739 (bfd_cris_arch): Declare.
6740 (bfd_archures_list): Add bfd_cris_arch.
6741 * bfd-in2.h: Rebuild.
6742 * config.bfd: (cris-*-*): New target.
6743 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
6744 * configure: Rebuild.
6745 * elf.c (prep_headers): Add bfd_arch_cris.
6746 * libbfd.h: Rebuild.
6747 * libaout.h (enum machine_type): Add M_CRIS.
6748 * reloc.c: Add CRIS relocations.
6749 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
6750 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
6751 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
6752 * po/POTFILES.in, po/bfd.pot: Regenerate.
6754 2000-07-19 H.J. Lu <hjl@gnu.org>
6756 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
6757 DF_TEXTREL if DT_TEXTREL is set.
6758 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
6759 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
6760 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6761 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
6762 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
6763 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6764 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
6765 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6766 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
6767 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
6769 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
6770 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
6772 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
6774 2000-07-19 H.J. Lu <hjl@gnu.org>
6776 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
6777 * bfd-in2.h: Rebuild.
6779 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
6780 (elf_dt_soname): New.
6782 * elf.c (bfd_elf_set_dt_needed_soname): New.
6784 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
6785 entry if the shared object loaded by DT_NEEDED is used to
6786 resolve the reference in a regular object.
6788 2000-07-19 H.J. Lu <hjl@gnu.org>
6790 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
6791 DT_DEPAUDIT and DT_AUDIT as strings.
6793 2000-07-19 Nick Clifton <nickc@cygnus.com>
6795 * format.c: Fix formatting.
6797 2000-07-19 H.J. Lu <hjl@gnu.org>
6799 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
6801 2000-07-19 H.J. Lu <hjl@gnu.org>
6803 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
6804 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
6805 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
6806 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
6807 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
6808 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
6809 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
6811 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
6813 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
6814 renamed functions from here...
6815 (assign_section_numbers): Use renamed functions.
6816 (prep_headers): Use renamed functions.
6818 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
6819 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
6820 * bfd-in2.h: Regenerate.
6822 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
6824 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
6825 parenthesis in if statement.
6827 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
6829 Enable the support for Traditional MIPS.
6830 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
6831 return ict_none appropriately for traditional mips targets.
6832 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
6833 (STUB_MOVE): Conditionalize for traditonal mips.
6834 (STUB_LI16): Likewise.
6835 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
6836 room for RTPROC header.
6837 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
6838 the permission for the PT_DYNAMIC as read, write and execute.
6839 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
6840 for traditonal mips.
6841 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
6842 _DYNAMIC_LINKING for traditonal mips.
6843 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
6844 in case of traditonal mips.
6845 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
6846 entry is required. For a function if PLT is not required then set the
6847 corresponding hash table entry to 0.
6848 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
6850 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
6851 shared object set the value to 0.
6852 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
6853 _DYNAMIC_LINKING for traditonal mips.
6854 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
6855 for traditonal mips.
6857 2000-07-15 H.J. Lu <hjl@gnu.org>
6859 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
6861 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
6863 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
6864 out a structure that is BFD_IN_MEMORY.
6866 2000-07-11 Alan Modra <alan@linuxcare.com.au>
6868 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
6869 bfd pointer. Print section id instead of bfd pointer for local
6870 syms. Prefix addend with `+' for global syms as well as local.
6871 Correct calculation of name component lengths.
6872 (elf64_hppa_check_relocs): Update call to get_dyn_name.
6874 From David Huggins-Daines <dhd@linuxcare.com>
6875 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
6876 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
6877 (elf64_hppa_modify_segment_map): Likewise.
6879 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6881 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
6882 addresses to be "naturally" sign extended. Return -1 if unknown.
6883 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6884 * bfd-in2.h: Regenerate.
6886 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6888 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
6889 and ECOF_SIGNED_64 to list ways to extract an offset.
6890 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
6891 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
6893 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
6894 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
6896 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6898 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
6899 bfd_get_start_address.
6900 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
6901 (elf_swap_ehdr_out): Ditto.
6903 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
6905 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
6906 compatibility with older binutils.
6908 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6910 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
6911 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
6913 From Ryan Bradetich <rbradetich@uswest.net>
6914 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
6915 (parse_line_table): Ditto.
6916 (_bfd_dwarf1_find_nearest_line): Ditto.
6917 * syms.c (cmpindexentry): Remove extra `*' from params.
6919 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
6921 * elf32-mips.c (sort_dynamic_relocs): New Function.
6922 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
6923 via qsort to sort the dynamic relocations in increasing r_symndx
6926 2000-07-09 Alan Modra <alan@linuxcare.com.au>
6928 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
6929 ATTRIBUTE_UNUSED to unused args.
6930 (get_opd): Likewise.
6931 (get_plt): Likewise.
6932 (get_dlt): Likewise.
6933 (get_stub): Likewise.
6934 (elf64_hppa_adjust_dynamic_symbol): Likewise.
6935 (elf64_hppa_link_output_symbol_hook): Likewise.
6936 (elf64_hppa_check_relocs): Delete unused var.
6937 (elf64_hppa_size_dynamic_sections): Likewise.
6938 (elf64_hppa_finalize_opd): Likewise.
6939 (elf64_hppa_finalize_dynreloc): Likewise.
6940 (elf64_hppa_modify_segment_map): Likewise.
6941 (elf64_hppa_finish_dynamic_sections): Likewise.
6943 * elf-hppa.h (elf_hppa_final_write_processing): Add
6944 ATTRIBUTE_UNUSED to unused args.
6945 (elf_hppa_final_link_relocate): Likewise.
6946 (elf_hppa_record_segment_addrs): Add paretheses.
6947 (elf_hppa_relocate_section): Constify dyn_name.
6949 From David Huggins-Daines <dhd@linuxcare.com>
6950 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
6951 rearrange case statement so that it gets preferred to 32-bit ones.
6953 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
6954 asection->id instead of address of asection structure.
6955 (elf32_hppa_size_stubs): Likewise.
6957 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
6958 for .init* and .fini*.
6960 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
6961 and addends used in stub names to 32 bits.
6962 (elf32_hppa_size_stubs): Likewise.
6964 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
6965 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
6966 not bfd_put_64. Fix minor comment typo and formatting.
6968 Changes to create multiple linker stubs, positioned immediately
6969 before the section where they are required.
6970 * elf32-hppa.c: Don't include hppa_stubs.h.
6971 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
6972 (elf32_hppa_stub_hash_table): Delete.
6973 (elf32_hppa_link_hash_entry): Delete.
6974 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
6975 stub_hash_table, and store the struct here rather than a pointer.
6976 Delete output_symbol_count. Add offset array. Change
6977 global_value to a bfd_vma.
6978 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
6979 (elf32_hppa_stub_hash_traverse): Delete.
6980 (elf32_hppa_name_of_stub): Delete.
6981 (elf32_hppa_link_hash_lookup): Delete.
6982 (elf32_hppa_link_hash_traverse): Delete.
6983 (elf32_hppa_stub_hash_table_init): Delete.
6984 (elf32_hppa_size_of_stub): Pass input section and offset rather
6985 than location and calculate location here. Don't pass name as all
6986 stubs are now the same size.
6987 (elf32_hppa_stub_hash_newfunc): Init new fields.
6988 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
6990 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
6991 comparing against ints. Rewrite stub handling code.
6992 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
6993 Case enums to int before comparing against ints. Remove
6994 bfd_reloc_dangerous case.
6995 (elf32_hppa_build_one_stub): Rewrite.
6996 (elf32_hppa_size_one_stub): New function.
6997 (elf32_hppa_build_stubs): Rewrite.
6998 (elf32_hppa_size_stubs): Pass in linker call-back functions.
6999 Rewrite stub-handling specific code.
7001 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
7003 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
7005 * hppa_stubs.h: Delete.
7006 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
7007 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
7008 * Makefile.in: Regenerate.
7010 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
7013 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
7015 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
7016 and section name for bfd_reloc_notsupported error message.
7017 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
7018 bfd_reloc_notsupported.
7019 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
7021 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
7022 undefined weak symbols for all relocs.
7023 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
7024 offsets are relative to one past the delay slot.
7025 (elf32_hppa_size_stubs): Account for reloc addend when calculating
7026 branch destination. Put addend into stub name too.
7027 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
7028 adjust by 8 when deciding whether a linker stub is needed. Put
7029 addend into stub name as for above.
7031 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
7032 various args and vars.
7033 (elf32_hppa_bfd_final_link_relocate): Here too.
7034 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
7035 inner block var to avoid shadowing.
7037 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
7039 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
7040 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
7041 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
7043 * libhppa.h: Change practically all unsigned ints to plain ints.
7044 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
7047 From Ryan Bradetich <rbradetich@uswest.net>
7048 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
7049 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
7051 From David Huggins-Daines <dhd@linuxcare.com>
7052 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
7053 to the new OP_* ones.
7055 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
7056 error exit. Bail out earlier on plabel relocs that we aren't
7057 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
7058 string, and then don't free our copy.
7059 (elf32_hppa_build_one_stub): Make insn unsigned int.
7061 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
7062 available with BL, not BE and BLE.
7064 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
7065 code for elf arg relocs.
7066 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
7067 argument with elf_link_hash_entry h. Handle undefined weak
7068 symbols. Move $global$ lookup from here...
7069 (elf32_hppa_relocate_section): ...to here. Return correct error
7070 message for non-handled relocs.
7071 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
7072 wrong test was -0x3ffff to +0x40000.
7074 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
7075 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
7076 Handle them as such.
7077 (elf_hppa_relocate_insn): Fix a typo.
7079 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
7080 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
7081 assemble_17, assemble_21): Delete.
7082 Supply defines for all 64 possible opcodes.
7083 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
7084 formats. Handle COMICLR.
7085 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
7088 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
7089 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
7090 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
7092 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
7093 the local syms - did this code get deleted accidentally? Ignore
7094 undefined and undefweak syms.
7096 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
7097 block. Use it instead of elf64_hppa_hash_table (info).
7098 (elf_hppa_final_link_relocate): Use hppa_info instead of
7099 elf64_hppa_hash_table (info).
7101 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
7102 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
7103 (hppa_rebuild_insn): Mask immediate bits here instead.
7104 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
7106 2000-07-08 Alan Modra <alan@linuxcare.com.au>
7108 * section.c (struct sec): Add id field. Tidy comment formatting.
7109 (bfd_make_section_anyway): Set id.
7110 (STD_SECTION): Init id too.
7111 Change CONST to const throughout.
7112 * archures.c (bfd_arch_info): Tidy comment.
7113 (bfd_arch_list): Change a CONST to const.
7114 * libbfd-in.h: Tidy comments and replace CONST with const.
7115 * elf-bfd.h: Likewise.
7116 * libbfd.h: Regenerate.
7117 * bfd-in2.h: Regenerate.
7118 * libcoff.h: Regenerate.
7120 2000-07-07 DJ Delorie <dj@redhat.com>
7122 * archive.c (_bfd_write_archive_contents): Add an informative
7125 2000-07-06 Kazu Hirata <kazu@hxi.com>
7127 * srec.c: Fix formatting.
7129 2000-06-05 DJ Delorie <dj@redhat.com>
7133 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
7135 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
7136 value of PC-relative offsets.
7138 2000-07-03 Jim Wilson <wilson@cygnus.com>
7140 * elf64-alpha.c (alpha_elf_size_info): New.
7141 (elf_backend_size_info): Define to alpha_elf_size_info.
7142 * elfcode.h (elf_size_info): Change hash bucket size to 4.
7144 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
7146 * elf32-mips.c: Include elf32-target.h again for the traditional
7149 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
7151 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
7152 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
7153 (avr_info_to_howto_rela): Likewise.
7154 (elf32_avr_gc_mark_hook): Likewise.
7155 (elf32_avr_gc_sweep_hook): Likewise.
7156 (elf32_avr_relocate_section): Likewise.
7158 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
7160 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
7161 an external symbol for a non-shared, non-relocatable link.
7163 2000-07-03 Nick Clifton <nickc@redhat.com>
7165 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
7166 is an external symbol.
7167 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
7170 2000-07-03 Kazu Hirata <kazu@hxi.com>
7172 * reloc16.c: Fix formatting.
7174 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
7176 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
7177 to add a new target for traditional mips i.e
7178 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
7179 * configure.in: Likewise.
7180 * configure: Rebuild.
7181 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
7183 (bfd_elf32_tradlittlemips_vec): Likewise.
7184 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
7185 to see that elfNN_bed does not get redefined even if the target file
7186 is included twice for a chip. See elf32-mips.c.
7188 2000-07-01 Alan Modra <alan@linuxcare.com.au>
7190 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
7191 (CLEANFILES): Add DEPA.
7192 * Makefile.in: Regenerate.
7194 2000-06-30 DJ Delorie <dj@cygnus.com>
7196 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
7197 can't assume the PE header is at 0x80.
7199 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
7201 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
7203 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
7205 * go32stub.h: Update stub.
7207 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
7209 * archures.c (bfd_mach_avr5): Define.
7210 * bfd-in2.h (bfd_mach_avr5): Define.
7211 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
7212 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
7213 (compatible): Update comment. Add missing test.
7214 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
7215 for avr2 and avr4. Simplify 8K wrap code.
7216 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
7217 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
7219 2000-06-26 Kazu Hirata <kazu@hxi.com>
7221 * coff-h8300.c: Fix formatting.
7222 * cpu-h8300.c: Likewise.
7224 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
7226 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
7227 for local symbols whose names are unknown.
7229 2000-06-22 Alan Modra <alan@linuxcare.com.au>
7231 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
7233 * Makefile.in: Regenerate.
7234 * doc/Makefile.in: Regenerate.
7236 2000-06-20 H.J. Lu <hjl@gnu.org>
7238 * Makefile.am: Rebuild dependency.
7239 * Makefile.in: Rebuild.
7241 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7243 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
7244 (elf_backend_copy_indirect_symbol): Map to the new function.
7246 2000-06-20 Alan Modra <alan@linuxcare.com.au>
7248 * archive.c (normalize): Correct pointer comparison when checking
7250 (bfd_bsd_truncate_arname): Likewise.
7251 (bfd_gnu_truncate_arname): Likewise.
7253 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
7255 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
7256 sections elf_{text,data}_{section,symbol}.
7257 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
7258 (_bfd_mips_elf_hide_symbol): New function.
7259 (elf_backend_hide_symbol): Map to the new function.
7260 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
7261 definitions of mips_elf_{text,data}_{section,symbol}.
7262 (mips_elf_local_relocation_p): Try to find the direct symbol
7263 based on new check_forced argument.
7264 (mips_elf_calculate_relocation): Use new version of
7265 mips_elf_local_relocation_p.
7266 (mips_elf_relocate_section): Likewise.
7267 (_bfd_mips_elf_relocate_section): Likewise.
7268 (mips_elf_sort_hash_table): Only assert that have enough GOT
7270 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
7271 entry if the relocation based on the new external argument.
7272 (mips_elf_create_dynamic_relocation): Assert that we have a
7273 section contents allocated where we can swap out the dynamic
7275 (mips_elf_calculate_relocation): Find the real hash-table entry
7276 correctly by using h->root.root.type. Only create a dynamic
7277 relocation entry if the symbol is defined in a shared library.
7278 Create an external GOT entry for the GOT16 relocation if the
7279 symbol was forced local.
7280 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
7281 dynamic index if the symbol was forced local.
7283 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7285 * elf32-mips.c: Fix typos in comments.
7287 2000-06-19 Mark Kettenis <kettenis@gnu.org>
7289 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
7292 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
7294 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
7295 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
7296 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
7297 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
7298 (bfd_elf32_m68hc11_vec): Likewise.
7299 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
7300 Supports 68hc11 & 68hc12 at the same time.
7301 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
7303 (bfd_elf32_m68hc11_vec): Likewise.
7304 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
7305 * archures.c (bfd_m68hc12_arch): Define and register in global list
7306 (bfd_m68hc11_arch): Likewise.
7307 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
7308 BFD_RELOC_M68HC11_3B): Define.
7309 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
7310 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
7312 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
7314 * elf_bfd.h (struct elf_backend_data): Add info argument to
7315 elf_backend_hide_symbol.
7316 (_bfd_elf_link_hash_hide_symbol): Likewise.
7317 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
7318 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
7319 * elflink.h (elf_link_add_object_symbols): Likewise.
7320 (elf_link_assign_sym_version): Likewise.
7322 2000-06-18 H.J. Lu <hjl@gnu.org>
7324 * coff-i386.c (coff_i386_reloc): Don't return in case of
7325 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
7326 Compensate PE relocations when linking with non-PE object
7327 files to generate a non-PE executable.
7329 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
7331 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
7332 GOT entries if we're doing a static link or -Bsymbolic link.
7334 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
7336 * elflink.h (elf_link_adjust_relocs): Check for and call backend
7337 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
7339 (elf_link_output_relocs): Likewise.
7340 (elf_reloc_link_order): Likewise.
7342 2000-06-16 Nicholas Duffek <nsd@redhat.com>
7344 * archures.c (enum bfd_architecture): #define constants for
7345 PowerPc and RS6000 machine numbers.
7346 * bfd-in2.h: Regenerate.
7347 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
7348 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
7349 and RS6000 machine numbers using #defined constants from
7351 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
7352 machine numbers using #defined constants from archures.c. Add
7353 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
7354 64-bit words in 620 entry.
7355 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
7357 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
7359 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
7361 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
7362 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
7363 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
7365 2000-06-16 Nicholas Duffek <nsd@redhat.com>
7367 * bfd-in.h (bfd_family_coff): Define.
7368 * bfd-in2.h: Regenerate.
7369 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
7370 coff_find_nearest_line): Check COFFness using bfd_family_coff()
7371 instead of bfd_target_coff_flavour.
7372 * cofflink.c (_bfd_coff_final_link): Likewise.
7373 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
7374 exclude XCOFF files.
7375 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7377 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
7378 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
7379 * xcofflink.c (XCOFF_XVECP): Delete.
7380 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
7381 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
7382 bfd_xcoff_record_link_assignment,
7383 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
7384 check for bfd_target_xcoff_flavour.
7386 2000-06-16 Nicholas Duffek <nsd@redhat.com>
7388 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
7390 (read_hdr): New function.
7391 (rs6000coff_core_p): Store mstsave or __context64 struct instead
7392 of trying to extract individual registers. Set abfd->arch_info
7393 to match the architecture that created the core file.
7394 (rs6000coff_get_section_contents): Delete.
7395 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
7397 2000-06-14 H.J. Lu <hjl@gnu.org>
7399 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
7402 2000-06-13 H.J. Lu <hjl@gnu.org>
7404 * configure: Regenerate.
7406 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
7408 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
7411 2000-06-08 David O'Brien <obrien@FreeBSD.org>
7413 * configure.in (VERSION): Update to show this is the CVS mainline.
7415 2000-06-07 Alan Modra <alan@linuxcare.com.au>
7417 * elf32-d10v.c: Include elf/d10v.h
7418 (enum reloc_type): Delete.
7419 * elf32-d30v.c: Include elf/d30v.h
7420 (enum reloc_type): Delete.
7422 * Makefile.am: Run "make dep-am" to regenerate dependencies.
7423 * Makefile.in: Regenerate.
7425 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
7426 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
7427 move HOWTOs into elf_howto_table.
7428 (R_386_standard, R_386_ext_offset): Define.
7429 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
7430 (elf_i386_reloc_type_lookup): Modify calculation of index into
7431 elf_howto_table since we've removed the padding.
7432 (elf_i386_info_to_howto_rel): Likewise.
7433 (elf_i386_relocate_section): Likewise.
7435 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
7437 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
7439 2000-06-05 H.J. Lu <hjl@gnu.org>
7441 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
7442 an error when seeing an undefined symbol with hidden/internal
7443 attribute. It is handled in *_relocate_section ().
7445 2000-06-05 H.J. Lu <hjl@gnu.org>
7447 * elflink.h (elf_fix_symbol_flags): Follow the link for the
7448 indirect symbol for the ELF_LINK_NON_ELF bit.
7449 (elf_link_output_extsym): Don't output the indirect symbol even
7450 if the ELF_LINK_NON_ELF bit is set.
7452 2000-06-01 J.T. Conklin <jtc@redback.com>
7454 * config.bfd (i[3456]86-*-netbsdelf*): New target.
7455 (i[3456]86-*-netbsdaout*): New target.
7456 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
7457 (i[3456]86-*-openbsd*): Likewise.
7459 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
7461 * trad-core.c: From hpux-core.c, include <dirent.h> or
7462 <sys/ndir.h> when possible.
7464 2000-05-31 Ulrich Drepper <drepper@redhat.com>
7466 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
7467 definitions. We must not assume they are sorted in the file
7468 according to their index numbers.
7470 2000-05-31 Alan Modra <alan@linuxcare.com.au>
7472 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
7473 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
7474 R_PARISC_DIR17F are for absolute branches; Handle them as such.
7476 2000-05-30 Nick Clifton <nickc@cygnus.com>
7478 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
7479 80960CA, 80960MC as valid machine names.
7481 2000-05-30 H.J. Lu <hjl@gnu.org>
7483 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
7484 visibility bits if the symbol is undefined. Correctly handle
7485 weak undefined symbols with hidden and internal attributes.
7487 * elflink.h (elf_link_add_object_symbols): Always turn the
7488 symbol into local if it has the hidden or internal attribute.
7490 2000-05-29 Philip Blundell <philb@gnu.org>
7492 * ppcboot.c: Add packed attribute if compiling with GCC.
7494 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
7496 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
7498 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
7500 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
7501 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
7502 corefile on a 64-bit (Sparc Solaris) host. Also clean up
7505 2000-05-26 Alan Modra <alan@linuxcare.com.au>
7507 * Makefile.am: Update dependencies with "make dep-am"
7508 * Makefile.in: Regenerate.
7510 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
7511 bindtextdomain): Replace defines with those from intl/libgettext.h
7512 to quieten gcc warnings.
7514 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
7516 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
7518 * archive.c (normalize, bfd_bsd_truncate_arname,
7519 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
7520 file names with backslashes.
7522 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
7525 * sysdep.h: Include filenames.h.
7527 2000-05-26 Alan Modra <alan@linuxcare.com.au>
7529 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
7531 2000-05-26 Jakub Jelinek <jakub@redhat.com>
7533 * elf64-sparc.c (sparc64_elf_relax_section): New.
7534 (sparc64_elf_relocate_section): Optimize tail call into branch always
7536 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7537 (elf32_sparc_relax_section): New.
7539 2000-05-26 Jakub Jelinek <jakub@redhat.com>
7541 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
7542 Remove unusued variables.
7543 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
7544 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
7545 previous fix, so that shared libs really don't influence targets
7546 extension mask and memory model.
7548 2000-05-23 H.J. Lu <hjl@gnu.org>
7550 * elf64-alpha.c (elf64_alpha_relocate_section): Check
7551 h->root.other not h->other.
7552 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7554 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
7556 2000-05-23 H.J. Lu <hjl@gnu.org>
7558 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
7559 undefined symbol with the non-default visibility attributes.
7560 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
7561 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7562 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7563 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7564 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7565 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7566 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7567 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7568 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7569 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
7570 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7572 2000-05-22 Richard Henderson <rth@cygnus.com>
7574 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
7575 PCREL22, PCREL64I. Zero size of special relocs.
7576 (elf64_ia64_reloc_type_lookup): Likewise.
7577 (USE_BRL, oor_brl, oor_ip): New.
7578 (elf64_ia64_relax_section): New.
7579 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
7580 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
7581 (elf64_ia64_relocate_section): Likewise.
7582 (bfd_elf64_bfd_relax_section): New.
7583 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
7584 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
7585 * bfd-in2.h, libbfd.h: Regenerate.
7587 2000-05-22 Nick Clifton <nickc@cygnus.com>
7589 * configure.in : Add peigen.lo to MIPS PE targets.
7590 * configure: Regenerate.
7592 2000-05-22 Momchil Velikov <velco@fadata.bg>
7594 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
7595 only if it is known for both input and output bfds. Separate
7596 error message strings as in some languages, it may be necessary
7597 to change more than one place in the string to change between
7600 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
7601 endianess checks, call _bfd_generic_verify_endian_match() instead.
7603 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
7605 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
7607 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
7608 endianess before checking bfd flavours.
7610 2000-05-22 H.J. Lu <hjl@gnu.org>
7612 * elflink.h (elf_link_output_extsym): Clear the visibility
7613 field for symbols not defined locally.
7615 2000-05-18 Alan Modra <alan@linuxcare.com.au>
7617 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
7618 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
7619 (hppa_rebuild_insn): Mask immediate bits here instead.
7620 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
7622 2000-05-18 Momchil Velikov <velco@fadata.bg>
7624 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
7625 relocs for an executable, ensure that they are virtual addresses.
7627 2000-05-18 Jeffrey A Law (law@cygnus.com)
7629 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
7631 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
7632 Rick Gorton <gorton@scrugs.lkg.dec.com>
7634 * elflink.h: Add emitrelocations support: when enabled, relocation
7635 information and relocation sections are put into final output
7636 executables. If the emitrelocations flag is set, do the following:
7637 (elf_bfd_final_link): Emit relocation sections.
7638 (elf_link_input_bfd): Compute relocation section contents.
7639 (elf_gc_sections): Don't clean relocation sections.
7641 2000-05-16 Catherine Moore <clm@cygnus.com>
7643 * som.c (som_decode_symclass): Recognize weak symbols.
7645 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
7647 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
7648 read idata section only from dataoff.
7649 (pe_print_edata): Correctly check for valid eat_member.
7651 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
7653 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
7655 2000-05-14 Philip Blundell <philb@gnu.org>
7657 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
7659 2000-05-12 Alan Modra <alan@linuxcare.com.au>
7661 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
7663 * peigen.c (pe_print_idata): Look for .idata section and print
7664 info even if data directory has zero entries. Read idata section
7665 starting from dataoff, and adjust all data offsets to suit. Cast
7666 all bfd_vma vars to unsigned long before passing to fprintf.
7667 * peigen.c (pe_print_edata): Similarly, look for .edata section
7668 and print info even if data directory has zero entries. Cast
7669 all bfd_vma vars to unsigned long before passing to fprintf.
7671 From Szabolcs Szakacsits <szaka@F-Secure.com>
7672 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
7673 directory size which may be bogus.
7674 * peigen.c (pe_print_edata): Similarly.
7676 2000-05-09 Alan Modra <alan@linuxcare.com.au>
7678 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
7680 (copy_private_bfd_data): Allow for space possibly taken up by elf
7681 headers when calculating segment physical address from lma.
7683 2000-05-08 Alan Modra <alan@linuxcare.com.au>
7685 * versados.c (versados_scan): Init stringlen and pass_2_done.
7687 * trad-core.c (trad_unix_core_file_p): Return
7688 bfd_error_wrong_format rather than bfd_error_file_truncated.
7690 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
7691 add_data_entry. DataDirectory virtual address is relative.
7692 (pe_print_idata): Account for relative DataDirectory virtual
7693 addresses. Don't trash datasize inside POWERPC_LE_PE code.
7694 (pe_print_edata): Similarly.
7696 From Szabolcs Szakacsits <szaka@F-Secure.com>
7697 * peigen.c (dir_names): Add Delay Import Directory.
7698 (pe_print_idata): Always search for bfd section containing
7699 idata address rather than looking up section name. Print this
7700 section name rather than .idata.
7701 (pe_print_edata): Similarly. Also print some fields as %08lx.
7702 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
7705 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7707 * xcoff.h: Rename to xcoff-target.h
7708 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
7709 * coff-rs6000.c: Ditto.
7710 * coff64-rs6000.c: Ditto.
7711 * coff-pmac.c: Ditto.
7712 * Makefile.in: Regenerate.
7714 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7716 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
7717 Change U802TOC64MAGIC to U803XTOCMAGIC.
7719 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
7721 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
7722 * bfd-in.h: Prototype bfd_elf_get_arch_size.
7723 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
7725 2000-05-04 Alan Modra <alan@linuxcare.com.au>
7727 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
7729 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
7731 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
7732 hidden and internal symbols.
7733 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
7735 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
7736 assign a PLT or GOT entry to symbols with hidden and
7737 internal visibility.
7739 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
7741 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
7743 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
7745 2000-05-02 H.J. Lu <hjl@gnu.org>
7747 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
7750 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7752 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
7753 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
7755 * Makefile.in: Regenerate.
7757 2000-05-01 Jim Wilson <wilson@cygnus.com>
7759 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
7760 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
7761 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
7762 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
7763 * Makefile.in: Rebuild.
7765 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7767 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
7768 doesn't work very well.
7770 * elf-hppa.h (elf_hppa_internal_shdr): Define.
7771 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
7772 Set hdr->s_type to 1 if ARCH_SIZE == 32.
7773 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
7774 (elf_hppa_info_to_howto): Likewise.
7775 (elf_hppa_info_to_howto_rel): Likewise.
7776 (elf_hppa_reloc_type_lookup): Likewise.
7777 (elf_hppa_is_local_label_name): Likewise.
7778 (elf_hppa_fake_sections): Likewise.
7779 (elf_hppa_final_write_processing): Likewise.
7780 (elf_hppa_howto_table): Fully initialise all entries.
7781 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
7782 (elf_hppa_info_to_howto): Likewise.
7783 (elf_hppa_info_to_howto_rel): Likewise.
7784 (elf_hppa_reloc_type_lookup): Likewise.
7785 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
7786 elf_hppa_unmark_useless_dynamic_symbols,
7787 elf_hppa_remark_useless_dynamic_symbols,
7788 elf_hppa_record_segment_addrs, elf_hppa_final_link,
7789 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
7790 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
7791 elf32-hppa.c mess is cleaned up.
7792 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
7793 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
7794 r_field then call hppa_field_adjust inline func with variable
7795 r_field arg, instead call hppa_field_adjust with fixed arg.
7796 In case R_PARISC_PCREL22F, don't set r_field.
7797 (elf_hppa_relocate_insn): Change args and return type to unsigned
7798 int. Call re_assemble_* funcs to do the work.
7800 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
7803 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
7805 (sign_extend): Mask first before sign extending.
7806 (low_sign_extend): Rewrite without condition expression.
7807 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
7808 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
7809 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
7810 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
7811 result as function return value rather than through pointer arg.
7812 Accept unsigned int args, and return unsigned int.
7813 (re_assemble_3): New. Combines function of dis_assemble_3 with
7814 re-assembly of opcode and immediate.
7815 (re_assemble_12): Likewise.
7816 (re_assemble_16): Likewise.
7817 (re_assemble_17): Likewise.
7818 (re_assemble_21): Likewise.
7819 (re_assemble_22): Likewise.
7820 (hppa_field_adjust): Rewrite and document, paying attention to
7821 size of types and signed/unsigned issues.
7822 (get_opcode): Shift before masking.
7823 (FDLW): Rename to FLDW.
7824 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
7825 (hppa_rebuild_insn): Change args and return value to unsigned
7826 int. Make use of re_assemble_*. Correct case 11.
7828 * dep-in.sed: Handle ../opcodes/.
7829 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
7830 elf64-hppa.h, hppa_stubs.h, xcoff.h.
7831 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
7832 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
7833 elfarm-nabi.lo dependencies outside of auto-dependency area.
7834 Regenerate dependencies.
7835 * Makefile.in: Regenerate.
7837 * configure.in (TRAD_HEADER): Test non-null before
7839 * configure: Regenerate.
7841 * reloc.c: Fix mis-spelling in comment.
7843 2000-05-01 Alan Modra <alan@linuxcare.com.au>
7845 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
7846 * vms.c (vms_openr_next_archived_file): Return NULL.
7848 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7850 * coffcode.h Copy changes mistakenly done to libcoff.h in
7853 2000-04-29 Andreas Jaeger <aj@suse.de>
7855 * libbfd-in.h: Correctly check GCC version.
7856 * bfd-in.h: Likewise.
7857 * libhppa.h: Likewise.
7858 * libbfd.h: Regenerate.
7859 * bfd-in2.h: Regenerate.
7861 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7863 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
7864 coffdu-rs6000.{lo,c}.
7865 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
7867 * Makefile.in: Regenerate.
7868 * xcoff.h: New file.
7869 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
7870 * coff-rs6000.c: Move all declarations and defines that are
7871 common to the xcoff backends into xcoff.h
7872 * coff64-rs6000.c: Ditto,
7874 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7876 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
7877 _bfd_coff_force_symnames in strings and
7878 _bfd_coff_debug_string_prefix_length to their default values.
7879 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
7881 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7883 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
7884 _bfd_coff_force_symnames in strings and
7885 _bfd_coff_debug_string_prefix_length to their default values.
7887 2000-04-27 Alan Modra <alan@linuxcare.com.au>
7889 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
7890 Check local_got_refcounts before dereferencing.
7892 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
7893 before deciding we don't need R_PPC_PLT32 relocation.
7894 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
7897 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
7899 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
7901 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
7902 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
7903 (elf_i386_relocate_section): Allow for .plt to go missing.
7904 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
7905 can use a relative reloc for got as elf_i386_relocate_section.
7906 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
7908 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
7910 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
7912 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
7914 * Makefile.am (coff64-rs6000.lo): New rule.
7915 * Makefile.in: Regenerate.
7916 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
7917 xcoff_is_local_label_name, xcoff_rtype2howto,
7918 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
7919 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
7920 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
7921 (NO_COFF_SYMBOLS): Define.
7922 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
7923 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
7925 (MINUS_ONE): New macro.
7926 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
7928 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
7929 coff_SWAP_aux_out): Map to the new functions.
7930 * coff64-rs6000.c: New file.
7931 * libcoff.h (bfd_coff_backend_data): Add new fields
7932 _bfd_coff_force_symnames_in_strings and
7933 _bfd_coff_debug_string_prefix_length.
7934 (bfd_coff_force_symnames_in_strings,
7935 bfd_coff_debug_string_prefix_length): New macros for above fields.
7936 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
7937 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
7938 of using coff_swap_sym_in directly.
7939 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
7940 (coff_set_flags) Set magic for XCOFF64.
7941 (coff_compute_section_file_positions): Add symbol name length to
7942 string section length if bfd_coff_debug_string_prefix_length is
7944 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
7945 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
7946 using coff_swap_lineno_in directly.
7947 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
7948 and _bfd_coff_debug_string_prefix_length fields.
7949 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
7950 symbol names into strings table when
7951 bfd_coff_force_symnames_in_strings is true.
7952 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
7953 SET_RELOC_VADDR): New macros.
7954 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
7955 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
7957 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
7958 changes within RS6000COFF_C specific code.
7959 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
7960 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
7961 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7962 Extend existing hack on target name.
7963 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
7965 * coff-tic54x.c (ticof): Keep up to date with new fields
7966 in bfd_coff_backend_data.
7967 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
7968 targ_selvecs to include rs6000coff64_vec for rs6000.
7969 * configure.in: Add rs6000coff64_vec case.
7970 * cpu-powerpc.c: New bfd_arch_info_type.
7972 2000-04-24 Jeffrey A Law (law@cygnus.com)
7974 * config.bfd: Only disable elf32-hppa vectors, not all of the
7975 BSD and OSF configuration support. Provide (disabled) clauses
7977 * configure.in: Add clause for PA64 support.
7978 * configure: Rebuilt.
7980 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
7981 (bfd_elf64_hppa_vec): Declare.
7983 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
7984 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
7985 (elf64-hppa.lo): Add dependencies.
7986 * Makefile.in: Rebuilt.
7988 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
7990 2000-04-24 Jason Eckhardt <jle@cygnus.com>
7992 * libhppa.h (dis_assemble_16): New function.
7993 (pa_arch): Added pa20w element.
7995 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
7997 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
7998 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
7999 bfd_elf64_slurp_reloc_table.
8001 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
8002 definitions to get external names.
8003 (elf_write_relocs): Renamed from write_relocs and make global.
8004 (elf_slurp_reloc_table): Make global.
8005 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
8007 * archive.c (hpux_uid_gid_encode): New function.
8008 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
8009 defined and the ID is greater than 99999.
8010 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
8011 special uid/gid fields into 32 bit values.
8013 2000-04-21 Matthew Green <mrg@cygnus.com>
8015 * config.bfd: Add NetBSD/sparc64 support.
8017 2000-04-21 Richard Henderson <rth@cygnus.com>
8018 David Mosberger <davidm@hpl.hp.com>
8019 Timothy Wall <twall@cygnus.com>
8020 Jim Wilson <wilson@cygnus.com>
8022 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
8023 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
8024 (BFD64_BACKENDS): Add elf64-ia64.lo.
8025 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
8026 (cpu-ia64.lo, elf64-ia64.lo): New rules.
8027 * Makefile.in: Rebuild.
8028 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
8029 (bfd_ia64_arch): Declare.
8030 (bfd_archures_list): Add bfd_ia64_arch.
8031 * bfd-in2.h: Rebuild.
8032 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
8033 * configure: Rebuild.
8034 * configure.host: (ia64-*-linux*): New host.
8035 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
8036 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
8037 * elf.c (prep_headers): Add bfd_arch_ia64.
8038 * libbfd.h: Rebuild.
8039 * reloc.c: Add IA-64 relocations.
8040 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
8042 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
8043 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
8045 2000-04-21 Richard Henderson <rth@cygnus.com>
8047 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
8048 contents when performing a partial link.
8049 (bfd_elf_d30v_reloc_21): Likewise.
8051 2000-04-20 H.J. Lu <hjl@gnu.org>
8053 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
8054 patch to symbols defined by a shared object.
8055 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
8057 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
8060 * dwarf2.c (concat_filename): Avoid string literal concatenation.
8061 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
8063 2000-04-11 David Mosberger <davidm@hpl.hp.com>
8065 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
8066 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
8067 (coff-ia64.lo): Add dependency.
8068 * Makefile.in: Regenerate.
8069 * coff-ia64.c: New file.
8070 * efi-app-ia32.c: Ditto.
8071 * efi-app-ia64.c: Ditto.
8072 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
8073 (coff_set_flags): Ditto.
8074 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
8075 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
8076 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
8077 * configure: Regenerate.
8078 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
8079 (PUT_OPTHDR_IMAGE_BASE): Ditto.
8080 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
8081 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
8082 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
8083 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
8084 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
8085 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
8086 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
8087 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
8088 (GET_PDATA_ENTRY): Ditto.
8089 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
8090 data_start. Use above macros to read fields that are 64 bit wide for
8091 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
8092 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
8093 FileAlignment and SectionAlignment to minimum alignment if they
8095 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
8096 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
8097 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
8098 Use above macros to write fields that are 64 bit wide for
8100 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
8101 5*4 otherwise. This should be right for IA-32 and IA-64, but may
8102 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
8103 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
8104 begin address, end address, and unwind info address only. Use
8105 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
8107 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
8108 HIGH3ADJ relocation names.
8109 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
8110 * targets.c: Declare bfd_efi_app_ia32_vec and
8111 bfd_efi_app_ia64_vec.
8112 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
8113 bfd_efi_app_ia64_vec.
8115 2000-04-17 Timothy Wall <twall@cygnus.com>
8117 * bfd-in2.h: Add prototypes for tic54x load page access.
8118 * bfd-in.h: Regenerate.
8119 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
8120 in customized _set_arch_mach function.
8121 * coffcode.h (coff_set_alignment_hook): Set section load page if
8122 the appropriate macro is defined.
8123 (write_object_contents): Read section load page.
8125 2000-04-13 Alan Modra <alan@linuxcare.com.au>
8127 * elf32-hppa.h: Update copyright date.
8129 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
8130 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
8132 * elf32-d30v.c (MAX32): Don't use LL suffix.
8133 (MIN32): Define in terms of MAX32.
8134 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
8136 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
8139 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
8141 2000-04-12 Alan Modra <alan@linuxcare.com.au>
8143 * dep-in.sed: Match space before file name, not after.
8144 * Makefile.am: Regenerate dependencies.
8145 * Makefile.in: Regenerate.
8147 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
8148 case, allow address wrap-around stupidly removed 2000-03-17. Sign
8149 extend without an if statement.
8151 2000-04-11 Alan Modra <alan@linuxcare.com.au>
8153 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
8155 * elf32-mips.c (gprel16_with_gp): Likewise.
8156 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
8157 here using -0x40000, not (int)0xfffc0000.
8158 (elf32_hppa_size_of_stub): Likewise.
8160 2000-04-11 Timothy Wall <twall@cygnus.com>
8162 * coff-tic54x.c: Now builds with all targets.
8163 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
8164 * Makefile.in: Regenerate.
8165 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
8166 unitialized variable.
8168 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
8170 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
8171 --enable-build-warnings option.
8172 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
8173 * Makefile.in, configure: Re-generate.
8175 2000-04-07 Nick Clifton <nickc@cygnus.com>
8177 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
8178 BFD_RELOC_THUMB_PCREL_BLX.
8180 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
8181 R_ARM_XPC25 and R_ARM_THM_PC22.
8183 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
8184 R_ARM_XPC25 and R_ARM_THM_XPC22.
8185 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
8186 R_ARM_[XPC25|THM_XPC22].
8188 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
8189 elf/arm-oabi.h to elf/arm.h
8191 * Makefile.am: Fix dependency for elfarm-oabi.c
8192 * Makefile.in: Regenerate.
8194 * bfd-in2.h: Regenerate.
8195 * libbfd.h: Regenerate.
8197 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
8199 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
8200 and restore it on failure. Release newly allocated tdata on
8203 2000-04-07 Jim Wilson <wilson@cygnus.com>
8205 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
8206 (decode_line_info): Set it. Report error if unit->line_offset is
8207 equal to or larger than it.
8209 2000-04-07 Timothy Wall <twall@cygnus.com>
8211 * targets.c: Added vecs for tic54x.
8212 * reloc.c: Added relocs for tic54x.
8213 * libbfd.h: Regenerated.
8214 * configure: Add TI COFF vecs for tic54x.
8215 * configure.in: Ditto.
8216 * config.bfd (targ_cpu): Recognize new tic54x target.
8217 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
8218 * bfd-in2.h: Add tic54x target and relocations.
8219 * Makefile.am, Makefile.in: Add tic54x target.
8220 * archures.c (bfd_archures_list): Add tic54x target.
8221 * coff-tic54x.c: New.
8222 * cpu-tic54x.c: New.
8224 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
8226 * elfcore.h (elf_core_file_p): call backend_object_p which
8227 thereby gets an opportunity to update the arch/machine type.
8229 2000-04-06 Timothy Wall <twall@cygnus.com>
8231 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
8232 class. Handle SEC_CLINK and SEC_BLOCK flags.
8233 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
8234 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
8236 2000-04-06 Nick Clifton <nickc@cygnus.com>
8238 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
8239 EF_INTERWORK if this is an unknown EABI.
8240 (elf32_arm_merge_private_bfd_data): Check EABI version
8241 numbers. Only check EF_xxx flags if the EABI version number
8243 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
8244 if the EABI version number is unknown.
8245 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
8246 if the EABI version number is unknown.
8248 2000-04-05 J"orn Rennecke <amylaar@cygnus.co.uk>
8250 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
8251 BFD_RELOC_SH_LOOP_END.
8252 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
8253 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
8254 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
8255 (sh_elf_reloc_loop): New function.
8256 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
8258 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
8259 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
8260 * bfd-in2.h, libbfd.h: Regenerate.
8262 2000-04-04 Alan Modra <alan@linuxcare.com.au>
8264 * po/bfd.pot: Regenerate.
8266 * Makefile.am: Remove extraneous mkdep comment.
8267 (MKDEP): Use gcc -MM rather than mkdep.
8268 (DEP): Quote when passing vars to sub-make. Add warning
8270 (DEP1): Rewrite for "gcc -MM".
8271 (CLEANFILES): Add DEP2.
8272 Update dependencies.
8273 * Makefile.in: Regenerate.
8275 2000-04-03 Kevin Buettner <kevinb@redhat.com>
8277 * configure.in: Added corefile support for AIX 4.3. In particular,
8278 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
8279 compiling rs6000-core.c.
8280 * configure: Regenerated.
8282 2000-04-03 H.J. Lu <hjl@gnu.org>
8284 * cache.c (bfd_open_file): Unlink the output file only if
8285 it has non-zero size.
8287 2000-04-01 Ken Block USG <block@zk3.dec.com>
8289 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
8290 relative relocations for non-loaded sections in shared objects.
8291 (elf64_alpha_check_relocs): Similarly.
8293 2000-04-03 Hans-Peter Nilsson <hp@axis.com>
8295 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
8296 BFD_RELOC_16 to switch for extended relocs.
8297 (MY_swap_ext_reloc_in): New.
8298 (MY_swap_ext_reloc_out): New.
8299 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
8300 than NAME(aout,swap_ext_reloc_in) for extended relocs.
8301 (NAME(aout,squirt_out_relocs)): Similarly use
8302 MY_swap_ext_reloc_out.
8303 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
8305 2000-04-03 Kazu Hirata <kazu@hxi.com>
8307 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
8308 the R_PCRWORD_B case.
8310 2000-03-31 Thomas de Lellis <tdel@wrs.com>
8312 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
8316 2000-03-30 Donald Lindsay <dlindsay@cygnus.com>
8318 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
8319 HOWTO references to bfd_elf_generic_reloc, that have
8320 partial_inplace == true, now use the new function. The function
8321 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
8322 extends its fixes to the R_M32R_{16,24,32} relocs.
8323 The new logic in m32r_elf_lo16_reloc() has been removed, and
8324 it instead calls the new routine to obtain that functionality.
8326 2000-03-27 Alan Modra <alan@linuxcare.com.au>
8328 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
8329 elf32_avr_check_relocs, avr_final_link_relocate,
8330 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
8331 elf32_avr_object_p): Add prototypes.
8332 (elf32_avr_gc_mark_hook): Add default for h->root.type.
8333 (bfd_elf_avr_final_write_processing): Make static.
8335 2000-03-27 Denis Chertykov <denisc@overta.ru>
8337 * cpu-avr.c: New file. BFD support routines for AVR architecture.
8338 * archures.c (bfd_architecture): Add AVR architecture.
8339 (bfd_archures_list): Add reference to AVR architecture info.
8340 * elf.c (prep_headers): Handle bfd_arch_avr.
8341 * reloc.c: Add various AVR relocation enums.
8342 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
8344 * Makefile.am: Add support for AVR elf.
8345 * configure.in: Likewise.
8346 * config.bfd: Likewise.
8347 * Makefile.in: Regenerate.
8348 * configure: This too.
8349 * bfd-in2.h: And this.
8350 * libbfd.h: And this.
8352 2000-03-24 H.J. Lu <hjl@gnu.org>
8354 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
8355 (elf64_alpha_find_reloc_at_ofs): Likewise.
8357 2000-03-17 Alan Modra <alan@linuxcare.com.au>
8359 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
8360 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
8361 allowable range used to be -2**(n-1) to 2**n-1.
8362 * reloc.c (_bfd_relocate_contents): Same here. Also replace
8363 "boolean overflow" with "bfd_reloc_status_type flag".
8365 2000-03-14 Doug Evans <dje@casey.transmeta.com>
8367 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
8369 2000-03-14 Kazu Hirata <kazu@hxi.com>
8371 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
8372 of shrinks properly, including the last reloc.
8374 2000-03-13 Kazu Hirata <kazu@hxi.com>
8376 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
8379 2000-03-11 Alan Modra <alan@linuxcare.com.au>
8381 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
8382 a format mismatch rather than an "error" from bfd_read such as
8383 bfd_error_file_truncated.
8385 2000-03-10 Geoff Keating <geoffk@cygnus.com>
8387 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
8388 sign-extension and big-endian compensation for
8389 R_MIPS_64 even in ld -r.
8391 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
8393 * elf32-mips.c (mips_elf_next_relocation): Rename from
8394 mips_elf_next_lo16_relocation, and generalize to look
8395 for any relocation type.
8396 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
8397 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
8398 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
8399 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
8400 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
8401 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
8402 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
8403 (mips_rtype_to_howto): Likewise.
8404 (mips_elf_calculate_relocation): Handle new relocs.
8405 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
8406 are paired. The addend for R_MIPS_GNU_REL16_S2
8407 is shifted right two bits.
8409 2000-03-10 Alan Modra <alan@linuxcare.com.au>
8411 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
8412 comment, and ensure it doesn't happen again.
8413 (bfd_install_relocation): Same here.
8414 (_bfd_relocate_contents): Don't bother assigning unused signmask
8415 shift result. Fix typos in comments.
8416 Remove trailing whitespace throughout file.
8418 2000-03-07 Doug Evans <dje@casey.transmeta.com>
8420 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
8421 * bfd-in2.h: Rebuild.
8423 2000-03-06 Nick Clifton <nickc@cygnus.com>
8425 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
8427 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
8428 (SIZEOF_ILF_STRINGS): Redefine.
8429 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
8430 relative reloc, as opposed to a section relative reloc.
8431 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
8433 Add length of symbol's prefix to string pointer.
8434 Store a pointer to the symbol in the symbol pointer table.
8435 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
8436 Initialise the symbol pointer table.
8437 Store the hint in the Hint/Name table.
8438 Make the jump reloc be symbol realtive, not section relative.
8439 Create an import symbol for imported code.
8441 2000-03-06 Catherine Moore <clm@cygnus.com>
8443 * elf.c (swap_out_syms): Check for null type_ptr.
8445 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
8447 * aout-target.h (MY(write_object_contents)): Remove unused
8448 and unusable "#if CHOOSE_RELOC_SIZE".
8449 * pc532-mach.c (MY(write_object_contents)): Ditto.
8450 * netbsd.h (MY(write_object_contents)): Ditto.
8451 * hp300hpux.c (MY(write_object_contents)): Ditto.
8452 * freebsd.h (MY(write_object_contents)): Ditto.
8453 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
8455 2000-02-29 H.J. Lu <hjl@gnu.org>
8457 * peicode.h (jtab): Make it static.
8459 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
8460 defined and COFF_IMAGE_WITH_PE is not defined.
8461 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
8462 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
8464 2000-03-01 Nick Clifton <nickc@cygnus.com>
8466 * coff-arm.c (bfd_arm_process_before_allocation): Make
8467 'symndx' signed to prevent compile time warning.
8469 * coff-mcore.c: Remove unused prototype for pe_object_p.
8471 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
8472 functions that are not used when COFF_IMAGE_WITH_PE is
8474 (struct sh_opcode): Change type of 'flags' field to unsigned
8475 long so that it can hold the USESAS flag.
8477 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
8479 * elf-m10300.c (mn10300_elf_relax_section): Initialise
8482 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
8484 Remove unusued variables and code.
8485 (elf_backend_add_symbol_hook): Fix prototype.
8487 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
8490 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
8493 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
8495 Remove unusued variables and code.
8496 (elf_backend_add_symbol_hook): Fix prototype.
8498 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
8500 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
8501 to unused function parameter.
8503 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
8505 Use EMPTY_HOWTO to initialise empty howto slots.
8506 Remove unused variables.
8508 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
8510 2000-03-01 H.J. Lu <hjl@gnu.org>
8512 * aoutx.h (aout_link_input_section_std): Pass "true" to
8513 the undefined_symbol callback.
8514 (aout_link_input_section_ext): Likewise.
8515 * bout.c (get_value): Likewise.
8516 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
8517 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
8519 (alpha_relocate_section): Likewise.
8520 * coff-arm.c (coff_arm_relocate_section): Likewise.
8521 * coff-i960.c (coff_i960_relocate_section): Likewise.
8522 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
8523 * coff-mips.c (mips_relocate_section): Likewise.
8524 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
8525 * coff-sh.c (sh_relocate_section): Likewise.
8526 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
8527 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
8528 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
8529 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
8530 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
8531 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
8532 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
8533 * elf32-i370.c (i370_elf_relocate_section): Likewise.
8534 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
8535 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
8536 * elf32-sh.c (sh_elf_relocate_section): Likewise.
8537 * elf32-v850.c (v850_elf_relocate_section): Likewise.
8538 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
8539 * elflink.h (elf_link_output_extsym): Likewise.
8540 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
8541 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
8542 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
8544 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
8545 undefined_symbol callback when building shared library with
8546 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
8548 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
8549 * elf32-i386.c (elf_i386_relocate_section): Likewise.
8550 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
8551 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
8552 (elf32_mips_get_relocated_section_content): Likewise.
8553 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
8554 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
8555 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
8556 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
8558 2000-02-28 Nick Clifton <nickc@cygnus.com>
8560 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
8561 * Makefile.in: Regenerate.
8563 * configure.in: Add support for mips and sh pe vectors.
8564 * configure: regenerate.
8566 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
8569 * targets.c: Add mips and sh pe vectors.
8571 * libpei.h (coff_final_link_postscript): Only define if not
8574 * coffcode.h: Add support for WinCE magic numbers.
8576 * peigen.c (pe_print_reloc): Update comment and rearrange
8577 appending of newline character.
8579 * peicode.h: Add support for Image Library Format.
8580 (pe_ILF_vars): Structure containing data used by ILF code.
8581 (pe_ILF_make_a_section): New function. Create a section based
8583 (pe_ILF_make_a_reloc): New function. Create a reloc based on
8585 (pe_ILF_make_a_symbol): New function. Create a symbol based
8587 (pe_ILF_save_relocs): New function. Store the relocs created
8588 by pe_ILF_make_a_reloc in a section.
8589 (pe_ILF_build_a_bfd): New function. Create a BFD describing
8591 (pe_ILF_object_p): New function. Return a bfd_target pointer
8593 (pe_bfd_object_p): If an ILF object is detected call
8594 pe_ILF_object_p on it.
8596 * coff-arm.c: Add support for WinCE relocs which are different
8597 from normal ARM COFF relocs.
8598 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
8600 * coff-sh.c: Add support for sh-pe target.
8601 * pe-sh.c: New file. Support code for sh-pe target.
8602 * pei-sh.c: New file. Support code for sh-pe target.
8604 * pe-mips.c: New file. Support code for mips-pe target.
8605 * pei-mips.c: New file. Support code for mips-pe target.
8607 2000-02-27 Jakub Jelinek <jakub@redhat.com>
8609 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
8610 architecture if the object causing the bump is dynamic.
8611 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
8612 and also don't it for memory ordering.
8613 (sparc64_elf_write_relocs): Take src_rela out of the loop.
8615 2000-02-27 Ian Lance Taylor <ian@zembu.com>
8617 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
8618 calling bfd_get_section_size_before_reloc.
8619 (decode_line_info): Likewise.
8620 (_bfd_dwarf2_find_nearest_line): Likewise.
8622 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
8624 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
8625 name of the libtool directory.
8626 * Makefile.in: Rebuild.
8628 2000-02-25 Rodney Brown (RodneyBrown@pmsc.com)
8630 * som.c (SOM_HOWTO): Define.
8631 (som_hppa_howto_table): Use it.
8633 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8635 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
8637 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
8639 2000-02-24 Catherine Moore <clm@cygnus.com>
8641 * som.c (som_misc_symbol_info): Add field
8643 (som_bfd_derive_misc_symbol_info): Initialize
8645 (som_build_and_write_symbol_table): Keep track
8646 of secondary_def field.
8647 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
8648 if secondary_def field is set.
8649 (som_bfd_ar_write_symbol_stuff): Initialize
8652 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
8654 * dwarf2.c (read_address): Read 16-bits addresses.
8655 (parse_comp_unit): Accept addr_size == 2.
8657 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
8659 * bfd-in.h: Update copyright date.
8661 2000-02-23 Linas Vepstas <linas@linas.org>
8663 * cpu-i370.c: New file.
8664 * elf32-i370.c: New file.
8665 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
8666 (bfd_i370_arch): New.
8667 (bfd_archures_list): Add bfd_i370_arch.
8668 * elf.c (prep_headers): Add bfd_arch_i370.
8669 * Makefile.am: Add support for IBM 370 elf.
8670 * config.bfd: Likewise.
8671 * configure.in: Likewise.
8672 * libbfd.h (bfd_reloc_code_real_names): Likewise.
8673 * reloc.c (bfd_reloc_code_type): Likewise.
8674 * targets.c: Likewise.
8676 * Makefile.in: Regenerate.
8677 * configure: Regenerate.
8678 * bfd-in2.h: Regenerate.
8680 2000-02-22 Ian Lance Taylor <ian@zembu.com>
8682 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
8683 invalid relocation types, and change them to R_386_NONE.
8685 2000-02-22 H.J. Lu <hjl@gnu.org>
8687 * elflink.h (elf_link_add_object_symbols): If a version symbol is
8688 not defined, don't add a second ELF_VER_CHR.
8690 * elflink.h (elf_bfd_final_link): Call output_extsym for global
8691 symbols converted to local symbols even when stripping all
8693 (elf_link_output_extsym): Process global symbols converted to
8694 local symbols even if they are being stripped.
8696 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
8698 * archures.c (bfd_octets_per_byte): Return unsigned int.
8699 (bfd_arch_mach_octets_per_byte): Ditto.
8700 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
8702 * section.c (bfd_get_section_size_before_reloc): Quell signed
8703 vs. unsigned comparison warning.
8704 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
8705 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
8706 change. What was I thinking?
8707 * bfd-in2.h: Regenerate.
8709 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
8710 (elf_gc_sections): Same here.
8711 (elf_gc_common_finalize_got_offsets): And here.
8713 2000-02-21 Ian Lance Taylor <ian@zembu.com>
8715 ELF HPPA doesn't work at present; remove it until it does.
8716 * config.bfd: Comment out setting targ_defvec to
8718 * Makefile.am: Rebuild dependencies.
8719 (BFD32_BACKENDS): Remove elf32-hppa.lo.
8720 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
8721 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
8722 * Makefile.in: Rebuild.
8723 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
8725 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8727 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
8728 is no bfd_free(). Revert bfd_free part of previous change.
8730 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8732 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
8734 (coff_compute_section_file_positions): Use bfd_free to pair
8736 (coff_write_object_contents): Likewise.
8738 * coff-rs6000.c (xcoff_howto_table_16): New variable.
8739 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
8741 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
8743 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
8744 (xcoff_ar_file_hdr_big): New structure.
8745 (SIZEOF_AR_FILE_HDR_BIG): New macro.
8746 (xcoff_ar_hdr_big): New structure.
8747 (SIZEOF_AR_HDR_BIG): New macro.
8748 (xcoff_big_format_p): New macro.
8749 (xcoff_ardata_big): New macro.
8750 (arch_xhdr_big): New macro.
8751 (xcoff_slurp_armap): Handle large archives.
8752 (xcoff_archive_p): Detect large archives.
8753 (xcoff_read_ar_hdr): Handle large archives.
8754 (xcoff_openr_next_archived_file): Handle large archives.
8755 (xcoff_generic_stat_arch_elt): Handle large archives.
8756 (xcoff_write_armap_old): Rename from xcoff_write_armap.
8757 (xcoff_write_armap_big): New function.
8758 (xcoff_write_armap): New function, dispatch to _old or _big.
8759 (xcoff_write_archive_contents_old): Rename from
8760 xcoff_write_archive_contents.
8761 (xcoff_write_archive_contents_big): New function.
8762 (xcoff_write_archive_contents): New function, dispatch to _old or
8765 2000-02-18 Richard Henderson <rth@cygnus.com>
8767 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
8768 and hide_symbol members.
8769 (elf_link_hash_copy_indirect): Remove.
8770 (elf_link_hash_hide_symbol): Remove.
8771 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
8772 and elf_backend_hide_symbol.
8773 (_bfd_elf_link_hash_copy_indirect): Declare.
8774 (_bfd_elf_link_hash_hide_symbol): Declare.
8775 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
8776 (_bfd_elf_link_hash_hide_symbol): Likewise.
8777 (_bfd_elf_link_hash_table_init): Don't init killed members.
8778 * elflink.h (elf_link_add_object_symbols): Use the bed function
8779 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
8780 (elf_link_assign_sym_version): Likewise.
8781 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
8782 (elf_backend_hide_symbol): Likewise.
8783 (elfNN_bed): Update for new members.
8785 2000-02-17 Kevin Buettner <kevinb@redhat.com>
8787 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
8788 STACK_END_ADDR): Define for new core file format.
8789 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
8790 for handling the vagaries of the various core file structures used
8791 by AIX over the years.
8792 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
8793 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
8794 core_dumpx structure.
8796 2000-02-17 J"orn Rennecke <amylaar@cygnus.co.uk>
8798 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
8799 (bfd_mach_sh3_dsp): Likewise.
8800 (bfd_mach_sh4): Reinstate.
8801 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
8802 * bfd-in2.h: Regenerate.
8803 * coff-sh.c (struct sh_opcode): flags is no longer short.
8804 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
8805 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
8806 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
8807 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
8808 (sh_opcodes): No longer const.
8809 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
8810 (sh_insn_uses_reg): Check for USESAS and USESR8.
8811 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
8812 (_bfd_sh_align_load_span): Return early for SH4.
8813 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
8814 Take into account that field b of a parallel processing insn
8815 could be mistaken for a separate insn.
8816 * cpu-sh.c (arch_info_struct): New array elements for
8817 sh2, sh-dsp and sh3-dsp.
8818 Reinstate element for sh4.
8819 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
8820 (SH4_NEXT): Reinstate.
8821 (SH3_NEXT, SH3E_NEXT): Adjust.
8822 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
8823 * elf32-sh.c (sh_elf_set_private_flags): New function.
8824 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
8825 (sh_elf_merge_private_data): New function.
8826 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
8827 (bfd_elf32_bfd_copy_private_bfd_data): Define.
8828 (bfd_elf32_bfd_merge_private_bfd_data): Change to
8829 sh_elf_merge_private_data.
8831 2000-02-13 Richard Henderson <rth@cygnus.com>
8833 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
8834 hide_symbol members.
8835 (elf_link_hash_copy_indirect): New.
8836 (elf_link_hash_hide_symbol): New.
8837 * elflink.h (elf_link_add_object_symbols): Break out copy from
8838 indirect new new symbol to elf.c.
8839 (elf_link_assign_sym_version): Break out privatization of
8840 non-exported symbol to elf.c.
8841 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
8842 (_bfd_elf_link_hash_hide_symbol): New.
8843 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
8845 2000-02-13 Ian Lance Taylor <ian@zembu.com>
8847 * section.c (_bfd_strip_section_from_output): Add info parameter.
8848 If it passed as non-NULL, use it to check whether any input BFD
8849 has an input section which uses this output section. Change all
8851 * bfd-in2.h: Rebuild.
8853 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
8854 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
8856 * bfd-in2.h: Rebuild.
8858 2000-02-10 Timothy Wall <twall@cygnus.com>
8860 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
8861 allow final modifications of swapped-in symbol.
8862 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
8863 * coffcode.h (coff_write_relocs): Use macro
8864 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
8865 symbol index should be set to -1.
8867 2000-02-10 Toshiyasu Morita (toshi.morita@sega.com)
8869 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
8870 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
8871 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
8872 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
8873 sh_insns_uses_or_sets_freg): New functions.
8874 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
8875 * (sh_insns_conflict): Use new functions and new macros to
8876 detect conflicts when two instructions both set same integer registers,
8877 both set same fp register, and both set special register.
8879 2000-02-09 Timothy Wall <twall@cygnus.com>
8881 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
8882 swapping in sections, so that the swapping routines have access to
8885 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
8887 * coff-go32.c: Update comment. Update copyright.
8889 2000-01-27 Thomas de Lellis <tdel@windriver.com>
8891 * syms.c (bfd_decode_symclass)
8892 Two new class characters were added - 'V' and 'v'. The
8893 meaning of 'W' is now restricted to just weak non-object
8894 symbols. This allows differentiation between, for example,
8895 weak functions vs weak objects. nm for example now dumps:
8897 'w' = weak unresolved
8898 'V' = weak global object
8899 'v' = weak unresolved object
8901 (bfd_is_undefined_symclass): New function. Return true if the
8902 given symbol class represents and undefined/unresolved symbol.
8904 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
8907 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
8909 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
8910 STT_ARM_16BIT flag set, but it is not attached to a data object
8911 return STT_ARM_16BIT so that it will be treated as code by the
8914 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
8916 * coff-i386.c (i3coff_object_p): Remove prototype.
8919 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
8920 to name. Update copyright.
8922 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
8923 assignment to avoid warning. Update copyright.
8925 2000-01-24 Robert Lipe (robertl@sco.com)
8927 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
8928 instead of using GNU C extension.
8930 2000-01-21 Nick Clifton <nickc@cygnus.com>
8932 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
8933 amount from a bfd_in_memory structure.
8934 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
8937 2000-01-14 Nick Clifton <nickc@cygnus.com>
8939 * linker.c (default_indirect_link_order): oops - fix incorrectly
8940 applied patch from Tim Wall.
8942 2000-01-13 Timothy Wall (twall@tiac.net>
8944 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
8945 = scnhsz, filhsz, relsz, aoutsz, etc)
8947 * coffswap.h: Ditto.
8949 2000-01-13 Nick Clifton <nickc@cygnus.com>
8951 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
8952 interwork thumb to arm stub.
8954 2000-01-13 Timothy Wall (twall@tiac.net>
8956 * archures.c (bfd_octets_per_byte): New function: Return
8958 (bfd_arch_mach_octets_per_byte): New function: Return target
8961 * section.c: Distinguish between octets and bytes for usage of
8962 _cooked_size, _raw_size, and output_offset. Clarify
8963 description of bfd_set_section_contents.
8965 * bfd-in2.h: Regenerate.
8967 * coffgen.c: Indicate that the offset parameter is in bytes, not
8970 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
8971 where appropriate to get the octet offset when calling
8972 bfd_set_section_contents.
8973 (bfd_coff_reloc_link_order): Ditto.
8975 * linker.c (bfd_generic_reloc_link_order): Ditto.
8976 (_bfd_default_link_order): Ditto.
8978 * reloc.c (bfd_perform_relocation): Distinguish between octets
8979 and bytes. Use octets when indexing into octet data; use bytes
8980 when calculating target addresses.
8981 (bfd_install_relocation): Ditto.
8983 * srec.c (srec_write_section): Ditto.
8985 2000-01-13 Nick Clifton <nickc@cygnus.com>
8987 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
8988 3 to 2. This allows 4 byte sized sections, which is necessary for
8989 dlltool to build functioning DLLs.
8991 2000-01-10 Philip Blundell <pb@futuretv.com>
8993 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
8994 (arm*-*-conix*): New target.
8996 2000-01-10 Egor Duda <deo@logos-m.ru>
8998 * config.bfd: Include elf32_i386 vector to target list for cygwin
9001 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
9002 * configure.in: Test for structure win32_pstatus_t in
9004 * configure: Regenerate.
9006 * elf.c (elfcore_grok_win32pstatus): New function: process
9007 win32_pstatus_t notes in elf core file.
9008 (elfcore_grok_note): Detect win32_pstatus notes.
9010 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
9012 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
9014 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
9015 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
9017 For older changes see ChangeLog-9899
9023 version-control: never