1 2001-12-14 Alan Modra <amodra@bigpond.net.au>
3 * elflink.h (elf_bfd_discard_info): Fix segfault when dynobj NULL.
5 2001-12-13 Jakub Jelinek <jakub@redhat.com>
7 * elf-bfd.h (enum elf_link_info_type): New.
8 (struct bfd_elf_section_data): Remove stab_info and merge_info
9 fields, add sec_info and sec_info_type.
10 (struct elf_obj_tdata): Add eh_frame_hdr field.
11 (_bfd_elf_discard_section_eh_frame): New prototype.
12 (_bfd_elf_discard_section_eh_frame_hdr): Likewise.
13 (_bfd_elf_eh_frame_section_offset): Likewise.
14 (_bfd_elf_write_section_eh_frame): Likewise.
15 (_bfd_elf_write_section_eh_frame_hdr): Likewise.
16 * Makefile.am (BFD32_BACKENDS): Add elf-eh-frame.lo.
17 (BFD32_BACKENDS_CFILES): Add elf-eh-frame.c.
18 (elf-eh-frame.lo): New.
19 * Makefile.in: Rebuilt.
20 * configure.in (elf): Add elf-eh-frame.lo.
22 * elf.c (_bfd_elf_print_private_bfd_data): Support PT_GNU_EH_FRAME.
23 (map_sections_to_segments): Create PT_GNU_EH_FRAME if requested.
24 (get_program_header_size): Take into account PT_GNU_EH_FRAME
26 (_bfd_elf_rela_local_sym): Use sec_info_type and sec_info.
27 (_bfd_elf_rel_local_sym): Likewise.
28 (_bfd_elf_section_offset): Likewise. Call
29 _bfd_elf_eh_frame_section_offset too.
30 * elfxx-ia64.c (elfNN_ia64_relocate_section): Use sec_info_type and
32 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
33 * elf-eh-frame.c: New file.
34 * elflink.h (elf_link_add_object_symbols): Don't optimize SHF_MERGE
35 .stab sections. Set sec_info_type, use sec_info instead
36 of merge_info and stab_info.
37 (elf_link_create_dynamic_sections): Create .eh_frame_hdr section
39 (elf_bfd_final_link): Write .eh_frame_hdr section.
40 (elf_link_sec_merge_syms): Use sec_info_type and sec_info.
41 (elf_link_input_bfd): Likewise.
42 Call _bfd_elf_write_section_eh_frame to write .eh_frame sections.
43 (elf_bfd_discard_info): Add output_bfd argument.
44 Call _bfd_elf_discard_section_eh_frame and
45 _bfd_elf_discard_section_eh_frame_hdr.
46 (elf_section_ignore_discarded_relocs): Use sec_info_type, not section
48 * bfd-in.h (bfd_elf32_discard_info, bfd_elf64_discard_info): Adjust
50 * bfd-in2.h (bfd_elf32_discard_info, bfd_elf64_discard_info): Likewise.
52 2001-12-12 Richard Henderson <rth@redhat.com>
54 * syms.c (_bfd_generic_read_minisymbols): Early return for
55 no symbols. Patch from FreeBSD folk; exact origin unknown.
57 2001-12-11 Alan Modra <amodra@bigpond.net.au>
59 * elfcode.h (elf_swap_ehdr_out): Adjust value written for e_shnum
60 and e_shstrndx if out of range.
61 (elf_object_p): Read extended values for e_shnum and e_shstrndx
62 from the first section header. Allocate space in elf_elfsections
63 for reserved sections and set to NULLs.
64 (elf_write_shdrs_and_ehdr): Set overflow fields in first section
65 header. Skip reserved sections in elf_elfsections. Remove
66 duplicate size calculation.
68 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
69 Richard Henderson <rth@redhat.com>
70 Corinna Vinschen <vinschen@redhat.com>
72 * Makefile.am: Add support for xstormy16.
73 * archures.c: Add support for xstormy16.
74 * config.bfd: Add support for xstormy16.
75 * configure.in: Add support for xstormy16.
76 * reloc.c: Add support for xstormy16.
77 * targets.c: Add support for xstormy16.
78 * cpu-xstormy16.c: New file.
79 * elf32-xstormy16.c: New file.
80 * Makefile.in: Regenerated.
81 * bfd-in2.h: Regenerated.
82 * configure: Regenerated.
83 * libbfd.h: Regenerated.
85 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
87 * elf.c (assign_file_positions_for_segments): Combine sentance
88 fragments into a single sentance in order to permit better
89 translation into foreign languages.
91 2001-12-07 Jim Blandy <jimb@redhat.com>
93 * elf32-s390.c (elf32_s390_grok_prstatus): New function.
94 (elf_backend_grok_prstatus): Define.
96 2001-12-07 Jakub Jelinek <jakub@redhat.com>
98 * elf32-sparc.c (elf32_sparc_relocate_section): Revert
101 2001-12-07 Jakub Jelinek <jakub@redhat.com>
103 * elf.c (_bfd_elf_rela_local_sym): Only call
104 _bfd_merged_section_offset if merge_info is non-NULL.
105 (_bfd_elf_rel_local_sym, _bfd_elf_section_offset): New.
106 * elf-bfd.h (_bfd_elf_rel_local_sym, _bfd_elf_section_offset): New
108 * elf32-arm.h (elf32_arm_final_link_relocate): Use
109 _bfd_elf_section_offset.
110 (elf32_arm_relocate_section): Use _bfd_elf_rel_local_sym.
111 * elf32-i386.c (elf_i386_relocate_section): Use
112 _bfd_elf_section_offset and _bfd_elf_rel_local_sym.
113 * elf32-sh.c (sh_elf_relocate_section): Likewise.
114 * elf32-sparc.c (elf32_sparc_relocate_section): Use
115 _bfd_elf_section_offset.
116 * elf32-cris.c (cris_elf_relocate_section): Likewise.
117 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
118 * elf32-i370.c (i370_elf_relocate_section): Likewise.
119 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
120 * elf32-mips.c (mips_elf_create_dynamic_relocation): Likewise.
121 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
122 * elf32-s390.c (elf_s390_relocate_section): Likewise.
123 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
124 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
125 * elf64-s390.c (elf_s390_relocate_section): Likewise.
126 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
127 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
128 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
130 2001-12-07 Alan Modra <amodra@bigpond.net.au>
132 * elf32-hppa.c (clobber_millicode_symbols): Don't do anything if
133 already forced local.
135 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
137 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Combine
138 fragmented sentence parts into a whole sentence to permit
139 better translation into foreign languages.
141 2001-12-06 Hans-Peter Nilsson <hp@bitrange.com>
143 * configure: Regenerate.
144 * Makefile.in: Regenerate.
146 2001-12-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
148 * Makefile.am: split up BFD_LIBS like statements in BFD32_LIBS and
149 BFD64_LIBS, make the latter depending on the availability of BFD64.
150 Add archive64.c source file.
151 * archive64.c: New file implementing bfd_elf64_archive_slurp_armap
152 and bfd_elf64_archive_write_armap, code from elf64-mips.c
153 * archive.c (bfd_slurp_armap): Add ELF64 archive support.
154 * config.bfd (mips*-*-irix6*): Allow with BFD64 only.
155 (mips64*el-*-linux*): Likewise.
156 (mips*el-*-linux*): Likewise. Reorder entries.
157 * configure.in (bfd_libs): Define in dependency of BFD64 and
159 * elf64-mips.c (mips_elf64_slurp_armap): Remove, use
160 bfd_elf64_archive_slurp_armap instead.
161 (mips_elf64_write_armap): Remove, use bfd_elf64_archive_write_armap
164 2001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
166 * config.bfd: Remove trailing blanks.
167 * elf32-mips.c (gprel16_with_gp): Remove superfluous casts.
169 2001-12-04 Alexandre Oliva <aoliva@redhat.com>
171 * elf32-d10v.c (elf_d10v_howto_table): Adjust bit-size of
172 R_D10V_10_PCREL_L, R_D10V_10_PCREL_R, R_D10V_18,
173 R_D10V_18_PCREL. Check 10_PCREL relocations as signed.
174 Disable pointless overflow checking of NONE and 32.
176 2001-12-04 Alan Modra <amodra@bigpond.net.au>
178 * reloc.c (bfd_install_relocation): Correct reloc address test.
179 (bfd_perform_relocation): Formatting fix.
180 * bfd-in2.h: Regenerate for 2001-12-02 reloc.c change.
182 2001-12-03 Nick Clifton <nickc@cambridge.redhat.com>
184 * configure.in (LINGUAS): Add tr.
185 * configure: Regenerate.
186 * po/tr.po: Import from translation project's web site.
188 2001-12-03 Alan Modra <amodra@bigpond.net.au>
190 * elf32-hppa.c (hppa_get_stub_entry): Remove debug message that
191 happens to trigger on undefined symbols.
192 (final_link_relocate): Return bfd_reloc_undefined for undefined
194 (elf32_hppa_relocate_section): Don't say we can't handle a reloc
195 if we have already warned about an undefined symbol.
197 2001-12-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
199 * elf32-mips.c (NEWABI_P): New define.
200 (USE_REL): Remove, replaced by
201 (elf_backend_may_use_rel_p): New define.
202 (elf_backend_may_use_rela_p): Likewise.
203 (elf_backend_default_use_rela_p): Likewise.
204 (elf_mips_howto_table): Rename to elf_mips_howto_table_rel.
205 Fix some relocation definitions.
206 (elf_mips_howto_table_rela): New RELA relocation definitions for
208 (mips32_64bit_reloc): Use the renamed elf_mips_howto_table_rel.
209 (bfd_elf32_bfd_reloc_type_lookup): Likewise.
210 (mips_rtype_to_howto): Likewise.
211 (_bfd_mips_elf_relocate_section): Likewise.
212 (_bfd_mips_elf_object_p): Typo.
213 (elf_backend_sign_extend_vma): Reordered together with many other
214 defines nearby to resemble the order of declaration in the header
217 2001-12-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
219 * coff-mips.c (mips_bfd_reloc_type_lookup): Replace
220 BFD_RELOC_MIPS_GPREL by BFD_RELOC_GPREL16.
221 * pe-mips.c (mips_bfd_reloc_type_lookup): Likewise.
222 * elf32-mips.c (mips_reloc_map): Likewise. Replace
223 BFD_RELOC_MIPS_GPREL32 by BFD_RELOC_GPREL32.
224 * elf64-mips.c (mips_reloc_map): Likewise.
225 * reloc.c (BFD_RELOC_MIPS_GPREL): Remove.
226 (BFD_RELOC_MIPS_GPREL32): Remove.
228 2001-11-30 H.J. Lu <hjl@gnu.org>
230 * elflink.h (elf_add_default_symbol): New.
231 (elf_link_add_object_symbols): Call elf_add_default_symbol ()
232 to create an indirect symbol from the default for the symbol
233 with the default version if needed.
235 2001-11-29 "Peter.Schauer" <Peter.Schauer@regent.e-technik.tu-muenchen.de>
237 * elf.c (elfcore_grok_prstatus): Do not overwite the core signal
238 if it has already been set by another thread.
240 2001-11-28 Jakub Jelinek <jakub@redhat.com>
242 * elf64-alpha.c (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Defined.
243 (elf64_alpha_relocate_section): Translate local_got_entries
244 for STT_SECTION symbol to SHF_MERGE section the first time
246 * elfxx-ia64.c (struct elfNN_ia64_local_hash_entry): Add
248 (get_local_sym_hash): New, extracted from get_dyn_sym_info.
249 (get_dyn_sym_info): Use it.
250 (elfNN_ia64_relocate_section): Translate local dyn entries
251 for STT_SECTION symbol to SHF_MERGE section the first time
254 2001-11-27 H.J. Lu <hjl@gnu.org>
256 * elflink.h (elf_bfd_discard_info): Skip if the input bfd isn't
259 2001-11-26 Jeffrey A Law (law@cygnus.com)
261 * stabs.c (_bfd_discard_section_stabs): Use PARAMS in function
264 2001-11-24 Alan Modra <amodra@bigpond.net.au>
266 * elf32-hppa.c (elf32_hppa_size_stubs): Decrease default stub
267 group sizes to accommodate c++.
269 2001-11-23 Jakub Jelinek <jakub@redhat.com>
271 * elf32-sparc.c (elf32_sparc_relocate_section): Don't clear
272 relocations in non-alloced sections against global symbols
273 defined in shared library being built.
274 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
276 2001-11-23 Jakub Jelinek <jakub@redhat.com>
278 * elf.c (_bfd_elf_rela_local_sym): New.
279 * elflink.h (elf_link_input_bfd): Don't consider empty
280 merged sections as removed in relocation tests.
281 * elf-bfd.h (_bfd_elf_rela_local_sym): Add prototype.
282 * elf32-i386.c (elf_i386_relocate_section): Handle relocs
283 against STT_SECTION symbol of SHF_MERGE section.
284 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
285 * elf32-avr.c (elf32_avr_relocate_section): Call
286 _bfd_elf_rela_local_sym.
287 * elf32-cris.c (cris_elf_relocate_section): Likewise.
288 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
289 * elf32-fr30.c (fr30_final_link_relocate): Likewise.
290 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
291 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
292 * elf32-i370.c (i370_elf_relocate_section): Likewise.
293 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
294 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
295 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
296 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
297 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
298 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
299 * elf32-s390.c (elf_s390_relocate_section): Likewise.
300 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
301 * elf32-v850.c (v850_elf_relocate_section): Likewise.
302 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
303 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
304 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
305 * elf64-s390.c (elf_s390_relocate_section): Likewise.
306 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
307 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
308 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
309 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
310 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
311 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
312 * elf32-sh.c (sh_elf_relocate_section): Likewise for
313 !partial_inplace relocs. Handle relocs against STT_SECTION
314 symbol of SHF_MERGE for partial_inplace relocs.
316 2001-11-21 Nick Clifton <nickc@cambridge.redhat.com>
318 * po/Make-in (distclean): Move SRC-POTFILES.in and
319 BLD-POTFILES.in to maintainer-clean target.
321 2001-11-21 Alan Modra <amodra@bigpond.net.au>
323 * elfxx-ia64.c (elfNN_ia64_relocate_section): Test r_symndx rather
324 than sym_sec->output_section to detect relocs against discarded
327 2001-11-19 H.J. Lu <hjl@gnu.org>
329 * elflink.h (elf_link_input_bfd): Assert r_symndx != 0 when
330 discarding relocations.
332 2001-11-19 Nick Clifton <nickc@cambridge.redhat.com>
334 * section.c (bfd_is_const_section): New macro. Return true if the
335 given seciton is one of the special, constant, sections.
336 * bfd-in2.h: Regenerate.
337 * coffgen.c (coff_count_linenumbers): Use bfd_is_const_section.
338 (coff_write_native_symbol): Use bfd_is_const_section.
340 2001-11-19 Alan Modra <amodra@bigpond.net.au>
342 * elf32-hppa.c (clobber_millicode_symbols): Dec dynstr refcount.
344 * elf32-hppa.c (elf32_hppa_size_stubs): Don't consider undefined
345 millicode syms as candidates for import stubs.
347 * elf32-hppa.c (PLABEL_PLT_ENTRY_SIZE): Delete.
348 (allocate_PIC_calls): Rename to allocate_plt_static.
349 (allocate_dynrelocs): Move most of code handling .plt entries to..
350 (allocate_plt_static): ..here. Don't drop plabel entries.
352 2001-11-19 Hans-Peter Nilsson <hp@bitrange.com>
354 * mmo.c: Adjust documentation tags to use texinfo 4 features.
356 2001-11-16 Nick Clifton <nickc@cambridge.redhat.com>
358 * section.c (bfd_is_const_section): New macro. Return true if the
359 section pointer refers to one of the special, constant sections.
360 * bfd-in2.h: Regenerate.
362 * coffgen.c (coff_count_linenumbers): Only update the line number
363 count in non-special sections.
364 (coff_write_native_symbol): Only update the line number file
365 position in non-special sections.
367 2001-11-15 Daniel Jacobowitz <drow@mvista.com>
369 * elflink.h (elf_reloc_symbol_deleted_p): Catch all relocs against
370 local syms from discarded sections. Update comment.
372 2001-11-15 Alan Modra <amodra@bigpond.net.au>
374 * po/SRC-POTFILES.in: Regenerate.
376 * elflink.h (elf_link_input_bfd): Complain about all relocs
377 against local syms from discarded sections. K&R fixes.
378 (elf_reloc_symbol_deleted_p): Don't try to swap in external syms.
381 2001-11-15 Alexandre Oliva <aoliva@redhat.com>
383 * elf64-sparc.c (sparc64_elf_relocate_section): Disregard
384 overflows in the .stab section.
386 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
388 * bfd-in.h (bfd_elf32_discard_info): Add prototype.
389 (bfd_elf64_discard_info): Likewise.
390 * bfd-in2.h: Regenerate.
391 * elf-bfd.h (struct elf_reloc_cookie): New.
392 (struct elf_backend_data): Add elf_backend_discard_info,
393 elf_backend_ignore_discarded_relocs, and elf_backend_write_section.
394 (_bfd_elf32_reloc_symbol_deleted_p): Add prototype.
395 (_bfd_elf64_reloc_symbol_deleted_p): Likewise.
396 * elf32-mips.c (_bfd_elf32_mips_discard_info): New.
397 (_bfd_elf32_mips_ignore_discarded_relocs): New.
398 (_bfd_elf32_mips_write_section): New.
399 (elf_backend_discard_info): Define.
400 (elf_backend_ignore_discarded_relocs): Define.
401 (elf_backend_write_section): Define.
402 * elfcode.h (elf_bfd_discard_info): Define.
403 (elf_reloc_symbol_deleted_p): Define.
404 * elflink.h (elf_link_input_bfd): Check
405 elf_section_ignore_discarded_relocs. Call
406 bed->elf_backend_write_section if available.
407 (elf_reloc_symbol_deleted_p): New.
408 (elf_bfd_discard_info): New.
409 (elf_section_ignore_discarded_relocs): New.
410 * elfxx-target.h (elf_backend_discard_info): Define.
411 (elf_backend_ignore_discarded_relocs): Define.
412 (elf_backend_write_section): Define.
413 (elfNN_bed): Add elf_backend_discard_info,
414 elf_backend_ignore_discarded_relocs, and
415 elf_backend_write_section.
416 * libbfd-in.h (_bfd_discard_section_stabs): Add prototype.
417 * libbfd.h: Regenerate.
418 * stabs.c (_bfd_discard_section_stabs): New.
420 2001-11-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
422 * elf32-s390.c (elf_s390_relocate_section): Use the "unresolved_reloc"
423 scheme to get rid of an ugly complicated test.
424 * elf64-s390.c (elf_s390_relocate_section): Likewise.
426 2001-11-14 Andreas Jaeger <aj@suse.de>
428 * cpu-i386.c (bfd_x86_64_arch_intel_syntax,bfd_x86_64_arch): Use
431 2001-11-14 Jakub Jelinek <jakub@redhat.com>
433 * dwarf2.c (struct line_head) [total_length]: Change type to
435 (struct dwarf2_debug): Add dwarf_str_buffer and dwarf_str_size.
436 (struct comp_unit): Add stash and offset_size.
437 (read_8_bytes): Return bfd_vma.
438 (read_indirect_string): New.
439 (read_attribute): Handle DW_FORM_strp.
440 (decode_line_info): Support 64-bit DWARF format.
441 (_bfd_dwarf2_find_nearest_line): Likewise.
442 (parse_comp_unit): Set offset_size and stash.
444 2001-11-13 Keith Walker <keith.walker@arm.com>
446 * dwarf2.c (read_attribute_value): New function to handle
448 (read_attribute): Use it.
450 2001-11-13 Geoffrey Keating <geoffk@redhat.com>
452 * dwarf2.c (decode_line_info): Properly deal with unknown standard
455 2001-11-13 John Marshall <jmarshall@acm.org>
456 Alan Modra <amodra@bigpond.net.au>
458 * section.c (bfd_make_section_anyway): Don't increment section_id
459 and the BFD's section_count if adding the section failed.
460 * vms.c (vms_new_section_hook): Adjust for bfd_make_section_anyway
463 2001-11-12 Orjan Friberg <orjanf@axis.com>
465 * elf32-cris.c (cris_elf_grok_prstatus): Adjust values to match new
468 2001-11-11 H.J. Lu <hjl@gnu.org>
470 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Call
471 _bfd_elf_strtab_size instead of _bfd_stringtab_size.
473 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Change
474 dynstr type to `struct elf_strtab_hash *'.
476 2001-11-11 Hans-Peter Nilsson <hp@bitrange.com>
478 * elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i
479 size_t. Rename second i to j.
481 2001-11-10 Jeffrey A Law (law@cygnus.com)
483 * binary.c: Include safe-ctype.h after bfd.h and sysdep.h.
485 2001-11-10 Alan Modra <amodra@bigpond.net.au>
487 * elf32-arm.h (elf32_arm_final_link_relocate): Don't copy STN_UNDEF
488 relocs into shared libs.
489 * elf32-cris.c (cris_elf_relocate_section): Likewise.
490 * elf32-i370.c (i370_elf_relocate_section): Likewise.
491 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
492 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
493 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
494 * elf32-sh.c (sh_elf_relocate_section): Likewise.
495 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
496 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
497 * elf64-s390.c (elf_s390_relocate_section): Likewise.
498 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
499 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
500 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
502 * elf.c (bfd_section_from_r_symndx): New function.
503 * elf-bfd.h (LOCAL_SYM_CACHE_SIZE): Define.
504 (struct sym_sec_cache): New.
505 (bfd_section_from_r_symndx): Declare.
506 (struct bfd_elf_section_data): Change local_dynrel type to PTR.
507 * elflink.h (elf_link_input_bfd): Don't test for removed linkonce
508 relocs when relocatable. Don't zero entire reloc, just zero the
510 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add sym_sec.
511 (elf32_hppa_link_hash_table_create): Init it.
512 (elf32_hppa_check_relocs): Track dynamic relocs needed for local
513 syms on a per-section basis as we do for globals.
514 (elf32_hppa_gc_sweep_hook): Update for local_dynrel change.
515 (allocate_dynrelocs): Warning fix.
516 (elf32_hppa_size_dynamic_sections): Don't allocate relocs when
517 section has been discarded.
518 (elf32_hppa_relocate_section): Don't copy STN_UNDEF relocs
520 * elf32-i386.c (struct elf_i386_link_hash_table): Add sym_sec.
521 (elf_i386_link_hash_table_create): Init it.
522 (elf_i386_check_relocs): Track dynamic relocs needed for local
523 syms on a per-section basis as we do for globals.
524 (elf_i386_gc_sweep_hook): Update for local_dynrel change.
526 (allocate_dynrelocs): Warning fix.
527 (elf_i386_size_dynamic_sections): Don't allocate relocs when
528 section has been discarded.
529 (elf_i386_relocate_section): Don't copy STN_UNDEF relocs
531 * elf32-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
532 (elf_s390_link_hash_table_create): Init it.
533 (elf_s390_check_relocs): Track dynamic relocs needed for local
534 syms on a per-section basis as we do for globals.
535 (elf_s390_gc_sweep_hook): Update for local_dynrel change.
537 (allocate_dynrelocs): Warning fix.
538 (elf_s390_size_dynamic_sections): Don't allocate relocs when
539 section has been discarded.
540 (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
542 * elf64-ppc.c (struct ppc_link_hash_table): Add sym_sec.
543 (ppc64_link_hash_table_create): Init it.
544 (ppc64_elf_check_relocs): Track dynamic relocs needed for local
545 syms on a per-section basis as we do for globals.
546 (ppc64_elf_gc_sweep_hook): Update for local_dynrel change.
547 (allocate_dynrelocs): Call the correct record_dynamic_dymbol
548 function. Warning fix.
549 (ppc64_elf_size_dynamic_sections): Don't allocate relocs when
550 section has been discarded.
551 (ppc64_elf_relocate_section): Don't copy STN_UNDEF relocs
553 * elf64-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
554 (elf_s390_link_hash_table_create): Init it.
555 (elf_s390_check_relocs): Track dynamic relocs needed for local
556 syms on a per-section basis as we do for globals.
557 (elf_s390_gc_sweep_hook): Update for local_dynrel change.
559 (allocate_dynrelocs): Warning fix.
560 (elf_s390_size_dynamic_sections): Don't allocate relocs when
561 section has been discarded.
562 (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
565 2001-11-08 Martin Schwidefsky <schwidefsky@de.ibm.com>
567 * elf32-s390: Major rework that introduces all recent changes to
568 the s390 backends. Get a closer match to elf32-i386.
569 (elf_s390_relocate_section): Make use of dynamic section short-cuts.
570 Localise vars, and delay setting. Better error reporting, replace
571 BFD_ASSERT with abort. Check ELF_LINK_HASH_DEF_DYNAMIC to see if a
572 symbol is not defined in the regular object file and tread the weak
573 definition as the normal one. Don't discard relocs for undefweak or
574 undefined symbols and check !DEF_REGULAR as well as DEF_DYNAMIC in
575 test for avoided copy relocs. Reinstate fudge for unresolved relocs
576 in debugging sections.
577 (elf32_s390_adjust_dynamic_symbol): Handle nocopyreloc. Don't do copy
578 reloc processing for weakdefs. Remove redundant casts and aborts.
579 Delay setting of vars until needed. Move creation of dynamic symbols
580 and allocation of .plt and .rela.plt to allocate_dynrelocs. Replace
581 BFD_ASSERT with abort. Discard .plt entries for everything with
583 (elf_s390_check_relocs): Don't allocate space for dynamic relocs,
584 .got or .relgot here but do it in allocate_dynrelocs. Reference count
585 possible .plt and .got entries. Don't test input section SEC_READONLY
586 here to try to avoid copy relocs, and keep dyn_relocs regardless of
587 ELF_LINK_NON_GOT_REF. Don't set DF_TEXTREL here. Delay setting of
588 variables until needed. Remove separate switch stmt for creating .got
589 section. Initialise local_got_refcounts to 0. Cache pointer to
590 "sreloc" section in elf_section_data. Tweak condition under which .got
591 created. Report files with bad relocation section names.
592 (elf_s390_finish_dynamic_symbol): Don't copy relocs for symbols that
593 have been forced local. Use same test to decide if we can use a
594 relative reloc for got as elf_s390_relocate_section. Expand SHN_UNDEF
595 comment. Move expressions out of function calls. Replace BFD_ASSERT
597 (elf_s390_finish_dynamic_sections): Migrate common code out of switch
598 statement. Replace BFD_ASSERT with abort.
599 (elf_s390_size_dynamic_sections): Call readonly_dynrelocs. Rename "i"
600 to "ibfd". Allocate space for local dyn relocs. Use DF_TEXTREL flag
601 instead of looking up section names for DT_TEXTREL. Replace
602 BFD_ASSERT with abort. Zero out the dynamic allocated content space.
603 Add a comment to remind us that one day this ought to be fixed.
604 (struct elf_s390_link_hash_entry): Rename "root" to "elf".
605 (struct elf_s390_link_hash_table): Likewise.
606 (elf_s390_link_hash_newfunc): Rename to link_hash_newfunc and get
607 rid of unnecessary casts.
608 (struct elf_s390_dyn_relocs): Add "sec", and "pc_count" fields.
609 Remove "section" field.
610 (elf_s390_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
611 Reference count possible .plt entries. Don't deallocate .got and
613 (struct elf_s390_pcrel_relocs_copied): Rename to elf_s390_dyn_relocs.
615 (struct elf_s390_link_hash_entry): Rename pcrel_relocs_copied to
617 (elf_s390_discard_copies): Delete.
618 (elf_s390_link_hash_traverse): Delete.
619 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
620 rather than gc variety).
621 (struct elf_s390_link_hash_table): Add sgot, sgotplt, srelgot, splt,
622 srelplt, sdynbss, srelbss fields.
623 (elf_s390_link_hash_table_create): Init them.
624 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
625 (allocate_dynrelocs): New function.
626 (create_got_section): New function.
627 (elf_backend_can_refcount): Define.
628 (elf_backend_copy_indirect_symbol): Define.
629 (elf_s390_copy_indirect_symbol): New function.
630 (elf_s390_create_dynamic_sections): New function.
631 (readonly_dynrelocs): New function.
632 * elf64-s390.c: Likewise.
634 2001-11-07 Jakub Jelinek <jakub@redhat.com>
636 * Makefile.am (BFD32_BACKENDS): Add elf-strtab.lo.
637 (BFD32_BACKENDS_CFILES): Add elf-strtab.c.
638 (elf-strtab.lo): Add rule.
639 * Makefile.in: Rebuilt.
640 * configure.in (elf): Add elf-strtab.lo.
641 * configure: Rebuilt.
642 * elf-bfd.h (elf_strtab_hash): Forward declare.
643 (struct elf_link_hash_table): Change dynstr type to
644 struct elf_strtab_hash *.
645 (struct elf_obj_tdata): Change strtab_ptr type to
646 struct elf_strtab_hash *.
647 (_bfd_elf_strtab_init, _bfd_elf_strtab_free, _bfd_elf_strtab_add,
648 _bfd_elf_strtab_addref, _bfd_elf_strtab_delref,
649 _bfd_elf_strtab_clear_all_refs, _bfd_elf_strtab_size,
650 _bfd_elf_strtab_offset, _bfd_elf_strtab_emit,
651 _bfd_elf_strtab_finalize): New prototypes.
652 * elf-strtab.c: New file.
653 * elflink.h (elf_link_add_object_symbols): Use _bfd_elf_strtab_add
654 and _bfd_elf_strtab_size instead of _bfd_stringtab calls.
655 Call _bfd_elf_strtab_delref if DT_NEEDED entry is not needed or
656 when forcing dynamic symbol to local.
657 (elf_link_create_dynamic_sections): Call
658 _bfd_elf_strtab_init instead of elf_stringtab_init.
659 (elf_link_record_local_dynamic_symbol): Likewise, change
660 dynstr type. Use _bfd_elf_strtab functions instead of
661 _bfd_stringtab calls.
662 (size_dynamic_sections): Use _bfd_elf_strtab functions instead of
663 _bfd_stringtab calls. For DT_RUNPATH and Verdaux vda_name fields,
664 call _bfd_elf_strtab_addref. Call elf_finalize_dynstr.
665 (elf_adjust_dynstr_offsets, elf_finalize_dynstr): New functions.
666 (elf_fix_symbol_flags): Call _bfd_elf_strtab_delref when forcing
667 dynamic symbol to local.
668 (elf_link_assign_sym_version): Likewise.
669 (elf_bfd_final_link): Call _bfd_elf_strtab_emit instead of
671 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Change dynstr
672 type. Call _bfd_elf_strtab functions instead of
673 _bfd_stringtab functions.
674 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
675 * elf.c (_bfd_elf_init_reloc_shdr): Likewise.
676 (elf_fake_sections): Likewise.
677 (assign_section_numbers): Call _bfd_elf_strtab_clear_all_refs
678 on shstrtab hash table, call _bfd_elf_strtab_addref on each section
679 name in the output. Call _bfd_elf_strtab_finalize and
680 use _bfd_elf_strtab_offset to finalize sh_name section header fields.
681 (_bfd_elf_compute_section_file_positions): Use _bfd_elf_strtab_size
682 instead of _bfd_stringtab_size.
683 (prep_headers): Change shstrtab type.
684 Use _bfd_elf_strtab calls instead of _bfd_stringtab calls.
686 2001-11-07 Alan Modra <amodra@bigpond.net.au>
688 * elflink.h (elf_link_input_bfd <removed linkonce relocs>): Fix
689 bad symtab segfault. Formatting and warning fixes. Improve
690 error message for internationalisation.
692 2001-11-06 H.J. Lu (hjl@gnu.org)
694 * elflink.h (elf_link_input_bfd): Complain about relocs against
697 2001-11-03 Alan Modra <amodra@bigpond.net.au>
699 * elfxx-target.h (elfNN_bed): Correct want_got_sym, want_dynbss order.
701 2001-11-02 H.J. Lu <hjl@gnu.org>
703 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
704 dynamic relocation for symbols defined in regular objects when
705 creating executables.
707 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
709 * configure.in (ALL_LINGUAS): Add "fr".
710 * configure: Regenerate.
711 * po/fr.po: New file.
713 * coffgen.c (coff_object_p): Add comment to H.J.'s recent patch.
715 2001-11-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
717 * som.c (setup_sections): Initialize subspace_sections.
719 2001-11-02 H.J. Lu (hjl@gnu.org)
721 * coffgen.c (coff_object_p): Return 0 if the header is too big.
723 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
725 * elfcore.h (elf_core_file_p): Preserve and clear abfd section
726 information. Save bfd arch and mach values. Restore on error.
728 2001-11-02 Alan Modra <amodra@bigpond.net.au>
730 * elf32-hppa.c (hppa_handle_PIC_calls): Rename to mark_PIC_calls.
731 (allocate_PIC_calls): New function.
732 (allocate_dynrelocs): Don't allocate pic_call plt entries here.
733 (elf32_hppa_size_dynamic_sections): Call allocate_PIC_calls.
734 (elf32_hppa_finish_dynamic_symbol): Remove dead code.
736 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
738 * elf32-cris.c (cris_elf_grok_prstatus): New function.
739 (cris_elf_grok_psinfo): New function.
740 (elf_backend_grok_prstatus): Define.
741 (elf_backend_grok_psinfo): Define.
743 2001-11-01 Alan Modra <amodra@bigpond.net.au>
745 * elf64-ppc.c (ppc64_elf_relocate_section): Correct branch
748 2001-10-31 Chris Demetriou <cgd@demetriou.com>
750 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Handle PC-relative
751 relocations properly.
753 2001-10-31 H.J. Lu <hjl@gnu.org>
755 * elflink.h (elf_link_output_extsym): Don't clear the visibility
756 field for relocateable.
758 2001-11-01 Alan Modra <amodra@bigpond.net.au>
760 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Don't count
761 .plt relocs in DT_RELASZ.
763 2001-10-29 NIIBE Yutaka <gniibe@m17n.org>
765 * config.bfd: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
768 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
770 * targets.c: Fix typo: bfd_mmo_mmix_vec => bfd_mmo_vec.
772 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
774 * Makefile.am (ALL_MACHINES): Add cpu-mmix.lo.
775 (BFD64_BACKENDS): Add elf64-mmix.lo and mmo.lo.
776 (BFD64_BACKENDS_CFILES): Add elf64-mmix.c and mmo.c.
777 Regenerate dependencies.
778 * configure.in (bfd_elf64_mmix_vec, bfd_mmo_vec): New vectors.
779 * config.bfd: [BFD64] (mmix-*-*): New case.
780 * cpu-mmix.c, mmo.c, elf64-mmix.c: New files.
781 * archures.c (enum bfd_architecture): Add bfd_arch_mmix.
782 (bfd_mmix_arch): Declare.
783 (bfd_archures_list): Add bfd_mmix_arch.
784 * targets.c (enum bfd_flavour): Add bfd_target_mmo_flavour.
785 (bfd_elf64_mmix_vec, bfd_mmo_vec): Declare.
786 (bfd_target_vect) [BFD64]: Add bfd_elf64_mmix_vec and
788 * reloc.c: Add MMIX relocations.
789 * bfd.c (struct _bfd, tdata): Add mmo_data.
790 * Makefile.in: Regenerate.
791 * configure: Regenerate.
792 * libbfd.h: Regenerate.
793 * bfd-in2.h: Regenerate.
794 * configure: Rebuild.
796 2001-10-30 Richard Earnshaw (rearnsha@arm.com)
798 * elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based on the
799 p_paddr of the segment that contains it.
800 (copy_private_bfd_data): If the LMA for a segment is known, use it
801 for matching sections to segments.
802 (assign_file_positions_for_segments): Use the LMA when adjusting
803 for inter-section alignment padding.
805 2001-10-29 Kazu Hirata <kazu@hxi.com>
807 * README: Fix a typo.
809 2001-10-24 Richard Henderson <rth@redhat.com>
811 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
812 timestamp to time_t for ctime.
814 2001-10-24 Hans-Peter Nilsson <hp@axis.com>
816 * elf32-cris.c (cris_reloc_type_lookup): Change loop to use
817 unsigned, increasing index.
819 2001-10-23 H.J. Lu <hjl@gnu.org>
821 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check
822 m != NULL before accessing it.
824 2001-10-23 Alan Modra <amodra@bigpond.net.au>
826 * elflink.h (elf_link_input_bfd): Zero the reloc instead of doing
827 bfd_reloc_type_lookup (bfd, BFD_RELOC_NONE) as bfd_reloc_type_lookup
828 doesn't accept BFD_RELOC_* on some targets, eg. hppa.
830 * elf32-hppa.c (elf32_hppa_link_hash_entry): Remove plt_abs.
831 (hppa_link_hash_newfunc): Likewise.
832 (elf32_hppa_finish_dynamic_symbol): Likewise.
833 (allocate_dynrelocs): Always allocate .got relocs if shared.
834 (elf32_hppa_relocate_section): Output them too. Similarly
835 consolidate .plt reloc code, and no longer initialise .plt
836 when a reloc is output.
837 (elf32_hppa_finish_dynamic_symbol): Only initialise .plt entries
838 when no reloc is output.
840 From Herbert Xu <herbert@gondor.apana.org.au>
841 * elf32-hppa.c (final_link_relocate): Call bfd_set_error for
842 unreachable branches.
844 2001-10-22 H.J. Lu <hjl@gnu.org>
846 * configure.in (WIN32LIBADD): Use -L../libiberty for
848 * configure: Rebuild.
850 2001-10-21 H.J. Lu <hjl@gnu.org>
852 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
853 if shared library is enabled only for Linux hosts.
854 * configure: Rebuild.
856 2001-10-21 H.J. Lu <hjl@gnu.org>
858 * configure.in (WIN32LIBADD): Check if PICFLAG is defined in
859 ../libiberty/Makefile instead of $enable_shared.
860 * configure: Rebuild.
862 2001-10-21 H.J. Lu <hjl@gnu.org>
864 * elf32-cris.c (cris_reloc_type_lookup): Use int for index. Cover
867 2001-10-20 H.J. Lu <hjl@gnu.org>
869 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
870 if shared library is enabled.
871 * configure: Rebuild.
873 2001-10-20 H.J. Lu <hjl@gnu.org>
875 * elf32-cris.c (cris_reloc_type_lookup): Allow index 0.
877 2001-10-19 H.J. Lu <hjl@gnu.org>
879 * elfcode.h (elf_object_p): Don't clear D_PAGED if the section
882 2001-10-18 H.J. Lu <hjl@gnu.org>
884 * elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
885 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
887 2001-10-18 Jakub Jelinek <jakub@redhat.com>
889 * section.c (_bfd_strip_section_from_output): Don't count
890 SEC_EXCLUDE sections as references. Set SEC_EXCLUDE.
892 2001-10-17 Alan Modra <amodra@bigpond.net.au>
894 * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
895 Elf_Internal_Shdr.contents now that it's no longer a PTR.
896 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
897 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
898 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
899 * elf32-sh.c (sh_elf_relax_section): Likewise.
900 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
901 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
902 * elf.c (setup_group): Warning fixes.
903 * elflink.h (elf_link_sort_relocs): Likewise.
904 * pdp11.c (slurp_reloc_table): Likewise.
906 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
908 * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
911 2001-10-15 H.J. Lu <hjl@gnu.org>
913 * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
914 for relocations against discarded link-once section.
916 2001-10-15 Alan Modra <amodra@bigpond.net.au>
918 * elf32-i386.c (elf_i386_relocate_section): Report some detail on
919 bfd_reloc_outofrange and similar errors.
921 * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
922 rather than ind->weakdef.
923 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
924 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
925 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
926 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
927 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
929 2001-10-15 Alan Modra <amodra@bigpond.net.au>
930 H.J. Lu <hjl@gnu.org>
932 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
933 counts for aliases instead of aborting.
934 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
935 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
937 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
938 to -1 for non-function symbols.
939 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
940 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
941 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
942 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
943 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
944 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
945 plt.offset instead of plt.refcount when setting to -1.
947 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
949 * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
950 like R_ARM_PC24. Include reloc number in error message about
953 2001-10-10 Jakub Jelinek <jakub@redhat.com>
955 * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
956 relocations against the same symbol in .rel{,a}.dyn section.
958 2001-10-10 Kazu Hirata <kazu@hxi.com>
960 * aout-encap.c: Fix comment typos.
962 * archive.c: Likewise.
964 * coff64-rs6000.c: Likewise.
965 * coffcode.h: Likewise.
966 * coffgen.c: Likewise.
967 * cofflink.c: Likewise.
968 * coff-mips.c: Likewise.
970 * elf32-m32r.c: Likewise.
971 * libcoff-in.h: Likewise.
972 * libecoff.h: Likewise.
973 * libxcoff.h: Likewise.
974 * nlm32-i386.c: Likewise.
976 * section.c: Likewise.
979 * bfd-in2.h: Regenerate.
980 * libcoff.h: Likewise.
982 2001-10-10 Alan Modra <amodra@bigpond.net.au>
984 * elf.c (elf_map_symbols): Don't create new section symbols; Use
985 existing section syms. Update comments.
986 (copy_private_bfd_data): Formatting fixes.
987 (elfcore_grok_win32pstatus): Likewise.
988 (swap_out_syms): Likewise. Remove unnecessary level of braces.
990 2001-10-09 Alan Modra <amodra@bigpond.net.au>
992 * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
994 (elf_group_name): Define.
995 (elf_next_in_group): Define.
996 * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
997 (setup_group): Don't use sec->lineno for SHT_GROUP section to store
998 first member section; Instead use elf_next_in_group.
999 (bfd_section_from_shdr): Likewise.
1000 (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
1002 2001-10-09 Alan Modra <amodra@bigpond.net.au>
1004 * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
1005 "next_in_group". Fix gp and gp_size comments.
1006 * elf.c (union elf_internal_group): New.
1007 (setup_group): New function.
1008 (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
1009 Call setup_group for SHF_GROUP sections.
1010 (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
1011 (elf_fake_sections): Set header type for SEC_GROUP, and header
1012 flags for sections in a group.
1013 (set_group_contents): New function.
1014 (_bfd_elf_compute_section_file_positions): Call it.
1015 (assign_section_numbers): Set sh_link for SHT_GROUP.
1017 * elflink.h (gc_mark_hook): Handle section groups.
1018 * elfxx-target.h: Add SEC_GROUP to applicable_flags.
1019 * section.c (SEC_GROUP): Define.
1020 (struct sec): Comment fixes.
1021 * bfd-in2.h: Regenerate.
1023 * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
1024 out of function args.
1025 (_bfd_elf_canonicalize_reloc): Similarly.
1026 (_bfd_elf_get_symtab): Here too.
1027 (_bfd_elf_canonicalize_dynamic_symtab): And here.
1028 * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
1029 bfd_bread, and remove unnecessary cast.
1031 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1033 * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
1035 2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1037 * dwarf2.c (comp_unit_find_nearest_line): Check for end of
1040 2001-10-06 Alan Modra <amodra@bigpond.net.au>
1042 * bfd.c (bfd_assert): Report bfd version.
1043 (_bfd_abort): Likewise.
1045 * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
1046 section sym values. Instead replace any relocs against them with
1047 relocs against STN_UNDEF, which has a zero value.
1049 * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
1052 2001-10-05 Jeff Law <law@redhat.com>
1054 * som.h (som_exec_data): New field "version_id".
1055 * som.c (som_object_setup): Record the version_id if it
1057 (som_prep_headers): Do not initialize version_id here.
1058 (som_finish_writing): Initialize version_id here.
1060 2000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1062 * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
1063 according to the MIPS/SGI ELF64 ABI Draft.
1064 (mips_elf_sort_hash_table): Typo.
1066 2001-10-04 Alan Modra <amodra@bigpond.net.au>
1068 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo.
1070 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
1071 copying flags if this is a weakdef.
1073 2001-10-04 Alan Modra <amodra@bigpond.net.au>
1075 * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
1078 * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
1079 to 1 rather than 0 to avoid confusing copy_indirect_symbol.
1080 (mips_elf_sort_hash_table_f): Compare got.offset against 1.
1082 * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
1083 depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
1084 backends we configure. Run "make dep-am".
1085 (install-data-local): Install symcat.h.
1086 * dep-in.sed: Remove symcat.h from dependencies.
1087 * Makefile.in: Regenerate.
1089 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1091 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc.
1093 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1095 * elf64-mips.c (elf_backend_may_use_rela_p): New define.
1096 (elf_backend_default_use_rela_p): New define.
1098 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1100 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
1103 * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
1104 * configure: Regenerate.
1105 * Makefile.am (BFD_H_FILES): Add version.h.
1106 * Makefile.in: Regenerate.
1107 * po/SRC-POTFILES.in: Regenerate.
1109 * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
1110 elf_backend_copy_indirect_symbol so that backend has a chance to
1111 copy other necessary fields.
1112 * elf-bfd.h (struct elf_backend_data): Update description of
1113 elf_backend_copy_indirect_symbol.
1114 * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
1115 copying flags if this is a weakdef.
1116 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
1117 (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
1118 than bfd_link_hash_lookup.
1119 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
1120 reloc processing for weakdefs.
1121 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
1122 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
1124 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1126 * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
1127 result of ELF64_R_TYPE to enum before using in a switch.
1128 (ppc64_elf_gc_mark_hook): Likewise.
1129 (ppc64_elf_gc_sweep_hook): Likewise.
1130 (ppc64_elf_reloc_type_class): Likewise.
1132 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1134 * version.h: New file.
1135 * bfd-in.h: (BFD_VERSION): Substitute bfd_version.
1136 (BFD_VERSION_DATE): Define.
1137 (BFD_VERSION_STRING): Define.
1138 * configure.in: AC_SUBST bfd_version, bfd_version_date and
1140 (AC_OUTPUT <bfd-in3.h>): Depend on version.h.
1141 * bfd-in2.h: Regenerate.
1142 * configure: Regenerate.
1143 * Makefile.am: Run "make dep-am".
1144 * Makefile.in: Regenerate.
1146 * bfd-in.h: Include "symcat.h".
1147 (CONCAT4): Redefine as for old CAT4.
1148 * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
1149 Add warning regarding whitespace.
1150 * aout-cris.c: Likewise.
1151 * aout-ns32k.c: Likewise.
1152 * aout-sparcle.c: Likewise.
1153 * aout-tic30.c: Likewise.
1154 * aout0.c: Likewise.
1155 * armnetbsd.c: Likewise.
1156 * demo64.c: Likewise.
1157 * elf-bfd.h: Likewise.
1158 * gen-aout.c: Likewise.
1159 * host-aout.c: Likewise.
1160 * hp300bsd.c: Likewise.
1161 * hp300hpux.c: Likewise.
1162 * i386aout.c: Likewise.
1163 * i386bsd.c: Likewise.
1164 * i386dynix.c: Likewise.
1165 * i386freebsd.c: Likewise.
1166 * i386linux.c: Likewise.
1167 * i386lynx.c: Likewise.
1168 * i386mach3.c: Likewise.
1169 * i386netbsd.c: Likewise.
1170 * libaout.h: Likewise.
1171 * m68k4knetbsd.c: Likewise.
1172 * m68klinux.c: Likewise.
1173 * m68klynx.c: Likewise.
1174 * m68knetbsd.c: Likewise.
1175 * m88kmach3.c: Likewise.
1176 * mipsbsd.c: Likewise.
1177 * newsos3.c: Likewise.
1178 * ns32knetbsd.c: Likewise.
1179 * pc532-mach.c: Likewise.
1180 * pdp11.c: Likewise.
1181 * riscix.c: Likewise.
1182 * sparclinux.c: Likewise.
1183 * sparclynx.c: Likewise.
1184 * sparcnetbsd.c: Likewise.
1185 * sunos.c: Likewise.
1186 * targets.c: Likewise.
1187 * vaxnetbsd.c: Likewise.
1188 * vms-hdr.c: Likewise.
1190 2001-10-01 Alan Modra <amodra@bigpond.net.au>
1192 * bfd-in.h: Remove comments regarding generated files.
1193 * libbfd-in.h: Likewise.
1194 * libcoff-in.h: Likewise.
1195 * bfd-in2.h: Regenerate.
1196 * libbfd.h: Likewise.
1197 * libcoff.h: Likewise.
1199 2001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp>
1200 Hans-Peter Nilsson <hp@bitrange.com>
1202 * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
1203 partial_inplace, matching assembler output. Set src_mask to
1205 (sh_elf_relocate_section): Delete misplaced comment.
1206 For relocatable linking against section symbol, call
1207 _bfd_relocate_contents for partial_inplace relocs and adjust
1208 rel->r_addend for others.
1209 <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
1210 bfd_get_32, not at rel->r_addend.
1212 2001-09-30 Alan Modra <amodra@bigpond.net.au>
1214 * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
1215 the old dir refcount, so we indirectly set them to init_refcount.
1216 Short-circuit asserts when we've just verified they are true.
1218 2001-09-29 Alan Modra <amodra@bigpond.net.au>
1220 * section.c (struct sec): Remove kept_section.
1221 (STD_SECTION): Remove kept_section initialisation.
1222 (bfd_make_section_anyway): Here too.
1223 * ecoff.c (bfd_debug_section): Remove kept_section initialisation.
1224 * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
1225 * elflink.h (elf_link_input_bfd): Set discarded link-once section
1226 symbols to zero, and remove all code involved with kept_section
1227 and tracking section symbol values.
1228 * bfd-in2.h: Regenerate.
1229 * configure.in: Bump version number.
1230 * configure: Regenerate.
1232 2001-09-29 Alan Modra <amodra@bigpond.net.au>
1234 * elf64-ppc.c (struct ppc_dyn_relocs): New.
1235 (IS_ABSOLUTE_RELOC): Define.
1236 (struct ppc_link_hash_entry): New.
1237 (struct ppc_link_hash_table): New.
1238 (ppc_hash_table): Define.
1239 (link_hash_newfunc): New function.
1240 (ppc64_elf_link_hash_table_create): New function.
1241 (create_got_section): New function.
1242 (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
1243 pointers to our dynamic sections in hash table.
1244 (ppc64_elf_copy_indirect_symbol): New function.
1245 (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
1246 dynamic sections. Localise vars. Modify code for refcounts
1247 starting from zero. Don't allocate here, or force symbols dynamic.
1248 Don't copy all relocs if shared, select ones we need. Add code
1249 to track possible copy relocs for non-shared link.
1250 (ppc64_elf_gc_mark_hook): Update comment.
1251 (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
1252 (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
1253 code for reference counting garbage collection. Don't create .plt
1254 entries for functions that don't comply with ABI naming convention,
1255 and don't allocate .plt space here. Use short-cuts to dynamic
1256 sections. If possible, keep dynamic relocations instead of using
1257 copy relocs. Remove confused comments.
1258 (ppc_adjust_dynindx): Delete.
1259 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1260 (allocate_dynrelocs): New function.
1261 (readonly_dynrelocs): New function.
1262 (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
1263 space here, and call allocate_dynrelocs to allocate space for
1264 global .plt, .got and reloc sections. Use short-cuts to dynamic
1265 sections. Call readonly_dynrelocs to determine whether we need
1266 DT_TEXTREL. Don't generate section symbols here, the generic
1267 ELF linker code does it for us.
1268 (ppc64_elf_final_link): Call regular ELF backend linker rather than
1269 gc variety, since we do our own .got handling.
1270 (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
1271 dynamic section short-cuts. Localise vars, and delay setting.
1272 Handle unknown relocs in main switch statement. Replace ugly
1273 complicated tests for unresolvable relocs with a simple direct
1274 scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
1275 before allowing an undefined sym in a shared lib. Do R_*_DS tests
1276 after main switch, when we've set addend. Do non-addend insn
1277 tweaks before main swithc. Ignore input_section->vma when
1278 calculating reloc offsets as it's always zero. Rewrite dynamic
1279 reloc handling. Consolidate R_*_HA handling. Handle more relocs.
1280 (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
1281 of dynamic section short-cuts. Reorganise .plt handling code.
1282 Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
1283 Move expressions out of swap_reloca_out function calls.
1284 (ppc64_elf_reloc_type_class): New function.
1285 (ppc64_elf_info_to_howto): Move common expression to local var.
1286 (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
1287 of dynamic section short-cuts. Don't fiddle with section syms
1288 here as the ELF linker does it for us.
1289 (elf_backend_can_refcount): Define.
1290 (bfd_elf64_bfd_link_hash_table_create): Define.
1291 (elf_backend_copy_indirect_symbol): Define.
1292 (elf_backend_reloc_type_class): Define.
1293 (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
1295 2001-09-29 Alan Modra <amodra@bigpond.net.au>
1297 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
1298 (struct elf_backend_data): Add can_refcount.
1299 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
1300 got.refcount and plt.refcount from init_refcount.
1301 (_bfd_elf_link_hash_table_init): Set up init_refcount.
1302 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
1303 rather than got/plt.offset, and test for <= 0 rather than -1.
1304 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
1305 * elfxx-target.h (elf_backend_can_refcount): Define.
1306 (elfNN_bed): Init can_refcount.
1307 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
1308 (_bfd_generic_link_hash_newfunc): Likewise.
1309 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
1311 (elf_backend_can_refcount): Define.
1312 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
1314 (elf32_hppa_copy_indirect_symbol): Make static to agree with
1316 (elf_backend_can_refcount): Define.
1317 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
1319 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
1320 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
1321 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
1322 (elf_backend_can_refcount): Define.
1323 (elf_i386_copy_indirect_symbol): Make static to agree with
1324 prototype. Formatting fix.
1325 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
1327 (elf_backend_can_refcount): Define.
1328 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
1330 (elf_backend_can_refcount): Define.
1331 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
1333 (elf_backend_can_refcount): Define.
1334 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
1336 (elf_backend_can_refcount): Define.
1337 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
1339 (elf_backend_can_refcount): Define.
1341 * som.c (som_write_symbol_strings): Cast current_offset in
1342 bfd_seek call to match param type.
1344 2001-09-28 J. Brobecker <brobecker@gnat.com>
1346 * som.c (som_write_symbol_strings): Fix incorrect type of
1347 current_offset to match the function definition. Fixes a build
1348 failure on HPUX-11.00.
1350 2001-09-28 Richard Henderson <rth@redhat.com>
1352 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
1353 SEC_MERGE, SEC_STRINGS.
1355 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
1356 * bfd-in2.h: Rebuild.
1358 2001-09-28 Alan Modra <amodra@bigpond.net.au>
1360 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
1361 reloc code using x86_64_reloc_map.
1363 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
1364 no longer allocate here. Localise some vars to blocks where they
1366 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
1367 setting of vars until needed.
1368 (allocate_dynrelocs): Don't create a .plt entry without a reloc
1369 when symbol visibilty makes a function local.
1370 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
1371 swap_reloca_out function calls.
1372 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
1373 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
1376 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
1377 no longer allocate here. Localise some vars to blocks where they
1378 are used. Remove separate switch stmt for creating .got sec.
1379 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
1380 redundant casts and aborts. Delay setting of vars until needed.
1381 (allocate_dynrelocs): Remove redundant casts and aborts.
1382 (elf_i386_size_dynamic_sections): Move comment.
1383 (elf_i386_finish_dynamic_symbol): Move expressions out of function
1385 (elf_i386_relocate_section): Likewise. Comment typo fix.
1386 (elf_i386_finish_dynamic_sections): Migrate common code out of
1388 (elf_backend_* defines): Sort.
1390 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
1391 without a reloc when symbol visibilty makes a function local.
1393 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
1395 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
1396 conflicting float flags.
1398 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1400 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
1401 (elf_backend_copy_indirect_symbol): Define.
1402 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
1403 (struct elf_i386_link_hash_table): Likewise.
1404 (link_hash_newfunc): Get rid of unnecessary casts.
1405 (elf_i386_link_hash_table_create): Likewise.
1406 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
1407 Don't test input section SEC_READONLY here to try to avoid copy
1408 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
1409 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
1410 here to properly test whether we need copy relocs. Do so for weak
1413 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
1414 (elf_backend_copy_indirect_symbol): Define.
1415 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
1416 (stub_hash_newfunc): Get rid of unnecessary casts.
1417 (hppa_link_hash_newfunc): Likewise.
1418 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
1419 Don't test input section SEC_READONLY here to try to avoid copy
1420 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
1421 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
1422 here to properly test whether we need copy relocs. Do so for weak
1425 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1427 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
1428 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1429 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
1431 2001-09-25 Jakub Jelinek <jakub@redhat.com>
1433 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
1436 2001-09-25 H.J. Lu <hjl@gnu.org>
1438 * bfd-in2.h: Regenerated.
1440 2001-09-25 Alan Modra <amodra@bigpond.net.au>
1442 * elf32-i386.c: Add comment re linker function names and ordering.
1443 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
1444 (elf_i386_grok_prstatus): Move before linker functions.
1445 (elf_i386_grok_psinfo): Likewise.
1446 (elf_i386_fake_sections): Move so that functions are ordered.
1447 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
1449 2001-09-25 Alan Modra <amodra@bigpond.net.au>
1451 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
1454 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
1455 code handling this option.
1456 (LONG_BRANCH_VIA_PLT): Likewise.
1457 (RELATIVE_DYNRELOCS): Define as zero.
1458 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
1459 "pc_count" fields. Remove "section" field.
1460 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
1461 (elf32_hppa_check_relocs): Don't allocate space for dynamic
1462 relocs here. Instead, record all needed dynamic relocs via
1463 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
1464 in elf_section_data.
1465 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1466 (allocate_plt_and_got_and_discard_relocs): Rename to
1467 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
1468 (readonly_dynrelocs): New function.
1469 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
1470 Call readonly_dynrelocs to determine need for DT_TEXTREL.
1471 Rename "i" to "ibfd". Allocate space for local dyn relocs.
1472 (elf32_hppa_relocate_section): Make use of cached sreloc.
1473 (elf32_hppa_reloc_type_class): New function.
1474 (elf_backend_reloc_type_class): Define.
1476 2001-09-25 Alan Modra <amodra@bigpond.net.au>
1478 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
1479 and "sreloc" fields.
1480 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
1481 "pc_count" fields. Remove "section" field.
1482 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
1483 allocate space for dynamic relocs here. Instead, record all
1484 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
1485 pointer to "sreloc" section in elf_section_data.
1486 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1487 (allocate_plt_and_got_and_discard_relocs): Rename to
1488 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
1489 (readonly_dynrelocs): New function.
1490 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
1491 Rename "i" to "ibfd". Allocate space for local dyn relocs.
1492 (elf_i386_relocate_section): Make use of cached sreloc.
1494 2001-09-24 Alan Modra <amodra@bigpond.net.au>
1496 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
1497 reloc rather than just the type.
1498 (_bfd_elf_reloc_type_class): Likewise.
1499 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1500 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
1501 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
1502 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
1503 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
1504 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
1505 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
1506 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
1507 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
1508 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
1509 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
1510 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
1511 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
1512 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
1513 * elflink.h: Formatting fixes.
1514 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
1515 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
1516 o->contents to PTR. Update call to elf_backend_reloc_type_class.
1518 2001-09-22 John Reiser <jreiser@BitWagon.com>
1520 * elfcode.h (elf_object_p): Allow for no section header at all in
1521 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
1523 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
1525 * elfxx-ia64.c: Fix compile time warning messages.
1526 * coff-mcore.c: Fix compile time warning messages.
1527 * coff-ppc.c: Fix compile time warning messages.
1528 * coffcode.h: Fix compile time warning messages.
1529 * elf32-mips.c: Fix compile time warning messages.
1530 * elf64-alpha.c: Fix compile time warning messages.
1531 * libbfd.c: Fix compile time warning messages.
1532 * bfd-in2.h: Regenerate.
1534 2001-09-21 Alan Modra <amodra@bigpond.net.au>
1536 * Makefile.am: Run "make dep-am".
1537 * Makefile.in: Regenerate.
1539 * aoutx.h: Formatting fixes.
1540 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
1542 * linker.c: Replace bfd_get_filename with bfd_archive_filename
1545 2001-09-21 Alan Modra <amodra@bigpond.net.au>
1547 * bfd.c (bfd_archive_filename): New function.
1548 * bfd-in2.h: Regenerate.
1549 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
1550 in error messages where the bfd is an input bfd.
1551 * aout-cris.c: Likewise.
1552 * coff-arm.c: Likewise.
1553 * coff-mcore.c: Likewise.
1554 * coff-ppc.c: Likewise.
1555 * coff-rs6000.c: Likewise.
1556 * coff-sh.c: Likewise.
1557 * coff-tic54x.c: Likewise.
1558 * coff-tic80.c: Likewise.
1559 * coff64-rs6000.c: Likewise.
1560 * coffcode.h: Likewise.
1561 * coffgen.c: Likewise.
1562 * cofflink.c: Likewise.
1563 * ecofflink.c: Likewise.
1564 * elf-hppa.h: Likewise.
1566 * elf32-arm.h: Likewise.
1567 * elf32-cris.c: Likewise.
1568 * elf32-gen.c: Likewise.
1569 * elf32-hppa.c: Likewise.
1570 * elf32-i370.c: Likewise.
1571 * elf32-i386.c: Likewise.
1572 * elf32-m32r.c: Likewise.
1573 * elf32-mcore.c: Likewise.
1574 * elf32-mips.c: Likewise.
1575 * elf32-ppc.c: Likewise.
1576 * elf32-s390.c: Likewise.
1577 * elf32-sh.c: Likewise.
1578 * elf32-sparc.c: Likewise.
1579 * elf32-v850.c: Likewise.
1580 * elf64-alpha.c: Likewise.
1581 * elf64-gen.c: Likewise.
1582 * elf64-ppc.c: Likewise.
1583 * elf64-s390.c: Likewise.
1584 * elf64-sparc.c: Likewise.
1585 * elf64-x86-64.c: Likewise.
1586 * elflink.h: Likewise.
1587 * elfxx-ia64.c: Likewise.
1590 * libbfd.c: Likewise.
1591 * pdp11.c: Likewise.
1592 * pe-mips.c: Likewise.
1593 * peicode.h: Likewise.
1595 * xcofflink.c: Likewise.
1597 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
1599 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
1602 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
1605 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
1606 Consolidate error messages, and split long messages to two lines.
1608 2001-09-20 John Reiser <jreiser@BitWagon.com>
1610 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
1611 and info->allow_shlib_undefined.
1612 * elf32-cris.c: Likewise.
1613 * elf32-hppa.c: Likewise.
1614 * elf32-m68k.c: Likewise.
1615 * elf32-mips.c: Likewise.
1616 * elf32-ppc.c: Likewise.
1617 * elf32-s390.c: Likewise.
1618 * elf32-sh.c: Likewise.
1619 * elf32-sparc.c: Likewise.
1620 * elf64-alpha.c: Likewise.
1621 * elf64-hppa.c: Likewise.
1622 * elf64-ppc.c: Likewise.
1623 * elf64-s390.c: Likewise.
1624 * elf64-sparc.c: Likewise.
1625 * elf64-x86-64.c: Likewise.
1626 * elfxx-ia64.c: Likewise.
1628 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1630 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
1631 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
1632 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
1633 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
1634 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
1635 (bfd_default_scan): Use ISDIGIT instead of isdigit.
1636 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
1637 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
1638 isxdigit/isdigit/islower.
1639 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
1640 (mangle_name): Use ISALNUM instead of isalnum.
1641 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
1642 (scan): Use ISDIGIT instead of isdigit.
1643 * hosts/alphavms.h: Don't include <ctype.h>.
1644 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
1645 (ieee_object_p): Use TOUPPER instead of toupper.
1646 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
1647 (ihex_bad_byte): Use ISPRINT instead of isprint.
1648 * merge.c: Don't include <ctype.h>.
1649 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
1650 (oasys_write_sections): Use ISDIGIT instead of isdigit.
1651 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
1652 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
1653 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
1654 (mangle_name): Use ISALNUM instead of isalnum.
1655 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
1656 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
1657 isupper/islower/isdigit.
1658 (som_decode_symclass): Use TOUPPER instead of toupper.
1659 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
1660 (srec_bad_byte): Use ISPRINT instead of isprint.
1661 (srec_scan): Use ISSPACE instead of isspace.
1662 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
1663 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
1664 * syms.c: Include "safe-ctype.h"
1665 (islower, toupper): Remove macro definitions.
1666 (bfd_decode_symclass): Use TOUPPER instead of toupper.
1667 * vms-gsd.c: Don't include <ctype.h>.
1668 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
1669 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
1671 * vms-tir.c: Don't include <ctype.h>.
1673 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1675 * libbfd.c (bfd_bread): New function replacing bfd_read without
1676 redundant params. Allow reads up to (size_t) -2 in length.
1677 (bfd_bwrite): Similarly for bfd_write.
1678 (real_read): Return a size_t.
1679 (bfd_read): Call bfd_bread.
1680 (bfd_write): Call bfd_bwrite.
1681 (warn_deprecated): New function to annoy everybody.
1682 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
1683 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
1684 (bfd_read, bfd_write): Define as macro.
1685 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
1686 likewise for bfd_write. Ensure function args are correct size by
1687 using casts or local vars. In some cases, remove unnecessary
1688 casts. Formatting fixes, in some cases removing a large expression
1689 from function args by using a local var. Replace CONST with const.
1690 Modify variable types to avoid warings. Use casts to avoid
1691 warnings when using negative numbers in unsigned expressions.
1692 * aout-adobe.c: Likewise.
1693 * aout-arm.c: Likewise.
1694 * aout-cris.c: Likewise.
1695 * aout-encap.c: Likewise.
1696 * aout-ns32k.c: Likewise.
1697 * aout-target.h: Likewise.
1698 * aout-tic30.c: Likewise.
1699 * aoutf1.h: Likewise.
1700 * aoutx.h: Likewise.
1701 * archive.c: Likewise.
1702 * archures.c: Likewise.
1703 * bfd-in.h: Likewise.
1705 * binary.c: Likewise.
1707 * cache.c: Likewise.
1708 * cisco-core.c: Likewise.
1709 * coff-a29k.c: Likewise.
1710 * coff-alpha.c: Likewise.
1711 * coff-arm.c: Likewise.
1712 * coff-h8300.c: Likewise.
1713 * coff-h8500.c: Likewise.
1714 * coff-i386.c: Likewise.
1715 * coff-i860.c: Likewise.
1716 * coff-i960.c: Likewise.
1717 * coff-ia64.c: Likewise.
1718 * coff-m68k.c: Likewise.
1719 * coff-m88k.c: Likewise.
1720 * coff-mcore.c: Likewise.
1721 * coff-mips.c: Likewise.
1722 * coff-ppc.c: Likewise.
1723 * coff-rs6000.c: Likewise.
1724 * coff-sh.c: Likewise.
1725 * coff-sparc.c: Likewise.
1726 * coff-stgo32.c: Likewise.
1727 * coff-tic30.c: Likewise.
1728 * coff-tic54x.c: Likewise.
1729 * coff-tic80.c: Likewise.
1730 * coff-w65.c: Likewise.
1731 * coff-z8k.c: Likewise.
1732 * coff64-rs6000.c: Likewise.
1733 * coffcode.h: Likewise.
1734 * coffgen.c: Likewise.
1735 * cofflink.c: Likewise.
1736 * coffswap.h: Likewise.
1737 * corefile.c: Likewise.
1738 * cpu-arc.c: Likewise.
1739 * cpu-h8300.c: Likewise.
1740 * cpu-h8500.c: Likewise.
1741 * cpu-i960.c: Likewise.
1742 * cpu-ia64-opc.c: Likewise.
1743 * cpu-ns32k.c: Likewise.
1744 * cpu-pdp11.c: Likewise.
1745 * cpu-pj.c: Likewise.
1746 * cpu-sh.c: Likewise.
1747 * cpu-w65.c: Likewise.
1748 * cpu-z8k.c: Likewise.
1749 * dwarf1.c: Likewise.
1750 * dwarf2.c: Likewise.
1751 * ecoff.c: Likewise.
1752 * ecofflink.c: Likewise.
1753 * ecoffswap.h: Likewise.
1754 * elf-bfd.h: Likewise.
1755 * elf-hppa.h: Likewise.
1756 * elf-m10200.c: Likewise.
1757 * elf-m10300.c: Likewise.
1759 * elf32-arc.c: Likewise.
1760 * elf32-arm.h: Likewise.
1761 * elf32-avr.c: Likewise.
1762 * elf32-cris.c: Likewise.
1763 * elf32-fr30.c: Likewise.
1764 * elf32-gen.c: Likewise.
1765 * elf32-h8300.c: Likewise.
1766 * elf32-hppa.c: Likewise.
1767 * elf32-i370.c: Likewise.
1768 * elf32-i386.c: Likewise.
1769 * elf32-i860.c: Likewise.
1770 * elf32-m32r.c: Likewise.
1771 * elf32-m68k.c: Likewise.
1772 * elf32-mcore.c: Likewise.
1773 * elf32-mips.c: Likewise.
1774 * elf32-openrisc.c: Likewise.
1775 * elf32-pj.c: Likewise.
1776 * elf32-ppc.c: Likewise.
1777 * elf32-s390.c: Likewise.
1778 * elf32-sh-lin.c: Likewise.
1779 * elf32-sh.c: Likewise.
1780 * elf32-sparc.c: Likewise.
1781 * elf32-v850.c: Likewise.
1782 * elf64-alpha.c: Likewise.
1783 * elf64-hppa.c: Likewise.
1784 * elf64-mips.c: Likewise.
1785 * elf64-ppc.c: Likewise.
1786 * elf64-s390.c: Likewise.
1787 * elf64-sparc.c: Likewise.
1788 * elf64-x86-64.c: Likewise.
1789 * elfarm-nabi.c: Likewise.
1790 * elfcode.h: Likewise.
1791 * elfcore.h: Likewise.
1792 * elflink.c: Likewise.
1793 * elflink.h: Likewise.
1794 * elfxx-ia64.c: Likewise.
1795 * elfxx-target.h: Likewise.
1796 * format.c: Likewise.
1798 * hp300hpux.c: Likewise.
1799 * hppabsd-core.c: Likewise.
1800 * hpux-core.c: Likewise.
1801 * i386aout.c: Likewise.
1802 * i386dynix.c: Likewise.
1803 * i386linux.c: Likewise.
1804 * i386lynx.c: Likewise.
1805 * i386mach3.c: Likewise.
1806 * i386msdos.c: Likewise.
1807 * i386os9k.c: Likewise.
1810 * irix-core.c: Likewise.
1811 * libaout.h: Likewise.
1812 * libbfd-in.h: Likewise.
1813 * libbfd.c: Likewise.
1814 * libcoff-in.h: Likewise.
1815 * libecoff.h: Likewise.
1816 * libieee.h: Likewise.
1817 * libnlm.h: Likewise.
1818 * libpei.h: Likewise.
1819 * libxcoff.h: Likewise.
1820 * linker.c: Likewise.
1821 * lynx-core.c: Likewise.
1822 * m68klinux.c: Likewise.
1823 * merge.c: Likewise.
1824 * mipsbsd.c: Likewise.
1825 * netbsd-core.c: Likewise.
1827 * nlm32-alpha.c: Likewise.
1828 * nlm32-i386.c: Likewise.
1829 * nlm32-ppc.c: Likewise.
1830 * nlm32-sparc.c: Likewise.
1831 * nlmcode.h: Likewise.
1832 * nlmswap.h: Likewise.
1833 * ns32k.h: Likewise.
1834 * oasys.c: Likewise.
1835 * opncls.c: Likewise.
1836 * osf-core.c: Likewise.
1837 * pc532-mach.c: Likewise.
1838 * pdp11.c: Likewise.
1839 * pe-mips.c: Likewise.
1840 * peXXigen.c: Likewise.
1841 * peicode.h: Likewise.
1842 * ppcboot.c: Likewise.
1843 * ptrace-core.c: Likewise.
1844 * reloc.c: Likewise.
1845 * reloc16.c: Likewise.
1846 * riscix.c: Likewise.
1847 * rs6000-core.c: Likewise.
1848 * sco5-core.c: Likewise.
1849 * section.c: Likewise.
1851 * sparclinux.c: Likewise.
1852 * sparclynx.c: Likewise.
1854 * stabs.c: Likewise.
1855 * sunos.c: Likewise.
1857 * targets.c: Likewise.
1858 * tekhex.c: Likewise.
1859 * trad-core.c: Likewise.
1860 * versados.c: Likewise.
1861 * vms-gsd.c: Likewise.
1862 * vms-hdr.c: Likewise.
1863 * vms-misc.c: Likewise.
1864 * vms-tir.c: Likewise.
1867 * xcofflink.c: Likewise.
1868 * bfd-in2.h: Regenerate.
1869 * libbfd.h: Regenerate.
1870 * libcoff.h: Regenerate.
1872 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
1873 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
1874 (ufile_ptr): Define.
1875 (bfd_tell): Return a ufile_ptr.
1876 * libbfd.c (bfd_tell): Likewise.
1877 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
1879 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
1880 * aoutf1.h: Likewise.
1882 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
1883 larger than unsigned long can represent.
1885 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
1886 size overflows size_t.
1887 (bfd_realloc): Likewise.
1888 (bfd_zmalloc): Likewise.
1889 * opncls.c (bfd_alloc): Likewise.
1890 (bfd_zalloc): Likewise.
1891 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
1892 (bfd_alloc, bfd_zalloc): Update.
1894 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
1896 (bfd_get_signed_8): Likewise.
1897 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
1898 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
1899 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
1900 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
1901 * libaout.h: Likewise define and use here.
1902 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
1903 * aout-arm.c: Likewise.
1904 * aout-encap.c: Likewise.
1905 * aout-ns32k.c: Likewise.
1906 * aout-tic30.c: Likewise.
1907 * aoutf1.h: Likewise.
1908 * aoutx.h: Likewise.
1910 * coff-alpha.c: Likewise.
1911 * coff-h8300.c: Likewise.
1912 * coff-h8500.c: Likewise.
1913 * coff-i960.c: Likewise.
1914 * coff-ia64.c: Likewise.
1915 * coff-m88k.c: Likewise.
1916 * coff-mips.c: Likewise.
1917 * coff-ppc.c: Likewise.
1918 * coff-rs6000.c: Likewise.
1919 * coff-sh.c: Likewise.
1920 * coff-sparc.c: Likewise.
1921 * coff-stgo32.c: Likewise.
1922 * coff-tic30.c: Likewise.
1923 * coff-tic80.c: Likewise.
1924 * coff-w65.c: Likewise.
1925 * coff-z8k.c: Likewise.
1926 * coff64-rs6000.c: Likewise.
1927 * coffgen.c: Likewise.
1928 * cofflink.c: Likewise.
1929 * coffswap.h: Likewise.
1930 * ecoff.c: Likewise.
1931 * ecoffswap.h: Likewise.
1933 * elf32-mips.c: Likewise.
1934 * elf64-mips.c: Likewise.
1935 * hp300hpux.c: Likewise.
1936 * i386dynix.c: Likewise.
1937 * i386lynx.c: Likewise.
1938 * i386msdos.c: Likewise.
1939 * i386os9k.c: Likewise.
1940 * libpei.h: Likewise.
1941 * nlm32-alpha.c: Likewise.
1942 * nlm32-i386.c: Likewise.
1943 * nlm32-ppc.c: Likewise.
1944 * nlmcode.h: Likewise.
1945 * nlmswap.h: Likewise.
1946 * oasys.c: Likewise.
1947 * pdp11.c: Likewise.
1948 * pe-mips.c: Likewise.
1949 * peXXigen.c: Likewise.
1950 * peicode.h: Likewise.
1951 * riscix.c: Likewise.
1952 * sunos.c: Likewise.
1953 * xcofflink.c: Likewise.
1954 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
1955 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
1956 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
1957 equivalent H_PUT_* macro instead.
1958 (GETWORD, GETHALF, GETBYTE): Similarly.
1959 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1960 (GETWORD, GETHALF, GETBYTE): Likewise.
1961 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1963 * bfd-in.h (struct orl): Change "pos" to a union.
1964 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
1965 (bsd_write_armap): Here too.
1966 (coff_write_armap): And here.
1967 * coff-rs6000.c (xcoff_write_armap_old): And here.
1968 (xcoff_write_one_armap_big): And here.
1969 (xcoff_write_armap_big): And here.
1970 * ecoff.c (_bfd_ecoff_write_armap): And here.
1971 * elf64-mips.c (mips_elf64_write_armap): And here.
1973 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
1974 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
1975 * elf32-h8300.c (elf32_h8_mach): Likewise.
1976 * elf32-mips.c (elf_mips_mach): Likewise.
1977 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
1979 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
1981 (aix386_core_vec): Typo fix.
1983 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
1984 etc. to avoid redefined macro warning.
1985 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
1986 (MY(fix_pcrel_26)): Likewise.
1987 * aout-ns32k.c (MY(put_reloc)): Likewise.
1988 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
1989 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
1990 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
1992 * aout-encap.c: Include "file", not <file> for binutils headers.
1993 (encap_object_p): Half baked attempt to fix compile errors in
1994 code dealing with "magic".
1996 * aout-ns32k.c: Include "file", not <file> for binutils headers.
1997 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
1998 bfd_vma's rather than longs.
1999 * cpu-ns32k.c (ns32k_sign_extend): Delete.
2000 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
2001 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
2003 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
2004 Use unsigned comparisons.
2005 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
2006 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
2007 (_bfd_do_ns32k_reloc_contents): Likewise.
2008 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
2009 (_bfd_ns32k_get_immediate): Likewise.
2010 (_bfd_ns32k_put_displacement): Likewise.
2011 (_bfd_ns32k_put_immediate): Likewise.
2012 (bfd_reloc_status_type): Likewise.
2014 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
2016 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
2017 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
2018 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
2020 (record_toc): Use a bfd_signed_vma for our_toc_offset.
2021 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
2022 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
2024 (_bfd_elfcore_strndup): Likewise for "dup".
2025 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
2026 "name" to avoid shadowing.
2027 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
2028 definition of "off".
2029 * elf32-i386.c (elf_i386_relocate_section): Likewise.
2030 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
2032 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
2034 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
2036 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
2038 (elf_link_input_bfd): Likewise.
2039 (elf_bfd_final_link): Remove duplicate innermost "off" var.
2040 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
2041 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
2043 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
2044 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
2045 (sunos_write_dynamic_symbol): Remove unused vars.
2046 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
2047 innermost "directory_name" and "file_name" vars.
2048 * tekhex.c (first_phase): Rename local var "type" to "stype".
2049 (tekhex_write_object_contents): Rename innermost "s" to "sym".
2050 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
2051 doing comparison at caller.
2052 (vms_esecflag_by_name): Likewise.
2053 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
2054 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
2055 (xcoff_write_global_symbol): Rename "p" param to "inf".
2057 * cisco-core.c: Add missing prototypes.
2058 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
2059 (cisco_core_file_failing_signal): Likewise.
2060 (cisco_core_file_matches_executable_p): Likewise.
2061 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
2062 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
2063 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
2064 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
2066 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
2067 thumb_glue_size and arm_glue_size.
2068 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
2070 * coff64-rs6000.c: Group prototypes together.
2072 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
2073 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
2075 * cpu-arc.c: Add missing prototypes.
2076 * cpu-h8500.c: Likewise.
2077 * cpu-i960.c: Likewise.
2078 * cpu-pj.c: Likewise.
2079 * cpu-sh.c: Likewise.
2080 * cpu-w65.c: Likewise.
2081 * cpu-z8k.c: Likewise.
2082 * elf32-fr30.c: Likewise.
2083 * elf32-h8300.c: Likewise.
2084 * elf32-i370.c: Likewise.
2085 * hpux-core.c: Likewise.
2086 * versados.c: Likewise.
2088 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
2089 * cpu-h8500.c: Likewise.
2090 * cpu-i960.c: Likewise.
2091 * cpu-z8k.c: Likewise.
2093 * cpu-ia64-opc.c: Correct comment.
2095 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
2097 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
2099 (bfd_elf32_write_out_phdrs): Likewise.
2100 (bfd_elf64_write_out_phdrs): Likewise.
2101 (elf_linker_section_pointers): Change addend to bfd_vma.
2102 (_bfd_elf_find_pointer_linker_section): Likewise.
2103 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
2104 filepos to unsigned file_ptr.
2105 (_bfd_elfcore_strndup): Change max param to size_t.
2106 * elf.c (_bfd_elfcore_make_pseudosection): As above.
2107 (_bfd_elfcore_strndup): Likewise.
2108 (_bfd_elf_find_pointer_linker_section): Likewise.
2110 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
2111 insn and sym_value to ints.
2113 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
2115 (elfcore_read_notes): Likewise.
2117 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
2118 param from unsigned char to int.
2119 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
2120 for info_to_howto call.
2121 (add_dynamic_entry): Define macro.
2122 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
2124 * elf32-cris.c (add_dynamic_entry): Define macro.
2125 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
2127 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
2128 (elf32_h8_object_p): Likewise.
2129 (elf32_h8_merge_private_bfd_data): Likewise.
2130 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
2132 * elf32-hppa.c (add_dynamic_entry): Define macro.
2133 (elf32_hppa_size_dynamic_sections): Use it.
2134 * elf32-i370.c (add_dynamic_entry): Define macro.
2135 (i370_elf_size_dynamic_sections): Use it.
2136 (i370_noop): Make static.
2137 * elf32-i386.c (add_dynamic_entry): Define macro.
2138 (elf_i386_size_dynamic_sections): Use it.
2139 * elf32-m68k.c (add_dynamic_entry): Define macro.
2140 (elf_m68k_size_dynamic_sections): Use it.
2141 * elf32-ppc.c (add_dynamic_entry): Define macro.
2142 (ppc_elf_size_dynamic_sections): Use it.
2143 * elf32-s390.c (add_dynamic_entry): Define macro.
2144 (elf_s390_size_dynamic_sections): Use it.
2145 * elf64-alpha.c (add_dynamic_entry): Define macro.
2146 (elf64_alpha_size_dynamic_sections): Use it.
2147 * elf64-hppa.c (add_dynamic_entry): Define macro.
2148 (elf64_hppa_size_dynamic_sections): Use it.
2149 * elf64-ppc.c (add_dynamic_entry): Define macro.
2150 (ppc64_elf_size_dynamic_sections): Use it.
2151 * elf64-s390.c (add_dynamic_entry): Define macro.
2152 (elf_s390_size_dynamic_sections): Use it.
2153 * elf64-sparc.c (add_dynamic_entry): Define macro.
2154 (sparc64_elf_size_dynamic_sections): Use it.
2155 * elf64-x86-64.c (add_dynamic_entry): Define macro.
2156 (elf64_x86_64_size_dynamic_sections): Use it.
2157 * elfxx-ia64.c (add_dynamic_entry): Define macro.
2158 (elfNN_ia64_size_dynamic_sections): Use it.
2160 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
2161 (v850_elf_perform_relocation): Make "r_type" param unsigned.
2163 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
2164 false if the first malloc fails rather than going via error_return.
2166 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
2168 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
2170 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
2172 * elfxx-ia64.c (global_sym_index): Return a long.
2174 * ieee.c (get_symbol): Use int rather than char param.
2175 (ieee_slurp_sections): Move "section" var to inner blocks.
2176 (copy_expression): Don't init "value" to zero or worry about
2177 clearing to zero after using.
2178 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
2181 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
2184 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
2185 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
2187 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
2189 * pc532-mach.c (MYNSX): Delete.
2190 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
2191 (write_object_contents): Correct prototype.
2193 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
2194 than unsigned short.
2196 * section.c (bfd_set_section_contents): Remove redundant
2197 "offset < 0" test. Check that "count" doesn't overflow size_t.
2198 (bfd_get_section_contents): Likewise.
2200 * som.c (som_fixup_formats): Add missing braces.
2201 (som_reloc_addend): Pass a bfd_vma for "addend".
2203 * srec.c (srec_write_record): Pass "type" as an unsigned int.
2204 (srec_write_symbols): Remove an unnecessary var.
2206 * targets.c (_bfd_target_vector): Sort entries. Sort externs
2208 * configure.in: Sort to match. Bump version number.
2209 * configure: Regenerate.
2211 * tekhex.c (move_section_contents): Assert offset == 0.
2213 * versados.c (new_symbol_string): Constify arg.
2214 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
2215 (versados_get_symbol_info): Make static.
2216 (versados_print_symbol): Likewise.
2217 (versados_get_reloc_upper_bound): Likewise.
2218 (versados_canonicalize_reloc): Likewise.
2220 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
2222 * elflink.h (elf_link_input_bfd): Fix typo in error message.
2224 2001-09-17 H.J. Lu <hjl@gnu.org>
2226 * dwarf1.c (parse_die): Take a new arg for the end of the
2227 section. Return false if die is beyond the section.
2228 (parse_functions_in_unit): Pass the end of the section to
2230 (_bfd_dwarf1_find_nearest_line): Likewise.
2232 2001-09-14 Michael Rauch <mrauch@netbsd.org>
2234 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
2235 just like R_SPARC_32.
2237 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2239 * configure.bfd: Add arm-openbsd target.
2241 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2243 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
2244 Add support for mips64.
2246 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
2248 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
2250 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
2252 * elf.c (prep_headers): Get the machine code from the elf
2254 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
2255 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
2256 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
2257 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
2258 * elf-arc.c (arc_elf_final_write_processing): Don't override
2259 e_machine, it's now properly set in prep_headers.
2260 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
2262 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
2263 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
2264 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
2265 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
2266 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
2267 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
2268 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
2269 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
2270 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
2271 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
2272 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
2273 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
2275 2001-09-11 Richard Henderson <rth@redhat.com>
2277 * elf64-alpha.c (elf64_alpha_section_flags): New.
2278 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
2280 2001-09-11 Richard Henderson <rth@redhat.com>
2282 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
2283 apply HINT relocations against dynamic symbols.
2285 2001-09-11 H.J. Lu <hjl@gnu.org>
2287 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
2289 2001-09-09 Richard Henderson <rth@redhat.com>
2291 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
2293 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
2294 following a call to a near function.
2296 2001-09-08 Richard Henderson <rth@redhat.com>
2298 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
2299 relocation errors. Fail gp-relative relocations against
2302 2001-09-08 Alan Modra <amodra@bigpond.net.au>
2304 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
2305 as well as DEF_DYNAMIC in test for avoided copy relocs.
2306 (allocate_plt_and_got_and_discard_relocs): Likewise.
2307 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
2308 (allocate_plt_and_got_and_discard_relocs): Likewise.
2310 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2312 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
2315 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2317 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
2319 (mips_elf64_howto_table_rel): Likewise.
2321 2001-09-05 Tom Rix <trix@redhat.com>
2323 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
2324 and syscall symbols.
2325 (write_global_symbol) : Same.
2326 (bfd_xcoff_export_symbol): Remove unused syscall param.
2327 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
2328 bfd_xcoff_import_symbol.
2330 * bfd-in2.h : Regenerate.
2332 2001-09-04 Richard Henderson <rth@redhat.com>
2334 * elf64-alpha.c (SKIP_HOWTO): New.
2335 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
2336 Fix sizes of 16-bit mem format relocs.
2337 (elf64_alpha_reloc_map): Update to match.
2338 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
2339 (elf64_alpha_relax_without_lituse): Likewise.
2340 (elf64_alpha_check_relocs): Handle GPREL16.
2341 (elf64_alpha_relocate_section): Likewise.
2342 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
2343 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
2344 * bfd-in2.h, libbfd.h: Rebuild.
2346 2001-09-04 Jeff Law <law@redhat.com>
2348 * elf32-h8300.c (elf32_h8_relax_section): New function.
2349 (elf32_h8_relax_delete_bytes): Likewise.
2350 (elf32_h8_symbol_address_p): Likewise.
2351 (elf32_h8_get_relocated_section_contents): Likewise.
2352 (bfd_elf32_bfd_relax_section): Define.
2353 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
2355 * elf32-h8300.c (special): New function.
2356 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
2358 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
2359 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
2360 Fix minor problems with 8bit and 16bit PC relative relocations.
2362 2001-09-01 Andreas Jaeger <aj@suse.de>
2364 * vms-tir.c: Add missing prototypes.
2365 * vms-hdr.c: Likewise.
2366 * vms-gsd.c: Likewise.
2367 * vms-misc.c: Likewise.
2369 2001-08-31 H.J. Lu <hjl@gnu.org>
2371 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
2372 with bad relocation.
2374 2001-08-31 Eric Christopher <echristo@redhat.com>
2375 Jason Eckhardt <jle@redhat.com>
2377 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
2378 mips32_4k and mips64.
2379 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
2380 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
2381 * bfd/cpu-mips.c: Ditto.
2382 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
2383 * bfd/bfd-in2.h: Regenerate.
2385 2001-08-31 Jakub Jelinek <jakub@redhat.com>
2387 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
2388 value into R_ALPHA_RELATIVE's addend.
2389 (elf64_alpha_finish_dynamic_symbol): Likewise.
2391 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
2393 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
2394 recomputed addend during relocatable link if not USE_REL.
2396 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
2399 2001-08-30 H.J. Lu <hjl@gnu.org>
2401 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
2403 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
2404 relocations for weak definitions.
2406 2001-08-30 H.J. Lu <hjl@gnu.org>
2408 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
2409 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
2410 * Makefile.in: Rebuild.
2412 2001-08-30 H.J. Lu <hjl@gnu.org>
2414 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
2415 dynamic relocation for undefined weak symbols when creating
2416 executables. Check h->root.root.type, instead of h->root.type.
2418 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2420 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2421 default from coff to elf.
2423 2001-08-29 Jeff Law <law@redhat.com>
2425 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
2427 (h8_reloc_map): Similarly.
2428 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
2429 Add support for PC relative relocations.
2431 * elf32-h8300.c: Put all prototypes together.
2432 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
2433 (elf32_h8_final_link_relocate): New function for linker.
2434 (elf32_h8_relocate_section): Similarly.
2435 (elf_backend_relocate_section): Define.
2437 * cpu-h8300.c (h8300_scan, compatible): Prototype.
2438 (h8300_scan): Handle architecture:machine encodings typically
2439 found in linker scripts.
2440 * elf.c (prep_headers): Do not try to do H8 machine recognition
2442 * elf32-h8300.c: Add some missing prototypes.
2443 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
2444 (elf32_h8_object_p): Similarly.
2446 2001-08-29 Tom Rix <trix@redhat.com>
2448 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
2449 does not follow a XTY_SD.
2451 2001-08-29 Alan Modra <amodra@bigpond.net.au>
2453 * targmatch.sed: Delete case statements.
2454 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
2457 2001-08-29 J"orn Rennecke <amylaar@redhat.com>
2459 * Makefile.am (elf32-h8300.lo): New target.
2460 * config.bfd (h8300*-*-elf): New case.
2461 * configure.in (bfd_elf32_h8300_vec): New case.
2462 * elf.c (prep_headers): Add case for bfd_arch_h8300.
2463 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
2464 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
2465 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
2466 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
2467 * elf32-h8300.c: New file.
2468 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
2470 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2472 * sparclynx.c: Add missing prototypes.
2473 * coff-mcore.c: Add missing prototypes.
2474 * elf32-pj.c: Add missing prototypes.
2475 * nlm32-sparc.c: Add missing prototypes.
2476 * oasys.c: Add missing prototypes.
2477 * pdp11.c: Add missing prototypes.
2478 * pe-mips.c: Add missing prototypes.
2479 * riscix.c: Add missing prototypes.
2481 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
2483 * elf32-i386.c: Add missing prototypes.
2484 * elf32-ppc.c: Likewise.
2485 * elf32-sh-lin.c: Likewise.
2486 * elfarm-nabi.c: Likewise.
2488 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
2490 * elf32-i386.c (elf_i386_grok_prstatus): New function.
2491 (elf_i386_grok_psinfo): New function.
2492 (elf_backend_grok_prstatus): Define.
2493 (elf_backend_grok_psinfo): Likewise.
2494 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
2495 (ppc_elf_grok_psinfo): New function.
2496 (elf_backend_grok_prstatus): Define.
2497 (elf_backend_grok_psinfo): Likewise.
2498 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
2499 (elf32_shlin_grok_psinfo): New function.
2500 (elf_backend_grok_prstatus): Define.
2501 (elf_backend_grok_psinfo): Likewise.
2502 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
2503 (elf32_arm_nabi_grok_psinfo): New function.
2504 (elf_backend_grok_prstatus): Define.
2505 (elf_backend_grok_psinfo): Likewise.
2507 2001-08-27 H.J. Lu <hjl@gnu.org>
2509 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
2511 (mips_elf_calculate_relocation): Create dynamic relocation for
2512 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
2515 2001-08-27 H.J. Lu <hjl@gnu.org>
2517 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
2518 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
2519 (_bfd_elf32_mips_grok_prstatus): Likewise.
2520 (_bfd_elf32_mips_grok_psinfo): Likewise.
2521 (_bfd_mips_elf_hide_symbol): Make it static and cast to
2522 `struct mips_elf_link_hash_entry *'.
2523 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
2525 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2527 * mipsbsd.c: Add missing prototypes.
2528 * hp300hpux.c: Add missing prototypes.
2529 * i386aout.c: Add missing prototypes.
2530 * i386lynx.c: Add missing prototypes.
2531 * i386mach3.c: Add missing prototypes.
2532 * i386msdos.c: Add missing prototypes.
2533 * i386os9k.c: Add missing prototypes.
2535 2001-08-27 Linus Nordberg <linus@swox.se>
2536 Torbjorn Granlund <tege@swox.com>
2537 Staffan Ulfberg <staffanu@swox.se>
2538 Alan Modra <amodra@bigpond.net.au>
2540 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
2541 targ64_selvecs for 32 bit powerpc targets.
2542 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
2543 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
2545 * Makefile.in: Regenerate.
2546 * configure.in: Add elf64_powerpc vecs.
2547 * configure: Regenerate.
2548 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
2549 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
2550 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
2551 * elf64-ppc.c: New file.
2552 * reloc.c: Add powerpc64 relocs.
2553 * libbfd.h: Regenerate.
2554 * bfd-in2.h: Regenerate.
2556 2001-08-27 Andreas Schwab <schwab@suse.de>
2558 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
2559 reloc is against read-only section.
2560 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
2561 looking up section names for DT_TEXTREL.
2562 (elf32_m68k_reloc_type_class): New function.
2563 (elf_backend_reloc_type_class): Define.
2565 2001-08-27 Andreas Jaeger <aj@suse.de>
2567 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
2568 reloc is against read-only section.
2569 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
2570 looking up section names for DT_TEXTREL.
2571 (elf_s390_reloc_type_class): New.
2572 (elf_backend_reloc_type_class): Define.
2574 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
2575 reloc is against read-only section.
2576 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
2577 looking up section names for DT_TEXTREL.
2578 (elf_s390_reloc_type_class): New.
2579 (elf_backend_reloc_type_class): Define.
2581 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
2582 is against read-only section.
2583 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2584 looking up section names for DT_TEXTREL.
2585 (ppc_elf_reloc_type_class): New.
2586 (elf_backend_reloc_type_class): Define.
2588 2001-08-26 Andreas Jaeger <aj@suse.de>
2590 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
2591 reloc is against read-only section.
2592 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
2593 looking up section names for DT_TEXTREL.
2594 (elf_cris_reloc_type_class): New.
2595 (elf_backend_reloc_type_class): Define.
2597 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
2598 against read-only section.
2599 (elf_backend_reloc_type_class): Define.
2600 (sh_elf_reloc_type_class): New.
2601 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2602 looking up section names for DT_TEXTREL.
2604 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
2605 reloc is against read-only section.
2606 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
2607 looking up section names for DT_TEXTREL.
2608 (elf32_arm_reloc_type_class): New.
2609 (elf_backend_reloc_type_class): Define.
2611 2001-08-25 Andreas Jaeger <aj@suse.de>
2613 * oasys.c: Add missing prototypes.
2615 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
2616 attribute for parameter.
2617 * elf.c (_bfd_elf_reloc_type_class): Likewise.
2619 * versados.c (get_4): Make static.
2620 (get_10): Make static.
2621 Add missing prototypes.
2622 (process_esd): Fix call to versados_new_symbol.
2624 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
2626 * coff-a29k.c: Add missing prototypes.
2627 * coff-apollo.c: Add missing prototypes.
2628 * coff-arm.c: Add missing prototypes.
2629 * coff-i860.c: Add missing prototypes.
2630 * coff-rs6000.c: Add missing prototypes.
2631 * coff-tic80.c: Add missing prototypes.
2632 * elf-m10200.c: Add missing prototypes.
2633 * elf-m10300.c: Add missing prototypes.
2634 * elf32-arm.h: Add missing prototypes.
2635 * elf32-d10v.c: Add missing prototypes.
2636 * elf32-m32r.c: Add missing prototypes.
2637 * elf32-mcore.c: Add missing prototypes.
2638 * elf32-openrisc.c: Add missing prototypes.
2639 * elf32-sh.c: Add missing prototypes.
2640 * elf32-sparc.c: Add missing prototypes.
2641 * elf32-v850.c: Add missing prototypes.
2642 * elfarm-nabi.c: Add missing prototypes.
2643 * elfarm-oabi.c: Add missing prototypes.
2645 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2647 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
2648 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
2650 2001-08-24 H.J. Lu <hjl@gnu.org>
2652 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
2655 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
2657 * elf-bfd.h (elf_hash_table): Revert definition.
2658 (is_elf_hash_table): New macro.
2659 * elflink.h (elf_link_add_object_symbols): Test
2660 is_elf_hash_table before accessing ELF only fields in hash
2662 (elf_link_create_dynamic_sections): Fail if not using an ELF
2664 (elf_add_dynamic_entry): Fail if not using an ELF hash
2666 (elf_link_record_local_dynamic_symbol): Fail if not using an
2668 (size_dynamic_sections): Fail if not using an ELF hash
2670 (elf_adjust_dynamic_symbol): Fail if not using an ELF
2672 (elf_bfd_final_link): Fail if not using an ELF hash
2675 2001-08-24 H.J. Lu <hjl@gnu.org>
2677 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
2678 table is not an ELF linker hash table.
2680 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
2681 table type to bfd_link_elf_hash_table.
2683 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
2686 * linker.c (_bfd_link_hash_table_init): Set the linker hash
2687 table type to bfd_link_generic_hash_table.
2689 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2691 * bfd.c (bfd_alt_mach_code): New function.
2692 * bfd-in2.h: Rebuilt.
2694 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2696 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
2697 `type' field in the hash entry when deciding whether to follow a
2700 2001-08-24 Jakub Jelinek <jakub@redhat.com>
2702 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
2704 (elf_link_sort_relocs): Adjust accordingly.
2706 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
2707 (elf64_alpha_check_relocs): Set it if section this reloc is against
2708 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
2710 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
2711 is is against read-only section.
2712 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
2713 check section names.
2714 (elf64_alpha_reloc_type_class): New.
2715 (elf_backend_reloc_type_class): Define.
2717 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2719 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
2722 2001-08-23 Andreas Jaeger <aj@suse.de>
2724 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
2725 the reloc is against read-only section.
2726 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
2727 of looking up section names for DT_TEXTREL.
2728 (elf64_x86_64_reloc_type_class): New.
2729 (elf_backend_reloc_type_class): Define.
2731 2001-08-23 H.J. Lu <hjl@gnu.org>
2733 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
2734 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
2736 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
2737 bfd_print_symbol_vandf.
2738 * coffgen.c (coff_print_symbol): Likewise.
2739 * elf.c (bfd_elf_print_symbol): Likewise.
2740 * ieee.c (ieee_print_symbol): Likewise.
2741 * nlmcode.h (nlm_print_symbol): Likewise.
2742 * oasys.c (oasys_print_symbol): Likewise.
2743 * pdp11.c (NAME(aout,print_symbol)): Likewise.
2744 * som.c (som_print_symbol): Likewise.
2745 * srec.c (srec_print_symbol): Likewise.
2746 * tekhex.c (tekhex_print_symbol): Likewise.
2747 * versados.c (versados_print_symbol): Likewise.
2748 * vms.c (vms_print_symbol): Likewise.
2750 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
2751 with bfd_fprintf_vma.
2752 (bfd_elf_print_symbol): Likewise.
2753 * syms.c (bfd_print_symbol_vandf): Likewise.
2755 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2757 * aoutf1.h (sunos_write_object_contents): Silence compile time
2759 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
2761 * bout.c: Add missing function prototypes. Fix formatting.
2762 * coff-z8k.c: Add missing function prototypes. Fix formatting.
2763 * coff-w65.c: Add missing function prototypes. Fix formatting.
2764 * coff-h8500.c: Add missing function prototypes. Fix formatting.
2765 * coff-h8300.c: Add missing function prototypes. Fix formatting.
2766 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
2767 * coff-tic30.c: Add missing function prototypes. Fix formatting.
2768 * coff-m68k.c: Add missing function prototypes. Fix formatting.
2769 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
2770 * coff-sh.c: Add missing function prototypes. Fix formatting.
2772 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2774 * elf-bfd.h (enum elf_reloc_type_class): New.
2775 (struct elf_backend_data): Add elf_backend_reloc_type_class.
2776 (_bfd_elf_reloc_type_class): New.
2777 * elfxx-target.h (elf_backend_reloc_type_class): Define.
2778 (elfNN_bed): Add elf_backend_reloc_type_class.
2779 * elf.c (_bfd_elf_reloc_type_class): New.
2780 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
2781 is against read-only section.
2782 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
2783 looking up section names for DT_TEXTREL.
2784 (elf_i386_reloc_type_class): New.
2785 (elf_backend_reloc_type_class): Define.
2786 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
2787 reloc is against read-only section.
2788 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
2789 looking up section names for DT_TEXTREL.
2790 (elf32_sparc_reloc_type_class): New.
2791 (elf_backend_reloc_type_class): Define.
2792 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
2793 reloc is against read-only section.
2794 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2795 looking up section names for DT_TEXTREL.
2796 (sparc64_elf_reloc_type_class): New.
2797 (elf_backend_reloc_type_class): Define.
2798 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
2799 (elfNN_ia64_hash_table_create): Clear ia64_info.
2800 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
2802 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
2803 instead of looking up section names for DT_TEXTREL.
2804 (elfNN_ia64_reloc_type_class): New.
2805 (elf_backend_reloc_type_class): Define.
2806 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
2807 (struct elf_link_sort_rela): New.
2808 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
2809 (elf_bfd_final_link): Call elf_link_sort_relocs.
2810 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
2813 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2815 * configure.in (x86-bsdi): No corefile support.
2816 * configure: Regenerate.
2818 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
2820 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
2823 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
2825 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
2826 the alignment of dwarf2 linkonce sections to 0.
2827 * coff-sto32.c: Likewise.
2829 2001-08-20 Andreas Jaeger <aj@suse.de>
2831 * coff-sparc.c: Add missing prototypes.
2832 * elf32-s390.c: Likewise.
2833 * elf32-i960.c: Likewise.
2834 * aout-target.h: Likewise.
2836 2001-08-20 H.J. Lu <hjl@gnu.org>
2838 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
2839 (elf_num_section_syms): New for num_section_syms.
2841 * elf.c (elf_map_symbols): Set num_section_syms.
2842 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
2843 the section symbol index.
2845 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
2847 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
2848 select the generic has table creator. All elf backends need elf
2849 specific fields in the hash table.
2851 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2853 * archive.c (offsetof): Remove define.
2856 * sysdep.h (offsetof): Define.
2858 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2860 * bfd.c (bfd_get_gp_size): Return an unsigned int.
2861 (bfd_set_gp_size): Make param unsigned.
2862 * bfd-in2.h: Regenerate.
2863 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
2864 than calling bfd_get_gp_size.
2865 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
2866 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
2868 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2870 * linker.c (default_fill_link_order): Handle four byte fill value.
2872 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2874 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
2876 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
2878 * elf64-mips.c (UNUSED_RELOC): Define.
2879 (mips_elf64_howto_table_rel): Use it.
2880 (mips_elf64_howto_table_rela): Here too.
2881 (mips_elf64_write_relocs): Fix signed/unsigned warning.
2883 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
2885 * coffgen.c (coff_print_symbol): Fix warnings.
2886 (coff_find_nearest_line): Likewise.
2887 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
2888 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
2889 * format.c (bfd_check_format_matches): Likewise.
2890 (bfd_set_format): Likewise.
2891 * coff-ia64.c: Add missing prototypes.
2892 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
2893 signed to silence warnings.
2894 (elf64_alpha_relocate_section): Likewise.
2895 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
2896 (elf64_alpha_add_symbol_hook): Likewise.
2897 (elf64_alpha_final_link): Likewise.
2898 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
2899 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
2900 (elf64_alpha_size_got_sections): Likewise.
2901 * elfxx-ia64.c: Add missing prototypes.
2902 (elfNN_ia64_relocate_section): Fix warning.
2903 (elfNN_ia64_unwind_entry_compare): Make params const.
2905 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2907 * config.bfd (targ64_selvecs): New.
2908 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
2910 * bfd-in.h (BFD_VERSION): Remove wrong comment.
2911 (BFD_DEFAULT_TARGET_SIZE): New.
2912 (BFD_ARCH_SIZE): Comment.
2913 * configure.in (target_size): New. Set instead of target64 in
2914 selvecs case statement. Set target64 from it.
2915 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
2916 * bfd-in2.h: Regenerate.
2917 * configure: Regenerate.
2919 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2921 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
2922 (bfd_errmsgs): Add corresponding message.
2923 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
2924 finding an archive that contains different format object files.
2925 Return bfd_error_wrong_object_format for this case.
2926 * format.c: Formatting fixes. s/CONST/const/.
2927 (bfd_check_format_matches): Accept archives that give
2928 bfd_error_wrong_object_format if no full match is found. Tidy
2929 code handling matching_vector. Don't return a pointer to freed
2930 memory in `matching'. Handle ambiguous matches as for partial
2932 * bfd-in2.h: Regenerate.
2934 2001-08-15 Alan Modra <amodra@bigpond.net.au>
2936 * libieee.h (common_header_type): Add last_byte field.
2938 * ieee.c: Add missing prototypes. Some format fixes.
2939 (struct output_buffer_struct): Move for availability to prototypes.
2940 (ieee_part_after): New function.
2941 (ieee_slurp_debug): Use it here.
2942 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
2943 ieee_part_after to set last_byte to one past end of current part.
2945 (ieee_pos): Pass in ieee_data_struct rather than bfd.
2947 (parse_expression): Don't go beyond the end of the current part.
2948 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
2949 (ieee_get_symtab_upper_bound, ieee_get_symtab,
2950 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
2951 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
2952 ieee_set_section_contents, ieee_write_object_contents,
2953 ieee_make_empty_symbol): Make static.
2954 (ieee_archive_p): Correct comments regarding bfd_read.
2955 (ieee_object_p): Similarly.
2956 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
2957 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
2958 input_bfd, output_bfd, output_buffer.
2959 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
2960 do_with_relocs, ie. as a symbol for relocatable files.
2961 (ieee_vec): Add comments showing functions referenced by macros.
2963 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2965 * aout-tic30.c: Add missing prototypes. Fix formatting.
2966 * aout-ns32k.c: Add missing prototypes. Fix formatting.
2967 * peXXigen.c: Add missining prototypes. Fix formatting.
2968 * aout-adobe.c: Add missining prototypes. Fix formatting.
2970 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
2972 * elf32-v850.c: Add missing function prototypes.
2973 Fix some formatting.
2975 * cpu-v850.c: Add missing function prototype.
2976 Fix some formatting.
2978 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
2980 * elf-bfd.h (struct elf_backend_data): Add new fields
2981 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
2982 (bfd_elf_sprintf_vma): Rename function prototype to
2983 '_bfd_elf_sprintf_vma'.
2984 (bfd_elf_fprintf_vma): Rename function prototype to
2985 '_bfd_elf_fprintf_vma'.
2986 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
2987 directly, instead indirect via the elf_backend_data structure.
2988 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
2989 instead indirect via the elf_backend_data structure.
2990 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
2991 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
2992 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
2994 (elf_backend_fprintf_vma): Initialise if not already defined.
2995 (struct elf_backend_data): Initialise the
2996 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
2998 2001-08-10 Andreas Jaeger <aj@suse.de>
3000 * elf64-sparc.c: Add missing prototypes.
3001 * elf32-cris.c: Likewise.
3002 * elf32-i370.c: Likewise.
3003 * elf64-hppa.c: Likewise.
3004 * elf64-s390.c: Likewise.
3006 2001-08-10 Andreas Jaeger <aj@suse.de>
3008 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
3009 Add prototypes where needed.
3011 2001-08-10 H.J. Lu <hjl@gnu.org>
3013 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
3014 (bfd_fprintf_vma): Likewise.
3016 2001-08-10 H.J. Lu <hjl@gnu.org>
3018 * bfd.c (bfd_sprintf_vma): Don't return void.
3019 (bfd_fprintf_vma): Likewise.
3021 2001-08-10 Andreas Jaeger <aj@suse.de>
3023 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3025 * configure: Regenerate.
3027 2001-08-10 Alan Modra <amodra@bigpond.net.au>
3029 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
3030 warning if not BFD64. Add braces so emacs auto format works.
3031 (bfd_elf_fprintf_vma): Likewise.
3033 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
3035 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
3036 param to agree with libxcoff.h.
3037 (xcoff_swap_ldhdr_out): Likewise.
3038 (xcoff_swap_ldsym_in): Likewise.
3039 (xcoff_swap_ldsym_out): Likewise.
3040 (xcoff_swap_ldrel_in): Likewise.
3041 (xcoff_swap_ldrel_out): Likewise.
3042 (xcoff_create_csect_from_smclas): Likewise.
3043 * coff64-rs6000.c: Add missing prototypes.
3044 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
3046 (xcoff64_swap_ldhdr_out): Likewise.
3047 (xcoff64_swap_ldsym_in): Likewise.
3048 (xcoff64_swap_ldsym_out): Likewise.
3049 (xcoff64_swap_ldrel_in): Likewise.
3050 (xcoff64_swap_ldrel_out): Likewise.
3051 (xcoff64_ppc_relocate_section): Make static.
3052 (xcoff64_slurp_armap): Likewise.
3053 (xcoff64_archive_p): Likewise.
3054 (xcoff64_openr_next_archived_file): Likewise.
3055 (xcoff64_sizeof_headers): Likewise.
3056 (xcoff64_is_lineno_count_overflow): Likewise.
3057 (xcoff64_is_reloc_count_overflow): Likewise.
3058 (xcoff64_loader_symbol_offset): Likewise.
3059 (xcoff64_loader_reloc_offset): Likewise.
3060 * elf64-gen.c: Add missing prototypes.
3062 2001-08-09 H.J. Lu <hjl@gnu.org>
3064 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
3065 (bfd_elf_fprintf_vma): Likewise.
3067 2001-08-09 H.J. Lu <hjl@gnu.org>
3069 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
3072 * bfd-in2.h: Regenerated.
3074 2001-08-09 H.J. Lu <hjl@gnu.org>
3076 * bfd-in.h (bfd_sprintf_vma): New prototype.
3077 (bfd_fprintf_vma): Likewise.
3078 (bfd_elf_sprintf_vma): Likewise.
3079 (bfd_elf_fprintf_vma): Likewise.
3080 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
3081 * bfd-in2.h: Regenerated.
3083 * bfd.c (bfd_sprintf_vma): New. Defined.
3084 (bfd_fprintf_vma): Likewise.
3086 * elf.c (bfd_elf_sprintf_vma): New. Defined.
3087 (bfd_elf_fprintf_vma): Likewise.
3089 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3091 * coff-rs6000.c: Add missing prototypes.
3092 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
3093 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
3094 xcoff_loader_reloc_offset): Make static.
3095 * dwarf1.c: Add missing prototypes.
3096 * dwarf2.c: Add missing prototypes.
3097 (struct abbrev_info): Move definition.
3098 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
3099 * elf.c: Add missing prototypes.
3100 * elf32-gen.c: Likewise.
3101 * elf32-i386.c: Likewise.
3102 * elf32-ppc.c: Likewise.
3103 (ppc_elf_sort_rela): Use PTR instead of "void *".
3104 * elflink.h: Add missing prototypes. Formatting fixes.
3105 * merge.c: Add missing prototypes.
3106 (last4_eq): Use PTR instead of "void *".
3107 (last_eq): Likewise.
3108 * syms.c: Add missing prototypes.
3110 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
3112 * bfd.c: Fix formatting.
3113 * bfd-in2.h: Regenerate.
3115 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
3117 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
3118 true (this target uses REL relocations) and 'pcrel_offset' to
3119 false (the PC is implied, not stored in the offset).
3121 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3123 1999-10-19 Linus Nordberg <linus@swox.se>
3124 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
3125 * elfxx-target.h (elf_backend_want_got_sym): Define.
3126 (elfNN_bed): Add elf_backend_want_got_sym.
3127 * elflink.c (_bfd_elf_create_got_section): Define
3128 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
3130 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
3132 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
3133 (find_rela_addend): New function.
3134 (parse_comp_unit): Call it to find the abbrev offset addend.
3135 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
3136 members of dwarf2_debug as debugging information is read.
3138 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
3140 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
3141 targets as well as sh-pe.
3143 2001-08-03 Ben Harris <bjh21@netbsd.org>
3145 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
3146 reloc from start of section when computing value for R_ARM_REL32
3149 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3151 From H.J. Lu <hjl@gnu.org>
3152 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
3153 keep relocs for undefined syms if there are no dynamic sections in
3155 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
3157 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3159 * cofflink.c (coff_link_check_ar_symbols): also search for
3160 __imp__symbol as well as _symbol.
3161 * linker.c (_bfd_generic_link_add_archive_symbols): also
3162 search for __imp__symbol as well as _symbol.
3164 2001-08-01 Adam Nemet <anemet@lnxw.com>
3166 * elf.c (elf_sort_sections): Return zero only as the last step.
3168 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
3170 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
3172 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
3173 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
3176 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3178 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
3179 to match corresponding bfd_coff_backend data member.
3181 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3183 * Makefile.am: Update dependencies with "make dep-am".
3184 * Makefile.in: Regenerate
3186 2001-07-15 H.J. Lu <hjl@gnu.org>
3188 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
3189 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
3190 * Makefile.in: Regenerate.
3192 2001-07-11 H.J. Lu <hjl@gnu.org>
3194 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
3195 flags when creating the reloc section if the ALLOC flag in the
3196 source section is set.
3198 2001-07-11 Steve Ellcey <sje@cup.hp.com>
3200 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
3201 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
3202 * bfd-in2.h: Regenerate.
3203 * libbfd.h: Regenerate.
3204 * elfxx-ia64.c (ia64_howto_table): Define how to handle
3206 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
3207 (elfNN_ia64_check_relocs): Likewise.
3208 (elfNN_ia64_install_value): Likewise.
3209 (elfNN_ia64_relocate_section): Likewise.
3211 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3213 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
3215 (elf32_sparc_check_relocs): Likewise.
3216 Only create .rela section for alloced sections in shared libraries.
3217 (elf32_sparc_relocate_section): Likewise.
3218 Remove redundant check.
3219 Optimize unaligned reloc usage.
3220 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
3223 2001-07-11 H.J. Lu <hjl@gnu.org>
3225 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
3226 ALLOC|LOAD flags as the source section for debugging sections
3227 when creating the reloc section.
3229 2001-07-05 Jim Wilson <wilson@redhat.com>
3231 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
3232 the section of the bigger symbol.
3234 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
3236 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
3238 * peicode.h (coff_swap_scnhdr_in): For sections containing
3239 uninitialised data, only set their size to s_paddr if this does
3240 not reset their size to zero. MS's latest compilers will set
3243 2001-07-04 H.J. Lu <hjl@gnu.org>
3245 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
3246 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
3249 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
3251 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
3253 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
3254 sections being discarded.
3256 2001-06-30 Alan Modra <amodra@bigpond.net.au>
3258 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
3259 instead of _bfd_elfcore_section_from_phdr.
3260 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
3261 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
3262 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
3263 (elfcore_grok_prstatus): Likewise.
3264 (elfcore_grok_lwpstatus): Likewise.
3265 (bfd_get_elf_phdr_upper_bound): Likewise.
3266 (elfcore_make_note_pseudosection): Formatting.
3267 (_bfd_elfcore_strndup): Formatting.
3268 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
3269 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
3271 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
3273 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
3274 and _bfd_elfcore_strndup.
3275 (struct elf_backend_data): Add elf_backend_grok_prstatus
3276 and elf_backend_grok_psinfo.
3277 * elf.c (_bfd_elfcore_make_pseudosection): New function.
3278 (elfcore_grok_prstatus): Use it.
3279 (elfcore_make_note_pseudosection): Likewise.
3280 (elfcore_strndup): Rename to...
3281 (_bfd_elfcore_strndup): Here, and make global.
3282 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
3283 (elfcore_grok_note): Call elf_backend_grok_prstatus
3284 and elf_backend_grok_psinfo if available.
3285 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
3286 (_bfd_elf32_mips_grok_psinfo): New function.
3287 (elf_backend_grok_prstatus): Define.
3288 (elf_backend_grok_psinfo): Define.
3289 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
3290 (elf_backend_grok_psinfo): Likewise.
3291 (elfNN_bed): Include elf_backend_grok_prstatus and
3292 elf_backend_grok_psinfo.
3294 2001-06-29 H.J. Lu <hjl@gnu.org>
3296 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
3297 hplink->sgot is NULL before filling GOT. Check if hplink->splt
3298 is NULL before filling PLT.
3300 2001-06-29 Alan Modra <amodra@bigpond.net.au>
3302 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
3304 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3306 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
3308 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
3309 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
3312 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
3313 (IS_ABSOLUTE_RELOC): Define.
3314 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
3315 (hppa_link_hash_newfunc): Always init it.
3316 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
3317 create COPY relocs only when the reloc is in a read-only section.
3318 Instead, allocate space for a dynamic reloc to reference the
3319 library symbol directly. Keep track of space we allocate using
3321 (hppa_discard_copies): Delete, and move code to..
3322 (allocate_plt_and_got): ..here. Rename to
3323 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
3324 relocs for non-shared link.
3325 (elf32_hppa_size_dynamic_sections): Update calls to above.
3326 (elf32_hppa_relocate_section): Write out the dynamic relocs used
3327 in lieu of COPY relocs.
3329 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
3331 (elf_i386_adjust_dynamic_symbol): ..nor here..
3332 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
3334 (elf_i386_size_dynamic_sections): Fix a comment.
3335 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
3336 involved in writing reloc out.
3338 2001-06-25 Alan Modra <amodra@bigpond.net.au>
3340 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
3341 Ensure syms are dynamic if we might be emitting a reloc.
3342 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
3343 for undefweak or undefined syms..
3344 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
3346 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
3347 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
3348 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
3349 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
3351 2001-06-24 H.J. Lu <hjl@gnu.org>
3353 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
3354 strncasecmp/strcasecmp instead of strncmp/strcmp.
3356 2001-06-23 H.J. Lu <hjl@gnu.org>
3358 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
3359 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
3360 in the regular object file and treat the weak definition as
3363 2001-06-23 Alan Modra <amodra@bigpond.net.au>
3365 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
3366 unresolved_reloc test to exclude cases where we use "relocation"
3367 before setting it to point into the .got. Reinstate fudge for
3368 unresolved relocs in debugging sections.
3370 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
3371 complicated tests for unresolvable relocs with a simple direct
3372 scheme using "unresolved_reloc" var.
3374 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
3375 elf_i386_dyn_relocs. Update comment.
3376 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
3378 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
3380 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
3382 (elf_i386_size_dynamic_sections): Likewise.
3383 (elf_i386_finish_dynamic_symbol): Likewise.
3384 (elf_i386_finish_dynamic_sections): Likewise.
3385 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
3388 Avoid creating COPY relocs if possible.
3389 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
3390 which .got created. Mark symbols used by R_386_32 and R_386_PC32
3391 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
3392 reloc is in a read-only section. Instead, allocate space for a
3393 dynamic reloc to reference the library symbol directly. Keep
3394 track of space we allocate using pcrel_relocs_copied.
3395 (discard_copies): Delete, and move code to ..
3396 (allocate_plt_and_got): ..here. Rename to
3397 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
3398 relocs for non-shared link.
3399 (elf_i386_size_dynamic_sections): Update calls to above functions.
3400 (elf_i386_relocate_section): Write out the dynamic relocs. Add
3401 more ugly logic to avoid "unresolvable relocation" error. Use
3402 htab shortcut in place of elf_hash_table macro.
3403 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
3404 not always be created now.
3406 2001-06-20 Bo Thorsen <bo@suse.co.uk>
3408 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
3411 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3413 * configure.host (mips64-*-linux): Reformat.
3415 2001-06-21 Alan Modra <amodra@bigpond.net.au>
3417 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
3418 allocate local .got space. Use shortcuts from hash table for .got
3419 and .plt rather than comparing section names.
3420 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
3421 adjusting index into local_got_refcounts to document what we are
3423 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
3424 Tidy .got and .plt error checking.
3426 2001-06-20 Catherine Moore <clm@redhat.com>
3428 * elf-bfd.h (struct elf_backend_data):
3429 elf_backend_emit_relocs: New field: Function for emitting
3431 elf_backend_count_relocs: New field: Function for determining
3432 the number of relocs to be emitted.
3433 * elfxx-target.h: Provide default (NULL) values for
3434 elf_backend_emit_relocs and elf_backend_count_relocs.
3435 * elflink.h (elf_link_size_reloc_section): Make the hash table
3436 big enough to hold the relocs counted by either reloc_count or
3438 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
3439 should be emitted, either because of a command line option
3440 stored in the info structure or because the target provides a
3441 special reloc emitting function.
3442 If the target provides a reloc counting function use it,
3443 unless performing a relocatable link or emitting all relocs.
3444 Also set the SEC_RELOC flag on any output section which will
3446 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
3447 should be emitted, either because of a command line option
3448 stored in the info structure or because the target provides a
3449 special reloc emitting function.
3450 If the target provides a reloc emitting function, use it,
3451 unless performing a relocatable link or emitting all relocs.
3453 2001-06-20 H.J. Lu <hjl@gnu.org>
3455 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
3456 allocate local .got space.
3458 2001-06-19 Andreas Jaeger <aj@suse.de>
3460 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
3463 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3465 * elflink.h (struct elf_assign_sym_version_info): Remove member
3466 export_dynamic. All users changed to use info member.
3467 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
3468 export_dynamic, instead use member in parameter info.
3469 * bfd-in.h (bfd_elf32_size_dynamic_sections,
3470 bfd_elf64_size_dynamic_sections): Update prototype.
3471 * bfd-in2.h: Regenerate.
3473 2001-06-18 H.J. Lu <hjl@gnu.org>
3475 * elflink.h (elf_info_failed): Add a new field, verdefs.
3476 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
3478 (elf_export_symbol): Check eif->verdefs to decide if a symbol
3481 2001-06-17 H.J. Lu <hjl@gnu.org>
3483 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
3484 readonly_reloc, to record if a relocation in the .rel.dyn
3485 section is against a read-only section.
3486 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
3488 (_bfd_mips_elf_check_relocs): Record if there is a relocation
3489 in the .rel.dyn section against a read-only section by setting
3490 DF_TEXTREL or readonly_reloc.
3491 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
3493 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
3494 there is a relocation in the .rel.dyn section against a
3496 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
3499 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3501 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
3502 function. Move flagword result into parameter list. Remove
3503 comment about setting bfd_error_handler to intercept failure
3505 * coffgen.c (make_a_section_from_file): Examine result of
3506 calling bfd_coff_styp_to_sec_flags and pass a failure back to
3508 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
3509 function. Move flagword result into parameter list.
3510 * libcoff.h: Regenerate.
3511 * libecoff.h: Regenerate.
3513 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
3515 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
3516 section is going to follow it.
3518 2001-06-12 Catherine Moore <clm@redhat.com>
3520 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
3521 with the file_align entry from elf_backend_data.
3522 (elf_gc_smash_unused_vtentry_relocs): Likewise.
3523 (elf_gc_record_vtentry): Likewise.
3525 2001-06-10 Alan Modra <amodra@bigpond.net.au>
3527 * elflink.h: Whitespace changes.
3528 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
3529 rather than "unsigned char".
3530 (elf_link_output_relocs): Likewise.
3531 (elf_link_input_bfd): Likewise.
3532 (elf_reloc_link_order): LIkewise.
3533 * elf.c: s/CONST/const/. Whitespace changes.
3534 * elf32-mips.c: Formatting fix.
3536 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
3537 * Makefile.in: Regenerate.
3538 * po/Make-in: Remove trailing tab.
3540 2001-06-09 Philip Blundell <philb@gnu.org>
3542 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
3544 (elf32_arm_plt_entry): Likewise.
3546 2001-06-08 H.J. Lu <hjl@gnu.org>
3548 * elf.c (swap_out_syms): Keep names for global section symbols.
3550 2001-06-07 H.J. Lu <hjl@gnu.org>
3552 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
3553 MIPS-based machines need it.
3555 2001-06-07 H.J. Lu <hjl@gnu.org>
3557 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
3560 * config.bfd: Remove ecoff from Linux/mips.
3562 2001-06-07 Andreas Jaeger <aj@suse.de>
3564 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
3566 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
3567 alignment of 8 for .rela sections; handle further relocations.
3569 2001-06-06 Christian Groessler <cpg@aladdin.de>
3571 * coff-z8k.c: Fix formatting.
3572 Fix howtos: howto->size was always 1.
3574 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3576 * configure.host (mips64*-*-linux*): Define.
3578 2001-06-05 Alan Modra <amodra@bigpond.net.au>
3580 * elf32-i386.c (elf_i386_discard_copies): Rename to
3581 discard_copies, and use elf_link_hash_entry arg rather than
3582 elf_i386_link_hash_entry.
3583 (elf_i386_link_hash_traverse): Delete.
3584 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
3585 Tidy sizing of dynamic sections.
3586 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
3587 possible .plt entries.
3588 (elf_i386_gc_sweep_hook): Likewise.
3589 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
3590 everything with plt.refcount <= 0.
3592 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
3594 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
3595 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
3597 (allocate_plt_and_got): ..instead do it all here. New function.
3598 (elf_i386_size_dynamic_sections): Allocate local .got space and
3599 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
3600 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
3601 rather than gc variety).
3602 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
3603 (elf_i386_relocate_section): Use it here and correct handling of
3604 R_386_GOT32. Provide section and offset for "unresolvable
3605 relocation" error message.
3606 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
3608 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
3609 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
3610 (elf_i386_link_hash_table_create): Init them.
3611 (create_got_section): New function.
3612 (elf_i386_create_dynamic_sections): New function.
3613 (elf_backend_create_dynamic_sections): Set to above.
3614 (elf_i386_check_relocs): Use shortcuts from hash table rather than
3615 calling bfd_get_section_by_name.
3616 (elf_i386_gc_sweep_hook): Likewise.
3617 (elf_i386_adjust_dynamic_symbol): Likewise.
3618 (elf_i386_size_dynamic_sections): Likewise.
3619 (elf_i386_relocate_section): Likewise.
3620 (elf_i386_finish_dynamic_sections): Likewise.
3622 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
3624 2001-06-02 H.J. Lu <hjl@gnu.org>
3626 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
3628 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
3630 2001-06-02 H.J. Lu <hjl@gnu.org>
3632 * aout-cris.c (MACHTYPE_OK): New. Defined.
3634 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
3636 * section.c (_bfd_strip_section_from_output): Handle NULL
3639 2001-06-02 H.J. Lu <hjl@gnu.org>
3641 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
3642 rs6000coff64_vec only if BFD64 is defined.
3643 (powerpc64-*-aix*): Enable only if BFD64 is defined.
3645 2001-06-02 H.J. Lu <hjl@gnu.org>
3647 * coff-ia64.c (ia64coff_object_p): Rewrite with
3648 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
3650 2001-06-01 Andreas Jaeger <aj@suse.de>
3652 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
3653 relocation, small reformatting.
3655 2001-05-29 Andreas Jaeger <aj@suse.de>
3657 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
3658 (elf64_x86_64_relocate_section): Likewise.
3660 2001-05-30 Alan Modra <amodra@one.net.au>
3662 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
3663 millicode. Don't allocate .got and .rela.got space here..
3664 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
3665 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
3667 (hppa_handle_PIC_calls): ..nor here..
3668 (allocate_plt_and_got): ..instead do it all here. New function.
3669 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
3670 call allocate_plt_and_got. No need to zap .got if not dynamic.
3671 (elf32_hppa_final_link): Call regular bfd_final_link instead of
3672 gc_common_final_link.
3673 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
3674 (elf32_hppa_relocate_section): Use it here.
3675 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
3676 dynamic_sections_created.
3677 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
3679 2001-05-28 Andreas Jaeger <aj@suse.de>
3681 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
3682 generic version since we want a hashsize of 4.
3683 (elf_backend_size_info): Likewise.
3685 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3687 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
3689 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
3690 (elf_link_input_bfd): Likewise.
3691 (elf_reloc_link_order): Likewise.
3692 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
3693 relocations correctly.
3695 2001-05-28 Nicolas Pitre <nico@cam.org>
3697 * elf32-arm.h: fix PLT generation for big endian ARM
3699 2001-05-28 Alan Modra <amodra@one.net.au>
3701 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
3702 for symbols forced local that need plabels.
3703 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
3704 .plt.rela for local syms if non-shared.
3705 (hppa_build_one_stub): Mask lsb of plt.offset.
3706 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
3707 (clobber_millicode_symbols): Correct comment.
3708 (elf32_hppa_relocate_section): Likewise.
3709 (elf32_hppa_finish_dynamic_symbol): Likewise.
3711 2001-05-28 Jeff Sturm <jsturm@one-point.com>
3713 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
3714 * bfd-in2.h: Regenerate.
3715 * libbfd.h: Regenerate.
3716 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
3717 and BFD_RELOC_SPARC_UA64 mapping
3718 * elf64-sparc.c: Likewise.
3720 2001-05-25 H.J. Lu <hjl@gnu.org>
3722 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
3723 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
3724 (coff-rs6000.lo): Remove the old dependency.
3725 * Makefile.in: Rebuild.
3727 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
3730 2001-05-25 H.J. Lu <hjl@gnu.org>
3732 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
3733 rs6000coff_core_file_matches_executable_p,
3734 rs6000coff_core_file_failing_command and
3735 rs6000coff_core_file_failing_signal only if AIX_CORE is
3737 (pmac_xcoff_vec): Likewise.
3738 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
3740 2001-05-25 Timothy Wall <twall@redhat.com>
3742 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
3743 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
3745 2001-05-25 H.J. Lu <hjl@gnu.org>
3747 * bfd-in2.h: Regenerated.
3748 * libcoff.h: Likewise.
3750 2001-05-25 Alan Modra <amodra@one.net.au>
3752 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
3753 undefined millicode syms in shared libs.
3754 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
3755 (elf32_hppa_check_relocs): Likewise.
3756 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3757 (elf32_hppa_size_dynamic_sections): Likewise.
3758 (elf32_hppa_relocate_section): Likewise.
3759 (elf32_hppa_finish_dynamic_symbol): Likewise.
3760 (elf32_hppa_finish_dynamic_sections): Likewise.
3762 2001-05-24 Tom Rix <trix@redhat.com>
3764 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
3765 xcoff-target.h not used to define rs6000 or ppc bfd.
3768 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
3771 * coff-rs6000.c : Many changes for 64 bit support. Move common
3772 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
3775 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
3776 linker now supported. Explictly define the rs6000coff64_vec.
3778 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
3779 (coff_print_aux) same
3780 (coff_write_object_contents) same
3781 (coff_slurp_line_table) same
3783 * coffgen.c : (coff_fix_symbol_name) formatting
3784 (coff_mangle_symbols) xcoff 64 bit support
3785 (coff_write_symbol) same
3786 (coff_write_alien_symbol) same
3787 (coff_write_native_symbol) same
3788 (coff_write_symbols) same
3789 (coff_get_symbol_info) same
3790 (bfd_coff_get_syment) same
3791 (coff_print_symbol) same
3793 * config.bfd : add powerpc64-*-aix* target
3795 * libcoff-in.h : formatting
3797 * libcoff.h : move xcoff extern declarations to libxcoff.h
3799 * libxcoff.h : New file
3801 * xcofflink.c : Many changes for xcoff64 support. Move common
3802 structures to include/coff/xcoff.h. Move specific structure to
3803 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
3804 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
3806 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
3809 (xcoff_build_ldsyms) : handle special __rtinit symbol.
3811 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3813 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
3816 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3818 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
3819 * libbfd.h: Regenerate.
3820 * bfd-in2.h: Regenerate.
3822 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
3823 * archures.c (bfd_mach_mips12000): Define.
3824 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
3825 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
3827 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
3828 * bfd-in2.h: Regenerate.
3829 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
3831 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
3833 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
3834 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
3835 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
3836 that is used by GCC.
3838 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3840 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
3841 of entries in a structured section.
3842 * elf.c: Use new macro.
3843 * elf32-i386.c: Use new macro.
3844 * elf32-mips.c: Use new macro.
3845 * elf64-alpha.c: Use new macro.
3846 * elf64-sparc.c: Use new macro.
3847 * elfcode.h: Use new macro.
3848 * elflink.h: Use new macro.
3850 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3852 * bfdint.texi: Replace -oformat with --oformat.
3854 2001-05-21 Andreas Jaeger <aj@suse.de>
3856 * dwarf2.c (decode_line_info): Fix error message.
3857 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
3858 adjust error message.
3860 2001-05-18 H.J. Lu <hjl@gnu.org>
3862 * elflink.h (elf_link_add_object_symbols): Revert the last
3865 2001-05-17 Alan Modra <amodra@one.net.au>
3867 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
3868 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
3869 (hppa_build_one_stub): Add an assert to check plt.offset.
3871 2001-05-17 H.J. Lu <hjl@gnu.org>
3873 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
3874 version definition to basename of the output filename.
3876 2001-05-17 H.J. Lu <hjl@gnu.org>
3878 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
3879 basename of the bfd filename.
3881 2001-05-16 Alan Modra <amodra@one.net.au>
3883 * section.c (asection): Add linker_has_input field.
3884 (STD_SECTION): Adjust initialization to suit.
3885 * ecoff.c (bfd_debug_section): Likewise.
3886 * bfd-in2.h: Regenerate.
3888 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
3890 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
3891 negative 32-bit operands to 16 operands when the operand is
3892 going to be zero-extended by the modified opcode.
3894 2001-05-12 Peter Targett <peter.targett@arccores.com>
3896 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
3897 name for 'arc5' core versions.
3898 (bfd_arc_arch): Make bfd_mach_arc_6 default.
3900 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
3902 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
3904 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3906 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
3908 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
3909 to .gnu.linkonce.t.FOO text section.
3911 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3913 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
3914 fields, change sec into secinfo.
3915 (struct sec_merge_info): Add chain, remove last fields.
3916 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
3917 (sec_merge_hash_lookup): If lookup could not use a string only
3918 because it has bad alignment, mark the old string for deletion.
3919 (sec_merge_add): Add secinfo argument. Don't compute entry's
3920 position, instead record the section.
3921 (sec_merge_emit): Update for the sec into secinfo change in
3922 struct sec_merge_hash_entry.
3923 (_bfd_merge_section): Only record the section for merging, defer
3924 putting strings into the hash table.
3925 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
3926 _bfd_merge_sections): New functions.
3927 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
3929 * libbfd-in.h (_bfd_merge_sections): Add prototype.
3930 (_bfd_nolink_bfd_merge_sections): Define.
3931 * libbfd.h: Likewise.
3932 (bfd_generic_merge_sections): Add prototype.
3933 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
3934 (struct bfd_target): Likewise.
3935 * bfd.c (bfd_merge_sections): Define.
3936 * bfd-in2.h: Rebuilt.
3937 * elf.c (_bfd_elf_merge_sections): New function.
3938 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
3939 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
3940 * reloc.c (bfd_generic_merge_sections): New function.
3941 * vms.c (vms_bfd_merge_sections): New function.
3942 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
3943 * aout-target.h (MY_bfd_merge_sections): Define.
3944 * aout-tic30.c (MY_bfd_merge_sections): Define.
3945 * binary.c (binary_bfd_merge_sections): Define.
3946 * bout.c (b_out_bfd_merge_sections): Define.
3947 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
3948 * coffcode.c (coff_bfd_merge_sections): Define.
3949 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
3950 * i386msdos.c (msdos_bfd_merge_sections): Define.
3951 * i386os9k.c (os9k_bfd_merge_sections): Define.
3952 * ieee.c (ieee_bfd_merge_sections): Define.
3953 * ihex.c (ihex_bfd_merge_sections): Define.
3954 * nlm-target.h (nlm_bfd_merge_sections): Define.
3955 * oasys.c (oasys_bfd_merge_sections): Define.
3956 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
3957 * som.c (som_bfd_merge_sections): Define.
3958 * srec.c (srec_bfd_merge_sections): Define.
3959 * tekhex.c (tekhex_bfd_merge_sections): Define.
3960 * versados.c (versados_bfd_merge_sections): Define.
3961 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
3963 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3965 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
3966 to be unsigned long, in order to match its use.
3968 2001-05-10 H.J. Lu <hjl@gnu.org>
3970 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
3973 2001-05-09 H.J. Lu <hjl@gnu.org>
3975 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
3976 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
3977 Remove the unused veriable `dynver'.
3979 2001-05-08 Ian Lance Taylor <ian@zembu.com>
3981 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
3982 NULL or is not COFF.
3983 (coff_i386_rtype_to_howto): Don't dump core if output section
3986 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3988 * ecoff.c (bfd_debug_section): Fix initialization.
3989 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
3990 is always a positive integer. Cast away sign mismatch.
3991 * elf32-mips.c: Fix misleading comment and typo.
3992 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
3994 * elflink.c: Fix typo.
3995 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
3996 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
3998 2001-05-04 Richard Henderson <rth@redhat.com>
4000 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
4002 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
4004 * elf32-arm.h (elf32_arm_final_link_relocate): Set
4005 EF_ARM_HASENTRY if the start address is set.
4007 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
4009 * targets.c (_bfd_target_vector_entries): Compute value based on
4010 the size of the _bfd_target_vector and not bfd_target_vector.
4012 2001-05-03 H.J. Lu <hjl@gnu.org>
4014 * elfcode.h: Include "libiberty.h".
4016 * elflink.h (elf_link_add_object_symbols): Set
4017 elf_dt_name (abfd) to basename of the bfd filename.
4018 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
4019 of the bfd filename.
4021 2001-05-03 Andreas Jaeger <aj@suse.de>
4023 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
4024 (elf_generic_info_to_howto_rel): Likewise.
4025 * coff-alpha.c (reloc_nil): Likewise.
4026 (alpha_ecoff_bad_format_hook): Likewise.
4027 (alpha_adjust_reloc_out): Likewise.
4028 (alpha_bfd_reloc_type_lookup): Likewise.
4029 (alpha_convert_external_reloc): Likewise.
4030 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
4031 (elf64_alpha_reloc_bad): Likewise.
4032 (elf64_alpha_reloc_gpdisp): Likewise.
4033 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
4034 (elf64_alpha_info_to_howto): Likewise.
4035 (elf64_alpha_add_symbol_hook): Likewise.
4036 (elf64_alpha_create_got_section): Likewise.
4037 (elf64_alpha_is_local_label_name): Likewise.
4038 (elf64_alpha_merge_ind_symbols): Likewise.
4039 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
4040 (mips_elf64_get_reloc_upper_bound): Likewise.
4041 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
4042 (nlm_alpha_get_public_offset): Likewise.
4044 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4046 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
4047 about overflow in R_OPENRISC_LO_16_IN_INSN and
4048 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
4050 2001-04-30 H.J. Lu <hjl@gnu.org>
4052 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
4053 only for ELF_LINK_FORCED_LOCAL.
4054 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
4055 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
4056 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
4058 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
4059 if the symbol has hidden or internal visibility.
4061 2001-04-30 Alan Modra <amodra@one.net.au>
4063 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
4064 calls to undefined weak symbols.
4066 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
4068 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
4069 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
4071 2001-04-27 Andreas Jaeger <aj@suse.de>
4073 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
4074 out handled entries.
4075 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
4076 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
4077 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
4080 2001-04-27 Sean McNeil <sean@mcneil.com>
4082 * config.bfd: Add arm-vxworks target.
4083 * coff-arm (coff_arm_relocate_section): Add in symbol value to
4084 addend (fro VXworks targets).
4086 2001-04-26 H.J. Lu <hjl@gnu.org>
4088 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
4091 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
4093 * bfd-in.h (bfd_cache_close): Declare newly exported function.
4094 * bfd-in2.h: Regenerated.
4096 2001-04-24 Jakub Jelinek <jakub@redhat.com>
4098 * merge.c (struct sec_merge_hash_entry): Add alignment field.
4099 (struct sec_merge_hash): Remove alignment_power.
4100 (sec_merge_hash_newfunc): Clear alignment.
4101 (sec_merge_hash_lookup): Pass alignment as argument.
4102 Use hashp->root.next, not hashp->next to walk the hash chain.
4103 If a string already in the hashtable does not have required
4104 alignment, create a new hashtable entry.
4105 (sec_merge_init): Remove alignment_power argument.
4106 (sec_merge_add): Add alignment argument.
4107 (sec_merge_emit): Alignment is now a per-entity thing, not per
4109 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
4110 for proper alignment.
4111 Pass alignment information to sec_merge_add.
4113 2001-04-24 Christian Groessler <cpg@aladdin.de>
4115 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
4116 and R_REL16 reloc types; accept odd values for R_REL16 type
4118 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
4120 * cpu-openrisc.c: New file.
4121 * elf32-openrisc.c: Likewise.
4123 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
4124 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
4125 (BFD32_BACKENDS): Add elf32-openrisc.lo.
4126 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
4127 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
4128 * Makefile.in: Regenerated.
4129 * config.bfd: (openrisc-*-elf): New target.
4130 * configure.in (bfd_elf32_openrisc_vec): New vector.
4131 * configure: Regenerated.
4132 * libbfd.h: Regenerated.
4133 * bfd-in2.h: Regenerated.
4134 * reloc.c: Add OpenRISC relocations.
4135 * targets.c (bfd_elf32_openrisc_vec): Declare.
4136 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
4137 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
4138 (bfd_openrisc_arch): Declare.
4139 (bfd_archures_list): Add bfd_openrisc_arch.
4140 * elf.c (prep_headers): Add bfd_arch_openrisc.
4142 2001-04-23 Bo Thorsen <bo@suse.de>
4144 * elf64-x86-64.c: Add c++ vtable hack.
4145 Small whitespace and comment changes.
4147 2001-04-19 Andreas Jaeger <aj@suse.de>
4149 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
4150 (elf64_x86_64_plt_entry): Likewise.
4151 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
4152 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
4154 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
4156 * elf32-cris.c: Tweak comments related to dynamic linking.
4157 (cris_elf_relocate_section): When not creating shared object, fill
4158 in the .got table for any symbol not in the dynamic symbol table.
4159 (elf_cris_finish_dynamic_symbol): When not creating shared object,
4160 only emit a .got.rela reloc if the symbol is in the dynamic symbol
4162 (cris_elf_check_relocs): Use variable r_type in all places rather
4163 than the original expression. Add default case in switch for
4165 (elf_cris_size_dynamic_sections): Iterate over
4166 elf_cris_discard_excess_program_dynamics when not creating shared
4168 (elf_cris_discard_excess_dso_dynamics): Renamed from
4169 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
4170 (elf_cris_discard_excess_program_dynamics): New.
4172 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
4174 * coffcode.h (coff_write_object_contents): Use
4175 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
4177 2001-04-14 H.J. Lu <hjl@gnu.org>
4179 * bfd-in2.h: Regenerate.
4181 2001-04-14 Jakub Jelinek <jakub@redhat.com>
4183 * section.c (STD_SECTION): Add entsize.
4185 2001-04-13 H.J. Lu <hjl@gnu.org>
4187 * section.c (SEC_MERGE): Define new flag for merging.
4188 (SEC_STRINGS): Likewise.
4189 (entsize): New field.
4191 2001-04-13 Roger Sayle <roger@metaphorics.com>
4193 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
4194 flag on pe-i386 targets.
4196 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4198 * libbfd-in.h (_bfd_merge_section): New.
4199 (_bfd_write_merged_section): New.
4200 (_bfd_merged_section_offset): New.
4201 * libbfd.h: Rebuilt.
4202 * linker.c (_bfd_generic_link_output_symbols): Handle
4204 * aoutx.h (aout_link_write_symbols): Likewise.
4205 * pdp11.c (aout_link_write_symbols): Likewise.
4206 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
4207 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
4209 (elf_link_sec_merge_syms): New.
4210 (elf_link_input_bfd): Call _bfd_merged_section_offset
4211 and _bfd_write_merged_section.
4212 Handle discard_sec_merge.
4213 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
4215 (struct bfd_elf_section_data): Likewise.
4216 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
4217 SEC_STRINGS section flags and entsize from their ELF counterparts.
4218 (_bfd_elf_link_hash_table_init): Initialize merge_info.
4219 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
4220 from their BFD counterparts.
4221 * merge.c: New file.
4222 * Makefile.am: Add strtab.lo.
4223 * Makefile.in: Rebuilt.
4225 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
4227 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
4228 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
4230 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4232 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
4233 endian MIPS ELF target.
4234 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
4237 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
4238 64bit big endian MIPS ELF target.
4239 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
4240 endian MIPS ELF target.
4241 * configure: Regenerated.
4243 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
4244 little endian targets.
4245 (mips_elf_sym_is_global): Handle traditional targets.
4247 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
4248 64bit big endian MIPS ELF target.
4249 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
4250 endian MIPS ELF target.
4252 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
4253 and bfd_elf64_tradlittlemips_vec.
4255 2001-04-05 David Mosberger <davidm@hpl.hp.com>
4257 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
4258 ordinary "progbits" section.
4260 2001-04-04 Alan Modra <alan@linuxcare.com.au>
4262 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
4263 when -Bsymbolic causes a symbol to no longer need a .plt entry.
4265 2001-04-03 David Mosberger <davidm@hpl.hp.com>
4267 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
4269 2001-03-30 H.J. Lu <hjl@gnu.org>
4271 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
4272 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
4274 2001-03-26 H.J. Lu <hjl@gnu.org>
4276 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
4277 if there are any relocations for generic ELF.
4278 (bfd_elf32_bfd_link_add_symbols): Defined to
4279 elf32_generic_link_add_symbols.
4280 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
4281 if there are any relocations for generic ELF.
4282 (bfd_elf64_bfd_link_add_symbols): Defined to
4283 elf64_generic_link_add_symbols.
4285 2001-03-23 Nick Clifton <nickc@redhat.com>
4287 * Makefile.am (BUILD_CFILES): New variable: List of C source
4288 files created in build directory.
4289 (BUILD_HFILES): New variable: List of header files created in
4292 (po/POTFILES.in): Replace rule with empty entry.
4293 (po/SRC-POTFILES.in): New rule: Create a list of source files
4294 in the source directory.
4295 (po/BLD-POTFILES.in): New rule: Create a list of source files
4296 in the build directory.
4297 (MOSTLYCLEAN): Do not delete source files created in build
4299 * Makefile.in: Regenerate.
4300 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
4302 * configure: Regenerate.
4304 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
4306 Add .. to the search path when building bfd.pot.
4307 Delete POTFILES when performing distclean.
4308 Add comment describing why distclean is broken in maintainer mode.
4309 * po/POTFILES.in: Delete.
4310 * po/SRC-POTFILES.in: New file.
4311 * po/BLD-POTFILES.in: New file.
4312 * po/bfd.pot: Regenerate.
4314 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
4316 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
4317 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
4318 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
4319 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
4320 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
4321 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
4323 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
4324 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
4325 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
4326 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
4327 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
4328 New HOWTO members for new relocs.
4329 (cris_reloc_map): Map new relocs.
4330 (ELF_DYNAMIC_INTERPRETER): Define.
4331 (PLT_ENTRY_SIZE): Define.
4332 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
4333 elf_cris_pic_plt_entry): New, PLT templates.
4334 (struct elf_cris_pcrel_relocs_copied, struct
4335 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
4336 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
4337 (cris_final_link_relocate): Check that 16-bit GOT relocs have
4338 positive values. Adjust PCREL relocs to be relative to location
4340 (cris_elf_relocate_section): Handle relocations to dynamic
4341 objects. Handle new relocations. Call error handler when seeing
4342 non-PIC relocation for read-only sections while generating shared
4344 (cris_elf_check_relocs): Set reference counts for GOT and PLT
4346 (bfd_elf32_bfd_link_hash_table_create,
4347 elf_backend_adjust_dynamic_symbol,
4348 elf_backend_size_dynamic_sections,
4349 elf_backend_finish_dynamic_symbol,
4350 elf_backend_finish_dynamic_sections,
4351 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
4352 elf_backend_hide_symbol, elf_backend_want_got_plt,
4353 elf_backend_plt_readonly, elf_backend_want_plt_sym,
4354 elf_backend_got_header_size, elf_backend_plt_header_size):
4357 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
4358 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
4359 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
4360 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
4361 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
4362 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
4363 * bfd-in2.h, libbfd.h: Regenerate.
4365 2001-03-21 Diego Novillo <dnovillo@redhat.com>
4367 (_bfd_mips_elf_relocate_section): Give a better error message when
4368 a relocation is not recognized.
4370 2001-03-21 Alan Modra <alan@linuxcare.com.au>
4372 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
4373 non-NULL before attempting to dereference.
4375 2001-03-20 H.J. Lu <hjl@gnu.org>
4377 * configure.in: Remove the redundent AC_ARG_PROGRAM.
4378 * configure: Rebuild.
4380 2001-03-20 Andreas Schwab <schwab@suse.de>
4382 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
4383 relocation value when resolving a reference from a debugging
4386 2001-03-16 Scott Thomason <SThomaso@hii.com>
4388 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
4389 (xcoff64_swap_sym_out): Fix syntax errors.
4391 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
4393 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
4395 2001-03-15 Alan Modra <alan@linuxcare.com.au>
4397 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
4398 (hppa_link_hash_newfunc): Init it.
4399 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
4400 section appears to be non-PIC.
4401 (final_link_relocate): Likewise.
4402 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
4403 possible candidate function, and set pic_call for those that will
4404 only have a .plt entry for the PIC call stub.
4405 (hppa_handle_PIC_calls): Set maybe_pic_call.
4407 2001-03-12 DJ Delorie <dj@redhat.com>
4409 * elf32-sh.c (sh_elf_relocate_section): Only relocation
4410 R_SH_DIR8WP* relocs if they're against external symbols, else
4411 they're just for relaxing. Validate the reloc values.
4413 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
4415 * binary.c (bfd_external_binary_architecture): Declare.
4416 (binary_object_p): If bfd_external_binary_architecture is defined,
4417 set the architecture to this string.
4419 2001-03-11 Philip Blundell <philb@gnu.org>
4421 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
4422 entries that could serve as a definition for a weak symbol.
4424 2001-03-08 Nick Clifton <nickc@redhat.com>
4426 * Most files: Update copyright notices using Perl script created
4427 by Kevin Buettner <kevinb@redhat.com>.
4429 2001-03-07 Nick Clifton <nickc@redhat.com>
4431 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
4432 prior patch on ! defined OLD_ARM_ABI.
4434 2001-03-07 Andreas Jaeger <aj@suse.de>
4436 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
4437 some relocation values.
4439 2001-03-06 Nick Clifton <nickc@redhat.com>
4441 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
4442 of offset in BLX(1) instruction.
4443 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
4444 offset in BLX(1) instruction.
4447 2001-03-06 Nick Clifton <nickc@redhat.com>
4449 * coff-arm.c (coff_arm_reloc_type_lookup): Add
4450 BFD_RELOC_THUMB_PCREL_BLX.
4452 2001-03-06 Igor Shevlyakov <igor@windriver.com>
4454 * archures.c (bfd_default_scan): Add Coldfire CPUs.
4455 * bfd-in2.h: Regenerate.
4456 * cpu-m68k.c: Add Coldfire CPUs for arch table.
4457 * ieee.c (ieee_write_processor): Set proper id for
4460 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
4462 * configure.in: Add s390 target.
4463 * configure: Regenerate.
4465 2001-02-28 Andreas Jaeger <aj@suse.de>
4467 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
4470 2001-02-28 Philip Blundell <pb@futuretv.com>
4472 * elf32-arm.h: Update mentions of renamed EF_xx constants.
4473 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
4475 2001-02-27 H.J. Lu <hjl@gnu.org>
4477 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
4478 abfd->tdata.aout_data == NULL.
4480 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4482 * elf32-hppa.c: Correct field selector in stub comments.
4483 (clobber_millicode_symbols): Formatting fix.
4485 * configure.in: Bump version to 2.11.90.
4486 * configure: Regenerate.
4487 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
4488 (CFILES): $SOURCE_CFILES + generated C files.
4489 (POTFILES): Include $HFILES not $SOURCE_HFILES.
4491 * Makefile.in: Regenerate.
4492 * doc/Makefile.in: This too.
4494 2001-02-26 Timothy Wall <twall@cygnus.com>
4496 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
4499 2001-02-26 Nick Clifton <nickc@redhat.com>
4501 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
4502 up, replacing multiple if statements with a switch.
4503 (handle_COMDAT): New function.
4505 2001-02-26 H.J. Lu <hjl@gnu.org>
4507 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
4508 a warning for section flags we do not handle instead of
4511 2001-02-26 Andreas Jaeger <aj@suse.de>
4513 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
4515 2001-02-22 Timothy Wall <twall@cygnus.com>
4517 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
4518 * configure.in: Add objects for elf64_ia64_aix vectors.
4519 * configure: Regenerated.
4520 * configure.host: Recognize ia64-*-aix*.
4521 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
4522 for AIX. AIX5 requires most relocations to be dynamic (*all*
4523 binaries are somewhat similar to shared libraries).
4524 * targets.c: Add elf64_ia64_aix vectors.
4526 2001-02-21 David Mosberger <davidm@hpl.hp.com>
4528 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
4529 C8 said "1" instead of "8". Clarify error string for IMM22:
4530 "signed integer" instead of just "integer".
4532 2001-02-20 Andreas Jaeger <aj@suse.de>
4534 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
4535 PLT entries that could serve as a definition for a weak symbol.
4537 2001-02-19 Jakub Jelinek <jakub@redhat.com>
4539 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
4540 entries that could serve as a definition for a weak symbol.
4541 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
4543 2001-02-18 David O'Brien <obrien@FreeBSD>
4545 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
4546 FreeBSD/i386-CURRENT differently until I can figure out the needed
4548 * configure: Regenerate.
4549 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
4550 FreeBSD/PowerPC, and FreeBSD/sparc64.
4552 2001-02-18 lars brinkhoff <lars@nocrew.org>
4554 * Makefile.am: Add PDP-11 a.out target.
4555 * config.bfd: Likewise.
4556 * configure.in: Likewise.
4557 * targets.c: Likewise.
4558 * archures.c: Likewise.
4559 * bfd-in2.h: Likewise. Add PDP-11 relocations.
4560 * libbfd.h: Add PDP-11 relocations.
4561 * reloc.c: Likewise.
4562 * cpu-pdp11.c: New file.
4563 * pdp11.c: New file.
4565 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
4566 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
4567 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
4568 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
4569 (GET_MAGIC): New macro.
4570 (PUT_MAGIC): Likewise.
4571 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
4573 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
4575 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
4576 multiarch needs it).
4578 2001-02-18 H.J. Lu <hjl@gnu.org>
4580 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
4583 2001-02-18 Kazu Hirata <kazu@hxi.com>
4585 * vms-misc.c: Fix formatting.
4587 2001-02-16 Kazu Hirata <kazu@hxi.com>
4589 * vms.c: Fix formatting.
4591 2001-02-14 H.J. Lu <hjl@gnu.org>
4593 * elf.c (elf_find_function): New function.
4594 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
4595 the file name and function name.
4597 2001-02-14 Nick Clifton <nickc@redhat.com>
4599 * ecoff.c (bfd_debug_section): Update to initialise new fields in
4602 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
4603 (BFD64_BACKENDS): Add pepigen.c
4604 Add rules to create peigen.c and pepigen.c from peXXigen.c.
4606 * Makefile.in: Regenerate.
4607 * configure: Regenerate.
4608 * po/POTFILES.in: Regenerate.
4609 * po/bfd.pot: Regenerate.
4611 2001-02-14 H.J. Lu <hjl@gnu.org>
4613 * libcoff-in.h (pe_tdata): Add members target_subsystem and
4614 force_minimum_alignment.
4616 2001-02-14 Bo Thorsen <bo@suse.de>
4618 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
4619 (elf64_86_64_size_info): Struct added to fix a problem
4620 with the hashtable string entries.
4621 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
4622 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
4623 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
4624 remove the FIXME for this.
4625 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
4626 section. Also removed the FIXME for it.
4627 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
4628 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
4629 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
4631 2001-02-13 Richard Henderson <rth@redhat.com>
4633 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
4634 and not user provided.
4636 2001-02-13 Kazu Hirata <kazu@hxi.com>
4638 * vms.c (vms_print_symbol): Remove unreachable code.
4640 * rs6000-core.c: Fix formatting.
4642 2001-02-13 David Mosberger <davidm@hpl.hp.com>
4644 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
4645 as _bfd_XXi_only_swap_filehdr_out.
4646 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
4647 pe->force_minimum_alignment to TRUE.
4648 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
4649 PEI_TARGET_SUBSYSTEM.
4650 (pe_print_private_bfd_data): Call
4651 _bfd_XX_print_private_bfd_data_common() instead of
4652 _bfd_pe_print_private_bfd_data_common().
4653 (pe_bfd_copy_private_bfd_data): Call
4654 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
4655 _bfd_pe_bfd_copy_private_bfd_data_common().
4656 (coff_bfd_copy_private_section_data): Define as
4657 _bfd_XX_bfd_copy_private_section_data instead of
4658 _bfd_pe_bfd_copy_private_section_data.
4659 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
4660 of a _bfd_pe_get_symbol_info.
4664 * peXXigen.c: Renamed from peigen.c.
4665 (COFF_WITH_XX): Define this macro (will get expanded into
4666 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
4667 compiled as peigen.c or pepigen.c.
4668 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
4669 define the canonical PEP structures and definitions.
4670 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
4671 effect, enforce minimum file and section alignments. If
4672 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
4673 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
4674 so, by default, this is a no-op).
4676 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
4677 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
4678 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
4679 _bfd_pefoo if it's not defined. Use these macros to define
4682 * libcoff.h (pe_tdata): Add members target_subsystem and
4683 force_minimum_alignment.
4685 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
4687 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
4689 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
4692 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
4693 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
4696 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
4697 (BFD64_BACKENDS_CFILES): Mention pepigen.c
4698 (peigen.c): Add rule to generate from peXXigen.c.
4700 (pepigen.lo): List dependencies for pepigen.lo.
4702 2001-02-13 Alan Modra <alan@linuxcare.com.au>
4704 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
4705 $global$ referenced but not defined, set its value here.
4707 2001-02-09 Bo Thorsen <bo@suse.de>
4709 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
4711 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
4713 (elf64_x86_64_relocate_section): Fix formatting.
4714 (elf64_x86_64_relocate_section): Fix addend for relocation of
4715 R_X86_64_(8|16|32|PC8|PC16|PC32).
4717 2001-02-12 Jan Hubicka <jh@suse.cz>
4719 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
4721 2001-02-11 H.J. Lu <hjl@gnu.org>
4723 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
4726 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4728 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
4729 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
4730 relocations against dynsym symbols.
4732 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
4733 the R_MIPS_26 relocation.
4734 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
4735 the R_MIPS_26 relocation.
4736 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
4738 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
4739 the R_MIPS_26 relocation.
4740 (mips_elf64_howto_table_rela): Likewise.
4742 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
4743 member to mark symbols that have non-CALL relocations against
4745 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
4746 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
4748 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
4749 non-CALL relocation against it is encountered.
4750 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
4751 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
4752 no_fn_stub is not set.
4754 * elf32-mips.c (mips_elf_output_extsym): Get the output section
4755 information from the real symbol for indirect ones.
4756 Check no_fn_stub to find out if a symbol has a function stub
4759 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4761 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
4762 * Makefile.in: Regenerate.
4764 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4766 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
4767 true if section name is an unwind table section name.
4768 (elfNN_ia64_additional_program_headers): Count each unwind section
4770 (elfNN_ia64_modify_segment_map): Install one unwind program header
4771 for each unwind separate section. Note: normally the linker
4772 script merges the unwind sections that go into a single segment,
4773 so this still generates at most one unwind program header per
4776 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
4777 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
4778 (elfNN_ia64_fake_sections): Mark sections with names that start
4779 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
4782 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
4783 Use it to make sh_info in unwind section point to the text section
4786 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4788 * Makefile.am: Add linux target for S/390.
4789 * archures.c: Likewise.
4790 * bfd-in2.h: Likewise.
4791 * config.bfd: Likewise.
4792 * configure.in: Likewise.
4794 * libbfd.h: Likewise.
4795 * targets.c: Likewise.
4796 * cpu-s390.c: New file.
4797 * elf32-s390.c: New file.
4798 * elf64-s390.c: New file.
4800 2001-02-09 Nick Clifton <nickc@redhat.com>
4802 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
4803 ImageBase. This has already been done by coff_swap_hdr_in.
4805 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4807 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
4809 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4811 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
4812 (sparc64_elf_relocate_section): Likewise.
4814 2001-02-09 Mark Kettenis <kettenis@gnu.org>
4816 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
4817 similar to R_SPARC_32.
4818 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
4820 2001-02-08 H.J. Lu <hjl@gnu.org>
4822 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
4823 relocation entries for weak definitions when building DSO with
4826 2001-02-08 Richard Henderson <rth@redhat.com>
4828 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
4829 before visibility. Locally defined protected symbols are not
4832 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
4834 * config.bfd: Enable coff64 for rs6000-*. Patch from
4835 <hzoli@austin.ibm.com>.
4837 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
4839 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
4840 found, do not attempt to find dwarf2 info before returning.
4842 2001-02-07 Jakub Jelinek <jakub@redhat.com>
4844 * elflink.h (is_global_symbol_definition): Rename to
4845 is_global_data_symbol_definition and have it reject function
4847 (elf_link_is_defined_archive_symbol): Use renamed function.
4849 2001-02-07 Todd Vierling <tv@wasabisystems.com>
4851 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
4852 * libbfd.h (bfd_target_vector): Likewise.
4853 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
4854 make static; create pointer reference named bfd_target_vector.
4855 (_bfd_target_vector_entries): Calculate this based on the array
4856 typed _bfd_target_vector.
4858 2001-02-06 H.J. Lu <hjl@gnu.org>
4860 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
4861 internal symbols are not dynamic.
4862 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
4864 2001-02-06 Nick Clifton <nickc@redhat.com>
4866 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
4867 that it will not be pulled into the list of files that make up
4869 * Makefile.in: Regenerate.
4870 * po/bfd.pot: Regenerate.
4872 2001-02-06 H.J. Lu <hjl@gnu.org>
4874 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
4876 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
4877 external_PEI_IMAGE_hdr.
4879 2001-02-06 Kazu Hirata <kazu@hxi.com>
4881 * elf-m10200.c: Fix formatting.
4883 2001-02-04 Nick Clifton <nickc@redhat.com>
4885 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
4886 rel, it will be handled later on.
4888 2001-02-02 Fred Fish <fnf@ninemoons.com>
4890 * Makefile.in: Fix typo.
4892 2001-02-01 Kazu Hirata <kazu@hxi.com>
4894 * elf-m10300.c: Fix formatting.
4896 2001-01-30 Alan Modra <alan@linuxcare.com.au>
4898 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
4899 (elf_backend_get_symbol_type): Define.
4900 (elf64_hppa_object_p): Set architecture and machine from elf
4903 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
4905 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
4908 2001-01-26 Richard Henderson <rth@redhat.com>
4910 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
4911 for non-default visibility.
4912 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
4913 delete ugly macro and replace with pretty function.
4915 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
4917 * coff-go32.c: Update copyright.
4918 * coff-stgo32.c: Likewise.
4919 * coff-go32.c (COFF_LONG_FILENAMES): Define.
4920 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
4921 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
4922 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4924 2001-01-25 Kazu Hirata <kazu@hxi.com>
4926 * bfd-in2.h: Rebuild.
4927 * libbfd.h: Likewise.
4929 2001-01-23 H.J. Lu <hjl@gnu.org>
4931 * bfd-in2.h: Rebuild.
4933 2001-01-23 H.J. Lu <hjl@gnu.org>
4935 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
4936 is NULL or PRIV(vms_rec) is outside of the buffer.
4938 2001-01-23 Kazu Hirata <kazu@hxi.com>
4940 * coff64-rs6000.c: Fix formatting.
4941 * coff-arm.c: Likewise.
4942 * coffgen.c: Likewise.
4943 * cofflink.c: Likewise.
4944 * coff-mcore.c: Likewise.
4945 * coff-mips.c: Likewise.
4946 * coff-pmac.c: Likewise.
4947 * coff-ppc.c: Likewise.
4948 * coff-rs6000.c: Likewise.
4949 * elf32.c: Likewise.
4950 * elf32-fr30.c: Likewise.
4951 * elf32-i370.c: Likewise.
4952 * elf32-i860.c: Likewise.
4953 * elf32-m32r.c: Likewise.
4954 * elf32-m68k.c: Likewise.
4955 * elf32-mcore.c: Likewise.
4956 * elf32-ppc.c: Likewise.
4957 * elf32-sh.c: Likewise.
4958 * elf32-v850.c: Likewise.
4959 * elf64-alpha.c: Likewise.
4960 * elf64-sparc.c: Likewise.
4961 * elflink.c: Likewise.
4962 * elflink.h: Likewise.
4963 * elf-m10200.c: Likewise.
4964 * elf-m10300.c: Likewise.
4965 * elfxx-ia64.c: Likewise.
4967 * aoutx.h: Fix formatting.
4969 * bfd-in2.h: Likewise.
4970 * bfd-in.h: Likewise.
4971 * cpu-i386.c: Likewise.
4972 * cpu-m68hc11.c: Likewise.
4973 * dwarf2.c: Likewise.
4974 * elf64-x86-64.c: Likewise.
4975 * format.c: Likewise.
4976 * freebsd.h: Likewise.
4978 * hp300hpux.c: Likewise.
4979 * hppabsd-core.c: Likewise.
4980 * hpux-core.c: Likewise.
4982 2001-01-22 Bo Thorsen <bo@suse.de>
4984 * elf64-x86-64.c: Added PIC support for X86-64.
4985 (elf64_x86_64_link_hash_newfunc): Function added.
4986 (elf64_x86_64_link_hash_table_create): Likewise.
4987 (elf64_x86_64_check_relocs): Likewise.
4988 (elf64_x86_64_gc_mark_hook): Likewise.
4989 (elf64_x86_64_gc_sweep_hook): Likewise.
4990 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
4991 (elf64_x86_64_size_dynamic_sections): Likewise.
4992 (elf64_x86_64_discard_copies): Likewise.
4993 (elf64_x86_64_finish_dynamic_symbol): Likewise.
4994 (elf64_x86_64_finish_dynamic_sections): Likewise.
4995 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
4997 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4999 * Makefile.am (install-data-local): Make use of $(DESTDIR).
5000 * Makefile.in: Regenerate.
5002 2001-01-21 Kazu Hirata <kazu@hxi.com>
5004 * coff-a29k.c: Fix formatting.
5006 2001-01-19 H.J. Lu <hjl@gnu.org>
5008 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
5009 relocation section names.
5010 (elf_i386_relocate_section): Report files with bad relocation
5011 section names and return false.
5013 2001-01-17 Bo Thorsen <bo@suse.de>
5015 * targets.c: Alphabetize list of xvecs.
5017 2001-01-14 Alan Modra <alan@linuxcare.com.au>
5019 * config.bfd: Add linux target variant for elfxx-hppa.
5020 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
5021 bfd_elf64_hppa_linux_vec.
5022 * configure: Regenerate.
5023 * elf64-hppa.c: Include elf64-target.h again to support linux
5025 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
5026 * elf32-hppa.c: Include elf32-target.h again to support linux
5028 (elf32_hppa_post_process_headers): New function.
5029 (elf_backend_post_process_headers): Define.
5030 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
5031 bfd_elf32_hppa_linux_vec.
5033 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
5034 and data_segment_base fields.
5035 (elf32_hppa_link_hash_table_create ): Init them.
5036 (elf32_hppa_check_relocs): Update comments.
5037 (hppa_record_segment_addr): New function.
5038 (elf32_hppa_relocate_section): Call it.
5039 (final_link_relocate): Handle R_PARISC_SEGREL32.
5040 (elf32_hppa_final_link): New function.
5041 (bfd_elf32_bfd_final_link): Define to call it.
5042 (hppa_unwind_entry_compare): New function.
5043 * cache.c (bfd_open_file): Create files in write+read mode.
5045 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
5046 SEGREL32 and numerous other relocs. Change duplicate
5047 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
5049 * opncls.c (bfd_fdopenr): Add parens like the comment says around
5052 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
5053 .plt entries for DT_INIT and DT_FINI.
5054 (elf32_hppa_finish_dynamic_sections): Remove special handling of
5055 DT_INIT and DT_FINI.
5057 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
5058 offsets for stub .plt access if wide mode. Check offset in range.
5060 2001-01-13 Nick Clifton <nickc@redhat.com>
5062 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
5065 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
5068 2001-01-12 Alan Modra <alan@linuxcare.com.au>
5070 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
5071 * configure: Regenerate.
5073 2001-01-11 Peter Targett <peter.targett@arccores.com>
5075 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
5076 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
5077 * cpu-arc.c (arch_info_struct): Add entries for variants.
5078 (bfd_arc_arch) Set default to bfd_mach_arc_5.
5079 (arc_get_mach) Don't assume machine names prefixed arc- before
5081 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
5083 (arc_elf_final_write_processing) Likewise.
5084 (ELF_MACHINE_CODE) Use EM_ARC.
5086 2001-01-10 Nick Clifton <nickc@redhat.com>
5088 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
5090 2001-01-07 Philip Blundell <philb@gnu.org>
5092 * README: Replace `bug-gnu-utils@gnu.org' with
5093 `bug-binutils@gnu.org'.
5095 2001-01-04 Kazu Hirata <kazu@hxi.com>
5097 * som.c: Fix formatting.
5099 2001-01-03 Kazu Hirata <kazu@hxi.com>
5101 * ecoffswap.h: Fix formatting.
5102 * elf-bfd.h: Likewise.
5103 * elfarm-nabi.c: Likewise.
5104 * elfarm-oabi.c: Likewise.
5105 * elfcode.h: Likewise.
5106 * elfcore.h: Likewise.
5107 * elflink.c: Likewise.
5108 * elflink.h: Likewise.
5109 * elfxx-ia64.c: Likewise.
5110 * elfxx-target.h: Likewise.
5111 * libbfd.c: Likewise
5112 * linker.c: Likewise.
5113 * lynx-core.c: Likewise.
5115 2001-01-02 Kazu Hirata <kazu@hxi.com>
5117 * pc532-mach.c: Fix formatting.
5118 * pe-arm.c: Likewise.
5119 * pe-i386.c: Likewise.
5120 * pe-mips.c: Likewise.
5121 * pe-ppc.c: Likewise.
5122 * pe-sh.c: Likewise.
5123 * pei-mips.c: Likewise.
5124 * pei-sh.c: Likewise.
5125 * peicode.h: Likewise.
5126 * ppcboot.c: Likewise.
5127 * ptrace-core.c: Likewise.
5129 2001-01-01 Kazu Hirata <kazu@hxi.com>
5131 * reloc.c: Fix formatting.
5132 * riscix.c: Likewise.
5133 * rs6000-core.c: Likewise.
5134 * xcoff-target.h: Likewise.
5136 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
5138 * elfcode.h (elf_object_p): Also restore the bfd mach field on
5139 error, by calling bfd_default_set_arch_mach with incoming
5142 2000-12-26 Kazu Hirata <kazu@hxi.com>
5144 * vaxnetbsd.c: Fix formatting.
5145 * versados.c: Likewise.
5146 * vms-gsd.c: Likewise.
5147 * vms-hdr.c: Likewise.
5148 * vms-misc.c: Likewise.
5150 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
5152 * archive.c (coff_write_armap): Don't write more than symbol_count
5153 `archive_member_file_ptr's.
5155 2000-12-25 Kazu Hirata <kazu@hxi.com>
5157 * vms-tir.c: Fix formatting.
5159 2000-12-23 Kazu Hirata <kazu@hxi.com>
5161 * vms.c: Fix formatting.
5164 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
5166 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
5168 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
5170 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
5173 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
5175 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
5177 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
5179 * libbfd.c (bfd_get_bits): Added
5180 (bfd_put_bits): Likewise
5181 * bfd-in.h: Declared the above.
5182 * bfd-in2.h: Regenerated.
5184 2000-12-20 Kazu Hirata <kazu@hxi.com>
5186 * targets.c: Fix formatting.
5187 * tekhex.c: Likewise.
5188 * trad-core.c: Likewise.
5190 2000-12-19 Kazu Hirata <kazu@hxi.com>
5192 * sco5-core.c: Fix formatting.
5193 * section.c: Likewise.
5194 * sparclinux.c: Likewise.
5195 * sparclynx.c: Likewise.
5196 * sparcnetbsd.c: Likewise.
5198 * stabs.c: Likewise.
5199 * stab-syms.c: Likewise.
5200 * sunos.c: Likewise.
5202 * sysdep.h: Likewise.
5204 2000-12-18 Nick Clifton <nickc@redhat.com>
5206 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
5208 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
5209 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
5211 2000-12-18 Nick Clifton <nickc@redhat.com>
5213 * vms-misc.c (_bfd_vms_get_record): Add default case to
5216 2000-12-15 Miloslav Trmac <mitr@volny.cz>
5218 * elfcore.h (elf_core_file_p): Move to the start of the program
5219 headers before attempting to read them.
5221 2000-12-14 Kazu Hirata <kazu@hxi.com>
5223 * peigen.c: Fix formatting.
5227 2000-12-13 Kazu Hirata <kazu@hxi.com>
5229 * peigen.c: Fix formatting.
5231 2000-12-12 Jim Wilson <wilson@redhat.com>
5233 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
5235 2000-12-08 Mark Salter <msalter@redhat.com>
5237 * binary.c (binary_set_section_contents): Ignore sections
5240 2000-12-12 Kazu Hirata <kazu@hxi.com>
5242 * m68klinux.c: Fix formatting.
5243 * m68knetbsd.c: Likewise.
5244 * mipsbsd.c: Likewise.
5245 * netbsd-core.c: Likewise.
5246 * netbsd.h: Likewise.
5247 * newsos3.c: Likewise.
5248 * nlm32-alpha.c: Likewise.
5249 * nlm32-i386.c: Likewise.
5250 * nlm32-ppc.c: Likewise.
5251 * nlm32-sparc.c: Likewise.
5252 * nlmcode.h: Likewise.
5253 * nlmswap.h: Likewise.
5254 * nlm-target.h: Likewise.
5255 * ns32knetbsd.c: Likewise.
5257 2000-12-10 Fred Fish <fnf@be.com>
5259 * elflink.h (elf_link_output_extsym): Don't complain about undefined
5260 symbols in shared objects if allow_shlib_undefined is true.
5262 2000-12-12 Nick Clifton <nickc@redhat.com>
5264 * cpu-sh.c: Fix formattng.
5265 * elf.c: Fix formattng.
5266 * elf32-mips.c: Fix formattng.
5267 * elf32-sh.c: Fix formattng.
5268 * elf64-alpha.c: Fix formattng.
5270 2000-12-09 Nick Clifton <nickc@redhat.com>
5272 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
5273 dwarf2_find_line_info as last parameter to invocation of
5274 _bfd_dwarf2_find_nearest_line.
5275 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
5276 dwarf2_find_line_info as last parameter to invocation of
5277 _bfd_dwarf2_find_nearest_line.
5279 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
5281 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
5282 (BFD_LIBS): ...to here.
5283 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
5284 (BFD_LIBS_CFILES): ...to here.
5285 * Makefile.in: Regenerate.
5286 * configure.in: Remove dwarf.lo from the elf shell variable.
5287 * configure: Regenerate.
5288 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
5289 * libcoff.h: Regenerate.
5290 * coffgen.c (coff_find_nearest_line): Call
5291 _bfd_dwarf2_find_nearest_line.
5292 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
5294 (read_abbrevs): Likewise
5295 (decode_line_info): Likewise.
5296 (parse_comp_unit): Likewise.
5297 (comp_unit_find_nearest_line): Likewise.
5298 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
5299 * libbfd.h: Regenerate.
5300 * elf.c (_bfd_elf_find_nearest_line): Update call.
5301 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
5302 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
5303 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
5304 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
5305 (styp_to_sec_flags): Handle DWARF2 sections.
5306 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
5307 to _bfd_find_nearest_line.
5308 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
5309 call to _bfd_find_nearest_line.
5311 2000-12-08 Kazu Hirata <kazu@hxi.com>
5313 * coffgen.c: Fix formatting.
5314 * elf-m10300.c: Likewise.
5315 * elf32-i386.c: Likewise.
5316 * elf32-i960.c: Likewise.
5317 * elf32-m68k.c: Likewise.
5318 * elf32-mcore.c: Likewise.
5319 * elf32-ppc.c: Likewise.
5320 * elf32-sh.c: Likewise.
5321 * elf32-sparc.c: Likewise.
5322 * elf32-v850.c: Likewise.
5323 * elf64-alpha.c: Likewise.
5324 * elf64-hppa.c: Likewise.
5325 * elf64-mips.c: Likewise.
5326 * elf64-sparc.c: Likewise.
5328 2000-12-07 Kazu Hirata <kazu@hxi.com>
5330 * elf32-ppc.c: Fix formatting.
5331 * elf64-x86-64.c: Likewise.
5333 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
5335 From Ralf Baechle <ralf@gnu.org>
5337 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
5338 BFDs containing no sections or empty .text, .data or .bss sections
5339 to be merged, regardless of their flags.
5341 2000-12-06 Kazu Hirata <kazu@hxi.com>
5343 * elf32-m32r.c: Fix formatting.
5344 * elf32-m68hc11.c: Likewise.
5345 * elf32-m68hc12.c: Likewise.
5346 * elf32-m68k.c: Likewise.
5347 * elf32-mcore.c: Likewise.
5348 * elf32-pj.c: Likewise.
5349 * elf32-ppc.c: Likewise.
5351 2000-12-05 Kazu Hirata <kazu@hxi.com>
5353 * elf32-fr30.c: Fix formatting.
5354 * elf32-hppa.c: Likewise.
5355 * elf32-i370.c: Likewise.
5356 * elf32-i386.c: Likewise.
5357 * elf32-i860.c: Likewise.
5358 * elf32-i960.c: Likewise.
5360 2000-12-03 Kazu Hirata <kazu@hxi.com>
5362 * elf32-arm.h: Fix formatting.
5363 * elf32-avr.c: Likewise.
5364 * elf32-cris.c: Likewise.
5365 * elf32-d10v.c: Likewise.
5366 * elf32-d30v.c: Likewise.
5367 * elf-hppa.h: Likewise.
5368 * elf-m10200.c: Likewise.
5369 * elf-m10300.c: Likewise.
5371 2000-12-01 Chris Demetriou <cgd@sibyte.com>
5373 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
5374 bfd_mach_mips32_4k. Update FIXME comment.
5375 * archures.c (bfd_mach_mips32): New constant.
5376 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
5377 the latter, renumber it.
5378 * bfd-in2.h (bfd_mach_mips32): New constant.
5379 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
5380 the latter, renumber it.
5381 * cpu-mips.c (I_mips32): New constant.
5382 (I_mips4K, I_mips32_4k): Rename the former to the latter.
5383 (arch_info_struct): Add bfd_mach_mips32 entry, replace
5384 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
5385 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
5386 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
5387 with E_MIPS_MACH_MIPS32_4K.
5388 (_bfd_mips_elf_final_write_processing): Replace
5389 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
5390 bfd_mach_mips32 case.
5391 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
5392 comparison with support for MIPS32.
5393 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
5396 * aoutx.h (NAME(aout,machine_type)): Add cases for
5397 bfd_mach_mips5 and bfd_mach_mips64.
5398 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
5399 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
5400 * cpu_mips.c (I_mips5, I_mips64): New definitions.
5401 (arch_info_struct): Add entries for bfd_mach_mips5 and
5403 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
5404 _bfd_mips_elf_print_private_bfd_data): Add cases for
5405 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
5406 (_bfd_mips_elf_final_write_processing): Add cases for
5407 bfd_mach_mips5 and bfd_mach_mips64.
5409 * aoutx.h (NAME(aout,machine_type)): Add a
5410 bfd_mach_mips_sb1 case.
5411 * archures.c (bfd_mach_mips_sb1): New constant.
5412 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
5413 * cpu-mips.c (I_sb1): New constant.
5414 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
5415 * elf32-mips.c (elf_mips_mach): Add case for
5417 (_bfd_mips_elf_final_write_processing): Add case for
5420 2000-12-01 Joel Sherrill <joel@OARcorp.com>
5422 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
5423 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
5424 (sparc*-*-rtems*): Switched from a.out to ELF.
5426 2000-11-30 Jan Hubicka <jh@suse.cz>
5428 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
5429 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
5430 (elf64-x86-64.lo): Add dependencies.
5431 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
5432 bfd_mach_x86_64_intel_syntax.
5433 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
5434 * config.bfd (x86_64): Add.
5435 * configure.in: Add support for bfd_elf64_x86_64_vec.
5436 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
5437 (bfd_i386_arch, i8086_ar): Link in.
5438 * elf64-x86-64.c: New file.
5439 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
5440 * targets.c (bfd_elf64_x86_64_vec): Add.
5441 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
5443 2000-11-30 Kazu Hirata <kazu@hxi.com>
5445 * xcofflink.c: Fix formatting.
5447 2000-11-28 Kazu Hirata <kazu@hxi.com>
5449 * aoutx.h: Fix formatting.
5450 * bfd-in.h: Likewise.
5451 * bfd-in2.h: Likewise.
5452 * cache.c: Likewise.
5453 * cisco-core.c: Likewise.
5454 * coff64-rs6000.c: Likewise.
5455 * coffcode.h: Likewise.
5456 * coffswap.h: Likewise.
5457 * corefile.c: Likewise.
5458 * elf32-mips.c: Likewise.
5460 2000-11-27 Kazu Hirata <kazu@hxi.com>
5462 * aout-adobe.c: Fix formatting.
5463 * coff64-rs6000.c: Likewise.
5464 * coffgen.c: Likewise.
5465 * cofflink.c: Likewise.
5467 2000-11-27 Philip Blundell <pb@futuretv.com>
5469 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
5470 (obj_coff_strings_written): New accessor macro for above.
5471 * libcoff.h: Regenerate.
5472 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
5474 * coffcode.h (coff_write_object_contents): No need to write out
5475 the string table if it's already been done.
5477 2000-11-22 Philip Blundell <pb@futuretv.com>
5479 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
5480 weak undefined symbols.
5482 2000-11-24 Nick Clifton <nickc@redhat.com>
5484 * archures.c (bfd_mach_arm_5TE): Define.
5485 (bfd_mach_arm+XScale): Define.
5486 * bfd-in2.h: Regenerate.
5488 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
5489 BFD_RELOC_ARM_PCREL_BLX.
5491 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
5492 XScale machine numbers.
5494 * config.bfd (xscale-elf): Add target.
5495 (xscale-coff): Add target.
5497 * cpu-arm.c: Add xscale machine name.
5498 Add v5t, v5te and XScale machine numbers.
5500 2000-11-23 Kazu Hirata <kazu@hxi.com>
5502 * aix386-core.c: Fix formatting.
5504 2000-11-22 Jim Wilson <wilson@redhat.com>
5506 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
5507 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
5508 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
5509 (ins_imms_scaled): Initialize sign_bit at function entry.
5510 (elf64_ia64_operands): Add missing initializers.
5511 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
5512 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
5513 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
5514 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
5515 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
5517 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
5518 and free_extsyms at function entry.
5519 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
5520 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
5521 (get_got): Delete unused local srel.
5522 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
5523 (elfNN_ia64_relocate_section): Delete unused local dynindx.
5525 2000-11-21 Kazu Hirata <kazu@hxi.com>
5527 * coff-a29k.c: Fix formatting.
5528 * coff-h8500.c: Likewise.
5529 * coff-i960.c: Likewise.
5530 * coff-ppc.c: Likewise.
5531 * coff-rs6000.c: Likewise.
5532 * coff-stgo32.c: Likewise.
5533 * coff-tic54x.c: Likewise.
5534 * coff-w65.c: Likewise.
5535 * cpu-h8500.c: Likewise.
5536 * cpu-hppa.c: Likewise.
5537 * cpu-ns32k.c: Likewise.
5538 * ecoff.c: Likewise.
5539 * ecofflink.c: Likewise.
5541 2000-11-21 Nick Clifton <nickc@redhat.com>
5543 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
5544 remove possibility of infinite loop.
5546 2000-11-20 Kazu Hirata <kazu@hxi.com>
5548 * aix386-core.c: Fix formatting.
5549 * aout-adobe.c: Likewise.
5550 * aout-arm.c: Likewise.
5551 * aout-encap.c: Likewise.
5552 * aout-ns32k.c: Likewise.
5553 * aout-target.h: Likewise.
5554 * aout-tic30.c: Likewise.
5555 * aoutf1.h: Likewise.
5556 * aoutx.h: Likewise.
5557 * archive.c: Likewise.
5558 * bfd-in.h: Likewise.
5559 * bfd-in2.h: Likewise.
5563 2000-11-17 H.J. Lu <hjl@gnu.org>
5565 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
5566 pltoff entries for DT_INIT and DT_FINI.
5567 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
5568 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
5571 2000-11-16 Richard Henderson <rth@redhat.com>
5573 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
5574 (allocate_dynrel_entries): Likewise.
5575 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
5576 (set_pltoff_entry): Likewise.
5577 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
5578 (elfNN_ia64_reloc_type_lookup): Likewise.
5579 (elfNN_ia64_install_value): Likewise.
5580 (elfNN_ia64_relocate_section): Likewise.
5581 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
5582 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
5584 2000-11-16 Kazu Hirata <kazu@hxi.com>
5586 * cpu-a29k.c: Fix formatting.
5587 * cpu-alpha.c: Likewise.
5588 * cpu-arm.c: Likewise.
5589 * cpu-avr.c: Likewise.
5590 * cpu-d10v.c: Likewise.
5591 * cpu-h8500.c: Likewise.
5592 * cpu-hppa.c: Likewise.
5593 * cpu-i370.c: Likewise.
5594 * cpu-i386.c: Likewise.
5595 * cpu-i960.c: Likewise.
5596 * cpu-ia64-opc.c: Likewise.
5597 * cpu-ia64.c: Likewise.
5598 * cpu-m32r.c: Likewise.
5599 * cpu-m68hc11.c: Likewise.
5600 * cpu-m68hc12.c: Likewise.
5601 * cpu-m68k.c: Likewise.
5602 * cpu-m88k.c: Likewise.
5603 * cpu-mips.c: Likewise.
5604 * cpu-ns32k.c: Likewise.
5605 * cpu-pj.c: Likewise.
5606 * cpu-powerpc.c: Likewise.
5607 * cpu-sh.c: Likewise.
5608 * cpu-sparc.c: Likewise.
5609 * cpu-tic54x.c: Likewise.
5610 * cpu-v850.c: Likewise.
5611 * cpu-vax.c: Likewise.
5612 * cpu-w65.c: Likewise.
5613 * cpu-we32k.c: Likewise.
5614 * cpu-z8k.c: Likewise.
5615 * dwarf1.c: Likewise.
5616 * dwarf2.c: Likewise.
5618 2000-11-15 Kazu Hirata <kazu@hxi.com>
5620 * coff-arm.c: Fix formatting.
5621 * coff-ppc.c: Likewise.
5622 * coff-rs6000.c: Likewise.
5623 * coff-sh.c: Likewise.
5624 * coff-sparc.c: Likewise.
5625 * coff-tic30.c: Likewise.
5626 * coff-tic54x.c: Likewise.
5627 * coff-tic80.c: Likewise.
5628 * coff-w65.c: Likewise.
5629 * coff-we32k.c: Likewise.
5630 * coff-z8k.c: Likewise.
5632 2000-11-15 Richard Henderson <rth@redhat.com>
5634 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
5635 section with the same ALLOC|LOAD flags as the source section.
5637 2000-11-14 Jakub Jelinek <jakub@redhat.com>
5639 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
5640 by STO_ALPHA constants.
5642 2000-11-14 Kazu Hirata <kazu@hxi.com>
5644 * coff-pmac.c: Fix formatting.
5645 * coff-ppc.c: Likewise.
5647 2000-11-13 H.J. Lu <hjl@gnu.org>
5649 * elflink.h (elf_link_add_object_symbols): Also add indirect
5650 symbols for common symbols with the default version.
5652 2000-11-09 Philip Blundell <pb@futuretv.com>
5654 * section.c (STD_SECTION): Set gc_mark flag.
5656 2000-11-11 Kazu Hirata <kazu@hxi.com>
5658 * coff-i960.c: Likewise.
5659 * coff-m68k.c: Likewise.
5660 * coff-m88k.c: Likewise.
5661 * coff-mcore.c: Likewise.
5662 * coff-mips.c: Likewise.
5664 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
5666 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
5668 2000-11-10 Kazu Hirata <kazu@hxi.com>
5670 * coff-h8300.c: Fix formatting.
5671 * coff-h8500.c: Likewise.
5672 * coff-i386.c: Likewise.
5673 * coff-i860.c: Likewise.
5674 * coff-i960.c: Likewise.
5675 * coff-ia64.c: Likewise.
5677 2000-11-09 Kazu Hirata <kazu@hxi.com>
5679 * archive.c: Fix formatting.
5680 * archures.c: Likewise.
5682 2000-11-07 Richard Henderson <rth@redhat.com>
5684 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
5685 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
5686 * section.c (bfd_set_section_contents): Call memcpy if
5687 section->contents set and location not equal to contents plus offset.
5689 2000-11-08 Kazu Hirata <kazu@hxi.com>
5691 * bfd-in.h: Fix formatting.
5692 * bfd-in2.h: Likewise.
5694 * binary.c: Likewise.
5696 * coff-a29k.c: Likewise.
5697 * coff-alpha.c: Likewise.
5698 * coff-apollo.c: Likewise.
5699 * coff-aux.c: Likewise.
5701 2000-11-07 Kazu Hirata <kazu@hxi.com>
5703 * aix386-core.c: Fix formatting.
5704 * aoutf1.h: Likewise.
5705 * aoutx.h: Likewise.
5706 * archures.c: Likewise.
5707 * armnetbsd.c: Likewise.
5709 2000-11-07 Alan Modra <alan@linuxcare.com.au>
5711 * coff-h8300.c (special): Adjust reloc address.
5713 2000-11-06 Steve Ellcey <sje@cup.hp.com>
5715 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
5716 to differentiate elf32 and elf64 on ia64.
5717 * bfd-in2.h: Regenerate.
5718 * config.bfd: Add target for "ia64*-*-hpux*".
5719 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
5720 * configure: Regenerate.
5721 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
5722 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
5724 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
5725 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
5726 * Makefile.in: Regnerate.
5727 * elf64-ia64.c: Deleted.
5728 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
5730 2000-11-06 Kazu Hirata <kazu@hxi.com>
5732 * aout-adobe.c: Fix formatting.
5733 * aout-arm.c: Likewise.
5734 * aout-cris.c: Likewise.
5735 * aout-encap.c: Likewise.
5736 * aout-ns32k.c: Likewise.
5737 * aout-target.h: Likewise.
5738 * aout-tic30.c: Likewise.
5740 2000-11-05 Philip Blundell <philb@gnu.org>
5742 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
5743 BFDs containing no sections to be merged, regardless of their flags.
5745 2000-11-04 Philip Blundell <philb@gnu.org>
5747 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
5748 if a relocation for an undefined symbol also results in an
5751 2000-11-06 Christopher Faylor <cgf@cygnus.com>
5753 * config.bfd: Add support for Sun Chorus.
5755 2000-11-05 David O'Brien <obrien@FreeBSD.org>
5757 * configure.in: Recognize alpha-*-freebsd*.
5758 * configure: Regenerate.
5760 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
5762 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
5763 (Chunk): New global variable set by a parameter in objcopy.c.
5764 (S3Forced): New global variable set by a parameter in
5766 (srec_set_section_contents): If S3Forced is true, always generate
5768 (srec_write_section): Use 'Chunk' to limit maximum length of S
5771 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5773 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
5774 * Makefile.in: Regenerate.
5775 * bfd-in2.h: Regenerate.
5776 * po/bfd.pot: Regenerate.
5778 2000-10-31 Philip Blundell <philb@gnu.org>
5780 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
5781 EF_SOFT_FLOAT if it is defined.
5783 2000-10-27 Philip Blundell <philb@gnu.org>
5785 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
5786 attempts to mix PIC code with non-PIC, just mark the output as
5787 being position dependent.
5788 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
5789 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
5790 all mismatches, not just the first one.
5792 2000-10-25 Chris Demetriou <cgd@sibyte.com>
5794 * ieee.c (ieee_archive_p): Plug one of many possible
5795 memory leaks in error handling.
5797 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5799 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
5800 elf32_sparc_object_p, elf32_sparc_final_write_processing):
5802 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
5803 sparc64_elf_object_p): Support v9b.
5804 * archures.c: Declare v8plusb and v9b machines.
5806 * cpu-sparc.c: Ditto.
5808 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5810 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
5813 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
5814 (SYMBOL_CALLS_LOCAL): New macro.
5815 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
5816 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
5817 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
5818 (ppc_elf_relocate_section): Use flag variable to determine
5819 whether the relocation refers to a local symbol.
5820 Test whether a PLTREL24 reloc will produce a reloc by looking
5821 to see whether a PLT entry was made.
5823 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5825 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
5826 entries that could serve as a definition for a weak symbol.
5828 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
5830 From Ralf Baechle <ralf@gnu.org>
5832 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
5833 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
5834 against local symbols.
5835 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
5837 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5839 * section.c (struct sec): Add kept_section.
5840 (struct bfd_comdat_info): Remove sec, we can use above.
5841 (STD_SECTION): Add initializer.
5842 (bfd_make_section_anyway): Init here too.
5844 * bfd-in2.h: Regenerate.
5846 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
5848 (elf_link_input_bfd): Set all asection->symbol->value's here, and
5849 fudge values for discarded link-once section symbols.
5851 * elf64-hppa.c: Include alloca-conf.h
5853 2000-10-11 Alan Modra <alan@linuxcare.com.au>
5855 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
5857 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
5859 2000-10-10 Alan Modra <alan@linuxcare.com.au>
5861 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
5863 2000-10-10 Tom Rix <trix@redhat.com>
5865 * section.c (bfd_make_section_anyway): Release newsect ptr when
5866 newsect->symbol fails to alloc. Use bfd_release instead of free.
5868 2000-10-09 Richard Henderson <rth@cygnus.com
5870 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
5871 (elf64_ia64_unwind_entry_compare): New.
5872 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
5874 2000-10-07 Alan Modra <alan@linuxcare.com.au>
5876 * elflink.h (size_dynamic_sections): Don't create various tags if
5877 .dynstr is excluded from the link. Don't set first dynsym entry
5878 if dynsymcount is zero.
5879 (elf_bfd_final_link): Don't try to swap out dynamic syms if
5880 .dynsym excluded from the link. Don't try to write any dynamic
5881 sections excluded from the link.
5883 * elf.c (swap_out_syms): Handle global section symbols.
5885 2000-10-05 DJ Delorie <dj@redhat.com>
5887 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
5888 * coffcode.h (coff_set_alignment_hook): read extended reloc count
5889 (coff_write_relocs): write extended reloc count
5890 (coff_write_object_contents): account for extended relocs
5892 2000-10-05 Jim Wilson <wilson@cygnus.com>
5894 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
5896 * elf.c (_bfd_elf_make_section_from_shdr): Call the
5897 elf_backend_section_flags function.
5898 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
5900 (elf64_ia64_section_flags): New function containing flag conversion
5902 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
5903 * elfxx-target.h (elf_backend_section_flags): Define.
5904 (elfNN_bed): Initialize elf_backend_section_flags field.
5906 2000-10-02 Alan Modra <alan@linuxcare.com.au>
5908 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
5909 _bfd_elf32_gc_record_vtable. Correct a comment.
5911 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
5913 From Ralf Baechle <ralf@gnu.org>
5915 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
5916 produces binaries with got[1] = 0x80000001 to differenciate them
5917 for the dynamic linker from the broken binaries produced by old
5920 2000-09-30 Petr Sorfa <petrs@sco.com>
5922 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
5923 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
5924 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
5925 * configure: Regenerate.
5927 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
5929 Define two bfd_targets for absence and presence of leading
5930 underscore on symbols. Make sure to only link same kind.
5931 * elf32-cris.c (cris_elf_object_p,
5932 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
5933 cris_elf_merge_private_bfd_data): New.
5934 (elf_backend_object_p, elf_backend_final_write_processing,
5935 bfd_elf32_bfd_print_private_bfd_data,
5936 bfd_elf32_bfd_merge_private_bfd_data): Define.
5937 <Target vector definition>: Include elf32-target.h twice with
5938 different macro settings:
5939 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
5940 bfd_elf32_us_cris_vec.
5941 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
5942 (elf_symbol_leading_char): First as 0, then '_'.
5943 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
5944 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
5945 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
5946 * configure: Regenerate.
5947 * targets.c: Declare bfd_elf32_us_cris_vec.
5948 * po/bfd.pot: Regenerate.
5950 2000-09-29 Momchil Velikov <velco@fadata.bg>
5952 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
5953 R_ARM_THM_PC22 relocations.
5955 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
5957 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
5959 2000-09-29 Momchil Velikov <velco@fadata.bg>
5961 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
5962 is has the SEC_HAS_CONTENTS flag set.
5964 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
5965 Hans-Peter Nilsson <hp@axis.com>
5967 * aout-cris.c (N_TXTADDR): Define.
5969 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5971 * som.c: Include alloca-conf.h.
5972 * Makefile.am: "make dep-am"
5973 * Makefile.in: Regenerate.
5975 2000-09-27 Alan Modra <alan@linuxcare.com.au>
5977 * elf32-hppa.c (plt_stub): New.
5978 (PLT_STUB_ENTRY): Define.
5979 (elf32_hppa_link_hash_table): Change multi_subspace to packed
5980 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
5981 (elf32_hppa_link_hash_table_create): Init to suit.
5982 (elf32_hppa_check_relocs): Set has_12bit_branch and
5983 has_17bit_branch as appropriate.
5984 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
5985 non-local functions.
5986 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
5987 Add space for plt_stub as needed.
5988 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
5989 functions at plt_stub.
5990 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
5991 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
5993 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
5994 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
5995 of fixed size, and if negative, disable handling of input sections
5996 before stub section. Set up default stub group size depending
5997 on detected branch relocs.
5998 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
5999 ensure different offsets from sym_value aren't rounded to
6000 different 2k blocks. Use lrsel and rrsel for other stubs too for
6001 consistency rather than necessity.
6002 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
6003 (final_link_relocate): Likewise.
6004 (elf32_hppa_relocate_section): Likewise.
6006 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
6007 (_bfd_elf_hppa_gen_reloc_type): Generate them.
6008 (elf_hppa_final_link_relocate): Handle them.
6009 (elf_hppa_relocate_insn): Likewise.
6010 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
6012 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
6014 * elfcode.h (elf_object_p): Preserve and clear abfd section
6015 information. Restore at error.
6017 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
6019 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
6020 is empty, make sure that its rva also 0. NT loader dislikes
6023 2000-09-26 Steve Ellcey <sje@cup.hp.com>
6025 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
6028 2000-09-21 Alan Modra <alan@linuxcare.com.au>
6030 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
6031 currently unused RELATIVE_DYNAMIC_RELOCS code.
6032 (hppa_discard_copies): Likewise.
6033 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
6034 comments. Don't check non-code output sections for stub grouping.
6036 2000-09-20 Alan Modra <alan@linuxcare.com.au>
6038 * section.c (bfd_get_unique_section_name): Return NULL if
6041 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6043 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
6044 instruction sequence to actually work.
6045 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
6048 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
6050 * elf32-sh.c (sh_elf_relocate_section): Use
6051 _bfd_final_link_relocate to apply the relocation against a section
6052 symbol, when doing relocatable links.
6054 2000-09-18 Alan Modra <alan@linuxcare.com.au>
6056 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
6058 (stub_hash_newfunc): Here too.
6059 (hppa_add_stub): And here.
6060 (elf32_hppa_link_hash_table): Remove stub_section_created,
6061 reloc_section_created, first_init_sec and first_fini_sec. Add
6063 (elf32_hppa_link_hash_table_create): Init to suit.
6064 (hppa_get_stub_entry): Add support for grouping stub sections.
6065 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
6066 section code. Index stub vars by section->id.
6067 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
6068 exit paths. Zap allocation of above removed vars. Refine
6071 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
6072 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
6073 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
6074 rather than pointer to bfd_link_info.
6075 (hppa_add_stub): Likewise.
6076 (final_link_relocate): Likewise.
6078 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
6080 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
6083 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
6085 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
6086 ld/emulparams/shelf.sh.
6088 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6090 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
6091 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
6092 * bfd-in2.h: Regenerate.
6094 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
6096 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
6097 LITUSE relocations incorrectly if -relax is specified on the ld
6098 command line and the displacement field of the load or store
6099 instruction is non-zero. (Patch by paul.winalski@compaq.com)
6101 2000-09-15 Alan Modra <alan@linuxcare.com.au>
6103 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
6104 first_fini_sec here.
6105 (elf32_hppa_size_stubs): Instead correctly find the first .init
6106 and .fini section here.
6108 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
6110 * elf32-hppa.c (clobber_millicode_symbols): New function.
6111 (elf32_hppa_size_dynamic_sections): Call it.
6113 2000-09-14 Alan Modra <alan@linuxcare.com.au>
6115 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
6116 packed. Add plabel, plt_abs packed booleans.
6117 (hppa_link_hash_newfunc): Init new fields.
6118 (PLABEL_PLT_ENTRY_SIZE): Define.
6119 (hppa_stub_name): Use size_t len vars.
6120 (hppa_add_stub): Likewise.
6121 (elf32_hppa_build_stubs): Likewise.
6122 (hppa_build_one_stub): Kill some compiler warnings.
6123 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
6124 if dynamic linking. Munge the local plt offsets into
6125 local_got_refcounts. Set h->plabel for all global PLABELs. Use
6126 size_t len vars. Add assert for plabel addend.
6127 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
6128 (elf32_hppa_hide_symbol): New function.
6129 (elf_backend_hide_symbol): Define.
6130 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
6131 with h->plabel set. Don't make plt entries to have dynamic syms
6132 when they have been forced local. If plt entry is used by a
6133 plabel, make it PLABEL_PLT_ENTRY_SIZE.
6134 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
6135 Set up .plt offsets for local syms.
6136 (elf32_hppa_relocate_section): Initialise plt entries for local
6137 syms. Leave weak undefined plabels zero. Make global plabel
6138 relocs against function symbol, and leave the addend zero.
6139 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
6140 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
6141 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
6142 relocs instead of SEGREL32 for dynamic got relocs.
6143 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
6144 (elf_backend_got_header_size): Adjust.
6145 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
6147 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
6148 (hppa_type_of_stub): Use it instead of #if 0
6149 (hppa_discard_copies): Use it here too.
6150 (elf32_hppa_size_dynamic_sections): And here.
6152 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
6153 (elf32_hppa_link_hash_table_create): And here.
6154 (hppa_build_one_stub): And here. Instead keep track of stub
6155 offset using _raw_size.
6156 (elf32_hppa_size_stubs): Likewise.
6157 (elf32_hppa_build_stubs): Likewise.
6158 (hppa_size_one_stub): Likewise. Resize reloc section too.
6160 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
6161 first_fini_sec handling. Don't search for reloc section or set
6162 hplink->reloc_section_created here.
6163 (elf32_hppa_size_stubs): Instead search for reloc sections, and
6164 set reloc_section_created here.
6165 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
6166 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
6168 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
6170 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
6171 with `hplink->root.'.
6172 (elf32_hppa_check_relocs): Likewise.
6173 (elf32_hppa_gc_sweep_hook): Likewise.
6174 (elf32_hppa_adjust_dynamic_symbol): Likewise.
6175 (hppa_handle_PIC_calls): Likewise.
6176 (elf32_hppa_size_dynamic_sections): Likewise.
6177 (elf32_hppa_set_gp): Likewise.
6178 (elf32_hppa_relocate_section): Likewise.
6179 (elf32_hppa_finish_dynamic_symbol): Likewise.
6180 (elf32_hppa_finish_dynamic_sections): Likewise.
6182 From David Huggins-Daines <dhd@linuxcare.com>
6183 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
6184 defined weak symbols in shared links.
6185 (final_link_relocate): Calls to defined weak symbols in shared
6186 objects must go via import stubs, as the target might not be known
6189 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
6191 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
6192 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
6193 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
6194 the original entries with EMPTY_HOWTOs, and added new ones to fill
6196 (sh_elf_info_to_howto): Make sure the new gap isn't used.
6197 (sh_elf_relocate_section): Likewise.
6199 2000-09-13 Anders Norlander <anorland@acc.umu.se>
6201 * cpu-mips.c (arch_info_struct): Add mips:4K
6202 * bfd-in2.h (bfd_mach_mips4K): New define.
6203 * archures.c: Add bfd_mach_mips4K to comment.
6204 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
6205 E_MIPS_ARCH_2 for bfd_mach_mips4K.
6207 2000-09-13 Marco Franzen <marcof@thyron.com>
6209 * som.c (som_write_symbol_strings): Do not used fixed buffers,
6210 use size_t as a counter.
6211 (som_write_space_strings): Similarly.
6213 2000-09-12 Jason Eckhardt <jle@cygnus.com>
6215 * elf32-i860.c (elf32_i860_relocate_pc26): New function
6217 (elf32_i860_relocate_section): Invoke new function from here.
6219 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6221 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
6224 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6226 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
6227 target section name instead of dumping core when the target symbol is
6230 2000-09-09 Kazu Hirata <kazu@hxi.com>
6232 * riscix.c: Remove DEFUN.
6234 2000-09-08 Nick Clifton <nickc@redhat.com>
6236 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
6237 initialise flags in output bfd if the input bfd is the default
6238 architecture with the default flags.
6240 2000-09-08 Kazu Hirata <kazu@hxi.com>
6242 * archive.c: Fix formatting.
6243 * coff-arm.c: Likewise.
6244 * doc/chew.c: Likewise.
6246 2000-09-08 Alan Modra <alan@linuxcare.com.au>
6248 * section.c (bfd_get_unique_section_name): Put a dot before the
6251 2000-09-07 Kazu Hirata <kazu@hxi.com>
6253 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
6254 * elf.c: Fix formatting.
6256 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
6258 * config.bfd (sh-*-linux*): Added.
6259 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
6260 * targets.c: Declare them.
6261 * elf32-sh-lin.c: New file.
6262 * Makefile.am: Compile it.
6263 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
6264 * configure, Makefile.in: Rebuilt.
6266 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
6268 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
6269 pseduo-section when determining where the TOC ends.
6271 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
6272 output x_tvndx as it is only two bytes wide.
6274 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
6275 reloc is 26 or 32 bits wide.
6277 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
6278 for relocs that don't change anything. Also look at the full
6281 2000-09-06 Philip Blundell <philb@gnu.org>
6283 * config.bfd (arm*-*-uclinux*): New target.
6285 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
6287 * configure: Rebuilt with new libtool.m4.
6289 2000-09-06 Alan Modra <alan@linuxcare.com.au>
6291 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
6292 word for variable name.
6293 * bfd-in2.h: Regenerate.
6295 2000-09-05 Nick Clifton <nickc@redhat.com>
6297 * config.in: Regenerate.
6298 * libbfd.h: Regenerate.
6299 * po/bfd.pot: Regenerate.
6300 * doc/bfdint.texi: Remove CVS date string - it foils compares with
6303 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
6305 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
6307 2000-09-05 Alan Modra <alan@linuxcare.com.au>
6309 Shared library and PIC support.
6310 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
6311 (GOT_ENTRY_SIZE): New.
6312 (ELF_DYNAMIC_INTERPRETER): New.
6313 (STUB_SUFFIX): Define.
6314 (LONG_BRANCH_PIC_IN_SHLIB): Define.
6315 (RELATIVE_DYNAMIC_RELOCS): Define.
6316 (enum elf32_hppa_stub_type): New.
6317 (struct elf32_hppa_stub_hash_entry): Rename offset to
6318 stub_offset. Add a number of new fields.
6319 (struct elf32_hppa_link_hash_entry): New.
6320 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
6322 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
6323 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
6324 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
6326 (hppa_link_hash_newfunc): New function.
6327 (elf32_hppa_link_hash_table_create): Use above function. Init new
6329 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
6330 instead of addend, and remove sym_name from args. Don't use
6331 symbol name for local syms, instead use sym index.
6332 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
6333 stub type rather than size. Pass in hash and handle import stub
6334 case. Also pass in reloc instead of offset so we can calculate
6335 PCREL22F and PCREL12F branches properly.
6336 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
6337 import and export stubs too.
6338 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
6339 import and export stub sizing.
6340 (elf32_hppa_check_relocs): New function.
6341 (elf32_hppa_adjust_dynamic_symbol): New function.
6342 (hppa_discard_copies): New function.
6343 (elf32_hppa_size_dynamic_sections): New function.
6344 (elf_backend_size_dynamic_sections): Define.
6345 (elf32_hppa_finish_dynamic_symbol): New function.
6346 (elf_backend_finish_dynamic_symbol): Define.
6347 (elf32_hppa_size_stubs): Stash params in link hash table, and move
6348 some local vars into the link hash table too. For shared links,
6349 trundle over function syms, generating export stubs. Handle
6350 PCREL22F branches. Break out stub creation code from here..
6351 (hppa_add_stub): .. to here. New function.
6352 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
6353 call the bfd linker. Use elf_gp to record global pointer.
6354 Calculate a value from sections if $global$ is missing.
6355 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
6356 (elf32_hppa_gc_mark_hook): New function.
6357 (elf_backend_gc_mark_hook): Define.
6358 (elf32_hppa_gc_sweep_hook): New function.
6359 (elf_backend_gc_sweep_hook): Define.
6360 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
6361 Add rel to args, and remove howto, input_bfd, offset, addend,
6362 sym_name as we can recalculate these locally. Handle calls to
6363 dynamic objects, extra PIC relocs, PCREL22F branches. Change
6364 handling of undefined weak syms. Check that stubs are in range.
6365 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
6366 message on hitting a DPREL21L reloc that needs fixing. Subtract
6367 off PC for PCREL14F. Break out code that does a stub lookup from
6369 (hppa_get_stub_entry): ..to here. New function.
6370 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
6371 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
6373 (elf32_hppa_finish_dynamic_sections): New function.
6374 (elf_backend_finish_dynamic_sections): Define.
6375 (elf_backend_final_write_processing) Define.
6376 (hppa_handle_PIC_calls): New function.
6377 (elf32_hppa_build_stubs): Call it. Pass link_info to
6378 hppa_build_one_stub.
6379 (elf32_hppa_create_dynamic_sections): New function
6380 to create .plt and .got then set .plt flags correctly.
6381 (elf_backend_create_dynamic_sections): Define.
6382 (elf32_hppa_object_p): New function.
6383 (elf_backend_object_p): Define.
6384 (elf32_hppa_elf_get_symbol_type): New function.
6385 (elf_backend_get_symbol_type): Define.
6386 (elf_backend_can_gc_sections): Define.
6387 (elf_backend_want_got_plt): Define.
6388 (elf_backend_plt_alignment): Set to 2.
6389 (elf_backend_plt_readonly): Define.
6390 (elf_backend_want_plt_sym): Define.
6391 (elf_backend_got_header_size): Reserve one entry.
6393 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
6394 (elf32_hppa_size_stubs): Pass in multi_subspace.
6395 (elf32_hppa_set_gp): Declare.
6397 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
6398 (bfd_get_unique_section_name): New function.
6399 * bfd-in2.h: Regenerate.
6401 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
6402 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
6405 From David Huggins-Daines <dhd@linuxcare.com>
6406 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
6407 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
6408 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
6409 been updated in finish_dynamic_symbol before modifying function
6412 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
6413 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
6414 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
6415 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
6416 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
6417 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
6418 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
6419 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
6421 From David Huggins-Daines <dhd@linuxcare.com>
6422 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
6423 style of local labels as well.
6425 2000-09-03 Philip Blundell <philb@gnu.org>
6427 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
6428 references to undefined symbols in debugging sections.
6430 2000-09-02 H.J. Lu <hjl@gnu.org>
6432 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
6433 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
6434 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
6437 2000-09-02 Jason Eckhardt <jle@cygnus.com>
6439 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
6440 (elf32_i860_is_local_label_name): New function and prototype.
6442 2000-09-02 Nick Clifton <nickc@redhat.com>
6444 * configure.in: Increase version number to 2.10.91.
6445 * configure: Regenerate.
6446 * aclocal.m4: Regenerate.
6447 * config.in: Regenerate.
6448 * po/bfd.pot: Regenerate.
6450 2000-09-02 Daniel Berlin <dberlin@redhat.com>
6452 * elf.c (_bfd_elf_make_section_from_shdr): Add
6453 .gnu.linkobce.wi. to the list of debug section names.
6455 2000-09-02 Nick Clifton <nickc@redhat.com>
6457 * dwarf2.c (find_debug_info): New function: Locate a section
6458 containing dwarf2 debug information.
6459 (bfd_dwarf2_find_nearest_line): Find all sections containing
6460 debug information and include them in the stash.
6462 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
6464 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
6465 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
6466 (sh_reloc_map): Add new relocs.
6467 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
6468 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
6469 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
6470 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
6472 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
6473 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
6474 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
6475 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
6476 New array constants.
6477 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
6479 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
6480 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
6481 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
6482 elf_sh_plt_reloc_offset): Define.
6483 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
6484 elf_sh_link_hash_table): New structs.
6485 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
6486 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
6488 (elf_backend_create_dynamic_sections,
6489 bfd_elf32_bfd_link_hash_table_create,
6490 elf_backend_adjust_dynamic_symbol,
6491 elf_backend_size_dynamic_sections,
6492 elf_backend_finish_dynamic_symbol,
6493 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
6494 elf_backend_plt_readonly, elf_backend_want_plt_sym,
6495 elf_backend_got_header_size, elf_backend_plt_header_size):
6497 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
6498 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
6500 * bfd-in2.h, libbfd.h: Rebuilt.
6502 2000-09-01 Alan Modra <alan@linuxcare.com.au>
6504 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
6507 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
6509 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
6510 not initialized, set them to indicate the SH1 instruction set.
6512 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
6514 * acinclude.m4: Include libtool and gettext macros from the
6516 * aclocal.m4, configure: Rebuilt.
6518 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
6520 * elf.c: Eliminate references to __sparcv9 macro; replace with
6521 autoconf variables HAVE_PSINFO32_T etc.
6522 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
6523 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
6525 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
6526 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
6527 * aclocal.m4: Ditto.
6528 * configure: Regenerate.
6530 2000-08-27 Alan Modra <alan@linuxcare.com.au>
6532 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
6533 for any shared link, not just shared -Bsymbolic.
6534 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
6535 any shared link, and pass link info to it.
6536 (elf_i386_size_dynamic_sections): Update comment.
6537 (elf_i386_discard_copies): Modify to discard relocs for symbols
6538 that have been forced local.
6539 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
6540 that have been forced local.
6542 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
6544 * elflink.h (elf_link_add_object_symbols): Allow common
6545 symbols to have an alignment of 1 if explicitly requested, and
6546 not overridden by other definitions.
6548 2000-08-22 Doug Kwan <dkwan@transmeta.com>
6550 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
6551 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
6553 2000-08-22 H.J. Lu <hjl@gnu.org>
6555 * elf-bfd.h (elf_link_hash_table): Add runpath.
6557 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
6558 * bfd-in2.h: Rebuilt.
6560 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
6561 "runpath" field to NULL.
6562 (bfd_elf_get_runpath_list): New function.
6564 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
6567 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
6569 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
6570 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
6571 explicitly. Improve validation of r_type.
6573 2000-08-21 H.J. Lu <hjl@gnu.org>
6575 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
6576 dynamic allocated content space. Add a comment to remind us that
6577 one day this ought to be fixed.
6578 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6579 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6580 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6582 2000-08-21 Jason Eckhardt <jle@cygnus.com>
6584 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
6585 field with the newly relocated value instead of adding it to the
6586 existing immediate field.
6587 (elf32_i860_relocate_splitn): Likewise.
6588 (elf32_i860_relocate_highadj): Likewise.
6590 2000-08-16 Jason Eckhardt <jle@cygnus.com>
6592 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
6593 was previously just a stub).
6595 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
6597 * elflink.c (_bfd_elf_create_got_section): Don't abort().
6599 (_bfd_elf_create_dynamic_sections): Likewise.
6601 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
6603 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
6604 for undefined symbols to be the beginning of the section.
6606 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
6607 four extra entries at the beginning of the .rela.plt section.
6608 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
6609 section to account for the four reserved entries in the .plt section.
6611 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
6613 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
6614 to the list of NOPs we recognize after a branch-and-link.
6615 Use the ori NOP when one is needed.
6617 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
6620 2000-08-14 Jim Wilson <wilson@cygnus.com>
6622 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
6623 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
6624 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
6627 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
6629 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
6631 2000-08-10 Jason Eckhardt <jle@cygnus.com>
6633 * elf32-i860.c (elf32_i860_relocate_section): New function.
6634 (i860_final_link_relocate): New function.
6635 (elf32_i860_relocate_splitn): New function.
6636 (elf32_i860_relocate_pc16): New function.
6637 (elf32_i860_relocate_highadj): New function.
6638 (elf32_i860_howto): Minor adjustments to some relocations.
6639 (elf_info_to_howto_rel): Define.
6640 (elf_backend_relocate_section): Define.
6642 2000-08-10 Nick Clifton <nickc@cygnus.com>
6644 * elf32-arm.h: Fix formatting.
6646 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
6648 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
6650 2000-08-08 Jason Eckhardt <jle@cygnus.com>
6652 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
6654 2000-08-07 Kazu Hirata <kazu@hxi.com>
6656 * ieee.c (ieee_write_debug_part): Rewrite a comment.
6657 * elf64-ia64.c: Fix a typo.
6659 2000-08-05 Jason Eckhardt <jle@cygnus.com>
6661 * elf32-i860.c (elf32_i860_howto_table): New structure.
6662 (lookup_howto): New function.
6663 (elf32_i860_reloc_type_lookup): New function.
6664 (elf32_i860_info_to_howto_rela): New function.
6665 (elf_code_to_howto_index): New structure.
6666 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
6667 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
6668 elf32_i860_reloc_type_lookup.
6670 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
6672 * som.c (struct fixup_format): Constify `format'.
6673 (som_hppa_howto_table): Use SOM_HOWTO macro.
6674 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
6675 (som_bfd_reloc_type_lookup): Likewise.
6676 (compare_subspaces): Remove unused `count1', `count2'.
6677 (som_begin_writing): Remove unused `total_reloc_size'.
6678 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
6679 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
6680 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
6681 (som_find_nearest_line): Decorate unused parameter(s).
6682 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
6683 (som_bfd_link_split_section): Likewise.
6685 2000-08-03 Nick Clifton <nickc@cygnus.com>
6687 * section.c: Restore backed out code.
6688 * elf.c: Restore backed out code.
6689 (copy_private_bfd_data): Fix bug preventing stipped dynamic
6690 binaries from working.
6691 * bfd-in2.h: Regenerate.
6693 2000-08-03 H.J. Lu <hjl@gnu.org>
6695 * section.c: Back out the change made by Nick Clifton
6696 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
6698 * bfd-in2.h: Likewise.
6701 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
6703 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
6705 2000-07-31 Jason Eckhardt <jle@cygnus.com>
6707 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
6708 * bfd-in2.h, libbfd.h: Regenerate.
6710 2000-07-31 Nick Clifton <nickc@cygnus.com>
6712 * section.c (struct sec): Add new boolean field 'segment_mark'.
6713 (STD_SECTION): Initialise new field to zero.
6715 * bfd-in2.h: Regenerate.
6717 * elf.c (copy_private_bfd_data): Reorganise section to segment
6718 mapping to cope with moved sections requiring new segments,
6719 and overlapping segments.
6720 (SEGMENT_END): New macro: Return the end address of a segment.
6721 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
6722 contains a section by comparing their VMA addresses.
6723 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
6724 contains a section by comparing their LMA addresses.
6725 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
6726 section should be included in a segment.
6727 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
6728 follows another in memory.
6729 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
6732 2000-07-22 Jason Eckhardt <jle@cygnus.com>
6734 * cpu-i860.c: Added comments.
6736 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
6737 bfd_elf32_i860_little_vec.
6738 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
6739 (ELF_MAXPAGESIZE): Changed to 4096.
6741 * targets.c (bfd_elf32_i860_little_vec): Declaration of
6743 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
6745 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
6746 config for little endian elf32 i860.
6747 (targ_defvec): Define for the new config above
6748 as "bfd_elf32_i860_little_vec".
6749 (targ_selvecs): Define for the new config above
6750 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
6752 * configure.in (bfd_elf32_i860_little_vec): Added recognition
6755 * configure: Regenerated.
6757 2000-07-27 H.J. Lu <hjl@gnu.org>
6759 * elflink.h (elf_merge_symbol): Take one more argument,
6760 dt_needed, to indicate if the symbol comes from a DT_NEEDED
6761 entry. Don't overide the existing weak definition if dt_needed
6763 (elf_link_add_object_symbols): Pass dt_needed to
6764 elf_merge_symbol ().
6766 2000-07-27 Nick Clifton <nickc@cygnus.com>
6768 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
6771 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
6773 * configure.host (*-*-aix*): AIX has 'long long' always.
6775 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
6776 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
6777 (xcoff_write_archive_contents_big): Don't update the offset
6778 of the symbol table, xcoff_write_armap will do it.
6780 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
6782 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
6783 of dynobj for SGI_COMPAT checks.
6785 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6787 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
6788 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
6789 * bfd-in2.h: Regenerate.
6791 2000-07-21 Nick Clifton <nickc@cygnus.com>
6793 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
6794 range symbol indices in relocs and issue an error message.
6796 2000-07-20 H.J. Lu <hjl@gnu.org>
6798 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
6799 info->new_dtags when setting DT_FLAGS_1. It will only be set
6800 by the new linker options. It shouldn't break anything.
6802 2000-07-20 H.J. Lu <hjl@gnu.org>
6804 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
6805 only if info->new_dtags is true.
6807 2000-07-20 H.J. Lu <hjl@gnu.org>
6809 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
6810 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
6812 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
6814 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
6815 (ALL_MACHINES_CFILES): Add cpu-cris.c.
6816 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
6817 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
6818 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
6819 * Makefile.in: Rebuild.
6820 * aclocal.m4: Rebuild.
6821 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
6822 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
6823 (bfd_cris_arch): Declare.
6824 (bfd_archures_list): Add bfd_cris_arch.
6825 * bfd-in2.h: Rebuild.
6826 * config.bfd: (cris-*-*): New target.
6827 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
6828 * configure: Rebuild.
6829 * elf.c (prep_headers): Add bfd_arch_cris.
6830 * libbfd.h: Rebuild.
6831 * libaout.h (enum machine_type): Add M_CRIS.
6832 * reloc.c: Add CRIS relocations.
6833 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
6834 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
6835 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
6836 * po/POTFILES.in, po/bfd.pot: Regenerate.
6838 2000-07-19 H.J. Lu <hjl@gnu.org>
6840 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
6841 DF_TEXTREL if DT_TEXTREL is set.
6842 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
6843 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
6844 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6845 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
6846 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
6847 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6848 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
6849 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6850 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
6851 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
6853 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
6854 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
6856 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
6858 2000-07-19 H.J. Lu <hjl@gnu.org>
6860 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
6861 * bfd-in2.h: Rebuild.
6863 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
6864 (elf_dt_soname): New.
6866 * elf.c (bfd_elf_set_dt_needed_soname): New.
6868 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
6869 entry if the shared object loaded by DT_NEEDED is used to
6870 resolve the reference in a regular object.
6872 2000-07-19 H.J. Lu <hjl@gnu.org>
6874 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
6875 DT_DEPAUDIT and DT_AUDIT as strings.
6877 2000-07-19 Nick Clifton <nickc@cygnus.com>
6879 * format.c: Fix formatting.
6881 2000-07-19 H.J. Lu <hjl@gnu.org>
6883 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
6885 2000-07-19 H.J. Lu <hjl@gnu.org>
6887 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
6888 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
6889 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
6890 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
6891 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
6892 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
6893 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
6895 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
6897 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
6898 renamed functions from here...
6899 (assign_section_numbers): Use renamed functions.
6900 (prep_headers): Use renamed functions.
6902 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
6903 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
6904 * bfd-in2.h: Regenerate.
6906 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
6908 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
6909 parenthesis in if statement.
6911 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
6913 Enable the support for Traditional MIPS.
6914 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
6915 return ict_none appropriately for traditional mips targets.
6916 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
6917 (STUB_MOVE): Conditionalize for traditonal mips.
6918 (STUB_LI16): Likewise.
6919 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
6920 room for RTPROC header.
6921 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
6922 the permission for the PT_DYNAMIC as read, write and execute.
6923 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
6924 for traditonal mips.
6925 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
6926 _DYNAMIC_LINKING for traditonal mips.
6927 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
6928 in case of traditonal mips.
6929 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
6930 entry is required. For a function if PLT is not required then set the
6931 corresponding hash table entry to 0.
6932 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
6934 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
6935 shared object set the value to 0.
6936 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
6937 _DYNAMIC_LINKING for traditonal mips.
6938 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
6939 for traditonal mips.
6941 2000-07-15 H.J. Lu <hjl@gnu.org>
6943 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
6945 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
6947 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
6948 out a structure that is BFD_IN_MEMORY.
6950 2000-07-11 Alan Modra <alan@linuxcare.com.au>
6952 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
6953 bfd pointer. Print section id instead of bfd pointer for local
6954 syms. Prefix addend with `+' for global syms as well as local.
6955 Correct calculation of name component lengths.
6956 (elf64_hppa_check_relocs): Update call to get_dyn_name.
6958 From David Huggins-Daines <dhd@linuxcare.com>
6959 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
6960 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
6961 (elf64_hppa_modify_segment_map): Likewise.
6963 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6965 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
6966 addresses to be "naturally" sign extended. Return -1 if unknown.
6967 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6968 * bfd-in2.h: Regenerate.
6970 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6972 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
6973 and ECOF_SIGNED_64 to list ways to extract an offset.
6974 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
6975 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
6977 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
6978 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
6980 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6982 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
6983 bfd_get_start_address.
6984 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
6985 (elf_swap_ehdr_out): Ditto.
6987 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
6989 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
6990 compatibility with older binutils.
6992 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6994 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
6995 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
6997 From Ryan Bradetich <rbradetich@uswest.net>
6998 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
6999 (parse_line_table): Ditto.
7000 (_bfd_dwarf1_find_nearest_line): Ditto.
7001 * syms.c (cmpindexentry): Remove extra `*' from params.
7003 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
7005 * elf32-mips.c (sort_dynamic_relocs): New Function.
7006 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
7007 via qsort to sort the dynamic relocations in increasing r_symndx
7010 2000-07-09 Alan Modra <alan@linuxcare.com.au>
7012 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
7013 ATTRIBUTE_UNUSED to unused args.
7014 (get_opd): Likewise.
7015 (get_plt): Likewise.
7016 (get_dlt): Likewise.
7017 (get_stub): Likewise.
7018 (elf64_hppa_adjust_dynamic_symbol): Likewise.
7019 (elf64_hppa_link_output_symbol_hook): Likewise.
7020 (elf64_hppa_check_relocs): Delete unused var.
7021 (elf64_hppa_size_dynamic_sections): Likewise.
7022 (elf64_hppa_finalize_opd): Likewise.
7023 (elf64_hppa_finalize_dynreloc): Likewise.
7024 (elf64_hppa_modify_segment_map): Likewise.
7025 (elf64_hppa_finish_dynamic_sections): Likewise.
7027 * elf-hppa.h (elf_hppa_final_write_processing): Add
7028 ATTRIBUTE_UNUSED to unused args.
7029 (elf_hppa_final_link_relocate): Likewise.
7030 (elf_hppa_record_segment_addrs): Add paretheses.
7031 (elf_hppa_relocate_section): Constify dyn_name.
7033 From David Huggins-Daines <dhd@linuxcare.com>
7034 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
7035 rearrange case statement so that it gets preferred to 32-bit ones.
7037 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
7038 asection->id instead of address of asection structure.
7039 (elf32_hppa_size_stubs): Likewise.
7041 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
7042 for .init* and .fini*.
7044 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
7045 and addends used in stub names to 32 bits.
7046 (elf32_hppa_size_stubs): Likewise.
7048 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
7049 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
7050 not bfd_put_64. Fix minor comment typo and formatting.
7052 Changes to create multiple linker stubs, positioned immediately
7053 before the section where they are required.
7054 * elf32-hppa.c: Don't include hppa_stubs.h.
7055 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
7056 (elf32_hppa_stub_hash_table): Delete.
7057 (elf32_hppa_link_hash_entry): Delete.
7058 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
7059 stub_hash_table, and store the struct here rather than a pointer.
7060 Delete output_symbol_count. Add offset array. Change
7061 global_value to a bfd_vma.
7062 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
7063 (elf32_hppa_stub_hash_traverse): Delete.
7064 (elf32_hppa_name_of_stub): Delete.
7065 (elf32_hppa_link_hash_lookup): Delete.
7066 (elf32_hppa_link_hash_traverse): Delete.
7067 (elf32_hppa_stub_hash_table_init): Delete.
7068 (elf32_hppa_size_of_stub): Pass input section and offset rather
7069 than location and calculate location here. Don't pass name as all
7070 stubs are now the same size.
7071 (elf32_hppa_stub_hash_newfunc): Init new fields.
7072 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
7074 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
7075 comparing against ints. Rewrite stub handling code.
7076 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
7077 Case enums to int before comparing against ints. Remove
7078 bfd_reloc_dangerous case.
7079 (elf32_hppa_build_one_stub): Rewrite.
7080 (elf32_hppa_size_one_stub): New function.
7081 (elf32_hppa_build_stubs): Rewrite.
7082 (elf32_hppa_size_stubs): Pass in linker call-back functions.
7083 Rewrite stub-handling specific code.
7085 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
7087 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
7089 * hppa_stubs.h: Delete.
7090 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
7091 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
7092 * Makefile.in: Regenerate.
7094 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
7097 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
7099 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
7100 and section name for bfd_reloc_notsupported error message.
7101 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
7102 bfd_reloc_notsupported.
7103 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
7105 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
7106 undefined weak symbols for all relocs.
7107 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
7108 offsets are relative to one past the delay slot.
7109 (elf32_hppa_size_stubs): Account for reloc addend when calculating
7110 branch destination. Put addend into stub name too.
7111 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
7112 adjust by 8 when deciding whether a linker stub is needed. Put
7113 addend into stub name as for above.
7115 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
7116 various args and vars.
7117 (elf32_hppa_bfd_final_link_relocate): Here too.
7118 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
7119 inner block var to avoid shadowing.
7121 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
7123 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
7124 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
7125 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
7127 * libhppa.h: Change practically all unsigned ints to plain ints.
7128 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
7131 From Ryan Bradetich <rbradetich@uswest.net>
7132 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
7133 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
7135 From David Huggins-Daines <dhd@linuxcare.com>
7136 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
7137 to the new OP_* ones.
7139 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
7140 error exit. Bail out earlier on plabel relocs that we aren't
7141 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
7142 string, and then don't free our copy.
7143 (elf32_hppa_build_one_stub): Make insn unsigned int.
7145 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
7146 available with BL, not BE and BLE.
7148 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
7149 code for elf arg relocs.
7150 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
7151 argument with elf_link_hash_entry h. Handle undefined weak
7152 symbols. Move $global$ lookup from here...
7153 (elf32_hppa_relocate_section): ...to here. Return correct error
7154 message for non-handled relocs.
7155 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
7156 wrong test was -0x3ffff to +0x40000.
7158 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
7159 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
7160 Handle them as such.
7161 (elf_hppa_relocate_insn): Fix a typo.
7163 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
7164 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
7165 assemble_17, assemble_21): Delete.
7166 Supply defines for all 64 possible opcodes.
7167 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
7168 formats. Handle COMICLR.
7169 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
7172 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
7173 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
7174 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
7176 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
7177 the local syms - did this code get deleted accidentally? Ignore
7178 undefined and undefweak syms.
7180 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
7181 block. Use it instead of elf64_hppa_hash_table (info).
7182 (elf_hppa_final_link_relocate): Use hppa_info instead of
7183 elf64_hppa_hash_table (info).
7185 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
7186 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
7187 (hppa_rebuild_insn): Mask immediate bits here instead.
7188 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
7190 2000-07-08 Alan Modra <alan@linuxcare.com.au>
7192 * section.c (struct sec): Add id field. Tidy comment formatting.
7193 (bfd_make_section_anyway): Set id.
7194 (STD_SECTION): Init id too.
7195 Change CONST to const throughout.
7196 * archures.c (bfd_arch_info): Tidy comment.
7197 (bfd_arch_list): Change a CONST to const.
7198 * libbfd-in.h: Tidy comments and replace CONST with const.
7199 * elf-bfd.h: Likewise.
7200 * libbfd.h: Regenerate.
7201 * bfd-in2.h: Regenerate.
7202 * libcoff.h: Regenerate.
7204 2000-07-07 DJ Delorie <dj@redhat.com>
7206 * archive.c (_bfd_write_archive_contents): Add an informative
7209 2000-07-06 Kazu Hirata <kazu@hxi.com>
7211 * srec.c: Fix formatting.
7213 2000-06-05 DJ Delorie <dj@redhat.com>
7217 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
7219 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
7220 value of PC-relative offsets.
7222 2000-07-03 Jim Wilson <wilson@cygnus.com>
7224 * elf64-alpha.c (alpha_elf_size_info): New.
7225 (elf_backend_size_info): Define to alpha_elf_size_info.
7226 * elfcode.h (elf_size_info): Change hash bucket size to 4.
7228 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
7230 * elf32-mips.c: Include elf32-target.h again for the traditional
7233 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
7235 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
7236 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
7237 (avr_info_to_howto_rela): Likewise.
7238 (elf32_avr_gc_mark_hook): Likewise.
7239 (elf32_avr_gc_sweep_hook): Likewise.
7240 (elf32_avr_relocate_section): Likewise.
7242 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
7244 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
7245 an external symbol for a non-shared, non-relocatable link.
7247 2000-07-03 Nick Clifton <nickc@redhat.com>
7249 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
7250 is an external symbol.
7251 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
7254 2000-07-03 Kazu Hirata <kazu@hxi.com>
7256 * reloc16.c: Fix formatting.
7258 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
7260 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
7261 to add a new target for traditional mips i.e
7262 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
7263 * configure.in: Likewise.
7264 * configure: Rebuild.
7265 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
7267 (bfd_elf32_tradlittlemips_vec): Likewise.
7268 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
7269 to see that elfNN_bed does not get redefined even if the target file
7270 is included twice for a chip. See elf32-mips.c.
7272 2000-07-01 Alan Modra <alan@linuxcare.com.au>
7274 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
7275 (CLEANFILES): Add DEPA.
7276 * Makefile.in: Regenerate.
7278 2000-06-30 DJ Delorie <dj@cygnus.com>
7280 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
7281 can't assume the PE header is at 0x80.
7283 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
7285 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
7287 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
7289 * go32stub.h: Update stub.
7291 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
7293 * archures.c (bfd_mach_avr5): Define.
7294 * bfd-in2.h (bfd_mach_avr5): Define.
7295 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
7296 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
7297 (compatible): Update comment. Add missing test.
7298 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
7299 for avr2 and avr4. Simplify 8K wrap code.
7300 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
7301 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
7303 2000-06-26 Kazu Hirata <kazu@hxi.com>
7305 * coff-h8300.c: Fix formatting.
7306 * cpu-h8300.c: Likewise.
7308 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
7310 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
7311 for local symbols whose names are unknown.
7313 2000-06-22 Alan Modra <alan@linuxcare.com.au>
7315 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
7317 * Makefile.in: Regenerate.
7318 * doc/Makefile.in: Regenerate.
7320 2000-06-20 H.J. Lu <hjl@gnu.org>
7322 * Makefile.am: Rebuild dependency.
7323 * Makefile.in: Rebuild.
7325 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7327 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
7328 (elf_backend_copy_indirect_symbol): Map to the new function.
7330 2000-06-20 Alan Modra <alan@linuxcare.com.au>
7332 * archive.c (normalize): Correct pointer comparison when checking
7334 (bfd_bsd_truncate_arname): Likewise.
7335 (bfd_gnu_truncate_arname): Likewise.
7337 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
7339 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
7340 sections elf_{text,data}_{section,symbol}.
7341 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
7342 (_bfd_mips_elf_hide_symbol): New function.
7343 (elf_backend_hide_symbol): Map to the new function.
7344 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
7345 definitions of mips_elf_{text,data}_{section,symbol}.
7346 (mips_elf_local_relocation_p): Try to find the direct symbol
7347 based on new check_forced argument.
7348 (mips_elf_calculate_relocation): Use new version of
7349 mips_elf_local_relocation_p.
7350 (mips_elf_relocate_section): Likewise.
7351 (_bfd_mips_elf_relocate_section): Likewise.
7352 (mips_elf_sort_hash_table): Only assert that have enough GOT
7354 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
7355 entry if the relocation based on the new external argument.
7356 (mips_elf_create_dynamic_relocation): Assert that we have a
7357 section contents allocated where we can swap out the dynamic
7359 (mips_elf_calculate_relocation): Find the real hash-table entry
7360 correctly by using h->root.root.type. Only create a dynamic
7361 relocation entry if the symbol is defined in a shared library.
7362 Create an external GOT entry for the GOT16 relocation if the
7363 symbol was forced local.
7364 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
7365 dynamic index if the symbol was forced local.
7367 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7369 * elf32-mips.c: Fix typos in comments.
7371 2000-06-19 Mark Kettenis <kettenis@gnu.org>
7373 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
7376 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
7378 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
7379 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
7380 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
7381 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
7382 (bfd_elf32_m68hc11_vec): Likewise.
7383 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
7384 Supports 68hc11 & 68hc12 at the same time.
7385 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
7387 (bfd_elf32_m68hc11_vec): Likewise.
7388 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
7389 * archures.c (bfd_m68hc12_arch): Define and register in global list
7390 (bfd_m68hc11_arch): Likewise.
7391 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
7392 BFD_RELOC_M68HC11_3B): Define.
7393 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
7394 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
7396 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
7398 * elf_bfd.h (struct elf_backend_data): Add info argument to
7399 elf_backend_hide_symbol.
7400 (_bfd_elf_link_hash_hide_symbol): Likewise.
7401 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
7402 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
7403 * elflink.h (elf_link_add_object_symbols): Likewise.
7404 (elf_link_assign_sym_version): Likewise.
7406 2000-06-18 H.J. Lu <hjl@gnu.org>
7408 * coff-i386.c (coff_i386_reloc): Don't return in case of
7409 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
7410 Compensate PE relocations when linking with non-PE object
7411 files to generate a non-PE executable.
7413 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
7415 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
7416 GOT entries if we're doing a static link or -Bsymbolic link.
7418 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
7420 * elflink.h (elf_link_adjust_relocs): Check for and call backend
7421 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
7423 (elf_link_output_relocs): Likewise.
7424 (elf_reloc_link_order): Likewise.
7426 2000-06-16 Nicholas Duffek <nsd@redhat.com>
7428 * archures.c (enum bfd_architecture): #define constants for
7429 PowerPc and RS6000 machine numbers.
7430 * bfd-in2.h: Regenerate.
7431 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
7432 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
7433 and RS6000 machine numbers using #defined constants from
7435 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
7436 machine numbers using #defined constants from archures.c. Add
7437 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
7438 64-bit words in 620 entry.
7439 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
7441 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
7443 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
7445 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
7446 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
7447 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
7449 2000-06-16 Nicholas Duffek <nsd@redhat.com>
7451 * bfd-in.h (bfd_family_coff): Define.
7452 * bfd-in2.h: Regenerate.
7453 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
7454 coff_find_nearest_line): Check COFFness using bfd_family_coff()
7455 instead of bfd_target_coff_flavour.
7456 * cofflink.c (_bfd_coff_final_link): Likewise.
7457 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
7458 exclude XCOFF files.
7459 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7461 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
7462 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
7463 * xcofflink.c (XCOFF_XVECP): Delete.
7464 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
7465 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
7466 bfd_xcoff_record_link_assignment,
7467 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
7468 check for bfd_target_xcoff_flavour.
7470 2000-06-16 Nicholas Duffek <nsd@redhat.com>
7472 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
7474 (read_hdr): New function.
7475 (rs6000coff_core_p): Store mstsave or __context64 struct instead
7476 of trying to extract individual registers. Set abfd->arch_info
7477 to match the architecture that created the core file.
7478 (rs6000coff_get_section_contents): Delete.
7479 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
7481 2000-06-14 H.J. Lu <hjl@gnu.org>
7483 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
7486 2000-06-13 H.J. Lu <hjl@gnu.org>
7488 * configure: Regenerate.
7490 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
7492 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
7495 2000-06-08 David O'Brien <obrien@FreeBSD.org>
7497 * configure.in (VERSION): Update to show this is the CVS mainline.
7499 2000-06-07 Alan Modra <alan@linuxcare.com.au>
7501 * elf32-d10v.c: Include elf/d10v.h
7502 (enum reloc_type): Delete.
7503 * elf32-d30v.c: Include elf/d30v.h
7504 (enum reloc_type): Delete.
7506 * Makefile.am: Run "make dep-am" to regenerate dependencies.
7507 * Makefile.in: Regenerate.
7509 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
7510 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
7511 move HOWTOs into elf_howto_table.
7512 (R_386_standard, R_386_ext_offset): Define.
7513 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
7514 (elf_i386_reloc_type_lookup): Modify calculation of index into
7515 elf_howto_table since we've removed the padding.
7516 (elf_i386_info_to_howto_rel): Likewise.
7517 (elf_i386_relocate_section): Likewise.
7519 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
7521 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
7523 2000-06-05 H.J. Lu <hjl@gnu.org>
7525 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
7526 an error when seeing an undefined symbol with hidden/internal
7527 attribute. It is handled in *_relocate_section ().
7529 2000-06-05 H.J. Lu <hjl@gnu.org>
7531 * elflink.h (elf_fix_symbol_flags): Follow the link for the
7532 indirect symbol for the ELF_LINK_NON_ELF bit.
7533 (elf_link_output_extsym): Don't output the indirect symbol even
7534 if the ELF_LINK_NON_ELF bit is set.
7536 2000-06-01 J.T. Conklin <jtc@redback.com>
7538 * config.bfd (i[3456]86-*-netbsdelf*): New target.
7539 (i[3456]86-*-netbsdaout*): New target.
7540 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
7541 (i[3456]86-*-openbsd*): Likewise.
7543 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
7545 * trad-core.c: From hpux-core.c, include <dirent.h> or
7546 <sys/ndir.h> when possible.
7548 2000-05-31 Ulrich Drepper <drepper@redhat.com>
7550 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
7551 definitions. We must not assume they are sorted in the file
7552 according to their index numbers.
7554 2000-05-31 Alan Modra <alan@linuxcare.com.au>
7556 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
7557 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
7558 R_PARISC_DIR17F are for absolute branches; Handle them as such.
7560 2000-05-30 Nick Clifton <nickc@cygnus.com>
7562 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
7563 80960CA, 80960MC as valid machine names.
7565 2000-05-30 H.J. Lu <hjl@gnu.org>
7567 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
7568 visibility bits if the symbol is undefined. Correctly handle
7569 weak undefined symbols with hidden and internal attributes.
7571 * elflink.h (elf_link_add_object_symbols): Always turn the
7572 symbol into local if it has the hidden or internal attribute.
7574 2000-05-29 Philip Blundell <philb@gnu.org>
7576 * ppcboot.c: Add packed attribute if compiling with GCC.
7578 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
7580 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
7582 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
7584 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
7585 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
7586 corefile on a 64-bit (Sparc Solaris) host. Also clean up
7589 2000-05-26 Alan Modra <alan@linuxcare.com.au>
7591 * Makefile.am: Update dependencies with "make dep-am"
7592 * Makefile.in: Regenerate.
7594 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
7595 bindtextdomain): Replace defines with those from intl/libgettext.h
7596 to quieten gcc warnings.
7598 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
7600 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
7602 * archive.c (normalize, bfd_bsd_truncate_arname,
7603 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
7604 file names with backslashes.
7606 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
7609 * sysdep.h: Include filenames.h.
7611 2000-05-26 Alan Modra <alan@linuxcare.com.au>
7613 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
7615 2000-05-26 Jakub Jelinek <jakub@redhat.com>
7617 * elf64-sparc.c (sparc64_elf_relax_section): New.
7618 (sparc64_elf_relocate_section): Optimize tail call into branch always
7620 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7621 (elf32_sparc_relax_section): New.
7623 2000-05-26 Jakub Jelinek <jakub@redhat.com>
7625 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
7626 Remove unusued variables.
7627 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
7628 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
7629 previous fix, so that shared libs really don't influence targets
7630 extension mask and memory model.
7632 2000-05-23 H.J. Lu <hjl@gnu.org>
7634 * elf64-alpha.c (elf64_alpha_relocate_section): Check
7635 h->root.other not h->other.
7636 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7638 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
7640 2000-05-23 H.J. Lu <hjl@gnu.org>
7642 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
7643 undefined symbol with the non-default visibility attributes.
7644 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
7645 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7646 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7647 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7648 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7649 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7650 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7651 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7652 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7653 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
7654 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7656 2000-05-22 Richard Henderson <rth@cygnus.com>
7658 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
7659 PCREL22, PCREL64I. Zero size of special relocs.
7660 (elf64_ia64_reloc_type_lookup): Likewise.
7661 (USE_BRL, oor_brl, oor_ip): New.
7662 (elf64_ia64_relax_section): New.
7663 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
7664 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
7665 (elf64_ia64_relocate_section): Likewise.
7666 (bfd_elf64_bfd_relax_section): New.
7667 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
7668 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
7669 * bfd-in2.h, libbfd.h: Regenerate.
7671 2000-05-22 Nick Clifton <nickc@cygnus.com>
7673 * configure.in : Add peigen.lo to MIPS PE targets.
7674 * configure: Regenerate.
7676 2000-05-22 Momchil Velikov <velco@fadata.bg>
7678 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
7679 only if it is known for both input and output bfds. Separate
7680 error message strings as in some languages, it may be necessary
7681 to change more than one place in the string to change between
7684 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
7685 endianess checks, call _bfd_generic_verify_endian_match() instead.
7687 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
7689 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
7691 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
7692 endianess before checking bfd flavours.
7694 2000-05-22 H.J. Lu <hjl@gnu.org>
7696 * elflink.h (elf_link_output_extsym): Clear the visibility
7697 field for symbols not defined locally.
7699 2000-05-18 Alan Modra <alan@linuxcare.com.au>
7701 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
7702 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
7703 (hppa_rebuild_insn): Mask immediate bits here instead.
7704 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
7706 2000-05-18 Momchil Velikov <velco@fadata.bg>
7708 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
7709 relocs for an executable, ensure that they are virtual addresses.
7711 2000-05-18 Jeffrey A Law (law@cygnus.com)
7713 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
7715 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
7716 Rick Gorton <gorton@scrugs.lkg.dec.com>
7718 * elflink.h: Add emitrelocations support: when enabled, relocation
7719 information and relocation sections are put into final output
7720 executables. If the emitrelocations flag is set, do the following:
7721 (elf_bfd_final_link): Emit relocation sections.
7722 (elf_link_input_bfd): Compute relocation section contents.
7723 (elf_gc_sections): Don't clean relocation sections.
7725 2000-05-16 Catherine Moore <clm@cygnus.com>
7727 * som.c (som_decode_symclass): Recognize weak symbols.
7729 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
7731 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
7732 read idata section only from dataoff.
7733 (pe_print_edata): Correctly check for valid eat_member.
7735 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
7737 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
7739 2000-05-14 Philip Blundell <philb@gnu.org>
7741 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
7743 2000-05-12 Alan Modra <alan@linuxcare.com.au>
7745 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
7747 * peigen.c (pe_print_idata): Look for .idata section and print
7748 info even if data directory has zero entries. Read idata section
7749 starting from dataoff, and adjust all data offsets to suit. Cast
7750 all bfd_vma vars to unsigned long before passing to fprintf.
7751 * peigen.c (pe_print_edata): Similarly, look for .edata section
7752 and print info even if data directory has zero entries. Cast
7753 all bfd_vma vars to unsigned long before passing to fprintf.
7755 From Szabolcs Szakacsits <szaka@F-Secure.com>
7756 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
7757 directory size which may be bogus.
7758 * peigen.c (pe_print_edata): Similarly.
7760 2000-05-09 Alan Modra <alan@linuxcare.com.au>
7762 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
7764 (copy_private_bfd_data): Allow for space possibly taken up by elf
7765 headers when calculating segment physical address from lma.
7767 2000-05-08 Alan Modra <alan@linuxcare.com.au>
7769 * versados.c (versados_scan): Init stringlen and pass_2_done.
7771 * trad-core.c (trad_unix_core_file_p): Return
7772 bfd_error_wrong_format rather than bfd_error_file_truncated.
7774 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
7775 add_data_entry. DataDirectory virtual address is relative.
7776 (pe_print_idata): Account for relative DataDirectory virtual
7777 addresses. Don't trash datasize inside POWERPC_LE_PE code.
7778 (pe_print_edata): Similarly.
7780 From Szabolcs Szakacsits <szaka@F-Secure.com>
7781 * peigen.c (dir_names): Add Delay Import Directory.
7782 (pe_print_idata): Always search for bfd section containing
7783 idata address rather than looking up section name. Print this
7784 section name rather than .idata.
7785 (pe_print_edata): Similarly. Also print some fields as %08lx.
7786 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
7789 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7791 * xcoff.h: Rename to xcoff-target.h
7792 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
7793 * coff-rs6000.c: Ditto.
7794 * coff64-rs6000.c: Ditto.
7795 * coff-pmac.c: Ditto.
7796 * Makefile.in: Regenerate.
7798 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7800 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
7801 Change U802TOC64MAGIC to U803XTOCMAGIC.
7803 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
7805 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
7806 * bfd-in.h: Prototype bfd_elf_get_arch_size.
7807 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
7809 2000-05-04 Alan Modra <alan@linuxcare.com.au>
7811 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
7813 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
7815 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
7816 hidden and internal symbols.
7817 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
7819 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
7820 assign a PLT or GOT entry to symbols with hidden and
7821 internal visibility.
7823 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
7825 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
7827 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
7829 2000-05-02 H.J. Lu <hjl@gnu.org>
7831 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
7834 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7836 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
7837 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
7839 * Makefile.in: Regenerate.
7841 2000-05-01 Jim Wilson <wilson@cygnus.com>
7843 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
7844 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
7845 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
7846 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
7847 * Makefile.in: Rebuild.
7849 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7851 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
7852 doesn't work very well.
7854 * elf-hppa.h (elf_hppa_internal_shdr): Define.
7855 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
7856 Set hdr->s_type to 1 if ARCH_SIZE == 32.
7857 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
7858 (elf_hppa_info_to_howto): Likewise.
7859 (elf_hppa_info_to_howto_rel): Likewise.
7860 (elf_hppa_reloc_type_lookup): Likewise.
7861 (elf_hppa_is_local_label_name): Likewise.
7862 (elf_hppa_fake_sections): Likewise.
7863 (elf_hppa_final_write_processing): Likewise.
7864 (elf_hppa_howto_table): Fully initialise all entries.
7865 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
7866 (elf_hppa_info_to_howto): Likewise.
7867 (elf_hppa_info_to_howto_rel): Likewise.
7868 (elf_hppa_reloc_type_lookup): Likewise.
7869 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
7870 elf_hppa_unmark_useless_dynamic_symbols,
7871 elf_hppa_remark_useless_dynamic_symbols,
7872 elf_hppa_record_segment_addrs, elf_hppa_final_link,
7873 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
7874 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
7875 elf32-hppa.c mess is cleaned up.
7876 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
7877 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
7878 r_field then call hppa_field_adjust inline func with variable
7879 r_field arg, instead call hppa_field_adjust with fixed arg.
7880 In case R_PARISC_PCREL22F, don't set r_field.
7881 (elf_hppa_relocate_insn): Change args and return type to unsigned
7882 int. Call re_assemble_* funcs to do the work.
7884 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
7887 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
7889 (sign_extend): Mask first before sign extending.
7890 (low_sign_extend): Rewrite without condition expression.
7891 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
7892 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
7893 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
7894 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
7895 result as function return value rather than through pointer arg.
7896 Accept unsigned int args, and return unsigned int.
7897 (re_assemble_3): New. Combines function of dis_assemble_3 with
7898 re-assembly of opcode and immediate.
7899 (re_assemble_12): Likewise.
7900 (re_assemble_16): Likewise.
7901 (re_assemble_17): Likewise.
7902 (re_assemble_21): Likewise.
7903 (re_assemble_22): Likewise.
7904 (hppa_field_adjust): Rewrite and document, paying attention to
7905 size of types and signed/unsigned issues.
7906 (get_opcode): Shift before masking.
7907 (FDLW): Rename to FLDW.
7908 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
7909 (hppa_rebuild_insn): Change args and return value to unsigned
7910 int. Make use of re_assemble_*. Correct case 11.
7912 * dep-in.sed: Handle ../opcodes/.
7913 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
7914 elf64-hppa.h, hppa_stubs.h, xcoff.h.
7915 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
7916 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
7917 elfarm-nabi.lo dependencies outside of auto-dependency area.
7918 Regenerate dependencies.
7919 * Makefile.in: Regenerate.
7921 * configure.in (TRAD_HEADER): Test non-null before
7923 * configure: Regenerate.
7925 * reloc.c: Fix mis-spelling in comment.
7927 2000-05-01 Alan Modra <alan@linuxcare.com.au>
7929 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
7930 * vms.c (vms_openr_next_archived_file): Return NULL.
7932 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7934 * coffcode.h Copy changes mistakenly done to libcoff.h in
7937 2000-04-29 Andreas Jaeger <aj@suse.de>
7939 * libbfd-in.h: Correctly check GCC version.
7940 * bfd-in.h: Likewise.
7941 * libhppa.h: Likewise.
7942 * libbfd.h: Regenerate.
7943 * bfd-in2.h: Regenerate.
7945 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7947 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
7948 coffdu-rs6000.{lo,c}.
7949 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
7951 * Makefile.in: Regenerate.
7952 * xcoff.h: New file.
7953 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
7954 * coff-rs6000.c: Move all declarations and defines that are
7955 common to the xcoff backends into xcoff.h
7956 * coff64-rs6000.c: Ditto,
7958 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7960 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
7961 _bfd_coff_force_symnames in strings and
7962 _bfd_coff_debug_string_prefix_length to their default values.
7963 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
7965 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7967 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
7968 _bfd_coff_force_symnames in strings and
7969 _bfd_coff_debug_string_prefix_length to their default values.
7971 2000-04-27 Alan Modra <alan@linuxcare.com.au>
7973 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
7974 Check local_got_refcounts before dereferencing.
7976 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
7977 before deciding we don't need R_PPC_PLT32 relocation.
7978 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
7981 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
7983 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
7985 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
7986 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
7987 (elf_i386_relocate_section): Allow for .plt to go missing.
7988 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
7989 can use a relative reloc for got as elf_i386_relocate_section.
7990 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
7992 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
7994 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
7996 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
7998 * Makefile.am (coff64-rs6000.lo): New rule.
7999 * Makefile.in: Regenerate.
8000 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
8001 xcoff_is_local_label_name, xcoff_rtype2howto,
8002 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
8003 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
8004 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
8005 (NO_COFF_SYMBOLS): Define.
8006 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
8007 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
8009 (MINUS_ONE): New macro.
8010 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
8012 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
8013 coff_SWAP_aux_out): Map to the new functions.
8014 * coff64-rs6000.c: New file.
8015 * libcoff.h (bfd_coff_backend_data): Add new fields
8016 _bfd_coff_force_symnames_in_strings and
8017 _bfd_coff_debug_string_prefix_length.
8018 (bfd_coff_force_symnames_in_strings,
8019 bfd_coff_debug_string_prefix_length): New macros for above fields.
8020 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
8021 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
8022 of using coff_swap_sym_in directly.
8023 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
8024 (coff_set_flags) Set magic for XCOFF64.
8025 (coff_compute_section_file_positions): Add symbol name length to
8026 string section length if bfd_coff_debug_string_prefix_length is
8028 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
8029 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
8030 using coff_swap_lineno_in directly.
8031 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
8032 and _bfd_coff_debug_string_prefix_length fields.
8033 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
8034 symbol names into strings table when
8035 bfd_coff_force_symnames_in_strings is true.
8036 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
8037 SET_RELOC_VADDR): New macros.
8038 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
8039 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
8041 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
8042 changes within RS6000COFF_C specific code.
8043 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
8044 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
8045 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
8046 Extend existing hack on target name.
8047 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
8049 * coff-tic54x.c (ticof): Keep up to date with new fields
8050 in bfd_coff_backend_data.
8051 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
8052 targ_selvecs to include rs6000coff64_vec for rs6000.
8053 * configure.in: Add rs6000coff64_vec case.
8054 * cpu-powerpc.c: New bfd_arch_info_type.
8056 2000-04-24 Jeffrey A Law (law@cygnus.com)
8058 * config.bfd: Only disable elf32-hppa vectors, not all of the
8059 BSD and OSF configuration support. Provide (disabled) clauses
8061 * configure.in: Add clause for PA64 support.
8062 * configure: Rebuilt.
8064 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
8065 (bfd_elf64_hppa_vec): Declare.
8067 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
8068 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
8069 (elf64-hppa.lo): Add dependencies.
8070 * Makefile.in: Rebuilt.
8072 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
8074 2000-04-24 Jason Eckhardt <jle@cygnus.com>
8076 * libhppa.h (dis_assemble_16): New function.
8077 (pa_arch): Added pa20w element.
8079 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
8081 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
8082 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
8083 bfd_elf64_slurp_reloc_table.
8085 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
8086 definitions to get external names.
8087 (elf_write_relocs): Renamed from write_relocs and make global.
8088 (elf_slurp_reloc_table): Make global.
8089 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
8091 * archive.c (hpux_uid_gid_encode): New function.
8092 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
8093 defined and the ID is greater than 99999.
8094 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
8095 special uid/gid fields into 32 bit values.
8097 2000-04-21 Matthew Green <mrg@cygnus.com>
8099 * config.bfd: Add NetBSD/sparc64 support.
8101 2000-04-21 Richard Henderson <rth@cygnus.com>
8102 David Mosberger <davidm@hpl.hp.com>
8103 Timothy Wall <twall@cygnus.com>
8104 Jim Wilson <wilson@cygnus.com>
8106 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
8107 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
8108 (BFD64_BACKENDS): Add elf64-ia64.lo.
8109 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
8110 (cpu-ia64.lo, elf64-ia64.lo): New rules.
8111 * Makefile.in: Rebuild.
8112 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
8113 (bfd_ia64_arch): Declare.
8114 (bfd_archures_list): Add bfd_ia64_arch.
8115 * bfd-in2.h: Rebuild.
8116 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
8117 * configure: Rebuild.
8118 * configure.host: (ia64-*-linux*): New host.
8119 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
8120 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
8121 * elf.c (prep_headers): Add bfd_arch_ia64.
8122 * libbfd.h: Rebuild.
8123 * reloc.c: Add IA-64 relocations.
8124 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
8126 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
8127 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
8129 2000-04-21 Richard Henderson <rth@cygnus.com>
8131 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
8132 contents when performing a partial link.
8133 (bfd_elf_d30v_reloc_21): Likewise.
8135 2000-04-20 H.J. Lu <hjl@gnu.org>
8137 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
8138 patch to symbols defined by a shared object.
8139 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
8141 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
8144 * dwarf2.c (concat_filename): Avoid string literal concatenation.
8145 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
8147 2000-04-11 David Mosberger <davidm@hpl.hp.com>
8149 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
8150 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
8151 (coff-ia64.lo): Add dependency.
8152 * Makefile.in: Regenerate.
8153 * coff-ia64.c: New file.
8154 * efi-app-ia32.c: Ditto.
8155 * efi-app-ia64.c: Ditto.
8156 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
8157 (coff_set_flags): Ditto.
8158 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
8159 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
8160 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
8161 * configure: Regenerate.
8162 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
8163 (PUT_OPTHDR_IMAGE_BASE): Ditto.
8164 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
8165 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
8166 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
8167 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
8168 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
8169 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
8170 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
8171 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
8172 (GET_PDATA_ENTRY): Ditto.
8173 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
8174 data_start. Use above macros to read fields that are 64 bit wide for
8175 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
8176 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
8177 FileAlignment and SectionAlignment to minimum alignment if they
8179 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
8180 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
8181 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
8182 Use above macros to write fields that are 64 bit wide for
8184 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
8185 5*4 otherwise. This should be right for IA-32 and IA-64, but may
8186 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
8187 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
8188 begin address, end address, and unwind info address only. Use
8189 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
8191 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
8192 HIGH3ADJ relocation names.
8193 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
8194 * targets.c: Declare bfd_efi_app_ia32_vec and
8195 bfd_efi_app_ia64_vec.
8196 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
8197 bfd_efi_app_ia64_vec.
8199 2000-04-17 Timothy Wall <twall@cygnus.com>
8201 * bfd-in2.h: Add prototypes for tic54x load page access.
8202 * bfd-in.h: Regenerate.
8203 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
8204 in customized _set_arch_mach function.
8205 * coffcode.h (coff_set_alignment_hook): Set section load page if
8206 the appropriate macro is defined.
8207 (write_object_contents): Read section load page.
8209 2000-04-13 Alan Modra <alan@linuxcare.com.au>
8211 * elf32-hppa.h: Update copyright date.
8213 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
8214 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
8216 * elf32-d30v.c (MAX32): Don't use LL suffix.
8217 (MIN32): Define in terms of MAX32.
8218 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
8220 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
8223 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
8225 2000-04-12 Alan Modra <alan@linuxcare.com.au>
8227 * dep-in.sed: Match space before file name, not after.
8228 * Makefile.am: Regenerate dependencies.
8229 * Makefile.in: Regenerate.
8231 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
8232 case, allow address wrap-around stupidly removed 2000-03-17. Sign
8233 extend without an if statement.
8235 2000-04-11 Alan Modra <alan@linuxcare.com.au>
8237 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
8239 * elf32-mips.c (gprel16_with_gp): Likewise.
8240 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
8241 here using -0x40000, not (int)0xfffc0000.
8242 (elf32_hppa_size_of_stub): Likewise.
8244 2000-04-11 Timothy Wall <twall@cygnus.com>
8246 * coff-tic54x.c: Now builds with all targets.
8247 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
8248 * Makefile.in: Regenerate.
8249 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
8250 unitialized variable.
8252 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
8254 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
8255 --enable-build-warnings option.
8256 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
8257 * Makefile.in, configure: Re-generate.
8259 2000-04-07 Nick Clifton <nickc@cygnus.com>
8261 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
8262 BFD_RELOC_THUMB_PCREL_BLX.
8264 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
8265 R_ARM_XPC25 and R_ARM_THM_PC22.
8267 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
8268 R_ARM_XPC25 and R_ARM_THM_XPC22.
8269 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
8270 R_ARM_[XPC25|THM_XPC22].
8272 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
8273 elf/arm-oabi.h to elf/arm.h
8275 * Makefile.am: Fix dependency for elfarm-oabi.c
8276 * Makefile.in: Regenerate.
8278 * bfd-in2.h: Regenerate.
8279 * libbfd.h: Regenerate.
8281 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
8283 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
8284 and restore it on failure. Release newly allocated tdata on
8287 2000-04-07 Jim Wilson <wilson@cygnus.com>
8289 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
8290 (decode_line_info): Set it. Report error if unit->line_offset is
8291 equal to or larger than it.
8293 2000-04-07 Timothy Wall <twall@cygnus.com>
8295 * targets.c: Added vecs for tic54x.
8296 * reloc.c: Added relocs for tic54x.
8297 * libbfd.h: Regenerated.
8298 * configure: Add TI COFF vecs for tic54x.
8299 * configure.in: Ditto.
8300 * config.bfd (targ_cpu): Recognize new tic54x target.
8301 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
8302 * bfd-in2.h: Add tic54x target and relocations.
8303 * Makefile.am, Makefile.in: Add tic54x target.
8304 * archures.c (bfd_archures_list): Add tic54x target.
8305 * coff-tic54x.c: New.
8306 * cpu-tic54x.c: New.
8308 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
8310 * elfcore.h (elf_core_file_p): call backend_object_p which
8311 thereby gets an opportunity to update the arch/machine type.
8313 2000-04-06 Timothy Wall <twall@cygnus.com>
8315 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
8316 class. Handle SEC_CLINK and SEC_BLOCK flags.
8317 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
8318 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
8320 2000-04-06 Nick Clifton <nickc@cygnus.com>
8322 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
8323 EF_INTERWORK if this is an unknown EABI.
8324 (elf32_arm_merge_private_bfd_data): Check EABI version
8325 numbers. Only check EF_xxx flags if the EABI version number
8327 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
8328 if the EABI version number is unknown.
8329 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
8330 if the EABI version number is unknown.
8332 2000-04-05 J"orn Rennecke <amylaar@cygnus.co.uk>
8334 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
8335 BFD_RELOC_SH_LOOP_END.
8336 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
8337 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
8338 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
8339 (sh_elf_reloc_loop): New function.
8340 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
8342 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
8343 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
8344 * bfd-in2.h, libbfd.h: Regenerate.
8346 2000-04-04 Alan Modra <alan@linuxcare.com.au>
8348 * po/bfd.pot: Regenerate.
8350 * Makefile.am: Remove extraneous mkdep comment.
8351 (MKDEP): Use gcc -MM rather than mkdep.
8352 (DEP): Quote when passing vars to sub-make. Add warning
8354 (DEP1): Rewrite for "gcc -MM".
8355 (CLEANFILES): Add DEP2.
8356 Update dependencies.
8357 * Makefile.in: Regenerate.
8359 2000-04-03 Kevin Buettner <kevinb@redhat.com>
8361 * configure.in: Added corefile support for AIX 4.3. In particular,
8362 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
8363 compiling rs6000-core.c.
8364 * configure: Regenerated.
8366 2000-04-03 H.J. Lu <hjl@gnu.org>
8368 * cache.c (bfd_open_file): Unlink the output file only if
8369 it has non-zero size.
8371 2000-04-01 Ken Block USG <block@zk3.dec.com>
8373 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
8374 relative relocations for non-loaded sections in shared objects.
8375 (elf64_alpha_check_relocs): Similarly.
8377 2000-04-03 Hans-Peter Nilsson <hp@axis.com>
8379 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
8380 BFD_RELOC_16 to switch for extended relocs.
8381 (MY_swap_ext_reloc_in): New.
8382 (MY_swap_ext_reloc_out): New.
8383 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
8384 than NAME(aout,swap_ext_reloc_in) for extended relocs.
8385 (NAME(aout,squirt_out_relocs)): Similarly use
8386 MY_swap_ext_reloc_out.
8387 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
8389 2000-04-03 Kazu Hirata <kazu@hxi.com>
8391 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
8392 the R_PCRWORD_B case.
8394 2000-03-31 Thomas de Lellis <tdel@wrs.com>
8396 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
8400 2000-03-30 Donald Lindsay <dlindsay@cygnus.com>
8402 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
8403 HOWTO references to bfd_elf_generic_reloc, that have
8404 partial_inplace == true, now use the new function. The function
8405 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
8406 extends its fixes to the R_M32R_{16,24,32} relocs.
8407 The new logic in m32r_elf_lo16_reloc() has been removed, and
8408 it instead calls the new routine to obtain that functionality.
8410 2000-03-27 Alan Modra <alan@linuxcare.com.au>
8412 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
8413 elf32_avr_check_relocs, avr_final_link_relocate,
8414 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
8415 elf32_avr_object_p): Add prototypes.
8416 (elf32_avr_gc_mark_hook): Add default for h->root.type.
8417 (bfd_elf_avr_final_write_processing): Make static.
8419 2000-03-27 Denis Chertykov <denisc@overta.ru>
8421 * cpu-avr.c: New file. BFD support routines for AVR architecture.
8422 * archures.c (bfd_architecture): Add AVR architecture.
8423 (bfd_archures_list): Add reference to AVR architecture info.
8424 * elf.c (prep_headers): Handle bfd_arch_avr.
8425 * reloc.c: Add various AVR relocation enums.
8426 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
8428 * Makefile.am: Add support for AVR elf.
8429 * configure.in: Likewise.
8430 * config.bfd: Likewise.
8431 * Makefile.in: Regenerate.
8432 * configure: This too.
8433 * bfd-in2.h: And this.
8434 * libbfd.h: And this.
8436 2000-03-24 H.J. Lu <hjl@gnu.org>
8438 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
8439 (elf64_alpha_find_reloc_at_ofs): Likewise.
8441 2000-03-17 Alan Modra <alan@linuxcare.com.au>
8443 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
8444 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
8445 allowable range used to be -2**(n-1) to 2**n-1.
8446 * reloc.c (_bfd_relocate_contents): Same here. Also replace
8447 "boolean overflow" with "bfd_reloc_status_type flag".
8449 2000-03-14 Doug Evans <dje@casey.transmeta.com>
8451 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
8453 2000-03-14 Kazu Hirata <kazu@hxi.com>
8455 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
8456 of shrinks properly, including the last reloc.
8458 2000-03-13 Kazu Hirata <kazu@hxi.com>
8460 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
8463 2000-03-11 Alan Modra <alan@linuxcare.com.au>
8465 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
8466 a format mismatch rather than an "error" from bfd_read such as
8467 bfd_error_file_truncated.
8469 2000-03-10 Geoff Keating <geoffk@cygnus.com>
8471 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
8472 sign-extension and big-endian compensation for
8473 R_MIPS_64 even in ld -r.
8475 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
8477 * elf32-mips.c (mips_elf_next_relocation): Rename from
8478 mips_elf_next_lo16_relocation, and generalize to look
8479 for any relocation type.
8480 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
8481 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
8482 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
8483 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
8484 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
8485 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
8486 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
8487 (mips_rtype_to_howto): Likewise.
8488 (mips_elf_calculate_relocation): Handle new relocs.
8489 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
8490 are paired. The addend for R_MIPS_GNU_REL16_S2
8491 is shifted right two bits.
8493 2000-03-10 Alan Modra <alan@linuxcare.com.au>
8495 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
8496 comment, and ensure it doesn't happen again.
8497 (bfd_install_relocation): Same here.
8498 (_bfd_relocate_contents): Don't bother assigning unused signmask
8499 shift result. Fix typos in comments.
8500 Remove trailing whitespace throughout file.
8502 2000-03-07 Doug Evans <dje@casey.transmeta.com>
8504 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
8505 * bfd-in2.h: Rebuild.
8507 2000-03-06 Nick Clifton <nickc@cygnus.com>
8509 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
8511 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
8512 (SIZEOF_ILF_STRINGS): Redefine.
8513 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
8514 relative reloc, as opposed to a section relative reloc.
8515 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
8517 Add length of symbol's prefix to string pointer.
8518 Store a pointer to the symbol in the symbol pointer table.
8519 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
8520 Initialise the symbol pointer table.
8521 Store the hint in the Hint/Name table.
8522 Make the jump reloc be symbol realtive, not section relative.
8523 Create an import symbol for imported code.
8525 2000-03-06 Catherine Moore <clm@cygnus.com>
8527 * elf.c (swap_out_syms): Check for null type_ptr.
8529 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
8531 * aout-target.h (MY(write_object_contents)): Remove unused
8532 and unusable "#if CHOOSE_RELOC_SIZE".
8533 * pc532-mach.c (MY(write_object_contents)): Ditto.
8534 * netbsd.h (MY(write_object_contents)): Ditto.
8535 * hp300hpux.c (MY(write_object_contents)): Ditto.
8536 * freebsd.h (MY(write_object_contents)): Ditto.
8537 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
8539 2000-02-29 H.J. Lu <hjl@gnu.org>
8541 * peicode.h (jtab): Make it static.
8543 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
8544 defined and COFF_IMAGE_WITH_PE is not defined.
8545 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
8546 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
8548 2000-03-01 Nick Clifton <nickc@cygnus.com>
8550 * coff-arm.c (bfd_arm_process_before_allocation): Make
8551 'symndx' signed to prevent compile time warning.
8553 * coff-mcore.c: Remove unused prototype for pe_object_p.
8555 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
8556 functions that are not used when COFF_IMAGE_WITH_PE is
8558 (struct sh_opcode): Change type of 'flags' field to unsigned
8559 long so that it can hold the USESAS flag.
8561 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
8563 * elf-m10300.c (mn10300_elf_relax_section): Initialise
8566 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
8568 Remove unusued variables and code.
8569 (elf_backend_add_symbol_hook): Fix prototype.
8571 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
8574 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
8577 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
8579 Remove unusued variables and code.
8580 (elf_backend_add_symbol_hook): Fix prototype.
8582 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
8584 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
8585 to unused function parameter.
8587 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
8589 Use EMPTY_HOWTO to initialise empty howto slots.
8590 Remove unused variables.
8592 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
8594 2000-03-01 H.J. Lu <hjl@gnu.org>
8596 * aoutx.h (aout_link_input_section_std): Pass "true" to
8597 the undefined_symbol callback.
8598 (aout_link_input_section_ext): Likewise.
8599 * bout.c (get_value): Likewise.
8600 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
8601 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
8603 (alpha_relocate_section): Likewise.
8604 * coff-arm.c (coff_arm_relocate_section): Likewise.
8605 * coff-i960.c (coff_i960_relocate_section): Likewise.
8606 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
8607 * coff-mips.c (mips_relocate_section): Likewise.
8608 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
8609 * coff-sh.c (sh_relocate_section): Likewise.
8610 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
8611 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
8612 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
8613 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
8614 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
8615 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
8616 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
8617 * elf32-i370.c (i370_elf_relocate_section): Likewise.
8618 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
8619 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
8620 * elf32-sh.c (sh_elf_relocate_section): Likewise.
8621 * elf32-v850.c (v850_elf_relocate_section): Likewise.
8622 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
8623 * elflink.h (elf_link_output_extsym): Likewise.
8624 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
8625 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
8626 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
8628 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
8629 undefined_symbol callback when building shared library with
8630 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
8632 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
8633 * elf32-i386.c (elf_i386_relocate_section): Likewise.
8634 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
8635 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
8636 (elf32_mips_get_relocated_section_content): Likewise.
8637 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
8638 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
8639 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
8640 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
8642 2000-02-28 Nick Clifton <nickc@cygnus.com>
8644 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
8645 * Makefile.in: Regenerate.
8647 * configure.in: Add support for mips and sh pe vectors.
8648 * configure: regenerate.
8650 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
8653 * targets.c: Add mips and sh pe vectors.
8655 * libpei.h (coff_final_link_postscript): Only define if not
8658 * coffcode.h: Add support for WinCE magic numbers.
8660 * peigen.c (pe_print_reloc): Update comment and rearrange
8661 appending of newline character.
8663 * peicode.h: Add support for Image Library Format.
8664 (pe_ILF_vars): Structure containing data used by ILF code.
8665 (pe_ILF_make_a_section): New function. Create a section based
8667 (pe_ILF_make_a_reloc): New function. Create a reloc based on
8669 (pe_ILF_make_a_symbol): New function. Create a symbol based
8671 (pe_ILF_save_relocs): New function. Store the relocs created
8672 by pe_ILF_make_a_reloc in a section.
8673 (pe_ILF_build_a_bfd): New function. Create a BFD describing
8675 (pe_ILF_object_p): New function. Return a bfd_target pointer
8677 (pe_bfd_object_p): If an ILF object is detected call
8678 pe_ILF_object_p on it.
8680 * coff-arm.c: Add support for WinCE relocs which are different
8681 from normal ARM COFF relocs.
8682 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
8684 * coff-sh.c: Add support for sh-pe target.
8685 * pe-sh.c: New file. Support code for sh-pe target.
8686 * pei-sh.c: New file. Support code for sh-pe target.
8688 * pe-mips.c: New file. Support code for mips-pe target.
8689 * pei-mips.c: New file. Support code for mips-pe target.
8691 2000-02-27 Jakub Jelinek <jakub@redhat.com>
8693 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
8694 architecture if the object causing the bump is dynamic.
8695 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
8696 and also don't it for memory ordering.
8697 (sparc64_elf_write_relocs): Take src_rela out of the loop.
8699 2000-02-27 Ian Lance Taylor <ian@zembu.com>
8701 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
8702 calling bfd_get_section_size_before_reloc.
8703 (decode_line_info): Likewise.
8704 (_bfd_dwarf2_find_nearest_line): Likewise.
8706 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
8708 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
8709 name of the libtool directory.
8710 * Makefile.in: Rebuild.
8712 2000-02-25 Rodney Brown (RodneyBrown@pmsc.com)
8714 * som.c (SOM_HOWTO): Define.
8715 (som_hppa_howto_table): Use it.
8717 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8719 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
8721 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
8723 2000-02-24 Catherine Moore <clm@cygnus.com>
8725 * som.c (som_misc_symbol_info): Add field
8727 (som_bfd_derive_misc_symbol_info): Initialize
8729 (som_build_and_write_symbol_table): Keep track
8730 of secondary_def field.
8731 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
8732 if secondary_def field is set.
8733 (som_bfd_ar_write_symbol_stuff): Initialize
8736 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
8738 * dwarf2.c (read_address): Read 16-bits addresses.
8739 (parse_comp_unit): Accept addr_size == 2.
8741 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
8743 * bfd-in.h: Update copyright date.
8745 2000-02-23 Linas Vepstas <linas@linas.org>
8747 * cpu-i370.c: New file.
8748 * elf32-i370.c: New file.
8749 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
8750 (bfd_i370_arch): New.
8751 (bfd_archures_list): Add bfd_i370_arch.
8752 * elf.c (prep_headers): Add bfd_arch_i370.
8753 * Makefile.am: Add support for IBM 370 elf.
8754 * config.bfd: Likewise.
8755 * configure.in: Likewise.
8756 * libbfd.h (bfd_reloc_code_real_names): Likewise.
8757 * reloc.c (bfd_reloc_code_type): Likewise.
8758 * targets.c: Likewise.
8760 * Makefile.in: Regenerate.
8761 * configure: Regenerate.
8762 * bfd-in2.h: Regenerate.
8764 2000-02-22 Ian Lance Taylor <ian@zembu.com>
8766 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
8767 invalid relocation types, and change them to R_386_NONE.
8769 2000-02-22 H.J. Lu <hjl@gnu.org>
8771 * elflink.h (elf_link_add_object_symbols): If a version symbol is
8772 not defined, don't add a second ELF_VER_CHR.
8774 * elflink.h (elf_bfd_final_link): Call output_extsym for global
8775 symbols converted to local symbols even when stripping all
8777 (elf_link_output_extsym): Process global symbols converted to
8778 local symbols even if they are being stripped.
8780 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
8782 * archures.c (bfd_octets_per_byte): Return unsigned int.
8783 (bfd_arch_mach_octets_per_byte): Ditto.
8784 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
8786 * section.c (bfd_get_section_size_before_reloc): Quell signed
8787 vs. unsigned comparison warning.
8788 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
8789 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
8790 change. What was I thinking?
8791 * bfd-in2.h: Regenerate.
8793 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
8794 (elf_gc_sections): Same here.
8795 (elf_gc_common_finalize_got_offsets): And here.
8797 2000-02-21 Ian Lance Taylor <ian@zembu.com>
8799 ELF HPPA doesn't work at present; remove it until it does.
8800 * config.bfd: Comment out setting targ_defvec to
8802 * Makefile.am: Rebuild dependencies.
8803 (BFD32_BACKENDS): Remove elf32-hppa.lo.
8804 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
8805 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
8806 * Makefile.in: Rebuild.
8807 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
8809 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8811 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
8812 is no bfd_free(). Revert bfd_free part of previous change.
8814 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8816 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
8818 (coff_compute_section_file_positions): Use bfd_free to pair
8820 (coff_write_object_contents): Likewise.
8822 * coff-rs6000.c (xcoff_howto_table_16): New variable.
8823 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
8825 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
8827 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
8828 (xcoff_ar_file_hdr_big): New structure.
8829 (SIZEOF_AR_FILE_HDR_BIG): New macro.
8830 (xcoff_ar_hdr_big): New structure.
8831 (SIZEOF_AR_HDR_BIG): New macro.
8832 (xcoff_big_format_p): New macro.
8833 (xcoff_ardata_big): New macro.
8834 (arch_xhdr_big): New macro.
8835 (xcoff_slurp_armap): Handle large archives.
8836 (xcoff_archive_p): Detect large archives.
8837 (xcoff_read_ar_hdr): Handle large archives.
8838 (xcoff_openr_next_archived_file): Handle large archives.
8839 (xcoff_generic_stat_arch_elt): Handle large archives.
8840 (xcoff_write_armap_old): Rename from xcoff_write_armap.
8841 (xcoff_write_armap_big): New function.
8842 (xcoff_write_armap): New function, dispatch to _old or _big.
8843 (xcoff_write_archive_contents_old): Rename from
8844 xcoff_write_archive_contents.
8845 (xcoff_write_archive_contents_big): New function.
8846 (xcoff_write_archive_contents): New function, dispatch to _old or
8849 2000-02-18 Richard Henderson <rth@cygnus.com>
8851 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
8852 and hide_symbol members.
8853 (elf_link_hash_copy_indirect): Remove.
8854 (elf_link_hash_hide_symbol): Remove.
8855 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
8856 and elf_backend_hide_symbol.
8857 (_bfd_elf_link_hash_copy_indirect): Declare.
8858 (_bfd_elf_link_hash_hide_symbol): Declare.
8859 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
8860 (_bfd_elf_link_hash_hide_symbol): Likewise.
8861 (_bfd_elf_link_hash_table_init): Don't init killed members.
8862 * elflink.h (elf_link_add_object_symbols): Use the bed function
8863 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
8864 (elf_link_assign_sym_version): Likewise.
8865 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
8866 (elf_backend_hide_symbol): Likewise.
8867 (elfNN_bed): Update for new members.
8869 2000-02-17 Kevin Buettner <kevinb@redhat.com>
8871 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
8872 STACK_END_ADDR): Define for new core file format.
8873 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
8874 for handling the vagaries of the various core file structures used
8875 by AIX over the years.
8876 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
8877 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
8878 core_dumpx structure.
8880 2000-02-17 J"orn Rennecke <amylaar@cygnus.co.uk>
8882 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
8883 (bfd_mach_sh3_dsp): Likewise.
8884 (bfd_mach_sh4): Reinstate.
8885 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
8886 * bfd-in2.h: Regenerate.
8887 * coff-sh.c (struct sh_opcode): flags is no longer short.
8888 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
8889 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
8890 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
8891 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
8892 (sh_opcodes): No longer const.
8893 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
8894 (sh_insn_uses_reg): Check for USESAS and USESR8.
8895 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
8896 (_bfd_sh_align_load_span): Return early for SH4.
8897 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
8898 Take into account that field b of a parallel processing insn
8899 could be mistaken for a separate insn.
8900 * cpu-sh.c (arch_info_struct): New array elements for
8901 sh2, sh-dsp and sh3-dsp.
8902 Reinstate element for sh4.
8903 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
8904 (SH4_NEXT): Reinstate.
8905 (SH3_NEXT, SH3E_NEXT): Adjust.
8906 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
8907 * elf32-sh.c (sh_elf_set_private_flags): New function.
8908 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
8909 (sh_elf_merge_private_data): New function.
8910 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
8911 (bfd_elf32_bfd_copy_private_bfd_data): Define.
8912 (bfd_elf32_bfd_merge_private_bfd_data): Change to
8913 sh_elf_merge_private_data.
8915 2000-02-13 Richard Henderson <rth@cygnus.com>
8917 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
8918 hide_symbol members.
8919 (elf_link_hash_copy_indirect): New.
8920 (elf_link_hash_hide_symbol): New.
8921 * elflink.h (elf_link_add_object_symbols): Break out copy from
8922 indirect new new symbol to elf.c.
8923 (elf_link_assign_sym_version): Break out privatization of
8924 non-exported symbol to elf.c.
8925 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
8926 (_bfd_elf_link_hash_hide_symbol): New.
8927 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
8929 2000-02-13 Ian Lance Taylor <ian@zembu.com>
8931 * section.c (_bfd_strip_section_from_output): Add info parameter.
8932 If it passed as non-NULL, use it to check whether any input BFD
8933 has an input section which uses this output section. Change all
8935 * bfd-in2.h: Rebuild.
8937 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
8938 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
8940 * bfd-in2.h: Rebuild.
8942 2000-02-10 Timothy Wall <twall@cygnus.com>
8944 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
8945 allow final modifications of swapped-in symbol.
8946 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
8947 * coffcode.h (coff_write_relocs): Use macro
8948 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
8949 symbol index should be set to -1.
8951 2000-02-10 Toshiyasu Morita (toshi.morita@sega.com)
8953 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
8954 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
8955 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
8956 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
8957 sh_insns_uses_or_sets_freg): New functions.
8958 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
8959 * (sh_insns_conflict): Use new functions and new macros to
8960 detect conflicts when two instructions both set same integer registers,
8961 both set same fp register, and both set special register.
8963 2000-02-09 Timothy Wall <twall@cygnus.com>
8965 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
8966 swapping in sections, so that the swapping routines have access to
8969 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
8971 * coff-go32.c: Update comment. Update copyright.
8973 2000-01-27 Thomas de Lellis <tdel@windriver.com>
8975 * syms.c (bfd_decode_symclass)
8976 Two new class characters were added - 'V' and 'v'. The
8977 meaning of 'W' is now restricted to just weak non-object
8978 symbols. This allows differentiation between, for example,
8979 weak functions vs weak objects. nm for example now dumps:
8981 'w' = weak unresolved
8982 'V' = weak global object
8983 'v' = weak unresolved object
8985 (bfd_is_undefined_symclass): New function. Return true if the
8986 given symbol class represents and undefined/unresolved symbol.
8988 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
8991 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
8993 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
8994 STT_ARM_16BIT flag set, but it is not attached to a data object
8995 return STT_ARM_16BIT so that it will be treated as code by the
8998 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
9000 * coff-i386.c (i3coff_object_p): Remove prototype.
9003 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
9004 to name. Update copyright.
9006 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
9007 assignment to avoid warning. Update copyright.
9009 2000-01-24 Robert Lipe (robertl@sco.com)
9011 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
9012 instead of using GNU C extension.
9014 2000-01-21 Nick Clifton <nickc@cygnus.com>
9016 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
9017 amount from a bfd_in_memory structure.
9018 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
9021 2000-01-14 Nick Clifton <nickc@cygnus.com>
9023 * linker.c (default_indirect_link_order): oops - fix incorrectly
9024 applied patch from Tim Wall.
9026 2000-01-13 Timothy Wall (twall@tiac.net>
9028 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
9029 = scnhsz, filhsz, relsz, aoutsz, etc)
9031 * coffswap.h: Ditto.
9033 2000-01-13 Nick Clifton <nickc@cygnus.com>
9035 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
9036 interwork thumb to arm stub.
9038 2000-01-13 Timothy Wall (twall@tiac.net>
9040 * archures.c (bfd_octets_per_byte): New function: Return
9042 (bfd_arch_mach_octets_per_byte): New function: Return target
9045 * section.c: Distinguish between octets and bytes for usage of
9046 _cooked_size, _raw_size, and output_offset. Clarify
9047 description of bfd_set_section_contents.
9049 * bfd-in2.h: Regenerate.
9051 * coffgen.c: Indicate that the offset parameter is in bytes, not
9054 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
9055 where appropriate to get the octet offset when calling
9056 bfd_set_section_contents.
9057 (bfd_coff_reloc_link_order): Ditto.
9059 * linker.c (bfd_generic_reloc_link_order): Ditto.
9060 (_bfd_default_link_order): Ditto.
9062 * reloc.c (bfd_perform_relocation): Distinguish between octets
9063 and bytes. Use octets when indexing into octet data; use bytes
9064 when calculating target addresses.
9065 (bfd_install_relocation): Ditto.
9067 * srec.c (srec_write_section): Ditto.
9069 2000-01-13 Nick Clifton <nickc@cygnus.com>
9071 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
9072 3 to 2. This allows 4 byte sized sections, which is necessary for
9073 dlltool to build functioning DLLs.
9075 2000-01-10 Philip Blundell <pb@futuretv.com>
9077 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
9078 (arm*-*-conix*): New target.
9080 2000-01-10 Egor Duda <deo@logos-m.ru>
9082 * config.bfd: Include elf32_i386 vector to target list for cygwin
9085 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
9086 * configure.in: Test for structure win32_pstatus_t in
9088 * configure: Regenerate.
9090 * elf.c (elfcore_grok_win32pstatus): New function: process
9091 win32_pstatus_t notes in elf core file.
9092 (elfcore_grok_note): Detect win32_pstatus notes.
9094 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
9096 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
9098 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
9099 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
9101 For older changes see ChangeLog-9899
9107 version-control: never