1 2001-11-27 H.J. Lu <hjl@gnu.org>
3 * elflink.h (elf_bfd_discard_info): Skip if the input bfd isn't
6 Mon Nov 26 12:33:44 2001 Jeffrey A Law (law@cygnus.com)
8 * stabs.c (_bfd_discard_section_stabs): Use PARAMS in function
11 2001-11-24 Alan Modra <amodra@bigpond.net.au>
13 * elf32-hppa.c (elf32_hppa_size_stubs): Decrease default stub
14 group sizes to accomodate c++.
16 2001-11-23 Jakub Jelinek <jakub@redhat.com>
18 * elf32-sparc.c (elf32_sparc_relocate_section): Don't clear
19 relocations in non-alloced sections against global symbols
20 defined in shared library being built.
21 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
23 2001-11-23 Jakub Jelinek <jakub@redhat.com>
25 * elf.c (_bfd_elf_rela_local_sym): New.
26 * elflink.h (elf_link_input_bfd): Don't consider empty
27 merged sections as removed in relocation tests.
28 * elf-bfd.h (_bfd_elf_rela_local_sym): Add prototype.
29 * elf32-i386.c (elf_i386_relocate_section): Handle relocs
30 against STT_SECTION symbol of SHF_MERGE section.
31 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
32 * elf32-avr.c (elf32_avr_relocate_section): Call
33 _bfd_elf_rela_local_sym.
34 * elf32-cris.c (cris_elf_relocate_section): Likewise.
35 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
36 * elf32-fr30.c (fr30_final_link_relocate): Likewise.
37 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
38 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
39 * elf32-i370.c (i370_elf_relocate_section): Likewise.
40 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
41 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
42 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
43 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
44 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
45 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
46 * elf32-s390.c (elf_s390_relocate_section): Likewise.
47 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
48 * elf32-v850.c (v850_elf_relocate_section): Likewise.
49 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
50 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
51 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
52 * elf64-s390.c (elf_s390_relocate_section): Likewise.
53 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
54 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
55 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
56 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
57 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
58 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
59 * elf32-sh.c (sh_elf_relocate_section): Likewise for
60 !partial_inplace relocs. Handle relocs against STT_SECTION
61 symbol of SHF_MERGE for partial_inplace relocs.
63 2001-11-21 Nick Clifton <nickc@cambridge.redhat.com>
65 * po/Make-in (distclean): Move SRC-POTFILES.in and
66 BLD-POTFILES.in to maintainer-clean target.
68 2001-11-21 Alan Modra <amodra@bigpond.net.au>
70 * elfxx-ia64.c (elfNN_ia64_relocate_section): Test r_symndx rather
71 than sym_sec->output_section to detect relocs against discarded
74 2001-11-19 H.J. Lu <hjl@gnu.org>
76 * elflink.h (elf_link_input_bfd): Assert r_symndx != 0 when
77 discarding relocations.
79 2001-11-19 Nick Clifton <nickc@cambridge.redhat.com>
81 * section.c (bfd_is_const_section): New macro. Return true if the
82 given seciton is one of the special, constant, sections.
83 * bfd-in2.h: Regenerate.
84 * coffgen.c (coff_count_linenumbers): Use bfd_is_const_section.
85 (coff_write_native_symbol): Use bfd_is_const_section.
87 2001-11-19 Alan Modra <amodra@bigpond.net.au>
89 * elf32-hppa.c (clobber_millicode_symbols): Dec dynstr refcount.
91 * elf32-hppa.c (elf32_hppa_size_stubs): Don't consider undefined
92 millicode syms as candidates for import stubs.
94 * elf32-hppa.c (PLABEL_PLT_ENTRY_SIZE): Delete.
95 (allocate_PIC_calls): Rename to allocate_plt_static.
96 (allocate_dynrelocs): Move most of code handling .plt entries to..
97 (allocate_plt_static): ..here. Don't drop plabel entries.
99 2001-11-19 Hans-Peter Nilsson <hp@bitrange.com>
101 * mmo.c: Adjust documentation tags to use texinfo 4 features.
103 2001-11-16 Nick Clifton <nickc@cambridge.redhat.com>
105 * section.c (bfd_is_const_section): New macro. Return true if the
106 section pointer refers to one of the special, constant sections.
107 * bfd-in2.h: Regenerate.
109 * coffgen.c (coff_count_linenumbers): Only update the line number
110 count in non-special sections.
111 (coff_write_native_symbol): Only update the line number file
112 position in non-special sections.
114 2001-11-15 Daniel Jacobowitz <drow@mvista.com>
116 * elflink.h (elf_reloc_symbol_deleted_p): Catch all relocs against
117 local syms from discarded sections. Update comment.
119 2001-11-15 Alan Modra <amodra@bigpond.net.au>
121 * po/SRC-POTFILES.in: Regenerate.
123 * elflink.h (elf_link_input_bfd): Complain about all relocs
124 against local syms from discarded sections. K&R fixes.
125 (elf_reloc_symbol_deleted_p): Don't try to swap in external syms.
128 2001-11-15 Alexandre Oliva <aoliva@redhat.com>
130 * elf64-sparc.c (sparc64_elf_relocate_section): Disregard
131 overflows in the .stab section.
133 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
135 * bfd-in.h (bfd_elf32_discard_info): Add prototype.
136 (bfd_elf64_discard_info): Likewise.
137 * bfd-in2.h: Regenerate.
138 * elf-bfd.h (struct elf_reloc_cookie): New.
139 (struct elf_backend_data): Add elf_backend_discard_info,
140 elf_backend_ignore_discarded_relocs, and elf_backend_write_section.
141 (_bfd_elf32_reloc_symbol_deleted_p): Add prototype.
142 (_bfd_elf64_reloc_symbol_deleted_p): Likewise.
143 * elf32-mips.c (_bfd_elf32_mips_discard_info): New.
144 (_bfd_elf32_mips_ignore_discarded_relocs): New.
145 (_bfd_elf32_mips_write_section): New.
146 (elf_backend_discard_info): Define.
147 (elf_backend_ignore_discarded_relocs): Define.
148 (elf_backend_write_section): Define.
149 * elfcode.h (elf_bfd_discard_info): Define.
150 (elf_reloc_symbol_deleted_p): Define.
151 * elflink.h (elf_link_input_bfd): Check
152 elf_section_ignore_discarded_relocs. Call
153 bed->elf_backend_write_section if available.
154 (elf_reloc_symbol_deleted_p): New.
155 (elf_bfd_discard_info): New.
156 (elf_section_ignore_discarded_relocs): New.
157 * elfxx-target.h (elf_backend_discard_info): Define.
158 (elf_backend_ignore_discarded_relocs): Define.
159 (elf_backend_write_section): Define.
160 (elfNN_bed): Add elf_backend_discard_info,
161 elf_backend_ignore_discarded_relocs, and
162 elf_backend_write_section.
163 * libbfd-in.h (_bfd_discard_section_stabs): Add prototype.
164 * libbfd.h: Regenerate.
165 * stabs.c (_bfd_discard_section_stabs): New.
167 2001-11-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
169 * elf32-s390.c (elf_s390_relocate_section): Use the "unresolved_reloc"
170 scheme to get rid of an ugly complicated test.
171 * elf64-s390.c (elf_s390_relocate_section): Likewise.
173 2001-11-14 Andreas Jaeger <aj@suse.de>
175 * cpu-i386.c (bfd_x86_64_arch_intel_syntax,bfd_x86_64_arch): Use
178 2001-11-14 Jakub Jelinek <jakub@redhat.com>
180 * dwarf2.c (struct line_head) [total_length]: Change type to
182 (struct dwarf2_debug): Add dwarf_str_buffer and dwarf_str_size.
183 (struct comp_unit): Add stash and offset_size.
184 (read_8_bytes): Return bfd_vma.
185 (read_indirect_string): New.
186 (read_attribute): Handle DW_FORM_strp.
187 (decode_line_info): Support 64-bit DWARF format.
188 (_bfd_dwarf2_find_nearest_line): Likewise.
189 (parse_comp_unit): Set offset_size and stash.
191 2001-11-13 Keith Walker <keith.walker@arm.com>
193 * dwarf2.c (read_attribute_value): New function to handle
195 (read_attribute): Use it.
197 2001-11-13 Geoffrey Keating <geoffk@redhat.com>
199 * dwarf2.c (decode_line_info): Properly deal with unknown standard
202 2001-11-13 John Marshall <jmarshall@acm.org>
203 Alan Modra <amodra@bigpond.net.au>
205 * section.c (bfd_make_section_anyway): Don't increment section_id
206 and the BFD's section_count if adding the section failed.
207 * vms.c (vms_new_section_hook): Adjust for bfd_make_section_anyway
210 2001-11-12 Orjan Friberg <orjanf@axis.com>
212 * elf32-cris.c (cris_elf_grok_prstatus): Adjust values to match new
215 2001-11-11 H.J. Lu <hjl@gnu.org>
217 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Call
218 _bfd_elf_strtab_size instead of _bfd_stringtab_size.
220 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Change
221 dynstr type to `struct elf_strtab_hash *'.
223 2001-11-11 Hans-Peter Nilsson <hp@bitrange.com>
225 * elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i
226 size_t. Rename second i to j.
228 Sat Nov 10 08:56:02 2001 Jeffrey A Law (law@cygnus.com)
230 * binary.c: Include safe-ctype.h after bfd.h and sysdep.h.
232 2001-11-10 Alan Modra <amodra@bigpond.net.au>
234 * elf32-arm.h (elf32_arm_final_link_relocate): Don't copy STN_UNDEF
235 relocs into shared libs.
236 * elf32-cris.c (cris_elf_relocate_section): Likewise.
237 * elf32-i370.c (i370_elf_relocate_section): Likewise.
238 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
239 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
240 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
241 * elf32-sh.c (sh_elf_relocate_section): Likewise.
242 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
243 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
244 * elf64-s390.c (elf_s390_relocate_section): Likewise.
245 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
246 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
247 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
249 * elf.c (bfd_section_from_r_symndx): New function.
250 * elf-bfd.h (LOCAL_SYM_CACHE_SIZE): Define.
251 (struct sym_sec_cache): New.
252 (bfd_section_from_r_symndx): Declare.
253 (struct bfd_elf_section_data): Change local_dynrel type to PTR.
254 * elflink.h (elf_link_input_bfd): Don't test for removed linkonce
255 relocs when relocatable. Don't zero entire reloc, just zero the
257 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add sym_sec.
258 (elf32_hppa_link_hash_table_create): Init it.
259 (elf32_hppa_check_relocs): Track dynamic relocs needed for local
260 syms on a per-section basis as we do for globals.
261 (elf32_hppa_gc_sweep_hook): Update for local_dynrel change.
262 (allocate_dynrelocs): Warning fix.
263 (elf32_hppa_size_dynamic_sections): Don't allocate relocs when
264 section has been discarded.
265 (elf32_hppa_relocate_section): Don't copy STN_UNDEF relocs
267 * elf32-i386.c (struct elf_i386_link_hash_table): Add sym_sec.
268 (elf_i386_link_hash_table_create): Init it.
269 (elf_i386_check_relocs): Track dynamic relocs needed for local
270 syms on a per-section basis as we do for globals.
271 (elf_i386_gc_sweep_hook): Update for local_dynrel change.
273 (allocate_dynrelocs): Warning fix.
274 (elf_i386_size_dynamic_sections): Don't allocate relocs when
275 section has been discarded.
276 (elf_i386_relocate_section): Don't copy STN_UNDEF relocs
278 * elf32-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
279 (elf_s390_link_hash_table_create): Init it.
280 (elf_s390_check_relocs): Track dynamic relocs needed for local
281 syms on a per-section basis as we do for globals.
282 (elf_s390_gc_sweep_hook): Update for local_dynrel change.
284 (allocate_dynrelocs): Warning fix.
285 (elf_s390_size_dynamic_sections): Don't allocate relocs when
286 section has been discarded.
287 (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
289 * elf64-ppc.c (struct ppc_link_hash_table): Add sym_sec.
290 (ppc64_link_hash_table_create): Init it.
291 (ppc64_elf_check_relocs): Track dynamic relocs needed for local
292 syms on a per-section basis as we do for globals.
293 (ppc64_elf_gc_sweep_hook): Update for local_dynrel change.
294 (allocate_dynrelocs): Call the correct record_dynamic_dymbol
295 function. Warning fix.
296 (ppc64_elf_size_dynamic_sections): Don't allocate relocs when
297 section has been discarded.
298 (ppc64_elf_relocate_section): Don't copy STN_UNDEF relocs
300 * elf64-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
301 (elf_s390_link_hash_table_create): Init it.
302 (elf_s390_check_relocs): Track dynamic relocs needed for local
303 syms on a per-section basis as we do for globals.
304 (elf_s390_gc_sweep_hook): Update for local_dynrel change.
306 (allocate_dynrelocs): Warning fix.
307 (elf_s390_size_dynamic_sections): Don't allocate relocs when
308 section has been discarded.
309 (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
312 2001-11-08 Martin Schwidefsky <schwidefsky@de.ibm.com>
314 * elf32-s390: Major rework that introduces all recent changes to
315 the s390 backends. Get a closer match to elf32-i386.
316 (elf_s390_relocate_section): Make use of dynamic section short-cuts.
317 Localise vars, and delay setting. Better error reporting, replace
318 BFD_ASSERT with abort. Check ELF_LINK_HASH_DEF_DYNAMIC to see if a
319 symbol is not defined in the regular object file and tread the weak
320 definition as the normal one. Don't discard relocs for undefweak or
321 undefined symbols and check !DEF_REGULAR as well as DEF_DYNAMIC in
322 test for avoided copy relocs. Reinstate fudge for unresolved relocs
323 in debugging sections.
324 (elf32_s390_adjust_dynamic_symbol): Handle nocopyreloc. Don't do copy
325 reloc processing for weakdefs. Remove redundant casts and aborts.
326 Delay setting of vars until needed. Move creation of dynamic symbols
327 and allocation of .plt and .rela.plt to allocate_dynrelocs. Replace
328 BFD_ASSERT with abort. Discard .plt entries for everything with
330 (elf_s390_check_relocs): Don't allocate space for dynamic relocs,
331 .got or .relgot here but do it in allocate_dynrelocs. Reference count
332 possible .plt and .got entries. Don't test input section SEC_READONLY
333 here to try to avoid copy relocs, and keep dyn_relocs regardless of
334 ELF_LINK_NON_GOT_REF. Don't set DF_TEXTREL here. Delay setting of
335 variables until needed. Remove separate switch stmt for creating .got
336 section. Initialise local_got_refcounts to 0. Cache pointer to
337 "sreloc" section in elf_section_data. Tweak condition under which .got
338 created. Report files with bad relocation section names.
339 (elf_s390_finish_dynamic_symbol): Don't copy relocs for symbols that
340 have been forced local. Use same test to decide if we can use a
341 relative reloc for got as elf_s390_relocate_section. Expand SHN_UNDEF
342 comment. Move expressions out of function calls. Replace BFD_ASSERT
344 (elf_s390_finish_dynamic_sections): Migrate common code out of switch
345 statement. Replace BFD_ASSERT with abort.
346 (elf_s390_size_dynamic_sections): Call readonly_dynrelocs. Rename "i"
347 to "ibfd". Allocate space for local dyn relocs. Use DF_TEXTREL flag
348 instead of looking up section names for DT_TEXTREL. Replace
349 BFD_ASSERT with abort. Zero out the dynamic allocated content space.
350 Add a comment to remind us that one day this ought to be fixed.
351 (struct elf_s390_link_hash_entry): Rename "root" to "elf".
352 (struct elf_s390_link_hash_table): Likewise.
353 (elf_s390_link_hash_newfunc): Rename to link_hash_newfunc and get
354 rid of unnecessary casts.
355 (struct elf_s390_dyn_relocs): Add "sec", and "pc_count" fields.
356 Remove "section" field.
357 (elf_s390_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
358 Reference count possible .plt entries. Don't deallocate .got and
360 (struct elf_s390_pcrel_relocs_copied): Rename to elf_s390_dyn_relocs.
362 (struct elf_s390_link_hash_entry): Rename pcrel_relocs_copied to
364 (elf_s390_discard_copies): Delete.
365 (elf_s390_link_hash_traverse): Delete.
366 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
367 rather than gc variety).
368 (struct elf_s390_link_hash_table): Add sgot, sgotplt, srelgot, splt,
369 srelplt, sdynbss, srelbss fields.
370 (elf_s390_link_hash_table_create): Init them.
371 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
372 (allocate_dynrelocs): New function.
373 (create_got_section): New function.
374 (elf_backend_can_refcount): Define.
375 (elf_backend_copy_indirect_symbol): Define.
376 (elf_s390_copy_indirect_symbol): New function.
377 (elf_s390_create_dynamic_sections): New function.
378 (readonly_dynrelocs): New function.
379 * elf64-s390.c: Likewise.
381 2001-11-07 Jakub Jelinek <jakub@redhat.com>
383 * Makefile.am (BFD32_BACKENDS): Add elf-strtab.lo.
384 (BFD32_BACKENDS_CFILES): Add elf-strtab.c.
385 (elf-strtab.lo): Add rule.
386 * Makefile.in: Rebuilt.
387 * configure.in (elf): Add elf-strtab.lo.
388 * configure: Rebuilt.
389 * elf-bfd.h (elf_strtab_hash): Forward declare.
390 (struct elf_link_hash_table): Change dynstr type to
391 struct elf_strtab_hash *.
392 (struct elf_obj_tdata): Change strtab_ptr type to
393 struct elf_strtab_hash *.
394 (_bfd_elf_strtab_init, _bfd_elf_strtab_free, _bfd_elf_strtab_add,
395 _bfd_elf_strtab_addref, _bfd_elf_strtab_delref,
396 _bfd_elf_strtab_clear_all_refs, _bfd_elf_strtab_size,
397 _bfd_elf_strtab_offset, _bfd_elf_strtab_emit,
398 _bfd_elf_strtab_finalize): New prototypes.
399 * elf-strtab.c: New file.
400 * elflink.h (elf_link_add_object_symbols): Use _bfd_elf_strtab_add
401 and _bfd_elf_strtab_size instead of _bfd_stringtab calls.
402 Call _bfd_elf_strtab_delref if DT_NEEDED entry is not needed or
403 when forcing dynamic symbol to local.
404 (elf_link_create_dynamic_sections): Call
405 _bfd_elf_strtab_init instead of elf_stringtab_init.
406 (elf_link_record_local_dynamic_symbol): Likewise, change
407 dynstr type. Use _bfd_elf_strtab functions instead of
408 _bfd_stringtab calls.
409 (size_dynamic_sections): Use _bfd_elf_strtab functions instead of
410 _bfd_stringtab calls. For DT_RUNPATH and Verdaux vda_name fields,
411 call _bfd_elf_strtab_addref. Call elf_finalize_dynstr.
412 (elf_adjust_dynstr_offsets, elf_finalize_dynstr): New functions.
413 (elf_fix_symbol_flags): Call _bfd_elf_strtab_delref when forcing
414 dynamic symbol to local.
415 (elf_link_assign_sym_version): Likewise.
416 (elf_bfd_final_link): Call _bfd_elf_strtab_emit instead of
418 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Change dynstr
419 type. Call _bfd_elf_strtab functions instead of
420 _bfd_stringtab functions.
421 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
422 * elf.c (_bfd_elf_init_reloc_shdr): Likewise.
423 (elf_fake_sections): Likewise.
424 (assign_section_numbers): Call _bfd_elf_strtab_clear_all_refs
425 on shstrtab hash table, call _bfd_elf_strtab_addref on each section
426 name in the output. Call _bfd_elf_strtab_finalize and
427 use _bfd_elf_strtab_offset to finalize sh_name section header fields.
428 (_bfd_elf_compute_section_file_positions): Use _bfd_elf_strtab_size
429 instead of _bfd_stringtab_size.
430 (prep_headers): Change shstrtab type.
431 Use _bfd_elf_strtab calls instead of _bfd_stringtab calls.
433 2001-11-07 Alan Modra <amodra@bigpond.net.au>
435 * elflink.h (elf_link_input_bfd <removed linkonce relocs>): Fix
436 bad symtab segfault. Formatting and warning fixes. Improve
437 error message for internationalisation.
439 2001-11-06 H.J. Lu (hjl@gnu.org)
441 * elflink.h (elf_link_input_bfd): Complain about relocs against
444 2001-11-03 Alan Modra <amodra@bigpond.net.au>
446 * elfxx-target.h (elfNN_bed): Correct want_got_sym, want_dynbss order.
448 2001-11-02 H.J. Lu <hjl@gnu.org>
450 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
451 dynamic relocation for symbols defined in regular objects when
452 creating executables.
454 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
456 * configure.in (ALL_LINGUAS): Add "fr".
457 * configure: Regenerate.
458 * po/fr.po: New file.
460 * coffgen.c (coff_object_p): Add comment to H.J.'s recent patch.
462 2001-11-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
464 * som.c (setup_sections): Initialize subspace_sections.
466 2001-11-02 H.J. Lu (hjl@gnu.org)
468 * coffgen.c (coff_object_p): Return 0 if the header is too big.
470 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
472 * elfcore.h (elf_core_file_p): Preserve and clear abfd section
473 information. Save bfd arch and mach values. Restore on error.
475 2001-11-02 Alan Modra <amodra@bigpond.net.au>
477 * elf32-hppa.c (hppa_handle_PIC_calls): Rename to mark_PIC_calls.
478 (allocate_PIC_calls): New function.
479 (allocate_dynrelocs): Don't allocate pic_call plt entries here.
480 (elf32_hppa_size_dynamic_sections): Call allocate_PIC_calls.
481 (elf32_hppa_finish_dynamic_symbol): Remove dead code.
483 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
485 * elf32-cris.c (cris_elf_grok_prstatus): New function.
486 (cris_elf_grok_psinfo): New function.
487 (elf_backend_grok_prstatus): Define.
488 (elf_backend_grok_psinfo): Define.
490 2001-11-01 Alan Modra <amodra@bigpond.net.au>
492 * elf64-ppc.c (ppc64_elf_relocate_section): Correct branch
495 2001-10-31 Chris Demetriou <cgd@demetriou.com>
497 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Handle PC-relative
498 relocations properly.
500 2001-10-31 H.J. Lu <hjl@gnu.org>
502 * elflink.h (elf_link_output_extsym): Don't clear the visibility
503 field for relocateable.
505 2001-11-01 Alan Modra <amodra@bigpond.net.au>
507 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Don't count
508 .plt relocs in DT_RELASZ.
510 2001-10-29 NIIBE Yutaka <gniibe@m17n.org>
512 * config.bfd: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
515 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
517 * targets.c: Fix typo: bfd_mmo_mmix_vec => bfd_mmo_vec.
519 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
521 * Makefile.am (ALL_MACHINES): Add cpu-mmix.lo.
522 (BFD64_BACKENDS): Add elf64-mmix.lo and mmo.lo.
523 (BFD64_BACKENDS_CFILES): Add elf64-mmix.c and mmo.c.
524 Regenerate dependencies.
525 * configure.in (bfd_elf64_mmix_vec, bfd_mmo_vec): New vectors.
526 * config.bfd: [BFD64] (mmix-*-*): New case.
527 * cpu-mmix.c, mmo.c, elf64-mmix.c: New files.
528 * archures.c (enum bfd_architecture): Add bfd_arch_mmix.
529 (bfd_mmix_arch): Declare.
530 (bfd_archures_list): Add bfd_mmix_arch.
531 * targets.c (enum bfd_flavour): Add bfd_target_mmo_flavour.
532 (bfd_elf64_mmix_vec, bfd_mmo_vec): Declare.
533 (bfd_target_vect) [BFD64]: Add bfd_elf64_mmix_vec and
535 * reloc.c: Add MMIX relocations.
536 * bfd.c (struct _bfd, tdata): Add mmo_data.
537 * Makefile.in: Regenerate.
538 * configure: Regenerate.
539 * libbfd.h: Regenerate.
540 * bfd-in2.h: Regenerate.
541 * configure: Rebuild.
543 2001-10-30 Richard Earnshaw (rearnsha@arm.com)
545 * elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based on the
546 p_paddr of the segment that contains it.
547 (copy_private_bfd_data): If the LMA for a segment is known, use it
548 for matching sections to segments.
549 (assign_file_positions_for_segments): Use the LMA when adjusting
550 for inter-section alignment padding.
552 2001-10-29 Kazu Hirata <kazu@hxi.com>
554 * README: Fix a typo.
556 2001-10-24 Richard Henderson <rth@redhat.com>
558 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
559 timestamp to time_t for ctime.
561 2001-10-24 Hans-Peter Nilsson <hp@axis.com>
563 * elf32-cris.c (cris_reloc_type_lookup): Change loop to use
564 unsigned, increasing index.
566 2001-10-23 H.J. Lu <hjl@gnu.org>
568 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check
569 m != NULL before accessing it.
571 2001-10-23 Alan Modra <amodra@bigpond.net.au>
573 * elflink.h (elf_link_input_bfd): Zero the reloc instead of doing
574 bfd_reloc_type_lookup (bfd, BFD_RELOC_NONE) as bfd_reloc_type_lookup
575 doesn't accept BFD_RELOC_* on some targets, eg. hppa.
577 * elf32-hppa.c (elf32_hppa_link_hash_entry): Remove plt_abs.
578 (hppa_link_hash_newfunc): Likewise.
579 (elf32_hppa_finish_dynamic_symbol): Likewise.
580 (allocate_dynrelocs): Always allocate .got relocs if shared.
581 (elf32_hppa_relocate_section): Output them too. Similarly
582 consolidate .plt reloc code, and no longer initialise .plt
583 when a reloc is output.
584 (elf32_hppa_finish_dynamic_symbol): Only initialise .plt entries
585 when no reloc is output.
587 From Herbert Xu <herbert@gondor.apana.org.au>
588 * elf32-hppa.c (final_link_relocate): Call bfd_set_error for
589 unreachable branches.
591 2001-10-22 H.J. Lu <hjl@gnu.org>
593 * configure.in (WIN32LIBADD): Use -L../libiberty for
595 * configure: Rebuild.
597 2001-10-21 H.J. Lu <hjl@gnu.org>
599 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
600 if shared library is enabled only for Linux hosts.
601 * configure: Rebuild.
603 2001-10-21 H.J. Lu <hjl@gnu.org>
605 * configure.in (WIN32LIBADD): Check if PICFLAG is defined in
606 ../libiberty/Makefile instead of $enable_shared.
607 * configure: Rebuild.
609 2001-10-21 H.J. Lu <hjl@gnu.org>
611 * elf32-cris.c (cris_reloc_type_lookup): Use int for index. Cover
614 2001-10-20 H.J. Lu <hjl@gnu.org>
616 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
617 if shared library is enabled.
618 * configure: Rebuild.
620 2001-10-20 H.J. Lu <hjl@gnu.org>
622 * elf32-cris.c (cris_reloc_type_lookup): Allow index 0.
624 2001-10-19 H.J. Lu <hjl@gnu.org>
626 * elfcode.h (elf_object_p): Don't clear D_PAGED if the section
629 2001-10-18 H.J. Lu <hjl@gnu.org>
631 * elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
632 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
634 2001-10-18 Jakub Jelinek <jakub@redhat.com>
636 * section.c (_bfd_strip_section_from_output): Don't count
637 SEC_EXCLUDE sections as references. Set SEC_EXCLUDE.
639 2001-10-17 Alan Modra <amodra@bigpond.net.au>
641 * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
642 Elf_Internal_Shdr.contents now that it's no longer a PTR.
643 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
644 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
645 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
646 * elf32-sh.c (sh_elf_relax_section): Likewise.
647 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
648 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
649 * elf.c (setup_group): Warning fixes.
650 * elflink.h (elf_link_sort_relocs): Likewise.
651 * pdp11.c (slurp_reloc_table): Likewise.
653 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
655 * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
658 2001-10-15 H.J. Lu <hjl@gnu.org>
660 * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
661 for relocations against discarded link-once section.
663 2001-10-15 Alan Modra <amodra@bigpond.net.au>
665 * elf32-i386.c (elf_i386_relocate_section): Report some detail on
666 bfd_reloc_outofrange and similar errors.
668 * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
669 rather than ind->weakdef.
670 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
671 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
672 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
673 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
674 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
676 2001-10-15 Alan Modra <amodra@bigpond.net.au>
677 H.J. Lu <hjl@gnu.org>
679 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
680 counts for aliases instead of aborting.
681 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
682 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
684 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
685 to -1 for non-function symbols.
686 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
687 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
688 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
689 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
690 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
691 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
692 plt.offset instead of plt.refcount when setting to -1.
694 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
696 * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
697 like R_ARM_PC24. Include reloc number in error message about
700 2001-10-10 Jakub Jelinek <jakub@redhat.com>
702 * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
703 relocations against the same symbol in .rel{,a}.dyn section.
705 2001-10-10 Kazu Hirata <kazu@hxi.com>
707 * aout-encap.c: Fix comment typos.
709 * archive.c: Likewise.
711 * coff64-rs6000.c: Likewise.
712 * coffcode.h: Likewise.
713 * coffgen.c: Likewise.
714 * cofflink.c: Likewise.
715 * coff-mips.c: Likewise.
717 * elf32-m32r.c: Likewise.
718 * libcoff-in.h: Likewise.
719 * libecoff.h: Likewise.
720 * libxcoff.h: Likewise.
721 * nlm32-i386.c: Likewise.
723 * section.c: Likewise.
726 * bfd-in2.h: Regenerate.
727 * libcoff.h: Likewise.
729 2001-10-10 Alan Modra <amodra@bigpond.net.au>
731 * elf.c (elf_map_symbols): Don't create new section symbols; Use
732 existing section syms. Update comments.
733 (copy_private_bfd_data): Formatting fixes.
734 (elfcore_grok_win32pstatus): Likewise.
735 (swap_out_syms): Likewise. Remove unnecessary level of braces.
737 2001-10-09 Alan Modra <amodra@bigpond.net.au>
739 * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
741 (elf_group_name): Define.
742 (elf_next_in_group): Define.
743 * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
744 (setup_group): Don't use sec->lineno for SHT_GROUP section to store
745 first member section; Instead use elf_next_in_group.
746 (bfd_section_from_shdr): Likewise.
747 (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
749 2001-10-09 Alan Modra <amodra@bigpond.net.au>
751 * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
752 "next_in_group". Fix gp and gp_size comments.
753 * elf.c (union elf_internal_group): New.
754 (setup_group): New function.
755 (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
756 Call setup_group for SHF_GROUP sections.
757 (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
758 (elf_fake_sections): Set header type for SEC_GROUP, and header
759 flags for sections in a group.
760 (set_group_contents): New function.
761 (_bfd_elf_compute_section_file_positions): Call it.
762 (assign_section_numbers): Set sh_link for SHT_GROUP.
764 * elflink.h (gc_mark_hook): Handle section groups.
765 * elfxx-target.h: Add SEC_GROUP to applicable_flags.
766 * section.c (SEC_GROUP): Define.
767 (struct sec): Comment fixes.
768 * bfd-in2.h: Regenerate.
770 * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
771 out of function args.
772 (_bfd_elf_canonicalize_reloc): Similarly.
773 (_bfd_elf_get_symtab): Here too.
774 (_bfd_elf_canonicalize_dynamic_symtab): And here.
775 * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
776 bfd_bread, and remove unnecessary cast.
778 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
780 * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
782 2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
784 * dwarf2.c (comp_unit_find_nearest_line): Check for end of
787 2001-10-06 Alan Modra <amodra@bigpond.net.au>
789 * bfd.c (bfd_assert): Report bfd version.
790 (_bfd_abort): Likewise.
792 * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
793 section sym values. Instead replace any relocs against them with
794 relocs against STN_UNDEF, which has a zero value.
796 * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
799 2001-10-05 Jeff Law <law@redhat.com>
801 * som.h (som_exec_data): New field "version_id".
802 * som.c (som_object_setup): Record the version_id if it
804 (som_prep_headers): Do not initialize version_id here.
805 (som_finish_writing): Initialize version_id here.
807 2000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
809 * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
810 according to the MIPS/SGI ELF64 ABI Draft.
811 (mips_elf_sort_hash_table): Typo.
813 2001-10-04 Alan Modra <amodra@bigpond.net.au>
815 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo.
817 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
818 copying flags if this is a weakdef.
820 2001-10-04 Alan Modra <amodra@bigpond.net.au>
822 * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
825 * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
826 to 1 rather than 0 to avoid confusing copy_indirect_symbol.
827 (mips_elf_sort_hash_table_f): Compare got.offset against 1.
829 * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
830 depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
831 backends we configure. Run "make dep-am".
832 (install-data-local): Install symcat.h.
833 * dep-in.sed: Remove symcat.h from dependencies.
834 * Makefile.in: Regenerate.
836 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
838 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc.
840 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
842 * elf64-mips.c (elf_backend_may_use_rela_p): New define.
843 (elf_backend_default_use_rela_p): New define.
845 2001-10-03 Alan Modra <amodra@bigpond.net.au>
847 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
850 * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
851 * configure: Regenerate.
852 * Makefile.am (BFD_H_FILES): Add version.h.
853 * Makefile.in: Regenerate.
854 * po/SRC-POTFILES.in: Regenerate.
856 * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
857 elf_backend_copy_indirect_symbol so that backend has a chance to
858 copy other necessary fields.
859 * elf-bfd.h (struct elf_backend_data): Update description of
860 elf_backend_copy_indirect_symbol.
861 * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
862 copying flags if this is a weakdef.
863 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
864 (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
865 than bfd_link_hash_lookup.
866 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
867 reloc processing for weakdefs.
868 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
869 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
871 2001-10-02 Alan Modra <amodra@bigpond.net.au>
873 * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
874 result of ELF64_R_TYPE to enum before using in a switch.
875 (ppc64_elf_gc_mark_hook): Likewise.
876 (ppc64_elf_gc_sweep_hook): Likewise.
877 (ppc64_elf_reloc_type_class): Likewise.
879 2001-10-02 Alan Modra <amodra@bigpond.net.au>
881 * version.h: New file.
882 * bfd-in.h: (BFD_VERSION): Substitute bfd_version.
883 (BFD_VERSION_DATE): Define.
884 (BFD_VERSION_STRING): Define.
885 * configure.in: AC_SUBST bfd_version, bfd_version_date and
887 (AC_OUTPUT <bfd-in3.h>): Depend on version.h.
888 * bfd-in2.h: Regenerate.
889 * configure: Regenerate.
890 * Makefile.am: Run "make dep-am".
891 * Makefile.in: Regenerate.
893 * bfd-in.h: Include "symcat.h".
894 (CONCAT4): Redefine as for old CAT4.
895 * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
896 Add warning regarding whitespace.
897 * aout-cris.c: Likewise.
898 * aout-ns32k.c: Likewise.
899 * aout-sparcle.c: Likewise.
900 * aout-tic30.c: Likewise.
902 * armnetbsd.c: Likewise.
903 * demo64.c: Likewise.
904 * elf-bfd.h: Likewise.
905 * gen-aout.c: Likewise.
906 * host-aout.c: Likewise.
907 * hp300bsd.c: Likewise.
908 * hp300hpux.c: Likewise.
909 * i386aout.c: Likewise.
910 * i386bsd.c: Likewise.
911 * i386dynix.c: Likewise.
912 * i386freebsd.c: Likewise.
913 * i386linux.c: Likewise.
914 * i386lynx.c: Likewise.
915 * i386mach3.c: Likewise.
916 * i386netbsd.c: Likewise.
917 * libaout.h: Likewise.
918 * m68k4knetbsd.c: Likewise.
919 * m68klinux.c: Likewise.
920 * m68klynx.c: Likewise.
921 * m68knetbsd.c: Likewise.
922 * m88kmach3.c: Likewise.
923 * mipsbsd.c: Likewise.
924 * newsos3.c: Likewise.
925 * ns32knetbsd.c: Likewise.
926 * pc532-mach.c: Likewise.
928 * riscix.c: Likewise.
929 * sparclinux.c: Likewise.
930 * sparclynx.c: Likewise.
931 * sparcnetbsd.c: Likewise.
933 * targets.c: Likewise.
934 * vaxnetbsd.c: Likewise.
935 * vms-hdr.c: Likewise.
937 2001-10-01 Alan Modra <amodra@bigpond.net.au>
939 * bfd-in.h: Remove comments regarding generated files.
940 * libbfd-in.h: Likewise.
941 * libcoff-in.h: Likewise.
942 * bfd-in2.h: Regenerate.
943 * libbfd.h: Likewise.
944 * libcoff.h: Likewise.
946 2001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp>
947 Hans-Peter Nilsson <hp@bitrange.com>
949 * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
950 partial_inplace, matching assembler output. Set src_mask to
952 (sh_elf_relocate_section): Delete misplaced comment.
953 For relocatable linking against section symbol, call
954 _bfd_relocate_contents for partial_inplace relocs and adjust
955 rel->r_addend for others.
956 <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
957 bfd_get_32, not at rel->r_addend.
959 2001-09-30 Alan Modra <amodra@bigpond.net.au>
961 * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
962 the old dir refcount, so we indirectly set them to init_refcount.
963 Short-circuit asserts when we've just verified they are true.
965 2001-09-29 Alan Modra <amodra@bigpond.net.au>
967 * section.c (struct sec): Remove kept_section.
968 (STD_SECTION): Remove kept_section initialisation.
969 (bfd_make_section_anyway): Here too.
970 * ecoff.c (bfd_debug_section): Remove kept_section initialisation.
971 * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
972 * elflink.h (elf_link_input_bfd): Set discarded link-once section
973 symbols to zero, and remove all code involved with kept_section
974 and tracking section symbol values.
975 * bfd-in2.h: Regenerate.
976 * configure.in: Bump version number.
977 * configure: Regenerate.
979 2001-09-29 Alan Modra <amodra@bigpond.net.au>
981 * elf64-ppc.c (struct ppc_dyn_relocs): New.
982 (IS_ABSOLUTE_RELOC): Define.
983 (struct ppc_link_hash_entry): New.
984 (struct ppc_link_hash_table): New.
985 (ppc_hash_table): Define.
986 (link_hash_newfunc): New function.
987 (ppc64_elf_link_hash_table_create): New function.
988 (create_got_section): New function.
989 (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
990 pointers to our dynamic sections in hash table.
991 (ppc64_elf_copy_indirect_symbol): New function.
992 (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
993 dynamic sections. Localise vars. Modify code for refcounts
994 starting from zero. Don't allocate here, or force symbols dynamic.
995 Don't copy all relocs if shared, select ones we need. Add code
996 to track possible copy relocs for non-shared link.
997 (ppc64_elf_gc_mark_hook): Update comment.
998 (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
999 (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
1000 code for reference counting garbage collection. Don't create .plt
1001 entries for functions that don't comply with ABI naming convention,
1002 and don't allocate .plt space here. Use short-cuts to dynamic
1003 sections. If possible, keep dynamic relocations instead of using
1004 copy relocs. Remove confused comments.
1005 (ppc_adjust_dynindx): Delete.
1006 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1007 (allocate_dynrelocs): New function.
1008 (readonly_dynrelocs): New function.
1009 (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
1010 space here, and call allocate_dynrelocs to allocate space for
1011 global .plt, .got and reloc sections. Use short-cuts to dynamic
1012 sections. Call readonly_dynrelocs to determine whether we need
1013 DT_TEXTREL. Don't generate section symbols here, the generic
1014 ELF linker code does it for us.
1015 (ppc64_elf_final_link): Call regular ELF backend linker rather than
1016 gc variety, since we do our own .got handling.
1017 (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
1018 dynamic section short-cuts. Localise vars, and delay setting.
1019 Handle unknown relocs in main switch statement. Replace ugly
1020 complicated tests for unresolvable relocs with a simple direct
1021 scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
1022 before allowing an undefined sym in a shared lib. Do R_*_DS tests
1023 after main switch, when we've set addend. Do non-addend insn
1024 tweaks before main swithc. Ignore input_section->vma when
1025 calculating reloc offsets as it's always zero. Rewrite dynamic
1026 reloc handling. Consolidate R_*_HA handling. Handle more relocs.
1027 (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
1028 of dynamic section short-cuts. Reorganise .plt handling code.
1029 Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
1030 Move expressions out of swap_reloca_out function calls.
1031 (ppc64_elf_reloc_type_class): New function.
1032 (ppc64_elf_info_to_howto): Move common expression to local var.
1033 (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
1034 of dynamic section short-cuts. Don't fiddle with section syms
1035 here as the ELF linker does it for us.
1036 (elf_backend_can_refcount): Define.
1037 (bfd_elf64_bfd_link_hash_table_create): Define.
1038 (elf_backend_copy_indirect_symbol): Define.
1039 (elf_backend_reloc_type_class): Define.
1040 (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
1042 2001-09-29 Alan Modra <amodra@bigpond.net.au>
1044 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
1045 (struct elf_backend_data): Add can_refcount.
1046 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
1047 got.refcount and plt.refcount from init_refcount.
1048 (_bfd_elf_link_hash_table_init): Set up init_refcount.
1049 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
1050 rather than got/plt.offset, and test for <= 0 rather than -1.
1051 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
1052 * elfxx-target.h (elf_backend_can_refcount): Define.
1053 (elfNN_bed): Init can_refcount.
1054 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
1055 (_bfd_generic_link_hash_newfunc): Likewise.
1056 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
1058 (elf_backend_can_refcount): Define.
1059 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
1061 (elf32_hppa_copy_indirect_symbol): Make static to agree with
1063 (elf_backend_can_refcount): Define.
1064 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
1066 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
1067 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
1068 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
1069 (elf_backend_can_refcount): Define.
1070 (elf_i386_copy_indirect_symbol): Make static to agree with
1071 prototype. Formatting fix.
1072 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
1074 (elf_backend_can_refcount): Define.
1075 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
1077 (elf_backend_can_refcount): Define.
1078 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
1080 (elf_backend_can_refcount): Define.
1081 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
1083 (elf_backend_can_refcount): Define.
1084 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
1086 (elf_backend_can_refcount): Define.
1088 * som.c (som_write_symbol_strings): Cast current_offset in
1089 bfd_seek call to match param type.
1091 2001-09-28 J. Brobecker <brobecker@gnat.com>
1093 * som.c (som_write_symbol_strings): Fix incorrect type of
1094 current_offset to match the function definition. Fixes a build
1095 failure on HPUX-11.00.
1097 2001-09-28 Richard Henderson <rth@redhat.com>
1099 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
1100 SEC_MERGE, SEC_STRINGS.
1102 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
1103 * bfd-in2.h: Rebuild.
1105 2001-09-28 Alan Modra <amodra@bigpond.net.au>
1107 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
1108 reloc code using x86_64_reloc_map.
1110 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
1111 no longer allocate here. Localise some vars to blocks where they
1113 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
1114 setting of vars until needed.
1115 (allocate_dynrelocs): Don't create a .plt entry without a reloc
1116 when symbol visibilty makes a function local.
1117 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
1118 swap_reloca_out function calls.
1119 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
1120 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
1123 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
1124 no longer allocate here. Localise some vars to blocks where they
1125 are used. Remove separate switch stmt for creating .got sec.
1126 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
1127 redundant casts and aborts. Delay setting of vars until needed.
1128 (allocate_dynrelocs): Remove redundant casts and aborts.
1129 (elf_i386_size_dynamic_sections): Move comment.
1130 (elf_i386_finish_dynamic_symbol): Move expressions out of function
1132 (elf_i386_relocate_section): Likewise. Comment typo fix.
1133 (elf_i386_finish_dynamic_sections): Migrate common code out of
1135 (elf_backend_* defines): Sort.
1137 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
1138 without a reloc when symbol visibilty makes a function local.
1140 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
1142 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
1143 conflicting float flags.
1145 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1147 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
1148 (elf_backend_copy_indirect_symbol): Define.
1149 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
1150 (struct elf_i386_link_hash_table): Likewise.
1151 (link_hash_newfunc): Get rid of unnecessary casts.
1152 (elf_i386_link_hash_table_create): Likewise.
1153 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
1154 Don't test input section SEC_READONLY here to try to avoid copy
1155 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
1156 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
1157 here to properly test whether we need copy relocs. Do so for weak
1160 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
1161 (elf_backend_copy_indirect_symbol): Define.
1162 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
1163 (stub_hash_newfunc): Get rid of unnecessary casts.
1164 (hppa_link_hash_newfunc): Likewise.
1165 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
1166 Don't test input section SEC_READONLY here to try to avoid copy
1167 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
1168 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
1169 here to properly test whether we need copy relocs. Do so for weak
1172 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1174 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
1175 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1176 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
1178 2001-09-25 Jakub Jelinek <jakub@redhat.com>
1180 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
1183 2001-09-25 H.J. Lu <hjl@gnu.org>
1185 * bfd-in2.h: Regenerated.
1187 2001-09-25 Alan Modra <amodra@bigpond.net.au>
1189 * elf32-i386.c: Add comment re linker function names and ordering.
1190 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
1191 (elf_i386_grok_prstatus): Move before linker functions.
1192 (elf_i386_grok_psinfo): Likewise.
1193 (elf_i386_fake_sections): Move so that functions are ordered.
1194 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
1196 2001-09-25 Alan Modra <amodra@bigpond.net.au>
1198 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
1201 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
1202 code handling this option.
1203 (LONG_BRANCH_VIA_PLT): Likewise.
1204 (RELATIVE_DYNRELOCS): Define as zero.
1205 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
1206 "pc_count" fields. Remove "section" field.
1207 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
1208 (elf32_hppa_check_relocs): Don't allocate space for dynamic
1209 relocs here. Instead, record all needed dynamic relocs via
1210 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
1211 in elf_section_data.
1212 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1213 (allocate_plt_and_got_and_discard_relocs): Rename to
1214 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
1215 (readonly_dynrelocs): New function.
1216 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
1217 Call readonly_dynrelocs to determine need for DT_TEXTREL.
1218 Rename "i" to "ibfd". Allocate space for local dyn relocs.
1219 (elf32_hppa_relocate_section): Make use of cached sreloc.
1220 (elf32_hppa_reloc_type_class): New function.
1221 (elf_backend_reloc_type_class): Define.
1223 2001-09-25 Alan Modra <amodra@bigpond.net.au>
1225 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
1226 and "sreloc" fields.
1227 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
1228 "pc_count" fields. Remove "section" field.
1229 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
1230 allocate space for dynamic relocs here. Instead, record all
1231 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
1232 pointer to "sreloc" section in elf_section_data.
1233 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1234 (allocate_plt_and_got_and_discard_relocs): Rename to
1235 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
1236 (readonly_dynrelocs): New function.
1237 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
1238 Rename "i" to "ibfd". Allocate space for local dyn relocs.
1239 (elf_i386_relocate_section): Make use of cached sreloc.
1241 2001-09-24 Alan Modra <amodra@bigpond.net.au>
1243 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
1244 reloc rather than just the type.
1245 (_bfd_elf_reloc_type_class): Likewise.
1246 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1247 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
1248 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
1249 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
1250 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
1251 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
1252 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
1253 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
1254 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
1255 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
1256 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
1257 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
1258 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
1259 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
1260 * elflink.h: Formatting fixes.
1261 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
1262 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
1263 o->contents to PTR. Update call to elf_backend_reloc_type_class.
1265 2001-09-22 John Reiser <jreiser@BitWagon.com>
1267 * elfcode.h (elf_object_p): Allow for no section header at all in
1268 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
1270 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
1272 * elfxx-ia64.c: Fix compile time warning messages.
1273 * coff-mcore.c: Fix compile time warning messages.
1274 * coff-ppc.c: Fix compile time warning messages.
1275 * coffcode.h: Fix compile time warning messages.
1276 * elf32-mips.c: Fix compile time warning messages.
1277 * elf64-alpha.c: Fix compile time warning messages.
1278 * libbfd.c: Fix compile time warning messages.
1279 * bfd-in2.h: Regenerate.
1281 2001-09-21 Alan Modra <amodra@bigpond.net.au>
1283 * Makefile.am: Run "make dep-am".
1284 * Makefile.in: Regenerate.
1286 * aoutx.h: Formatting fixes.
1287 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
1289 * linker.c: Replace bfd_get_filename with bfd_archive_filename
1292 2001-09-21 Alan Modra <amodra@bigpond.net.au>
1294 * bfd.c (bfd_archive_filename): New function.
1295 * bfd-in2.h: Regenerate.
1296 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
1297 in error messages where the bfd is an input bfd.
1298 * aout-cris.c: Likewise.
1299 * coff-arm.c: Likewise.
1300 * coff-mcore.c: Likewise.
1301 * coff-ppc.c: Likewise.
1302 * coff-rs6000.c: Likewise.
1303 * coff-sh.c: Likewise.
1304 * coff-tic54x.c: Likewise.
1305 * coff-tic80.c: Likewise.
1306 * coff64-rs6000.c: Likewise.
1307 * coffcode.h: Likewise.
1308 * coffgen.c: Likewise.
1309 * cofflink.c: Likewise.
1310 * ecofflink.c: Likewise.
1311 * elf-hppa.h: Likewise.
1313 * elf32-arm.h: Likewise.
1314 * elf32-cris.c: Likewise.
1315 * elf32-gen.c: Likewise.
1316 * elf32-hppa.c: Likewise.
1317 * elf32-i370.c: Likewise.
1318 * elf32-i386.c: Likewise.
1319 * elf32-m32r.c: Likewise.
1320 * elf32-mcore.c: Likewise.
1321 * elf32-mips.c: Likewise.
1322 * elf32-ppc.c: Likewise.
1323 * elf32-s390.c: Likewise.
1324 * elf32-sh.c: Likewise.
1325 * elf32-sparc.c: Likewise.
1326 * elf32-v850.c: Likewise.
1327 * elf64-alpha.c: Likewise.
1328 * elf64-gen.c: Likewise.
1329 * elf64-ppc.c: Likewise.
1330 * elf64-s390.c: Likewise.
1331 * elf64-sparc.c: Likewise.
1332 * elf64-x86-64.c: Likewise.
1333 * elflink.h: Likewise.
1334 * elfxx-ia64.c: Likewise.
1337 * libbfd.c: Likewise.
1338 * pdp11.c: Likewise.
1339 * pe-mips.c: Likewise.
1340 * peicode.h: Likewise.
1342 * xcofflink.c: Likewise.
1344 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
1346 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
1349 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
1352 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
1353 Consolidate error messages, and split long messages to two lines.
1355 2001-09-20 John Reiser <jreiser@BitWagon.com>
1357 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
1358 and info->allow_shlib_undefined.
1359 * elf32-cris.c: Likewise.
1360 * elf32-hppa.c: Likewise.
1361 * elf32-m68k.c: Likewise.
1362 * elf32-mips.c: Likewise.
1363 * elf32-ppc.c: Likewise.
1364 * elf32-s390.c: Likewise.
1365 * elf32-sh.c: Likewise.
1366 * elf32-sparc.c: Likewise.
1367 * elf64-alpha.c: Likewise.
1368 * elf64-hppa.c: Likewise.
1369 * elf64-ppc.c: Likewise.
1370 * elf64-s390.c: Likewise.
1371 * elf64-sparc.c: Likewise.
1372 * elf64-x86-64.c: Likewise.
1373 * elfxx-ia64.c: Likewise.
1375 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1377 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
1378 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
1379 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
1380 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
1381 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
1382 (bfd_default_scan): Use ISDIGIT instead of isdigit.
1383 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
1384 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
1385 isxdigit/isdigit/islower.
1386 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
1387 (mangle_name): Use ISALNUM instead of isalnum.
1388 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
1389 (scan): Use ISDIGIT instead of isdigit.
1390 * hosts/alphavms.h: Don't include <ctype.h>.
1391 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
1392 (ieee_object_p): Use TOUPPER instead of toupper.
1393 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
1394 (ihex_bad_byte): Use ISPRINT instead of isprint.
1395 * merge.c: Don't include <ctype.h>.
1396 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
1397 (oasys_write_sections): Use ISDIGIT instead of isdigit.
1398 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
1399 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
1400 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
1401 (mangle_name): Use ISALNUM instead of isalnum.
1402 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
1403 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
1404 isupper/islower/isdigit.
1405 (som_decode_symclass): Use TOUPPER instead of toupper.
1406 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
1407 (srec_bad_byte): Use ISPRINT instead of isprint.
1408 (srec_scan): Use ISSPACE instead of isspace.
1409 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
1410 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
1411 * syms.c: Include "safe-ctype.h"
1412 (islower, toupper): Remove macro definitions.
1413 (bfd_decode_symclass): Use TOUPPER instead of toupper.
1414 * vms-gsd.c: Don't include <ctype.h>.
1415 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
1416 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
1418 * vms-tir.c: Don't include <ctype.h>.
1420 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1422 * libbfd.c (bfd_bread): New function replacing bfd_read without
1423 redundant params. Allow reads up to (size_t) -2 in length.
1424 (bfd_bwrite): Similarly for bfd_write.
1425 (real_read): Return a size_t.
1426 (bfd_read): Call bfd_bread.
1427 (bfd_write): Call bfd_bwrite.
1428 (warn_deprecated): New function to annoy everybody.
1429 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
1430 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
1431 (bfd_read, bfd_write): Define as macro.
1432 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
1433 likewise for bfd_write. Ensure function args are correct size by
1434 using casts or local vars. In some cases, remove unnecessary
1435 casts. Formatting fixes, in some cases removing a large expression
1436 from function args by using a local var. Replace CONST with const.
1437 Modify variable types to avoid warings. Use casts to avoid
1438 warnings when using negative numbers in unsigned expressions.
1439 * aout-adobe.c: Likewise.
1440 * aout-arm.c: Likewise.
1441 * aout-cris.c: Likewise.
1442 * aout-encap.c: Likewise.
1443 * aout-ns32k.c: Likewise.
1444 * aout-target.h: Likewise.
1445 * aout-tic30.c: Likewise.
1446 * aoutf1.h: Likewise.
1447 * aoutx.h: Likewise.
1448 * archive.c: Likewise.
1449 * archures.c: Likewise.
1450 * bfd-in.h: Likewise.
1452 * binary.c: Likewise.
1454 * cache.c: Likewise.
1455 * cisco-core.c: Likewise.
1456 * coff-a29k.c: Likewise.
1457 * coff-alpha.c: Likewise.
1458 * coff-arm.c: Likewise.
1459 * coff-h8300.c: Likewise.
1460 * coff-h8500.c: Likewise.
1461 * coff-i386.c: Likewise.
1462 * coff-i860.c: Likewise.
1463 * coff-i960.c: Likewise.
1464 * coff-ia64.c: Likewise.
1465 * coff-m68k.c: Likewise.
1466 * coff-m88k.c: Likewise.
1467 * coff-mcore.c: Likewise.
1468 * coff-mips.c: Likewise.
1469 * coff-ppc.c: Likewise.
1470 * coff-rs6000.c: Likewise.
1471 * coff-sh.c: Likewise.
1472 * coff-sparc.c: Likewise.
1473 * coff-stgo32.c: Likewise.
1474 * coff-tic30.c: Likewise.
1475 * coff-tic54x.c: Likewise.
1476 * coff-tic80.c: Likewise.
1477 * coff-w65.c: Likewise.
1478 * coff-z8k.c: Likewise.
1479 * coff64-rs6000.c: Likewise.
1480 * coffcode.h: Likewise.
1481 * coffgen.c: Likewise.
1482 * cofflink.c: Likewise.
1483 * coffswap.h: Likewise.
1484 * corefile.c: Likewise.
1485 * cpu-arc.c: Likewise.
1486 * cpu-h8300.c: Likewise.
1487 * cpu-h8500.c: Likewise.
1488 * cpu-i960.c: Likewise.
1489 * cpu-ia64-opc.c: Likewise.
1490 * cpu-ns32k.c: Likewise.
1491 * cpu-pdp11.c: Likewise.
1492 * cpu-pj.c: Likewise.
1493 * cpu-sh.c: Likewise.
1494 * cpu-w65.c: Likewise.
1495 * cpu-z8k.c: Likewise.
1496 * dwarf1.c: Likewise.
1497 * dwarf2.c: Likewise.
1498 * ecoff.c: Likewise.
1499 * ecofflink.c: Likewise.
1500 * ecoffswap.h: Likewise.
1501 * elf-bfd.h: Likewise.
1502 * elf-hppa.h: Likewise.
1503 * elf-m10200.c: Likewise.
1504 * elf-m10300.c: Likewise.
1506 * elf32-arc.c: Likewise.
1507 * elf32-arm.h: Likewise.
1508 * elf32-avr.c: Likewise.
1509 * elf32-cris.c: Likewise.
1510 * elf32-fr30.c: Likewise.
1511 * elf32-gen.c: Likewise.
1512 * elf32-h8300.c: Likewise.
1513 * elf32-hppa.c: Likewise.
1514 * elf32-i370.c: Likewise.
1515 * elf32-i386.c: Likewise.
1516 * elf32-i860.c: Likewise.
1517 * elf32-m32r.c: Likewise.
1518 * elf32-m68k.c: Likewise.
1519 * elf32-mcore.c: Likewise.
1520 * elf32-mips.c: Likewise.
1521 * elf32-openrisc.c: Likewise.
1522 * elf32-pj.c: Likewise.
1523 * elf32-ppc.c: Likewise.
1524 * elf32-s390.c: Likewise.
1525 * elf32-sh-lin.c: Likewise.
1526 * elf32-sh.c: Likewise.
1527 * elf32-sparc.c: Likewise.
1528 * elf32-v850.c: Likewise.
1529 * elf64-alpha.c: Likewise.
1530 * elf64-hppa.c: Likewise.
1531 * elf64-mips.c: Likewise.
1532 * elf64-ppc.c: Likewise.
1533 * elf64-s390.c: Likewise.
1534 * elf64-sparc.c: Likewise.
1535 * elf64-x86-64.c: Likewise.
1536 * elfarm-nabi.c: Likewise.
1537 * elfcode.h: Likewise.
1538 * elfcore.h: Likewise.
1539 * elflink.c: Likewise.
1540 * elflink.h: Likewise.
1541 * elfxx-ia64.c: Likewise.
1542 * elfxx-target.h: Likewise.
1543 * format.c: Likewise.
1545 * hp300hpux.c: Likewise.
1546 * hppabsd-core.c: Likewise.
1547 * hpux-core.c: Likewise.
1548 * i386aout.c: Likewise.
1549 * i386dynix.c: Likewise.
1550 * i386linux.c: Likewise.
1551 * i386lynx.c: Likewise.
1552 * i386mach3.c: Likewise.
1553 * i386msdos.c: Likewise.
1554 * i386os9k.c: Likewise.
1557 * irix-core.c: Likewise.
1558 * libaout.h: Likewise.
1559 * libbfd-in.h: Likewise.
1560 * libbfd.c: Likewise.
1561 * libcoff-in.h: Likewise.
1562 * libecoff.h: Likewise.
1563 * libieee.h: Likewise.
1564 * libnlm.h: Likewise.
1565 * libpei.h: Likewise.
1566 * libxcoff.h: Likewise.
1567 * linker.c: Likewise.
1568 * lynx-core.c: Likewise.
1569 * m68klinux.c: Likewise.
1570 * merge.c: Likewise.
1571 * mipsbsd.c: Likewise.
1572 * netbsd-core.c: Likewise.
1574 * nlm32-alpha.c: Likewise.
1575 * nlm32-i386.c: Likewise.
1576 * nlm32-ppc.c: Likewise.
1577 * nlm32-sparc.c: Likewise.
1578 * nlmcode.h: Likewise.
1579 * nlmswap.h: Likewise.
1580 * ns32k.h: Likewise.
1581 * oasys.c: Likewise.
1582 * opncls.c: Likewise.
1583 * osf-core.c: Likewise.
1584 * pc532-mach.c: Likewise.
1585 * pdp11.c: Likewise.
1586 * pe-mips.c: Likewise.
1587 * peXXigen.c: Likewise.
1588 * peicode.h: Likewise.
1589 * ppcboot.c: Likewise.
1590 * ptrace-core.c: Likewise.
1591 * reloc.c: Likewise.
1592 * reloc16.c: Likewise.
1593 * riscix.c: Likewise.
1594 * rs6000-core.c: Likewise.
1595 * sco5-core.c: Likewise.
1596 * section.c: Likewise.
1598 * sparclinux.c: Likewise.
1599 * sparclynx.c: Likewise.
1601 * stabs.c: Likewise.
1602 * sunos.c: Likewise.
1604 * targets.c: Likewise.
1605 * tekhex.c: Likewise.
1606 * trad-core.c: Likewise.
1607 * versados.c: Likewise.
1608 * vms-gsd.c: Likewise.
1609 * vms-hdr.c: Likewise.
1610 * vms-misc.c: Likewise.
1611 * vms-tir.c: Likewise.
1614 * xcofflink.c: Likewise.
1615 * bfd-in2.h: Regenerate.
1616 * libbfd.h: Regenerate.
1617 * libcoff.h: Regenerate.
1619 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
1620 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
1621 (ufile_ptr): Define.
1622 (bfd_tell): Return a ufile_ptr.
1623 * libbfd.c (bfd_tell): Likewise.
1624 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
1626 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
1627 * aoutf1.h: Likewise.
1629 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
1630 larger than unsigned long can represent.
1632 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
1633 size overflows size_t.
1634 (bfd_realloc): Likewise.
1635 (bfd_zmalloc): Likewise.
1636 * opncls.c (bfd_alloc): Likewise.
1637 (bfd_zalloc): Likewise.
1638 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
1639 (bfd_alloc, bfd_zalloc): Update.
1641 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
1643 (bfd_get_signed_8): Likewise.
1644 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
1645 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
1646 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
1647 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
1648 * libaout.h: Likewise define and use here.
1649 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
1650 * aout-arm.c: Likewise.
1651 * aout-encap.c: Likewise.
1652 * aout-ns32k.c: Likewise.
1653 * aout-tic30.c: Likewise.
1654 * aoutf1.h: Likewise.
1655 * aoutx.h: Likewise.
1657 * coff-alpha.c: Likewise.
1658 * coff-h8300.c: Likewise.
1659 * coff-h8500.c: Likewise.
1660 * coff-i960.c: Likewise.
1661 * coff-ia64.c: Likewise.
1662 * coff-m88k.c: Likewise.
1663 * coff-mips.c: Likewise.
1664 * coff-ppc.c: Likewise.
1665 * coff-rs6000.c: Likewise.
1666 * coff-sh.c: Likewise.
1667 * coff-sparc.c: Likewise.
1668 * coff-stgo32.c: Likewise.
1669 * coff-tic30.c: Likewise.
1670 * coff-tic80.c: Likewise.
1671 * coff-w65.c: Likewise.
1672 * coff-z8k.c: Likewise.
1673 * coff64-rs6000.c: Likewise.
1674 * coffgen.c: Likewise.
1675 * cofflink.c: Likewise.
1676 * coffswap.h: Likewise.
1677 * ecoff.c: Likewise.
1678 * ecoffswap.h: Likewise.
1680 * elf32-mips.c: Likewise.
1681 * elf64-mips.c: Likewise.
1682 * hp300hpux.c: Likewise.
1683 * i386dynix.c: Likewise.
1684 * i386lynx.c: Likewise.
1685 * i386msdos.c: Likewise.
1686 * i386os9k.c: Likewise.
1687 * libpei.h: Likewise.
1688 * nlm32-alpha.c: Likewise.
1689 * nlm32-i386.c: Likewise.
1690 * nlm32-ppc.c: Likewise.
1691 * nlmcode.h: Likewise.
1692 * nlmswap.h: Likewise.
1693 * oasys.c: Likewise.
1694 * pdp11.c: Likewise.
1695 * pe-mips.c: Likewise.
1696 * peXXigen.c: Likewise.
1697 * peicode.h: Likewise.
1698 * riscix.c: Likewise.
1699 * sunos.c: Likewise.
1700 * xcofflink.c: Likewise.
1701 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
1702 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
1703 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
1704 equivalent H_PUT_* macro instead.
1705 (GETWORD, GETHALF, GETBYTE): Similarly.
1706 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1707 (GETWORD, GETHALF, GETBYTE): Likewise.
1708 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1710 * bfd-in.h (struct orl): Change "pos" to a union.
1711 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
1712 (bsd_write_armap): Here too.
1713 (coff_write_armap): And here.
1714 * coff-rs6000.c (xcoff_write_armap_old): And here.
1715 (xcoff_write_one_armap_big): And here.
1716 (xcoff_write_armap_big): And here.
1717 * ecoff.c (_bfd_ecoff_write_armap): And here.
1718 * elf64-mips.c (mips_elf64_write_armap): And here.
1720 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
1721 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
1722 * elf32-h8300.c (elf32_h8_mach): Likewise.
1723 * elf32-mips.c (elf_mips_mach): Likewise.
1724 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
1726 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
1728 (aix386_core_vec): Typo fix.
1730 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
1731 etc. to avoid redefined macro warning.
1732 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
1733 (MY(fix_pcrel_26)): Likewise.
1734 * aout-ns32k.c (MY(put_reloc)): Likewise.
1735 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
1736 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
1737 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
1739 * aout-encap.c: Include "file", not <file> for binutils headers.
1740 (encap_object_p): Half baked attempt to fix compile errors in
1741 code dealing with "magic".
1743 * aout-ns32k.c: Include "file", not <file> for binutils headers.
1744 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
1745 bfd_vma's rather than longs.
1746 * cpu-ns32k.c (ns32k_sign_extend): Delete.
1747 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
1748 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
1750 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
1751 Use unsigned comparisons.
1752 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
1753 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
1754 (_bfd_do_ns32k_reloc_contents): Likewise.
1755 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
1756 (_bfd_ns32k_get_immediate): Likewise.
1757 (_bfd_ns32k_put_displacement): Likewise.
1758 (_bfd_ns32k_put_immediate): Likewise.
1759 (bfd_reloc_status_type): Likewise.
1761 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
1763 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
1764 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
1765 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
1767 (record_toc): Use a bfd_signed_vma for our_toc_offset.
1768 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
1769 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
1771 (_bfd_elfcore_strndup): Likewise for "dup".
1772 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
1773 "name" to avoid shadowing.
1774 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
1775 definition of "off".
1776 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1777 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
1779 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
1781 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
1783 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
1785 (elf_link_input_bfd): Likewise.
1786 (elf_bfd_final_link): Remove duplicate innermost "off" var.
1787 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
1788 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
1790 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
1791 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
1792 (sunos_write_dynamic_symbol): Remove unused vars.
1793 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
1794 innermost "directory_name" and "file_name" vars.
1795 * tekhex.c (first_phase): Rename local var "type" to "stype".
1796 (tekhex_write_object_contents): Rename innermost "s" to "sym".
1797 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
1798 doing comparison at caller.
1799 (vms_esecflag_by_name): Likewise.
1800 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
1801 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
1802 (xcoff_write_global_symbol): Rename "p" param to "inf".
1804 * cisco-core.c: Add missing prototypes.
1805 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
1806 (cisco_core_file_failing_signal): Likewise.
1807 (cisco_core_file_matches_executable_p): Likewise.
1808 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
1809 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
1810 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
1811 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
1813 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
1814 thumb_glue_size and arm_glue_size.
1815 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
1817 * coff64-rs6000.c: Group prototypes together.
1819 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
1820 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
1822 * cpu-arc.c: Add missing prototypes.
1823 * cpu-h8500.c: Likewise.
1824 * cpu-i960.c: Likewise.
1825 * cpu-pj.c: Likewise.
1826 * cpu-sh.c: Likewise.
1827 * cpu-w65.c: Likewise.
1828 * cpu-z8k.c: Likewise.
1829 * elf32-fr30.c: Likewise.
1830 * elf32-h8300.c: Likewise.
1831 * elf32-i370.c: Likewise.
1832 * hpux-core.c: Likewise.
1833 * versados.c: Likewise.
1835 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
1836 * cpu-h8500.c: Likewise.
1837 * cpu-i960.c: Likewise.
1838 * cpu-z8k.c: Likewise.
1840 * cpu-ia64-opc.c: Correct comment.
1842 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
1844 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
1846 (bfd_elf32_write_out_phdrs): Likewise.
1847 (bfd_elf64_write_out_phdrs): Likewise.
1848 (elf_linker_section_pointers): Change addend to bfd_vma.
1849 (_bfd_elf_find_pointer_linker_section): Likewise.
1850 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
1851 filepos to unsigned file_ptr.
1852 (_bfd_elfcore_strndup): Change max param to size_t.
1853 * elf.c (_bfd_elfcore_make_pseudosection): As above.
1854 (_bfd_elfcore_strndup): Likewise.
1855 (_bfd_elf_find_pointer_linker_section): Likewise.
1857 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
1858 insn and sym_value to ints.
1860 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
1862 (elfcore_read_notes): Likewise.
1864 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
1865 param from unsigned char to int.
1866 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
1867 for info_to_howto call.
1868 (add_dynamic_entry): Define macro.
1869 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
1871 * elf32-cris.c (add_dynamic_entry): Define macro.
1872 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
1874 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
1875 (elf32_h8_object_p): Likewise.
1876 (elf32_h8_merge_private_bfd_data): Likewise.
1877 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
1879 * elf32-hppa.c (add_dynamic_entry): Define macro.
1880 (elf32_hppa_size_dynamic_sections): Use it.
1881 * elf32-i370.c (add_dynamic_entry): Define macro.
1882 (i370_elf_size_dynamic_sections): Use it.
1883 (i370_noop): Make static.
1884 * elf32-i386.c (add_dynamic_entry): Define macro.
1885 (elf_i386_size_dynamic_sections): Use it.
1886 * elf32-m68k.c (add_dynamic_entry): Define macro.
1887 (elf_m68k_size_dynamic_sections): Use it.
1888 * elf32-ppc.c (add_dynamic_entry): Define macro.
1889 (ppc_elf_size_dynamic_sections): Use it.
1890 * elf32-s390.c (add_dynamic_entry): Define macro.
1891 (elf_s390_size_dynamic_sections): Use it.
1892 * elf64-alpha.c (add_dynamic_entry): Define macro.
1893 (elf64_alpha_size_dynamic_sections): Use it.
1894 * elf64-hppa.c (add_dynamic_entry): Define macro.
1895 (elf64_hppa_size_dynamic_sections): Use it.
1896 * elf64-ppc.c (add_dynamic_entry): Define macro.
1897 (ppc64_elf_size_dynamic_sections): Use it.
1898 * elf64-s390.c (add_dynamic_entry): Define macro.
1899 (elf_s390_size_dynamic_sections): Use it.
1900 * elf64-sparc.c (add_dynamic_entry): Define macro.
1901 (sparc64_elf_size_dynamic_sections): Use it.
1902 * elf64-x86-64.c (add_dynamic_entry): Define macro.
1903 (elf64_x86_64_size_dynamic_sections): Use it.
1904 * elfxx-ia64.c (add_dynamic_entry): Define macro.
1905 (elfNN_ia64_size_dynamic_sections): Use it.
1907 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
1908 (v850_elf_perform_relocation): Make "r_type" param unsigned.
1910 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
1911 false if the first malloc fails rather than going via error_return.
1913 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
1915 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
1917 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
1919 * elfxx-ia64.c (global_sym_index): Return a long.
1921 * ieee.c (get_symbol): Use int rather than char param.
1922 (ieee_slurp_sections): Move "section" var to inner blocks.
1923 (copy_expression): Don't init "value" to zero or worry about
1924 clearing to zero after using.
1925 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
1928 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
1931 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
1932 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
1934 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
1936 * pc532-mach.c (MYNSX): Delete.
1937 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
1938 (write_object_contents): Correct prototype.
1940 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
1941 than unsigned short.
1943 * section.c (bfd_set_section_contents): Remove redundant
1944 "offset < 0" test. Check that "count" doesn't overflow size_t.
1945 (bfd_get_section_contents): Likewise.
1947 * som.c (som_fixup_formats): Add missing braces.
1948 (som_reloc_addend): Pass a bfd_vma for "addend".
1950 * srec.c (srec_write_record): Pass "type" as an unsigned int.
1951 (srec_write_symbols): Remove an unnecessary var.
1953 * targets.c (_bfd_target_vector): Sort entries. Sort externs
1955 * configure.in: Sort to match. Bump version number.
1956 * configure: Regenerate.
1958 * tekhex.c (move_section_contents): Assert offset == 0.
1960 * versados.c (new_symbol_string): Constify arg.
1961 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
1962 (versados_get_symbol_info): Make static.
1963 (versados_print_symbol): Likewise.
1964 (versados_get_reloc_upper_bound): Likewise.
1965 (versados_canonicalize_reloc): Likewise.
1967 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
1969 * elflink.h (elf_link_input_bfd): Fix typo in error message.
1971 2001-09-17 H.J. Lu <hjl@gnu.org>
1973 * dwarf1.c (parse_die): Take a new arg for the end of the
1974 section. Return false if die is beyond the section.
1975 (parse_functions_in_unit): Pass the end of the section to
1977 (_bfd_dwarf1_find_nearest_line): Likewise.
1979 2001-09-14 Michael Rauch <mrauch@netbsd.org>
1981 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
1982 just like R_SPARC_32.
1984 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1986 * configure.bfd: Add arm-openbsd target.
1988 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1990 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
1991 Add support for mips64.
1993 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
1995 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
1997 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
1999 * elf.c (prep_headers): Get the machine code from the elf
2001 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
2002 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
2003 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
2004 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
2005 * elf-arc.c (arc_elf_final_write_processing): Don't override
2006 e_machine, it's now properly set in prep_headers.
2007 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
2009 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
2010 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
2011 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
2012 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
2013 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
2014 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
2015 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
2016 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
2017 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
2018 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
2019 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
2020 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
2022 2001-09-11 Richard Henderson <rth@redhat.com>
2024 * elf64-alpha.c (elf64_alpha_section_flags): New.
2025 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
2027 2001-09-11 Richard Henderson <rth@redhat.com>
2029 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
2030 apply HINT relocations against dynamic symbols.
2032 2001-09-11 H.J. Lu <hjl@gnu.org>
2034 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
2036 2001-09-09 Richard Henderson <rth@redhat.com>
2038 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
2040 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
2041 following a call to a near function.
2043 2001-09-08 Richard Henderson <rth@redhat.com>
2045 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
2046 relocation errors. Fail gp-relative relocations against
2049 2001-09-08 Alan Modra <amodra@bigpond.net.au>
2051 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
2052 as well as DEF_DYNAMIC in test for avoided copy relocs.
2053 (allocate_plt_and_got_and_discard_relocs): Likewise.
2054 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
2055 (allocate_plt_and_got_and_discard_relocs): Likewise.
2057 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2059 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
2062 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2064 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
2066 (mips_elf64_howto_table_rel): Likewise.
2068 2001-09-05 Tom Rix <trix@redhat.com>
2070 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
2071 and syscall symbols.
2072 (write_global_symbol) : Same.
2073 (bfd_xcoff_export_symbol): Remove unused syscall param.
2074 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
2075 bfd_xcoff_import_symbol.
2077 * bfd-in2.h : Regenerate.
2079 2001-09-04 Richard Henderson <rth@redhat.com>
2081 * elf64-alpha.c (SKIP_HOWTO): New.
2082 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
2083 Fix sizes of 16-bit mem format relocs.
2084 (elf64_alpha_reloc_map): Update to match.
2085 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
2086 (elf64_alpha_relax_without_lituse): Likewise.
2087 (elf64_alpha_check_relocs): Handle GPREL16.
2088 (elf64_alpha_relocate_section): Likewise.
2089 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
2090 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
2091 * bfd-in2.h, libbfd.h: Rebuild.
2093 2001-09-04 Jeff Law <law@redhat.com>
2095 * elf32-h8300.c (elf32_h8_relax_section): New function.
2096 (elf32_h8_relax_delete_bytes): Likewise.
2097 (elf32_h8_symbol_address_p): Likewise.
2098 (elf32_h8_get_relocated_section_contents): Likewise.
2099 (bfd_elf32_bfd_relax_section): Define.
2100 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
2102 * elf32-h8300.c (special): New function.
2103 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
2105 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
2106 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
2107 Fix minor problems with 8bit and 16bit PC relative relocations.
2109 2001-09-01 Andreas Jaeger <aj@suse.de>
2111 * vms-tir.c: Add missing prototypes.
2112 * vms-hdr.c: Likewise.
2113 * vms-gsd.c: Likewise.
2114 * vms-misc.c: Likewise.
2116 2001-08-31 H.J. Lu <hjl@gnu.org>
2118 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
2119 with bad relocation.
2121 2001-08-31 Eric Christopher <echristo@redhat.com>
2122 Jason Eckhardt <jle@redhat.com>
2124 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
2125 mips32_4k and mips64.
2126 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
2127 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
2128 * bfd/cpu-mips.c: Ditto.
2129 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
2130 * bfd/bfd-in2.h: Regenerate.
2132 2001-08-31 Jakub Jelinek <jakub@redhat.com>
2134 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
2135 value into R_ALPHA_RELATIVE's addend.
2136 (elf64_alpha_finish_dynamic_symbol): Likewise.
2138 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
2140 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
2141 recomputed addend during relocatable link if not USE_REL.
2143 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
2146 2001-08-30 H.J. Lu <hjl@gnu.org>
2148 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
2150 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
2151 relocations for weak definitions.
2153 2001-08-30 H.J. Lu <hjl@gnu.org>
2155 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
2156 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
2157 * Makefile.in: Rebuild.
2159 2001-08-30 H.J. Lu <hjl@gnu.org>
2161 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
2162 dynamic relocation for undefined weak symbols when creating
2163 executables. Check h->root.root.type, instead of h->root.type.
2165 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2167 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2168 default from coff to elf.
2170 2001-08-29 Jeff Law <law@redhat.com>
2172 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
2174 (h8_reloc_map): Similarly.
2175 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
2176 Add support for PC relative relocations.
2178 * elf32-h8300.c: Put all prototypes together.
2179 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
2180 (elf32_h8_final_link_relocate): New function for linker.
2181 (elf32_h8_relocate_section): Similarly.
2182 (elf_backend_relocate_section): Define.
2184 * cpu-h8300.c (h8300_scan, compatible): Prototype.
2185 (h8300_scan): Handle architecture:machine encodings typically
2186 found in linker scripts.
2187 * elf.c (prep_headers): Do not try to do H8 machine recognition
2189 * elf32-h8300.c: Add some missing prototypes.
2190 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
2191 (elf32_h8_object_p): Similarly.
2193 2001-08-29 Tom Rix <trix@redhat.com>
2195 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
2196 does not follow a XTY_SD.
2198 2001-08-29 Alan Modra <amodra@bigpond.net.au>
2200 * targmatch.sed: Delete case statements.
2201 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
2204 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
2206 * Makefile.am (elf32-h8300.lo): New target.
2207 * config.bfd (h8300*-*-elf): New case.
2208 * configure.in (bfd_elf32_h8300_vec): New case.
2209 * elf.c (prep_headers): Add case for bfd_arch_h8300.
2210 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
2211 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
2212 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
2213 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
2214 * elf32-h8300.c: New file.
2215 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
2217 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2219 * sparclynx.c: Add missing prototypes.
2220 * coff-mcore.c: Add missing prototypes.
2221 * elf32-pj.c: Add missing prototypes.
2222 * nlm32-sparc.c: Add missing prototypes.
2223 * oasys.c: Add missing prototypes.
2224 * pdp11.c: Add missing prototypes.
2225 * pe-mips.c: Add missing prototypes.
2226 * riscix.c: Add missing prototypes.
2228 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
2230 * elf32-i386.c: Add missing prototypes.
2231 * elf32-ppc.c: Likewise.
2232 * elf32-sh-lin.c: Likewise.
2233 * elfarm-nabi.c: Likewise.
2235 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
2237 * elf32-i386.c (elf_i386_grok_prstatus): New function.
2238 (elf_i386_grok_psinfo): New function.
2239 (elf_backend_grok_prstatus): Define.
2240 (elf_backend_grok_psinfo): Likewise.
2241 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
2242 (ppc_elf_grok_psinfo): New function.
2243 (elf_backend_grok_prstatus): Define.
2244 (elf_backend_grok_psinfo): Likewise.
2245 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
2246 (elf32_shlin_grok_psinfo): New function.
2247 (elf_backend_grok_prstatus): Define.
2248 (elf_backend_grok_psinfo): Likewise.
2249 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
2250 (elf32_arm_nabi_grok_psinfo): New function.
2251 (elf_backend_grok_prstatus): Define.
2252 (elf_backend_grok_psinfo): Likewise.
2254 2001-08-27 H.J. Lu <hjl@gnu.org>
2256 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
2258 (mips_elf_calculate_relocation): Create dynamic relocation for
2259 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
2262 2001-08-27 H.J. Lu <hjl@gnu.org>
2264 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
2265 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
2266 (_bfd_elf32_mips_grok_prstatus): Likewise.
2267 (_bfd_elf32_mips_grok_psinfo): Likewise.
2268 (_bfd_mips_elf_hide_symbol): Make it static and cast to
2269 `struct mips_elf_link_hash_entry *'.
2270 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
2272 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2274 * mipsbsd.c: Add missing prototypes.
2275 * hp300hpux.c: Add missing prototypes.
2276 * i386aout.c: Add missing prototypes.
2277 * i386lynx.c: Add missing prototypes.
2278 * i386mach3.c: Add missing prototypes.
2279 * i386msdos.c: Add missing prototypes.
2280 * i386os9k.c: Add missing prototypes.
2282 2001-08-27 Linus Nordberg <linus@swox.se>
2283 Torbjorn Granlund <tege@swox.com>
2284 Staffan Ulfberg <staffanu@swox.se>
2285 Alan Modra <amodra@bigpond.net.au>
2287 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
2288 targ64_selvecs for 32 bit powerpc targets.
2289 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
2290 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
2292 * Makefile.in: Regenerate.
2293 * configure.in: Add elf64_powerpc vecs.
2294 * configure: Regenerate.
2295 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
2296 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
2297 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
2298 * elf64-ppc.c: New file.
2299 * reloc.c: Add powerpc64 relocs.
2300 * libbfd.h: Regenerate.
2301 * bfd-in2.h: Regenerate.
2303 2001-08-27 Andreas Schwab <schwab@suse.de>
2305 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
2306 reloc is against read-only section.
2307 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
2308 looking up section names for DT_TEXTREL.
2309 (elf32_m68k_reloc_type_class): New function.
2310 (elf_backend_reloc_type_class): Define.
2312 2001-08-27 Andreas Jaeger <aj@suse.de>
2314 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
2315 reloc is against read-only section.
2316 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
2317 looking up section names for DT_TEXTREL.
2318 (elf_s390_reloc_type_class): New.
2319 (elf_backend_reloc_type_class): Define.
2321 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
2322 reloc is against read-only section.
2323 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
2324 looking up section names for DT_TEXTREL.
2325 (elf_s390_reloc_type_class): New.
2326 (elf_backend_reloc_type_class): Define.
2328 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
2329 is against read-only section.
2330 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2331 looking up section names for DT_TEXTREL.
2332 (ppc_elf_reloc_type_class): New.
2333 (elf_backend_reloc_type_class): Define.
2335 2001-08-26 Andreas Jaeger <aj@suse.de>
2337 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
2338 reloc is against read-only section.
2339 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
2340 looking up section names for DT_TEXTREL.
2341 (elf_cris_reloc_type_class): New.
2342 (elf_backend_reloc_type_class): Define.
2344 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
2345 against read-only section.
2346 (elf_backend_reloc_type_class): Define.
2347 (sh_elf_reloc_type_class): New.
2348 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2349 looking up section names for DT_TEXTREL.
2351 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
2352 reloc is against read-only section.
2353 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
2354 looking up section names for DT_TEXTREL.
2355 (elf32_arm_reloc_type_class): New.
2356 (elf_backend_reloc_type_class): Define.
2358 2001-08-25 Andreas Jaeger <aj@suse.de>
2360 * oasys.c: Add missing prototypes.
2362 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
2363 attribute for parameter.
2364 * elf.c (_bfd_elf_reloc_type_class): Likewise.
2366 * versados.c (get_4): Make static.
2367 (get_10): Make static.
2368 Add missing prototypes.
2369 (process_esd): Fix call to versados_new_symbol.
2371 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
2373 * coff-a29k.c: Add missing prototypes.
2374 * coff-apollo.c: Add missing prototypes.
2375 * coff-arm.c: Add missing prototypes.
2376 * coff-i860.c: Add missing prototypes.
2377 * coff-rs6000.c: Add missing prototypes.
2378 * coff-tic80.c: Add missing prototypes.
2379 * elf-m10200.c: Add missing prototypes.
2380 * elf-m10300.c: Add missing prototypes.
2381 * elf32-arm.h: Add missing prototypes.
2382 * elf32-d10v.c: Add missing prototypes.
2383 * elf32-m32r.c: Add missing prototypes.
2384 * elf32-mcore.c: Add missing prototypes.
2385 * elf32-openrisc.c: Add missing prototypes.
2386 * elf32-sh.c: Add missing prototypes.
2387 * elf32-sparc.c: Add missing prototypes.
2388 * elf32-v850.c: Add missing prototypes.
2389 * elfarm-nabi.c: Add missing prototypes.
2390 * elfarm-oabi.c: Add missing prototypes.
2392 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2394 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
2395 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
2397 2001-08-24 H.J. Lu <hjl@gnu.org>
2399 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
2402 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
2404 * elf-bfd.h (elf_hash_table): Revert definition.
2405 (is_elf_hash_table): New macro.
2406 * elflink.h (elf_link_add_object_symbols): Test
2407 is_elf_hash_table before accessing ELF only fields in hash
2409 (elf_link_create_dynamic_sections): Fail if not using an ELF
2411 (elf_add_dynamic_entry): Fail if not using an ELF hash
2413 (elf_link_record_local_dynamic_symbol): Fail if not using an
2415 (size_dynamic_sections): Fail if not using an ELF hash
2417 (elf_adjust_dynamic_symbol): Fail if not using an ELF
2419 (elf_bfd_final_link): Fail if not using an ELF hash
2422 2001-08-24 H.J. Lu <hjl@gnu.org>
2424 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
2425 table is not an ELF linker hash table.
2427 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
2428 table type to bfd_link_elf_hash_table.
2430 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
2433 * linker.c (_bfd_link_hash_table_init): Set the linker hash
2434 table type to bfd_link_generic_hash_table.
2436 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2438 * bfd.c (bfd_alt_mach_code): New function.
2439 * bfd-in2.h: Rebuilt.
2441 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2443 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
2444 `type' field in the hash entry when deciding whether to follow a
2447 2001-08-24 Jakub Jelinek <jakub@redhat.com>
2449 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
2451 (elf_link_sort_relocs): Adjust accordingly.
2453 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
2454 (elf64_alpha_check_relocs): Set it if section this reloc is against
2455 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
2457 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
2458 is is against read-only section.
2459 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
2460 check section names.
2461 (elf64_alpha_reloc_type_class): New.
2462 (elf_backend_reloc_type_class): Define.
2464 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2466 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
2469 2001-08-23 Andreas Jaeger <aj@suse.de>
2471 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
2472 the reloc is against read-only section.
2473 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
2474 of looking up section names for DT_TEXTREL.
2475 (elf64_x86_64_reloc_type_class): New.
2476 (elf_backend_reloc_type_class): Define.
2478 2001-08-23 H.J. Lu <hjl@gnu.org>
2480 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
2481 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
2483 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
2484 bfd_print_symbol_vandf.
2485 * coffgen.c (coff_print_symbol): Likewise.
2486 * elf.c (bfd_elf_print_symbol): Likewise.
2487 * ieee.c (ieee_print_symbol): Likewise.
2488 * nlmcode.h (nlm_print_symbol): Likewise.
2489 * oasys.c (oasys_print_symbol): Likewise.
2490 * pdp11.c (NAME(aout,print_symbol)): Likewise.
2491 * som.c (som_print_symbol): Likewise.
2492 * srec.c (srec_print_symbol): Likewise.
2493 * tekhex.c (tekhex_print_symbol): Likewise.
2494 * versados.c (versados_print_symbol): Likewise.
2495 * vms.c (vms_print_symbol): Likewise.
2497 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
2498 with bfd_fprintf_vma.
2499 (bfd_elf_print_symbol): Likewise.
2500 * syms.c (bfd_print_symbol_vandf): Likewise.
2502 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2504 * aoutf1.h (sunos_write_object_contents): Silence compile time
2506 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
2508 * bout.c: Add missing function prototypes. Fix formatting.
2509 * coff-z8k.c: Add missing function prototypes. Fix formatting.
2510 * coff-w65.c: Add missing function prototypes. Fix formatting.
2511 * coff-h8500.c: Add missing function prototypes. Fix formatting.
2512 * coff-h8300.c: Add missing function prototypes. Fix formatting.
2513 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
2514 * coff-tic30.c: Add missing function prototypes. Fix formatting.
2515 * coff-m68k.c: Add missing function prototypes. Fix formatting.
2516 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
2517 * coff-sh.c: Add missing function prototypes. Fix formatting.
2519 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2521 * elf-bfd.h (enum elf_reloc_type_class): New.
2522 (struct elf_backend_data): Add elf_backend_reloc_type_class.
2523 (_bfd_elf_reloc_type_class): New.
2524 * elfxx-target.h (elf_backend_reloc_type_class): Define.
2525 (elfNN_bed): Add elf_backend_reloc_type_class.
2526 * elf.c (_bfd_elf_reloc_type_class): New.
2527 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
2528 is against read-only section.
2529 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
2530 looking up section names for DT_TEXTREL.
2531 (elf_i386_reloc_type_class): New.
2532 (elf_backend_reloc_type_class): Define.
2533 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
2534 reloc is against read-only section.
2535 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
2536 looking up section names for DT_TEXTREL.
2537 (elf32_sparc_reloc_type_class): New.
2538 (elf_backend_reloc_type_class): Define.
2539 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
2540 reloc is against read-only section.
2541 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2542 looking up section names for DT_TEXTREL.
2543 (sparc64_elf_reloc_type_class): New.
2544 (elf_backend_reloc_type_class): Define.
2545 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
2546 (elfNN_ia64_hash_table_create): Clear ia64_info.
2547 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
2549 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
2550 instead of looking up section names for DT_TEXTREL.
2551 (elfNN_ia64_reloc_type_class): New.
2552 (elf_backend_reloc_type_class): Define.
2553 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
2554 (struct elf_link_sort_rela): New.
2555 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
2556 (elf_bfd_final_link): Call elf_link_sort_relocs.
2557 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
2560 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2562 * configure.in (x86-bsdi): No corefile support.
2563 * configure: Regenerate.
2565 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
2567 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
2570 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
2572 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
2573 the alignment of dwarf2 linkonce sections to 0.
2574 * coff-sto32.c: Likewise.
2576 2001-08-20 Andreas Jaeger <aj@suse.de>
2578 * coff-sparc.c: Add missing prototypes.
2579 * elf32-s390.c: Likewise.
2580 * elf32-i960.c: Likewise.
2581 * aout-target.h: Likewise.
2583 2001-08-20 H.J. Lu <hjl@gnu.org>
2585 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
2586 (elf_num_section_syms): New for num_section_syms.
2588 * elf.c (elf_map_symbols): Set num_section_syms.
2589 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
2590 the section symbol index.
2592 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
2594 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
2595 select the generic has table creator. All elf backends need elf
2596 specific fields in the hash table.
2598 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2600 * archive.c (offsetof): Remove define.
2603 * sysdep.h (offsetof): Define.
2605 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2607 * bfd.c (bfd_get_gp_size): Return an unsigned int.
2608 (bfd_set_gp_size): Make param unsigned.
2609 * bfd-in2.h: Regenerate.
2610 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
2611 than calling bfd_get_gp_size.
2612 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
2613 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
2615 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2617 * linker.c (default_fill_link_order): Handle four byte fill value.
2619 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2621 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
2623 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
2625 * elf64-mips.c (UNUSED_RELOC): Define.
2626 (mips_elf64_howto_table_rel): Use it.
2627 (mips_elf64_howto_table_rela): Here too.
2628 (mips_elf64_write_relocs): Fix signed/unsigned warning.
2630 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
2632 * coffgen.c (coff_print_symbol): Fix warnings.
2633 (coff_find_nearest_line): Likewise.
2634 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
2635 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
2636 * format.c (bfd_check_format_matches): Likewise.
2637 (bfd_set_format): Likewise.
2638 * coff-ia64.c: Add missing prototypes.
2639 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
2640 signed to silence warnings.
2641 (elf64_alpha_relocate_section): Likewise.
2642 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
2643 (elf64_alpha_add_symbol_hook): Likewise.
2644 (elf64_alpha_final_link): Likewise.
2645 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
2646 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
2647 (elf64_alpha_size_got_sections): Likewise.
2648 * elfxx-ia64.c: Add missing prototypes.
2649 (elfNN_ia64_relocate_section): Fix warning.
2650 (elfNN_ia64_unwind_entry_compare): Make params const.
2652 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2654 * config.bfd (targ64_selvecs): New.
2655 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
2657 * bfd-in.h (BFD_VERSION): Remove wrong comment.
2658 (BFD_DEFAULT_TARGET_SIZE): New.
2659 (BFD_ARCH_SIZE): Comment.
2660 * configure.in (target_size): New. Set instead of target64 in
2661 selvecs case statement. Set target64 from it.
2662 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
2663 * bfd-in2.h: Regenerate.
2664 * configure: Regenerate.
2666 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2668 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
2669 (bfd_errmsgs): Add corresponding message.
2670 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
2671 finding an archive that contains different format object files.
2672 Return bfd_error_wrong_object_format for this case.
2673 * format.c: Formatting fixes. s/CONST/const/.
2674 (bfd_check_format_matches): Accept archives that give
2675 bfd_error_wrong_object_format if no full match is found. Tidy
2676 code handling matching_vector. Don't return a pointer to freed
2677 memory in `matching'. Handle ambiguous matches as for partial
2679 * bfd-in2.h: Regenerate.
2681 2001-08-15 Alan Modra <amodra@bigpond.net.au>
2683 * libieee.h (common_header_type): Add last_byte field.
2685 * ieee.c: Add missing prototypes. Some format fixes.
2686 (struct output_buffer_struct): Move for availability to prototypes.
2687 (ieee_part_after): New function.
2688 (ieee_slurp_debug): Use it here.
2689 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
2690 ieee_part_after to set last_byte to one past end of current part.
2692 (ieee_pos): Pass in ieee_data_struct rather than bfd.
2694 (parse_expression): Don't go beyond the end of the current part.
2695 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
2696 (ieee_get_symtab_upper_bound, ieee_get_symtab,
2697 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
2698 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
2699 ieee_set_section_contents, ieee_write_object_contents,
2700 ieee_make_empty_symbol): Make static.
2701 (ieee_archive_p): Correct comments regarding bfd_read.
2702 (ieee_object_p): Similarly.
2703 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
2704 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
2705 input_bfd, output_bfd, output_buffer.
2706 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
2707 do_with_relocs, ie. as a symbol for relocatable files.
2708 (ieee_vec): Add comments showing functions referenced by macros.
2710 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2712 * aout-tic30.c: Add missing prototypes. Fix formatting.
2713 * aout-ns32k.c: Add missing prototypes. Fix formatting.
2714 * peXXigen.c: Add missining prototypes. Fix formatting.
2715 * aout-adobe.c: Add missining prototypes. Fix formatting.
2717 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
2719 * elf32-v850.c: Add missing function prototypes.
2720 Fix some formatting.
2722 * cpu-v850.c: Add missing function prototype.
2723 Fix some formatting.
2725 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
2727 * elf-bfd.h (struct elf_backend_data): Add new fields
2728 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
2729 (bfd_elf_sprintf_vma): Rename function prototype to
2730 '_bfd_elf_sprintf_vma'.
2731 (bfd_elf_fprintf_vma): Rename function prototype to
2732 '_bfd_elf_fprintf_vma'.
2733 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
2734 directly, instead indirect via the elf_backend_data structure.
2735 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
2736 instead indirect via the elf_backend_data structure.
2737 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
2738 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
2739 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
2741 (elf_backend_fprintf_vma): Initialise if not already defined.
2742 (struct elf_backend_data): Initialise the
2743 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
2745 2001-08-10 Andreas Jaeger <aj@suse.de>
2747 * elf64-sparc.c: Add missing prototypes.
2748 * elf32-cris.c: Likewise.
2749 * elf32-i370.c: Likewise.
2750 * elf64-hppa.c: Likewise.
2751 * elf64-s390.c: Likewise.
2753 2001-08-10 Andreas Jaeger <aj@suse.de>
2755 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
2756 Add prototypes where needed.
2758 2001-08-10 H.J. Lu <hjl@gnu.org>
2760 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
2761 (bfd_fprintf_vma): Likewise.
2763 2001-08-10 H.J. Lu <hjl@gnu.org>
2765 * bfd.c (bfd_sprintf_vma): Don't return void.
2766 (bfd_fprintf_vma): Likewise.
2768 2001-08-10 Andreas Jaeger <aj@suse.de>
2770 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2772 * configure: Regenerate.
2774 2001-08-10 Alan Modra <amodra@bigpond.net.au>
2776 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
2777 warning if not BFD64. Add braces so emacs auto format works.
2778 (bfd_elf_fprintf_vma): Likewise.
2780 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
2782 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
2783 param to agree with libxcoff.h.
2784 (xcoff_swap_ldhdr_out): Likewise.
2785 (xcoff_swap_ldsym_in): Likewise.
2786 (xcoff_swap_ldsym_out): Likewise.
2787 (xcoff_swap_ldrel_in): Likewise.
2788 (xcoff_swap_ldrel_out): Likewise.
2789 (xcoff_create_csect_from_smclas): Likewise.
2790 * coff64-rs6000.c: Add missing prototypes.
2791 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
2793 (xcoff64_swap_ldhdr_out): Likewise.
2794 (xcoff64_swap_ldsym_in): Likewise.
2795 (xcoff64_swap_ldsym_out): Likewise.
2796 (xcoff64_swap_ldrel_in): Likewise.
2797 (xcoff64_swap_ldrel_out): Likewise.
2798 (xcoff64_ppc_relocate_section): Make static.
2799 (xcoff64_slurp_armap): Likewise.
2800 (xcoff64_archive_p): Likewise.
2801 (xcoff64_openr_next_archived_file): Likewise.
2802 (xcoff64_sizeof_headers): Likewise.
2803 (xcoff64_is_lineno_count_overflow): Likewise.
2804 (xcoff64_is_reloc_count_overflow): Likewise.
2805 (xcoff64_loader_symbol_offset): Likewise.
2806 (xcoff64_loader_reloc_offset): Likewise.
2807 * elf64-gen.c: Add missing prototypes.
2809 2001-08-09 H.J. Lu <hjl@gnu.org>
2811 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
2812 (bfd_elf_fprintf_vma): Likewise.
2814 2001-08-09 H.J. Lu <hjl@gnu.org>
2816 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
2819 * bfd-in2.h: Regenerated.
2821 2001-08-09 H.J. Lu <hjl@gnu.org>
2823 * bfd-in.h (bfd_sprintf_vma): New prototype.
2824 (bfd_fprintf_vma): Likewise.
2825 (bfd_elf_sprintf_vma): Likewise.
2826 (bfd_elf_fprintf_vma): Likewise.
2827 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
2828 * bfd-in2.h: Regenerated.
2830 * bfd.c (bfd_sprintf_vma): New. Defined.
2831 (bfd_fprintf_vma): Likewise.
2833 * elf.c (bfd_elf_sprintf_vma): New. Defined.
2834 (bfd_elf_fprintf_vma): Likewise.
2836 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2838 * coff-rs6000.c: Add missing prototypes.
2839 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
2840 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
2841 xcoff_loader_reloc_offset): Make static.
2842 * dwarf1.c: Add missing prototypes.
2843 * dwarf2.c: Add missing prototypes.
2844 (struct abbrev_info): Move definition.
2845 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
2846 * elf.c: Add missing prototypes.
2847 * elf32-gen.c: Likewise.
2848 * elf32-i386.c: Likewise.
2849 * elf32-ppc.c: Likewise.
2850 (ppc_elf_sort_rela): Use PTR instead of "void *".
2851 * elflink.h: Add missing prototypes. Formatting fixes.
2852 * merge.c: Add missing prototypes.
2853 (last4_eq): Use PTR instead of "void *".
2854 (last_eq): Likewise.
2855 * syms.c: Add missing prototypes.
2857 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2859 * bfd.c: Fix formatting.
2860 * bfd-in2.h: Regenerate.
2862 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2864 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
2865 true (this target uses REL relocations) and 'pcrel_offset' to
2866 false (the PC is implied, not stored in the offset).
2868 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2870 1999-10-19 Linus Nordberg <linus@swox.se>
2871 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
2872 * elfxx-target.h (elf_backend_want_got_sym): Define.
2873 (elfNN_bed): Add elf_backend_want_got_sym.
2874 * elflink.c (_bfd_elf_create_got_section): Define
2875 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
2877 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
2879 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
2880 (find_rela_addend): New function.
2881 (parse_comp_unit): Call it to find the abbrev offset addend.
2882 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
2883 members of dwarf2_debug as debugging information is read.
2885 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
2887 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
2888 targets as well as sh-pe.
2890 2001-08-03 Ben Harris <bjh21@netbsd.org>
2892 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
2893 reloc from start of section when computing value for R_ARM_REL32
2896 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2898 From H.J. Lu <hjl@gnu.org>
2899 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
2900 keep relocs for undefined syms if there are no dynamic sections in
2902 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
2904 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2906 * cofflink.c (coff_link_check_ar_symbols): also search for
2907 __imp__symbol as well as _symbol.
2908 * linker.c (_bfd_generic_link_add_archive_symbols): also
2909 search for __imp__symbol as well as _symbol.
2911 2001-08-01 Adam Nemet <anemet@lnxw.com>
2913 * elf.c (elf_sort_sections): Return zero only as the last step.
2915 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
2917 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
2919 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
2920 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
2923 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2925 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
2926 to match corresponding bfd_coff_backend data member.
2928 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2930 * Makefile.am: Update dependencies with "make dep-am".
2931 * Makefile.in: Regenerate
2933 2001-07-15 H.J. Lu <hjl@gnu.org>
2935 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
2936 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
2937 * Makefile.in: Regenerate.
2939 2001-07-11 H.J. Lu <hjl@gnu.org>
2941 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
2942 flags when creating the reloc section if the ALLOC flag in the
2943 source section is set.
2945 2001-07-11 Steve Ellcey <sje@cup.hp.com>
2947 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
2948 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
2949 * bfd-in2.h: Regenerate.
2950 * libbfd.h: Regenerate.
2951 * elfxx-ia64.c (ia64_howto_table): Define how to handle
2953 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
2954 (elfNN_ia64_check_relocs): Likewise.
2955 (elfNN_ia64_install_value): Likewise.
2956 (elfNN_ia64_relocate_section): Likewise.
2958 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2960 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
2962 (elf32_sparc_check_relocs): Likewise.
2963 Only create .rela section for alloced sections in shared libraries.
2964 (elf32_sparc_relocate_section): Likewise.
2965 Remove redundant check.
2966 Optimize unaligned reloc usage.
2967 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
2970 2001-07-11 H.J. Lu <hjl@gnu.org>
2972 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
2973 ALLOC|LOAD flags as the source section for debugging sections
2974 when creating the reloc section.
2976 2001-07-05 Jim Wilson <wilson@redhat.com>
2978 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
2979 the section of the bigger symbol.
2981 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
2983 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
2985 * peicode.h (coff_swap_scnhdr_in): For sections containing
2986 uninitialised data, only set their size to s_paddr if this does
2987 not reset their size to zero. MS's latest compilers will set
2990 2001-07-04 H.J. Lu <hjl@gnu.org>
2992 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
2993 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
2996 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
2998 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
3000 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
3001 sections being discarded.
3003 2001-06-30 Alan Modra <amodra@bigpond.net.au>
3005 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
3006 instead of _bfd_elfcore_section_from_phdr.
3007 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
3008 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
3009 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
3010 (elfcore_grok_prstatus): Likewise.
3011 (elfcore_grok_lwpstatus): Likewise.
3012 (bfd_get_elf_phdr_upper_bound): Likewise.
3013 (elfcore_make_note_pseudosection): Formatting.
3014 (_bfd_elfcore_strndup): Formatting.
3015 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
3016 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
3018 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
3020 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
3021 and _bfd_elfcore_strndup.
3022 (struct elf_backend_data): Add elf_backend_grok_prstatus
3023 and elf_backend_grok_psinfo.
3024 * elf.c (_bfd_elfcore_make_pseudosection): New function.
3025 (elfcore_grok_prstatus): Use it.
3026 (elfcore_make_note_pseudosection): Likewise.
3027 (elfcore_strndup): Rename to...
3028 (_bfd_elfcore_strndup): Here, and make global.
3029 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
3030 (elfcore_grok_note): Call elf_backend_grok_prstatus
3031 and elf_backend_grok_psinfo if available.
3032 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
3033 (_bfd_elf32_mips_grok_psinfo): New function.
3034 (elf_backend_grok_prstatus): Define.
3035 (elf_backend_grok_psinfo): Define.
3036 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
3037 (elf_backend_grok_psinfo): Likewise.
3038 (elfNN_bed): Include elf_backend_grok_prstatus and
3039 elf_backend_grok_psinfo.
3041 2001-06-29 H.J. Lu <hjl@gnu.org>
3043 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
3044 hplink->sgot is NULL before filling GOT. Check if hplink->splt
3045 is NULL before filling PLT.
3047 2001-06-29 Alan Modra <amodra@bigpond.net.au>
3049 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
3051 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3053 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
3055 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
3056 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
3059 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
3060 (IS_ABSOLUTE_RELOC): Define.
3061 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
3062 (hppa_link_hash_newfunc): Always init it.
3063 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
3064 create COPY relocs only when the reloc is in a read-only section.
3065 Instead, allocate space for a dynamic reloc to reference the
3066 library symbol directly. Keep track of space we allocate using
3068 (hppa_discard_copies): Delete, and move code to..
3069 (allocate_plt_and_got): ..here. Rename to
3070 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
3071 relocs for non-shared link.
3072 (elf32_hppa_size_dynamic_sections): Update calls to above.
3073 (elf32_hppa_relocate_section): Write out the dynamic relocs used
3074 in lieu of COPY relocs.
3076 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
3078 (elf_i386_adjust_dynamic_symbol): ..nor here..
3079 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
3081 (elf_i386_size_dynamic_sections): Fix a comment.
3082 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
3083 involved in writing reloc out.
3085 2001-06-25 Alan Modra <amodra@bigpond.net.au>
3087 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
3088 Ensure syms are dynamic if we might be emitting a reloc.
3089 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
3090 for undefweak or undefined syms..
3091 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
3093 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
3094 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
3095 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
3096 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
3098 2001-06-24 H.J. Lu <hjl@gnu.org>
3100 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
3101 strncasecmp/strcasecmp instead of strncmp/strcmp.
3103 2001-06-23 H.J. Lu <hjl@gnu.org>
3105 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
3106 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
3107 in the regular object file and treat the weak definition as
3110 2001-06-23 Alan Modra <amodra@bigpond.net.au>
3112 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
3113 unresolved_reloc test to exclude cases where we use "relocation"
3114 before setting it to point into the .got. Reinstate fudge for
3115 unresolved relocs in debugging sections.
3117 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
3118 complicated tests for unresolvable relocs with a simple direct
3119 scheme using "unresolved_reloc" var.
3121 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
3122 elf_i386_dyn_relocs. Update comment.
3123 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
3125 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
3127 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
3129 (elf_i386_size_dynamic_sections): Likewise.
3130 (elf_i386_finish_dynamic_symbol): Likewise.
3131 (elf_i386_finish_dynamic_sections): Likewise.
3132 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
3135 Avoid creating COPY relocs if possible.
3136 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
3137 which .got created. Mark symbols used by R_386_32 and R_386_PC32
3138 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
3139 reloc is in a read-only section. Instead, allocate space for a
3140 dynamic reloc to reference the library symbol directly. Keep
3141 track of space we allocate using pcrel_relocs_copied.
3142 (discard_copies): Delete, and move code to ..
3143 (allocate_plt_and_got): ..here. Rename to
3144 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
3145 relocs for non-shared link.
3146 (elf_i386_size_dynamic_sections): Update calls to above functions.
3147 (elf_i386_relocate_section): Write out the dynamic relocs. Add
3148 more ugly logic to avoid "unresolvable relocation" error. Use
3149 htab shortcut in place of elf_hash_table macro.
3150 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
3151 not always be created now.
3153 2001-06-20 Bo Thorsen <bo@suse.co.uk>
3155 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
3158 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3160 * configure.host (mips64-*-linux): Reformat.
3162 2001-06-21 Alan Modra <amodra@bigpond.net.au>
3164 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
3165 allocate local .got space. Use shortcuts from hash table for .got
3166 and .plt rather than comparing section names.
3167 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
3168 adjusting index into local_got_refcounts to document what we are
3170 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
3171 Tidy .got and .plt error checking.
3173 2001-06-20 Catherine Moore <clm@redhat.com>
3175 * elf-bfd.h (struct elf_backend_data):
3176 elf_backend_emit_relocs: New field: Function for emitting
3178 elf_backend_count_relocs: New field: Function for determining
3179 the number of relocs to be emitted.
3180 * elfxx-target.h: Provide default (NULL) values for
3181 elf_backend_emit_relocs and elf_backend_count_relocs.
3182 * elflink.h (elf_link_size_reloc_section): Make the hash table
3183 big enough to hold the relocs counted by either reloc_count or
3185 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
3186 should be emitted, either because of a command line option
3187 stored in the info structure or because the target provides a
3188 special reloc emitting function.
3189 If the target provides a reloc counting function use it,
3190 unless performing a relocatable link or emitting all relocs.
3191 Also set the SEC_RELOC flag on any output section which will
3193 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
3194 should be emitted, either because of a command line option
3195 stored in the info structure or because the target provides a
3196 special reloc emitting function.
3197 If the target provides a reloc emitting function, use it,
3198 unless performing a relocatable link or emitting all relocs.
3200 2001-06-20 H.J. Lu <hjl@gnu.org>
3202 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
3203 allocate local .got space.
3205 2001-06-19 Andreas Jaeger <aj@suse.de>
3207 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
3210 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3212 * elflink.h (struct elf_assign_sym_version_info): Remove member
3213 export_dynamic. All users changed to use info member.
3214 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
3215 export_dynamic, instead use member in parameter info.
3216 * bfd-in.h (bfd_elf32_size_dynamic_sections,
3217 bfd_elf64_size_dynamic_sections): Update prototype.
3218 * bfd-in2.h: Regenerate.
3220 2001-06-18 H.J. Lu <hjl@gnu.org>
3222 * elflink.h (elf_info_failed): Add a new field, verdefs.
3223 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
3225 (elf_export_symbol): Check eif->verdefs to decide if a symbol
3228 2001-06-17 H.J. Lu <hjl@gnu.org>
3230 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
3231 readonly_reloc, to record if a relocation in the .rel.dyn
3232 section is against a read-only section.
3233 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
3235 (_bfd_mips_elf_check_relocs): Record if there is a relocation
3236 in the .rel.dyn section against a read-only section by setting
3237 DF_TEXTREL or readonly_reloc.
3238 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
3240 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
3241 there is a relocation in the .rel.dyn section against a
3243 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
3246 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3248 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
3249 function. Move flagword result into parameter list. Remove
3250 comment about setting bfd_error_handler to intercept failure
3252 * coffgen.c (make_a_section_from_file): Examine result of
3253 calling bfd_coff_styp_to_sec_flags and pass a failure back to
3255 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
3256 function. Move flagword result into parameter list.
3257 * libcoff.h: Regenerate.
3258 * libecoff.h: Regenerate.
3260 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
3262 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
3263 section is going to follow it.
3265 2001-06-12 Catherine Moore <clm@redhat.com>
3267 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
3268 with the file_align entry from elf_backend_data.
3269 (elf_gc_smash_unused_vtentry_relocs): Likewise.
3270 (elf_gc_record_vtentry): Likewise.
3272 2001-06-10 Alan Modra <amodra@bigpond.net.au>
3274 * elflink.h: Whitespace changes.
3275 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
3276 rather than "unsigned char".
3277 (elf_link_output_relocs): Likewise.
3278 (elf_link_input_bfd): Likewise.
3279 (elf_reloc_link_order): LIkewise.
3280 * elf.c: s/CONST/const/. Whitespace changes.
3281 * elf32-mips.c: Formatting fix.
3283 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
3284 * Makefile.in: Regenerate.
3285 * po/Make-in: Remove trailing tab.
3287 2001-06-09 Philip Blundell <philb@gnu.org>
3289 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
3291 (elf32_arm_plt_entry): Likewise.
3293 2001-06-08 H.J. Lu <hjl@gnu.org>
3295 * elf.c (swap_out_syms): Keep names for global section symbols.
3297 2001-06-07 H.J. Lu <hjl@gnu.org>
3299 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
3300 MIPS-based machines need it.
3302 2001-06-07 H.J. Lu <hjl@gnu.org>
3304 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
3307 * config.bfd: Remove ecoff from Linux/mips.
3309 2001-06-07 Andreas Jaeger <aj@suse.de>
3311 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
3313 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
3314 alignment of 8 for .rela sections; handle further relocations.
3316 2001-06-06 Christian Groessler <cpg@aladdin.de>
3318 * coff-z8k.c: Fix formatting.
3319 Fix howtos: howto->size was always 1.
3321 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3323 * configure.host (mips64*-*-linux*): Define.
3325 2001-06-05 Alan Modra <amodra@bigpond.net.au>
3327 * elf32-i386.c (elf_i386_discard_copies): Rename to
3328 discard_copies, and use elf_link_hash_entry arg rather than
3329 elf_i386_link_hash_entry.
3330 (elf_i386_link_hash_traverse): Delete.
3331 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
3332 Tidy sizing of dynamic sections.
3333 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
3334 possible .plt entries.
3335 (elf_i386_gc_sweep_hook): Likewise.
3336 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
3337 everything with plt.refcount <= 0.
3339 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
3341 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
3342 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
3344 (allocate_plt_and_got): ..instead do it all here. New function.
3345 (elf_i386_size_dynamic_sections): Allocate local .got space and
3346 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
3347 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
3348 rather than gc variety).
3349 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
3350 (elf_i386_relocate_section): Use it here and correct handling of
3351 R_386_GOT32. Provide section and offset for "unresolvable
3352 relocation" error message.
3353 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
3355 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
3356 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
3357 (elf_i386_link_hash_table_create): Init them.
3358 (create_got_section): New function.
3359 (elf_i386_create_dynamic_sections): New function.
3360 (elf_backend_create_dynamic_sections): Set to above.
3361 (elf_i386_check_relocs): Use shortcuts from hash table rather than
3362 calling bfd_get_section_by_name.
3363 (elf_i386_gc_sweep_hook): Likewise.
3364 (elf_i386_adjust_dynamic_symbol): Likewise.
3365 (elf_i386_size_dynamic_sections): Likewise.
3366 (elf_i386_relocate_section): Likewise.
3367 (elf_i386_finish_dynamic_sections): Likewise.
3369 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
3371 2001-06-02 H.J. Lu <hjl@gnu.org>
3373 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
3375 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
3377 2001-06-02 H.J. Lu <hjl@gnu.org>
3379 * aout-cris.c (MACHTYPE_OK): New. Defined.
3381 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
3383 * section.c (_bfd_strip_section_from_output): Handle NULL
3386 2001-06-02 H.J. Lu <hjl@gnu.org>
3388 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
3389 rs6000coff64_vec only if BFD64 is defined.
3390 (powerpc64-*-aix*): Enable only if BFD64 is defined.
3392 2001-06-02 H.J. Lu <hjl@gnu.org>
3394 * coff-ia64.c (ia64coff_object_p): Rewrite with
3395 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
3397 2001-06-01 Andreas Jaeger <aj@suse.de>
3399 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
3400 relocation, small reformatting.
3402 2001-05-29 Andreas Jaeger <aj@suse.de>
3404 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
3405 (elf64_x86_64_relocate_section): Likewise.
3407 2001-05-30 Alan Modra <amodra@one.net.au>
3409 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
3410 millicode. Don't allocate .got and .rela.got space here..
3411 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
3412 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
3414 (hppa_handle_PIC_calls): ..nor here..
3415 (allocate_plt_and_got): ..instead do it all here. New function.
3416 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
3417 call allocate_plt_and_got. No need to zap .got if not dynamic.
3418 (elf32_hppa_final_link): Call regular bfd_final_link instead of
3419 gc_common_final_link.
3420 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
3421 (elf32_hppa_relocate_section): Use it here.
3422 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
3423 dynamic_sections_created.
3424 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
3426 2001-05-28 Andreas Jaeger <aj@suse.de>
3428 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
3429 generic version since we want a hashsize of 4.
3430 (elf_backend_size_info): Likewise.
3432 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3434 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
3436 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
3437 (elf_link_input_bfd): Likewise.
3438 (elf_reloc_link_order): Likewise.
3439 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
3440 relocations correctly.
3442 2001-05-28 Nicolas Pitre <nico@cam.org>
3444 * elf32-arm.h: fix PLT generation for big endian ARM
3446 2001-05-28 Alan Modra <amodra@one.net.au>
3448 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
3449 for symbols forced local that need plabels.
3450 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
3451 .plt.rela for local syms if non-shared.
3452 (hppa_build_one_stub): Mask lsb of plt.offset.
3453 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
3454 (clobber_millicode_symbols): Correct comment.
3455 (elf32_hppa_relocate_section): Likewise.
3456 (elf32_hppa_finish_dynamic_symbol): Likewise.
3458 2001-05-28 Jeff Sturm <jsturm@one-point.com>
3460 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
3461 * bfd-in2.h: Regenerate.
3462 * libbfd.h: Regenerate.
3463 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
3464 and BFD_RELOC_SPARC_UA64 mapping
3465 * elf64-sparc.c: Likewise.
3467 2001-05-25 H.J. Lu <hjl@gnu.org>
3469 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
3470 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
3471 (coff-rs6000.lo): Remove the old dependency.
3472 * Makefile.in: Rebuild.
3474 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
3477 2001-05-25 H.J. Lu <hjl@gnu.org>
3479 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
3480 rs6000coff_core_file_matches_executable_p,
3481 rs6000coff_core_file_failing_command and
3482 rs6000coff_core_file_failing_signal only if AIX_CORE is
3484 (pmac_xcoff_vec): Likewise.
3485 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
3487 2001-05-25 Timothy Wall <twall@redhat.com>
3489 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
3490 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
3492 2001-05-25 H.J. Lu <hjl@gnu.org>
3494 * bfd-in2.h: Regenerated.
3495 * libcoff.h: Likewise.
3497 2001-05-25 Alan Modra <amodra@one.net.au>
3499 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
3500 undefined millicode syms in shared libs.
3501 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
3502 (elf32_hppa_check_relocs): Likewise.
3503 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3504 (elf32_hppa_size_dynamic_sections): Likewise.
3505 (elf32_hppa_relocate_section): Likewise.
3506 (elf32_hppa_finish_dynamic_symbol): Likewise.
3507 (elf32_hppa_finish_dynamic_sections): Likewise.
3509 2001-05-24 Tom Rix <trix@redhat.com>
3511 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
3512 xcoff-target.h not used to define rs6000 or ppc bfd.
3515 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
3518 * coff-rs6000.c : Many changes for 64 bit support. Move common
3519 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
3522 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
3523 linker now supported. Explictly define the rs6000coff64_vec.
3525 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
3526 (coff_print_aux) same
3527 (coff_write_object_contents) same
3528 (coff_slurp_line_table) same
3530 * coffgen.c : (coff_fix_symbol_name) formatting
3531 (coff_mangle_symbols) xcoff 64 bit support
3532 (coff_write_symbol) same
3533 (coff_write_alien_symbol) same
3534 (coff_write_native_symbol) same
3535 (coff_write_symbols) same
3536 (coff_get_symbol_info) same
3537 (bfd_coff_get_syment) same
3538 (coff_print_symbol) same
3540 * config.bfd : add powerpc64-*-aix* target
3542 * libcoff-in.h : formatting
3544 * libcoff.h : move xcoff extern declarations to libxcoff.h
3546 * libxcoff.h : New file
3548 * xcofflink.c : Many changes for xcoff64 support. Move common
3549 structures to include/coff/xcoff.h. Move specific structure to
3550 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
3551 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
3553 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
3556 (xcoff_build_ldsyms) : handle special __rtinit symbol.
3558 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3560 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
3563 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3565 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
3566 * libbfd.h: Regenerate.
3567 * bfd-in2.h: Regenerate.
3569 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
3570 * archures.c (bfd_mach_mips12000): Define.
3571 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
3572 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
3574 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
3575 * bfd-in2.h: Regenerate.
3576 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
3578 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
3580 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
3581 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
3582 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
3583 that is used by GCC.
3585 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3587 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
3588 of entries in a structured section.
3589 * elf.c: Use new macro.
3590 * elf32-i386.c: Use new macro.
3591 * elf32-mips.c: Use new macro.
3592 * elf64-alpha.c: Use new macro.
3593 * elf64-sparc.c: Use new macro.
3594 * elfcode.h: Use new macro.
3595 * elflink.h: Use new macro.
3597 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3599 * bfdint.texi: Replace -oformat with --oformat.
3601 2001-05-21 Andreas Jaeger <aj@suse.de>
3603 * dwarf2.c (decode_line_info): Fix error message.
3604 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
3605 adjust error message.
3607 2001-05-18 H.J. Lu <hjl@gnu.org>
3609 * elflink.h (elf_link_add_object_symbols): Revert the last
3612 2001-05-17 Alan Modra <amodra@one.net.au>
3614 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
3615 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
3616 (hppa_build_one_stub): Add an assert to check plt.offset.
3618 2001-05-17 H.J. Lu <hjl@gnu.org>
3620 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
3621 version definition to basename of the output filename.
3623 2001-05-17 H.J. Lu <hjl@gnu.org>
3625 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
3626 basename of the bfd filename.
3628 2001-05-16 Alan Modra <amodra@one.net.au>
3630 * section.c (asection): Add linker_has_input field.
3631 (STD_SECTION): Adjust initialization to suit.
3632 * ecoff.c (bfd_debug_section): Likewise.
3633 * bfd-in2.h: Regenerate.
3635 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
3637 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
3638 negative 32-bit operands to 16 operands when the operand is
3639 going to be zero-extended by the modified opcode.
3641 2001-05-12 Peter Targett <peter.targett@arccores.com>
3643 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
3644 name for 'arc5' core versions.
3645 (bfd_arc_arch): Make bfd_mach_arc_6 default.
3647 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
3649 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
3651 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3653 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
3655 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
3656 to .gnu.linkonce.t.FOO text section.
3658 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3660 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
3661 fields, change sec into secinfo.
3662 (struct sec_merge_info): Add chain, remove last fields.
3663 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
3664 (sec_merge_hash_lookup): If lookup could not use a string only
3665 because it has bad alignment, mark the old string for deletion.
3666 (sec_merge_add): Add secinfo argument. Don't compute entry's
3667 position, instead record the section.
3668 (sec_merge_emit): Update for the sec into secinfo change in
3669 struct sec_merge_hash_entry.
3670 (_bfd_merge_section): Only record the section for merging, defer
3671 putting strings into the hash table.
3672 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
3673 _bfd_merge_sections): New functions.
3674 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
3676 * libbfd-in.h (_bfd_merge_sections): Add prototype.
3677 (_bfd_nolink_bfd_merge_sections): Define.
3678 * libbfd.h: Likewise.
3679 (bfd_generic_merge_sections): Add prototype.
3680 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
3681 (struct bfd_target): Likewise.
3682 * bfd.c (bfd_merge_sections): Define.
3683 * bfd-in2.h: Rebuilt.
3684 * elf.c (_bfd_elf_merge_sections): New function.
3685 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
3686 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
3687 * reloc.c (bfd_generic_merge_sections): New function.
3688 * vms.c (vms_bfd_merge_sections): New function.
3689 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
3690 * aout-target.h (MY_bfd_merge_sections): Define.
3691 * aout-tic30.c (MY_bfd_merge_sections): Define.
3692 * binary.c (binary_bfd_merge_sections): Define.
3693 * bout.c (b_out_bfd_merge_sections): Define.
3694 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
3695 * coffcode.c (coff_bfd_merge_sections): Define.
3696 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
3697 * i386msdos.c (msdos_bfd_merge_sections): Define.
3698 * i386os9k.c (os9k_bfd_merge_sections): Define.
3699 * ieee.c (ieee_bfd_merge_sections): Define.
3700 * ihex.c (ihex_bfd_merge_sections): Define.
3701 * nlm-target.h (nlm_bfd_merge_sections): Define.
3702 * oasys.c (oasys_bfd_merge_sections): Define.
3703 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
3704 * som.c (som_bfd_merge_sections): Define.
3705 * srec.c (srec_bfd_merge_sections): Define.
3706 * tekhex.c (tekhex_bfd_merge_sections): Define.
3707 * versados.c (versados_bfd_merge_sections): Define.
3708 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
3710 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3712 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
3713 to be unsigned long, in order to match its use.
3715 2001-05-10 H.J. Lu <hjl@gnu.org>
3717 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
3720 2001-05-09 H.J. Lu <hjl@gnu.org>
3722 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
3723 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
3724 Remove the unused veriable `dynver'.
3726 2001-05-08 Ian Lance Taylor <ian@zembu.com>
3728 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
3729 NULL or is not COFF.
3730 (coff_i386_rtype_to_howto): Don't dump core if output section
3733 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3735 * ecoff.c (bfd_debug_section): Fix initialization.
3736 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
3737 is always a positive integer. Cast away sign mismatch.
3738 * elf32-mips.c: Fix misleading comment and typo.
3739 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
3741 * elflink.c: Fix typo.
3742 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
3743 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
3745 2001-05-04 Richard Henderson <rth@redhat.com>
3747 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
3749 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
3751 * elf32-arm.h (elf32_arm_final_link_relocate): Set
3752 EF_ARM_HASENTRY if the start address is set.
3754 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
3756 * targets.c (_bfd_target_vector_entries): Compute value based on
3757 the size of the _bfd_target_vector and not bfd_target_vector.
3759 2001-05-03 H.J. Lu <hjl@gnu.org>
3761 * elfcode.h: Include "libiberty.h".
3763 * elflink.h (elf_link_add_object_symbols): Set
3764 elf_dt_name (abfd) to basename of the bfd filename.
3765 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
3766 of the bfd filename.
3768 2001-05-03 Andreas Jaeger <aj@suse.de>
3770 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
3771 (elf_generic_info_to_howto_rel): Likewise.
3772 * coff-alpha.c (reloc_nil): Likewise.
3773 (alpha_ecoff_bad_format_hook): Likewise.
3774 (alpha_adjust_reloc_out): Likewise.
3775 (alpha_bfd_reloc_type_lookup): Likewise.
3776 (alpha_convert_external_reloc): Likewise.
3777 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
3778 (elf64_alpha_reloc_bad): Likewise.
3779 (elf64_alpha_reloc_gpdisp): Likewise.
3780 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
3781 (elf64_alpha_info_to_howto): Likewise.
3782 (elf64_alpha_add_symbol_hook): Likewise.
3783 (elf64_alpha_create_got_section): Likewise.
3784 (elf64_alpha_is_local_label_name): Likewise.
3785 (elf64_alpha_merge_ind_symbols): Likewise.
3786 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
3787 (mips_elf64_get_reloc_upper_bound): Likewise.
3788 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
3789 (nlm_alpha_get_public_offset): Likewise.
3791 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3793 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
3794 about overflow in R_OPENRISC_LO_16_IN_INSN and
3795 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
3797 2001-04-30 H.J. Lu <hjl@gnu.org>
3799 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
3800 only for ELF_LINK_FORCED_LOCAL.
3801 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3802 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
3803 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3805 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
3806 if the symbol has hidden or internal visibility.
3808 2001-04-30 Alan Modra <amodra@one.net.au>
3810 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
3811 calls to undefined weak symbols.
3813 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
3815 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
3816 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
3818 2001-04-27 Andreas Jaeger <aj@suse.de>
3820 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
3821 out handled entries.
3822 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
3823 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
3824 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
3827 2001-04-27 Sean McNeil <sean@mcneil.com>
3829 * config.bfd: Add arm-vxworks target.
3830 * coff-arm (coff_arm_relocate_section): Add in symbol value to
3831 addend (fro VXworks targets).
3833 2001-04-26 H.J. Lu <hjl@gnu.org>
3835 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
3838 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
3840 * bfd-in.h (bfd_cache_close): Declare newly exported function.
3841 * bfd-in2.h: Regenerated.
3843 2001-04-24 Jakub Jelinek <jakub@redhat.com>
3845 * merge.c (struct sec_merge_hash_entry): Add alignment field.
3846 (struct sec_merge_hash): Remove alignment_power.
3847 (sec_merge_hash_newfunc): Clear alignment.
3848 (sec_merge_hash_lookup): Pass alignment as argument.
3849 Use hashp->root.next, not hashp->next to walk the hash chain.
3850 If a string already in the hashtable does not have required
3851 alignment, create a new hashtable entry.
3852 (sec_merge_init): Remove alignment_power argument.
3853 (sec_merge_add): Add alignment argument.
3854 (sec_merge_emit): Alignment is now a per-entity thing, not per
3856 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
3857 for proper alignment.
3858 Pass alignment information to sec_merge_add.
3860 2001-04-24 Christian Groessler <cpg@aladdin.de>
3862 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
3863 and R_REL16 reloc types; accept odd values for R_REL16 type
3865 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
3867 * cpu-openrisc.c: New file.
3868 * elf32-openrisc.c: Likewise.
3870 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
3871 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
3872 (BFD32_BACKENDS): Add elf32-openrisc.lo.
3873 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
3874 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
3875 * Makefile.in: Regenerated.
3876 * config.bfd: (openrisc-*-elf): New target.
3877 * configure.in (bfd_elf32_openrisc_vec): New vector.
3878 * configure: Regenerated.
3879 * libbfd.h: Regenerated.
3880 * bfd-in2.h: Regenerated.
3881 * reloc.c: Add OpenRISC relocations.
3882 * targets.c (bfd_elf32_openrisc_vec): Declare.
3883 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
3884 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
3885 (bfd_openrisc_arch): Declare.
3886 (bfd_archures_list): Add bfd_openrisc_arch.
3887 * elf.c (prep_headers): Add bfd_arch_openrisc.
3889 2001-04-23 Bo Thorsen <bo@suse.de>
3891 * elf64-x86-64.c: Add c++ vtable hack.
3892 Small whitespace and comment changes.
3894 2001-04-19 Andreas Jaeger <aj@suse.de>
3896 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
3897 (elf64_x86_64_plt_entry): Likewise.
3898 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
3899 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
3901 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
3903 * elf32-cris.c: Tweak comments related to dynamic linking.
3904 (cris_elf_relocate_section): When not creating shared object, fill
3905 in the .got table for any symbol not in the dynamic symbol table.
3906 (elf_cris_finish_dynamic_symbol): When not creating shared object,
3907 only emit a .got.rela reloc if the symbol is in the dynamic symbol
3909 (cris_elf_check_relocs): Use variable r_type in all places rather
3910 than the original expression. Add default case in switch for
3912 (elf_cris_size_dynamic_sections): Iterate over
3913 elf_cris_discard_excess_program_dynamics when not creating shared
3915 (elf_cris_discard_excess_dso_dynamics): Renamed from
3916 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
3917 (elf_cris_discard_excess_program_dynamics): New.
3919 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
3921 * coffcode.h (coff_write_object_contents): Use
3922 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
3924 2001-04-14 H.J. Lu <hjl@gnu.org>
3926 * bfd-in2.h: Regenerate.
3928 2001-04-14 Jakub Jelinek <jakub@redhat.com>
3930 * section.c (STD_SECTION): Add entsize.
3932 2001-04-13 H.J. Lu <hjl@gnu.org>
3934 * section.c (SEC_MERGE): Define new flag for merging.
3935 (SEC_STRINGS): Likewise.
3936 (entsize): New field.
3938 2001-04-13 Roger Sayle <roger@metaphorics.com>
3940 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
3941 flag on pe-i386 targets.
3943 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3945 * libbfd-in.h (_bfd_merge_section): New.
3946 (_bfd_write_merged_section): New.
3947 (_bfd_merged_section_offset): New.
3948 * libbfd.h: Rebuilt.
3949 * linker.c (_bfd_generic_link_output_symbols): Handle
3951 * aoutx.h (aout_link_write_symbols): Likewise.
3952 * pdp11.c (aout_link_write_symbols): Likewise.
3953 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
3954 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
3956 (elf_link_sec_merge_syms): New.
3957 (elf_link_input_bfd): Call _bfd_merged_section_offset
3958 and _bfd_write_merged_section.
3959 Handle discard_sec_merge.
3960 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
3962 (struct bfd_elf_section_data): Likewise.
3963 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
3964 SEC_STRINGS section flags and entsize from their ELF counterparts.
3965 (_bfd_elf_link_hash_table_init): Initialize merge_info.
3966 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
3967 from their BFD counterparts.
3968 * merge.c: New file.
3969 * Makefile.am: Add strtab.lo.
3970 * Makefile.in: Rebuilt.
3972 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
3974 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
3975 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
3977 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3979 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
3980 endian MIPS ELF target.
3981 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
3984 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
3985 64bit big endian MIPS ELF target.
3986 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3987 endian MIPS ELF target.
3988 * configure: Regenerated.
3990 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
3991 little endian targets.
3992 (mips_elf_sym_is_global): Handle traditional targets.
3994 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
3995 64bit big endian MIPS ELF target.
3996 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3997 endian MIPS ELF target.
3999 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
4000 and bfd_elf64_tradlittlemips_vec.
4002 2001-04-05 David Mosberger <davidm@hpl.hp.com>
4004 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
4005 ordinary "progbits" section.
4007 2001-04-04 Alan Modra <alan@linuxcare.com.au>
4009 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
4010 when -Bsymbolic causes a symbol to no longer need a .plt entry.
4012 2001-04-03 David Mosberger <davidm@hpl.hp.com>
4014 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
4016 2001-03-30 H.J. Lu <hjl@gnu.org>
4018 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
4019 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
4021 2001-03-26 H.J. Lu <hjl@gnu.org>
4023 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
4024 if there are any relocations for generic ELF.
4025 (bfd_elf32_bfd_link_add_symbols): Defined to
4026 elf32_generic_link_add_symbols.
4027 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
4028 if there are any relocations for generic ELF.
4029 (bfd_elf64_bfd_link_add_symbols): Defined to
4030 elf64_generic_link_add_symbols.
4032 2001-03-23 Nick Clifton <nickc@redhat.com>
4034 * Makefile.am (BUILD_CFILES): New variable: List of C source
4035 files created in build directory.
4036 (BUILD_HFILES): New variable: List of header files created in
4039 (po/POTFILES.in): Replace rule with empty entry.
4040 (po/SRC-POTFILES.in): New rule: Create a list of source files
4041 in the source directory.
4042 (po/BLD-POTFILES.in): New rule: Create a list of source files
4043 in the build directory.
4044 (MOSTLYCLEAN): Do not delete source files created in build
4046 * Makefile.in: Regenerate.
4047 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
4049 * configure: Regenerate.
4051 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
4053 Add .. to the search path when building bfd.pot.
4054 Delete POTFILES when performing distclean.
4055 Add comment describing why distclean is broken in maintainer mode.
4056 * po/POTFILES.in: Delete.
4057 * po/SRC-POTFILES.in: New file.
4058 * po/BLD-POTFILES.in: New file.
4059 * po/bfd.pot: Regenerate.
4061 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
4063 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
4064 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
4065 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
4066 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
4067 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
4068 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
4070 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
4071 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
4072 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
4073 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
4074 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
4075 New HOWTO members for new relocs.
4076 (cris_reloc_map): Map new relocs.
4077 (ELF_DYNAMIC_INTERPRETER): Define.
4078 (PLT_ENTRY_SIZE): Define.
4079 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
4080 elf_cris_pic_plt_entry): New, PLT templates.
4081 (struct elf_cris_pcrel_relocs_copied, struct
4082 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
4083 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
4084 (cris_final_link_relocate): Check that 16-bit GOT relocs have
4085 positive values. Adjust PCREL relocs to be relative to location
4087 (cris_elf_relocate_section): Handle relocations to dynamic
4088 objects. Handle new relocations. Call error handler when seeing
4089 non-PIC relocation for read-only sections while generating shared
4091 (cris_elf_check_relocs): Set reference counts for GOT and PLT
4093 (bfd_elf32_bfd_link_hash_table_create,
4094 elf_backend_adjust_dynamic_symbol,
4095 elf_backend_size_dynamic_sections,
4096 elf_backend_finish_dynamic_symbol,
4097 elf_backend_finish_dynamic_sections,
4098 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
4099 elf_backend_hide_symbol, elf_backend_want_got_plt,
4100 elf_backend_plt_readonly, elf_backend_want_plt_sym,
4101 elf_backend_got_header_size, elf_backend_plt_header_size):
4104 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
4105 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
4106 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
4107 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
4108 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
4109 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
4110 * bfd-in2.h, libbfd.h: Regenerate.
4112 2001-03-21 Diego Novillo <dnovillo@redhat.com>
4114 (_bfd_mips_elf_relocate_section): Give a better error message when
4115 a relocation is not recognized.
4117 2001-03-21 Alan Modra <alan@linuxcare.com.au>
4119 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
4120 non-NULL before attempting to dereference.
4122 2001-03-20 H.J. Lu <hjl@gnu.org>
4124 * configure.in: Remove the redundent AC_ARG_PROGRAM.
4125 * configure: Rebuild.
4127 2001-03-20 Andreas Schwab <schwab@suse.de>
4129 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
4130 relocation value when resolving a reference from a debugging
4133 2001-03-16 Scott Thomason <SThomaso@hii.com>
4135 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
4136 (xcoff64_swap_sym_out): Fix syntax errors.
4138 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
4140 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
4142 2001-03-15 Alan Modra <alan@linuxcare.com.au>
4144 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
4145 (hppa_link_hash_newfunc): Init it.
4146 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
4147 section appears to be non-PIC.
4148 (final_link_relocate): Likewise.
4149 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
4150 possible candidate function, and set pic_call for those that will
4151 only have a .plt entry for the PIC call stub.
4152 (hppa_handle_PIC_calls): Set maybe_pic_call.
4154 2001-03-12 DJ Delorie <dj@redhat.com>
4156 * elf32-sh.c (sh_elf_relocate_section): Only relocation
4157 R_SH_DIR8WP* relocs if they're against external symbols, else
4158 they're just for relaxing. Validate the reloc values.
4160 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
4162 * binary.c (bfd_external_binary_architecture): Declare.
4163 (binary_object_p): If bfd_external_binary_architecture is defined,
4164 set the architecture to this string.
4166 2001-03-11 Philip Blundell <philb@gnu.org>
4168 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
4169 entries that could serve as a definition for a weak symbol.
4171 2001-03-08 Nick Clifton <nickc@redhat.com>
4173 * Most files: Update copyright notices using Perl script created
4174 by Kevin Buettner <kevinb@redhat.com>.
4176 2001-03-07 Nick Clifton <nickc@redhat.com>
4178 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
4179 prior patch on ! defined OLD_ARM_ABI.
4181 2001-03-07 Andreas Jaeger <aj@suse.de>
4183 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
4184 some relocation values.
4186 2001-03-06 Nick Clifton <nickc@redhat.com>
4188 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
4189 of offset in BLX(1) instruction.
4190 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
4191 offset in BLX(1) instruction.
4194 2001-03-06 Nick Clifton <nickc@redhat.com>
4196 * coff-arm.c (coff_arm_reloc_type_lookup): Add
4197 BFD_RELOC_THUMB_PCREL_BLX.
4199 2001-03-06 Igor Shevlyakov <igor@windriver.com>
4201 * archures.c (bfd_default_scan): Add Coldfire CPUs.
4202 * bfd-in2.h: Regenerate.
4203 * cpu-m68k.c: Add Coldfire CPUs for arch table.
4204 * ieee.c (ieee_write_processor): Set proper id for
4207 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
4209 * configure.in: Add s390 target.
4210 * configure: Regenerate.
4212 2001-02-28 Andreas Jaeger <aj@suse.de>
4214 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
4217 2001-02-28 Philip Blundell <pb@futuretv.com>
4219 * elf32-arm.h: Update mentions of renamed EF_xx constants.
4220 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
4222 2001-02-27 H.J. Lu <hjl@gnu.org>
4224 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
4225 abfd->tdata.aout_data == NULL.
4227 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4229 * elf32-hppa.c: Correct field selector in stub comments.
4230 (clobber_millicode_symbols): Formatting fix.
4232 * configure.in: Bump version to 2.11.90.
4233 * configure: Regenerate.
4234 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
4235 (CFILES): $SOURCE_CFILES + generated C files.
4236 (POTFILES): Include $HFILES not $SOURCE_HFILES.
4238 * Makefile.in: Regenerate.
4239 * doc/Makefile.in: This too.
4241 2001-02-26 Timothy Wall <twall@cygnus.com>
4243 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
4246 2001-02-26 Nick Clifton <nickc@redhat.com>
4248 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
4249 up, replacing multiple if statements with a switch.
4250 (handle_COMDAT): New function.
4252 2001-02-26 H.J. Lu <hjl@gnu.org>
4254 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
4255 a warning for section flags we do not handle instead of
4258 2001-02-26 Andreas Jaeger <aj@suse.de>
4260 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
4262 2001-02-22 Timothy Wall <twall@cygnus.com>
4264 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
4265 * configure.in: Add objects for elf64_ia64_aix vectors.
4266 * configure: Regenerated.
4267 * configure.host: Recognize ia64-*-aix*.
4268 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
4269 for AIX. AIX5 requires most relocations to be dynamic (*all*
4270 binaries are somewhat similar to shared libraries).
4271 * targets.c: Add elf64_ia64_aix vectors.
4273 2001-02-21 David Mosberger <davidm@hpl.hp.com>
4275 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
4276 C8 said "1" instead of "8". Clarify error string for IMM22:
4277 "signed integer" instead of just "integer".
4279 2001-02-20 Andreas Jaeger <aj@suse.de>
4281 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
4282 PLT entries that could serve as a definition for a weak symbol.
4284 2001-02-19 Jakub Jelinek <jakub@redhat.com>
4286 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
4287 entries that could serve as a definition for a weak symbol.
4288 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
4290 2001-02-18 David O'Brien <obrien@FreeBSD>
4292 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
4293 FreeBSD/i386-CURRENT differently until I can figure out the needed
4295 * configure: Regenerate.
4296 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
4297 FreeBSD/PowerPC, and FreeBSD/sparc64.
4299 2001-02-18 lars brinkhoff <lars@nocrew.org>
4301 * Makefile.am: Add PDP-11 a.out target.
4302 * config.bfd: Likewise.
4303 * configure.in: Likewise.
4304 * targets.c: Likewise.
4305 * archures.c: Likewise.
4306 * bfd-in2.h: Likewise. Add PDP-11 relocations.
4307 * libbfd.h: Add PDP-11 relocations.
4308 * reloc.c: Likewise.
4309 * cpu-pdp11.c: New file.
4310 * pdp11.c: New file.
4312 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
4313 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
4314 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
4315 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
4316 (GET_MAGIC): New macro.
4317 (PUT_MAGIC): Likewise.
4318 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
4320 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
4322 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
4323 multiarch needs it).
4325 2001-02-18 H.J. Lu <hjl@gnu.org>
4327 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
4330 2001-02-18 Kazu Hirata <kazu@hxi.com>
4332 * vms-misc.c: Fix formatting.
4334 2001-02-16 Kazu Hirata <kazu@hxi.com>
4336 * vms.c: Fix formatting.
4338 2001-02-14 H.J. Lu <hjl@gnu.org>
4340 * elf.c (elf_find_function): New function.
4341 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
4342 the file name and function name.
4344 2001-02-14 Nick Clifton <nickc@redhat.com>
4346 * ecoff.c (bfd_debug_section): Update to initialise new fields in
4349 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
4350 (BFD64_BACKENDS): Add pepigen.c
4351 Add rules to create peigen.c and pepigen.c from peXXigen.c.
4353 * Makefile.in: Regenerate.
4354 * configure: Regenerate.
4355 * po/POTFILES.in: Regenerate.
4356 * po/bfd.pot: Regenerate.
4358 2001-02-14 H.J. Lu <hjl@gnu.org>
4360 * libcoff-in.h (pe_tdata): Add members target_subsystem and
4361 force_minimum_alignment.
4363 2001-02-14 Bo Thorsen <bo@suse.de>
4365 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
4366 (elf64_86_64_size_info): Struct added to fix a problem
4367 with the hashtable string entries.
4368 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
4369 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
4370 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
4371 remove the FIXME for this.
4372 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
4373 section. Also removed the FIXME for it.
4374 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
4375 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
4376 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
4378 2001-02-13 Richard Henderson <rth@redhat.com>
4380 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
4381 and not user provided.
4383 2001-02-13 Kazu Hirata <kazu@hxi.com>
4385 * vms.c (vms_print_symbol): Remove unreachable code.
4387 * rs6000-core.c: Fix formatting.
4389 2001-02-13 David Mosberger <davidm@hpl.hp.com>
4391 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
4392 as _bfd_XXi_only_swap_filehdr_out.
4393 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
4394 pe->force_minimum_alignment to TRUE.
4395 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
4396 PEI_TARGET_SUBSYSTEM.
4397 (pe_print_private_bfd_data): Call
4398 _bfd_XX_print_private_bfd_data_common() instead of
4399 _bfd_pe_print_private_bfd_data_common().
4400 (pe_bfd_copy_private_bfd_data): Call
4401 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
4402 _bfd_pe_bfd_copy_private_bfd_data_common().
4403 (coff_bfd_copy_private_section_data): Define as
4404 _bfd_XX_bfd_copy_private_section_data instead of
4405 _bfd_pe_bfd_copy_private_section_data.
4406 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
4407 of a _bfd_pe_get_symbol_info.
4411 * peXXigen.c: Renamed from peigen.c.
4412 (COFF_WITH_XX): Define this macro (will get expanded into
4413 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
4414 compiled as peigen.c or pepigen.c.
4415 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
4416 define the canonical PEP structures and definitions.
4417 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
4418 effect, enforce minimum file and section alignments. If
4419 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
4420 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
4421 so, by default, this is a no-op).
4423 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
4424 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
4425 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
4426 _bfd_pefoo if it's not defined. Use these macros to define
4429 * libcoff.h (pe_tdata): Add members target_subsystem and
4430 force_minimum_alignment.
4432 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
4434 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
4436 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
4439 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
4440 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
4443 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
4444 (BFD64_BACKENDS_CFILES): Mention pepigen.c
4445 (peigen.c): Add rule to generate from peXXigen.c.
4447 (pepigen.lo): List dependencies for pepigen.lo.
4449 2001-02-13 Alan Modra <alan@linuxcare.com.au>
4451 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
4452 $global$ referenced but not defined, set its value here.
4454 2001-02-09 Bo Thorsen <bo@suse.de>
4456 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
4458 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
4460 (elf64_x86_64_relocate_section): Fix formatting.
4461 (elf64_x86_64_relocate_section): Fix addend for relocation of
4462 R_X86_64_(8|16|32|PC8|PC16|PC32).
4464 2001-02-12 Jan Hubicka <jh@suse.cz>
4466 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
4468 2001-02-11 H.J. Lu <hjl@gnu.org>
4470 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
4473 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4475 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
4476 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
4477 relocations against dynsym symbols.
4479 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
4480 the R_MIPS_26 relocation.
4481 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
4482 the R_MIPS_26 relocation.
4483 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
4485 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
4486 the R_MIPS_26 relocation.
4487 (mips_elf64_howto_table_rela): Likewise.
4489 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
4490 member to mark symbols that have non-CALL relocations against
4492 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
4493 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
4495 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
4496 non-CALL relocation against it is encountered.
4497 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
4498 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
4499 no_fn_stub is not set.
4501 * elf32-mips.c (mips_elf_output_extsym): Get the output section
4502 information from the real symbol for indirect ones.
4503 Check no_fn_stub to find out if a symbol has a function stub
4506 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4508 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
4509 * Makefile.in: Regenerate.
4511 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4513 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
4514 true if section name is an unwind table section name.
4515 (elfNN_ia64_additional_program_headers): Count each unwind section
4517 (elfNN_ia64_modify_segment_map): Install one unwind program header
4518 for each unwind separate section. Note: normally the linker
4519 script merges the unwind sections that go into a single segment,
4520 so this still generates at most one unwind program header per
4523 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
4524 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
4525 (elfNN_ia64_fake_sections): Mark sections with names that start
4526 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
4529 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
4530 Use it to make sh_info in unwind section point to the text section
4533 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4535 * Makefile.am: Add linux target for S/390.
4536 * archures.c: Likewise.
4537 * bfd-in2.h: Likewise.
4538 * config.bfd: Likewise.
4539 * configure.in: Likewise.
4541 * libbfd.h: Likewise.
4542 * targets.c: Likewise.
4543 * cpu-s390.c: New file.
4544 * elf32-s390.c: New file.
4545 * elf64-s390.c: New file.
4547 2001-02-09 Nick Clifton <nickc@redhat.com>
4549 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
4550 ImageBase. This has already been done by coff_swap_hdr_in.
4552 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4554 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
4556 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4558 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
4559 (sparc64_elf_relocate_section): Likewise.
4561 2001-02-09 Mark Kettenis <kettenis@gnu.org>
4563 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
4564 similar to R_SPARC_32.
4565 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
4567 2001-02-08 H.J. Lu <hjl@gnu.org>
4569 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
4570 relocation entries for weak definitions when building DSO with
4573 2001-02-08 Richard Henderson <rth@redhat.com>
4575 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
4576 before visibility. Locally defined protected symbols are not
4579 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
4581 * config.bfd: Enable coff64 for rs6000-*. Patch from
4582 <hzoli@austin.ibm.com>.
4584 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
4586 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
4587 found, do not attempt to find dwarf2 info before returning.
4589 2001-02-07 Jakub Jelinek <jakub@redhat.com>
4591 * elflink.h (is_global_symbol_definition): Rename to
4592 is_global_data_symbol_definition and have it reject function
4594 (elf_link_is_defined_archive_symbol): Use renamed function.
4596 2001-02-07 Todd Vierling <tv@wasabisystems.com>
4598 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
4599 * libbfd.h (bfd_target_vector): Likewise.
4600 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
4601 make static; create pointer reference named bfd_target_vector.
4602 (_bfd_target_vector_entries): Calculate this based on the array
4603 typed _bfd_target_vector.
4605 2001-02-06 H.J. Lu <hjl@gnu.org>
4607 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
4608 internal symbols are not dynamic.
4609 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
4611 2001-02-06 Nick Clifton <nickc@redhat.com>
4613 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
4614 that it will not be pulled into the list of files that make up
4616 * Makefile.in: Regenerate.
4617 * po/bfd.pot: Regenerate.
4619 2001-02-06 H.J. Lu <hjl@gnu.org>
4621 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
4623 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
4624 external_PEI_IMAGE_hdr.
4626 2001-02-06 Kazu Hirata <kazu@hxi.com>
4628 * elf-m10200.c: Fix formatting.
4630 2001-02-04 Nick Clifton <nickc@redhat.com>
4632 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
4633 rel, it will be handled later on.
4635 2001-02-02 Fred Fish <fnf@ninemoons.com>
4637 * Makefile.in: Fix typo.
4639 2001-02-01 Kazu Hirata <kazu@hxi.com>
4641 * elf-m10300.c: Fix formatting.
4643 2001-01-30 Alan Modra <alan@linuxcare.com.au>
4645 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
4646 (elf_backend_get_symbol_type): Define.
4647 (elf64_hppa_object_p): Set architecture and machine from elf
4650 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
4652 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
4655 2001-01-26 Richard Henderson <rth@redhat.com>
4657 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
4658 for non-default visibility.
4659 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
4660 delete ugly macro and replace with pretty function.
4662 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
4664 * coff-go32.c: Update copyright.
4665 * coff-stgo32.c: Likewise.
4666 * coff-go32.c (COFF_LONG_FILENAMES): Define.
4667 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
4668 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
4669 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4671 2001-01-25 Kazu Hirata <kazu@hxi.com>
4673 * bfd-in2.h: Rebuild.
4674 * libbfd.h: Likewise.
4676 2001-01-23 H.J. Lu <hjl@gnu.org>
4678 * bfd-in2.h: Rebuild.
4680 2001-01-23 H.J. Lu <hjl@gnu.org>
4682 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
4683 is NULL or PRIV(vms_rec) is outside of the buffer.
4685 2001-01-23 Kazu Hirata <kazu@hxi.com>
4687 * coff64-rs6000.c: Fix formatting.
4688 * coff-arm.c: Likewise.
4689 * coffgen.c: Likewise.
4690 * cofflink.c: Likewise.
4691 * coff-mcore.c: Likewise.
4692 * coff-mips.c: Likewise.
4693 * coff-pmac.c: Likewise.
4694 * coff-ppc.c: Likewise.
4695 * coff-rs6000.c: Likewise.
4696 * elf32.c: Likewise.
4697 * elf32-fr30.c: Likewise.
4698 * elf32-i370.c: Likewise.
4699 * elf32-i860.c: Likewise.
4700 * elf32-m32r.c: Likewise.
4701 * elf32-m68k.c: Likewise.
4702 * elf32-mcore.c: Likewise.
4703 * elf32-ppc.c: Likewise.
4704 * elf32-sh.c: Likewise.
4705 * elf32-v850.c: Likewise.
4706 * elf64-alpha.c: Likewise.
4707 * elf64-sparc.c: Likewise.
4708 * elflink.c: Likewise.
4709 * elflink.h: Likewise.
4710 * elf-m10200.c: Likewise.
4711 * elf-m10300.c: Likewise.
4712 * elfxx-ia64.c: Likewise.
4714 * aoutx.h: Fix formatting.
4716 * bfd-in2.h: Likewise.
4717 * bfd-in.h: Likewise.
4718 * cpu-i386.c: Likewise.
4719 * cpu-m68hc11.c: Likewise.
4720 * dwarf2.c: Likewise.
4721 * elf64-x86-64.c: Likewise.
4722 * format.c: Likewise.
4723 * freebsd.h: Likewise.
4725 * hp300hpux.c: Likewise.
4726 * hppabsd-core.c: Likewise.
4727 * hpux-core.c: Likewise.
4729 2001-01-22 Bo Thorsen <bo@suse.de>
4731 * elf64-x86-64.c: Added PIC support for X86-64.
4732 (elf64_x86_64_link_hash_newfunc): Function added.
4733 (elf64_x86_64_link_hash_table_create): Likewise.
4734 (elf64_x86_64_check_relocs): Likewise.
4735 (elf64_x86_64_gc_mark_hook): Likewise.
4736 (elf64_x86_64_gc_sweep_hook): Likewise.
4737 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
4738 (elf64_x86_64_size_dynamic_sections): Likewise.
4739 (elf64_x86_64_discard_copies): Likewise.
4740 (elf64_x86_64_finish_dynamic_symbol): Likewise.
4741 (elf64_x86_64_finish_dynamic_sections): Likewise.
4742 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
4744 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4746 * Makefile.am (install-data-local): Make use of $(DESTDIR).
4747 * Makefile.in: Regenerate.
4749 2001-01-21 Kazu Hirata <kazu@hxi.com>
4751 * coff-a29k.c: Fix formatting.
4753 2001-01-19 H.J. Lu <hjl@gnu.org>
4755 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
4756 relocation section names.
4757 (elf_i386_relocate_section): Report files with bad relocation
4758 section names and return false.
4760 2001-01-17 Bo Thorsen <bo@suse.de>
4762 * targets.c: Alphabetize list of xvecs.
4764 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4766 * config.bfd: Add linux target variant for elfxx-hppa.
4767 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
4768 bfd_elf64_hppa_linux_vec.
4769 * configure: Regenerate.
4770 * elf64-hppa.c: Include elf64-target.h again to support linux
4772 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
4773 * elf32-hppa.c: Include elf32-target.h again to support linux
4775 (elf32_hppa_post_process_headers): New function.
4776 (elf_backend_post_process_headers): Define.
4777 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
4778 bfd_elf32_hppa_linux_vec.
4780 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
4781 and data_segment_base fields.
4782 (elf32_hppa_link_hash_table_create ): Init them.
4783 (elf32_hppa_check_relocs): Update comments.
4784 (hppa_record_segment_addr): New function.
4785 (elf32_hppa_relocate_section): Call it.
4786 (final_link_relocate): Handle R_PARISC_SEGREL32.
4787 (elf32_hppa_final_link): New function.
4788 (bfd_elf32_bfd_final_link): Define to call it.
4789 (hppa_unwind_entry_compare): New function.
4790 * cache.c (bfd_open_file): Create files in write+read mode.
4792 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
4793 SEGREL32 and numerous other relocs. Change duplicate
4794 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
4796 * opncls.c (bfd_fdopenr): Add parens like the comment says around
4799 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
4800 .plt entries for DT_INIT and DT_FINI.
4801 (elf32_hppa_finish_dynamic_sections): Remove special handling of
4802 DT_INIT and DT_FINI.
4804 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
4805 offsets for stub .plt access if wide mode. Check offset in range.
4807 2001-01-13 Nick Clifton <nickc@redhat.com>
4809 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
4812 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
4815 2001-01-12 Alan Modra <alan@linuxcare.com.au>
4817 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
4818 * configure: Regenerate.
4820 2001-01-11 Peter Targett <peter.targett@arccores.com>
4822 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
4823 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
4824 * cpu-arc.c (arch_info_struct): Add entries for variants.
4825 (bfd_arc_arch) Set default to bfd_mach_arc_5.
4826 (arc_get_mach) Don't assume machine names prefixed arc- before
4828 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
4830 (arc_elf_final_write_processing) Likewise.
4831 (ELF_MACHINE_CODE) Use EM_ARC.
4833 2001-01-10 Nick Clifton <nickc@redhat.com>
4835 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
4837 2001-01-07 Philip Blundell <philb@gnu.org>
4839 * README: Replace `bug-gnu-utils@gnu.org' with
4840 `bug-binutils@gnu.org'.
4842 2001-01-04 Kazu Hirata <kazu@hxi.com>
4844 * som.c: Fix formatting.
4846 2001-01-03 Kazu Hirata <kazu@hxi.com>
4848 * ecoffswap.h: Fix formatting.
4849 * elf-bfd.h: Likewise.
4850 * elfarm-nabi.c: Likewise.
4851 * elfarm-oabi.c: Likewise.
4852 * elfcode.h: Likewise.
4853 * elfcore.h: Likewise.
4854 * elflink.c: Likewise.
4855 * elflink.h: Likewise.
4856 * elfxx-ia64.c: Likewise.
4857 * elfxx-target.h: Likewise.
4858 * libbfd.c: Likewise
4859 * linker.c: Likewise.
4860 * lynx-core.c: Likewise.
4862 2001-01-02 Kazu Hirata <kazu@hxi.com>
4864 * pc532-mach.c: Fix formatting.
4865 * pe-arm.c: Likewise.
4866 * pe-i386.c: Likewise.
4867 * pe-mips.c: Likewise.
4868 * pe-ppc.c: Likewise.
4869 * pe-sh.c: Likewise.
4870 * pei-mips.c: Likewise.
4871 * pei-sh.c: Likewise.
4872 * peicode.h: Likewise.
4873 * ppcboot.c: Likewise.
4874 * ptrace-core.c: Likewise.
4876 2001-01-01 Kazu Hirata <kazu@hxi.com>
4878 * reloc.c: Fix formatting.
4879 * riscix.c: Likewise.
4880 * rs6000-core.c: Likewise.
4881 * xcoff-target.h: Likewise.
4883 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
4885 * elfcode.h (elf_object_p): Also restore the bfd mach field on
4886 error, by calling bfd_default_set_arch_mach with incoming
4889 2000-12-26 Kazu Hirata <kazu@hxi.com>
4891 * vaxnetbsd.c: Fix formatting.
4892 * versados.c: Likewise.
4893 * vms-gsd.c: Likewise.
4894 * vms-hdr.c: Likewise.
4895 * vms-misc.c: Likewise.
4897 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
4899 * archive.c (coff_write_armap): Don't write more than symbol_count
4900 `archive_member_file_ptr's.
4902 2000-12-25 Kazu Hirata <kazu@hxi.com>
4904 * vms-tir.c: Fix formatting.
4906 2000-12-23 Kazu Hirata <kazu@hxi.com>
4908 * vms.c: Fix formatting.
4911 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
4913 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
4915 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
4917 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
4920 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
4922 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
4924 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
4926 * libbfd.c (bfd_get_bits): Added
4927 (bfd_put_bits): Likewise
4928 * bfd-in.h: Declared the above.
4929 * bfd-in2.h: Regenerated.
4931 2000-12-20 Kazu Hirata <kazu@hxi.com>
4933 * targets.c: Fix formatting.
4934 * tekhex.c: Likewise.
4935 * trad-core.c: Likewise.
4937 2000-12-19 Kazu Hirata <kazu@hxi.com>
4939 * sco5-core.c: Fix formatting.
4940 * section.c: Likewise.
4941 * sparclinux.c: Likewise.
4942 * sparclynx.c: Likewise.
4943 * sparcnetbsd.c: Likewise.
4945 * stabs.c: Likewise.
4946 * stab-syms.c: Likewise.
4947 * sunos.c: Likewise.
4949 * sysdep.h: Likewise.
4951 2000-12-18 Nick Clifton <nickc@redhat.com>
4953 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
4955 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
4956 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
4958 2000-12-18 Nick Clifton <nickc@redhat.com>
4960 * vms-misc.c (_bfd_vms_get_record): Add default case to
4963 2000-12-15 Miloslav Trmac <mitr@volny.cz>
4965 * elfcore.h (elf_core_file_p): Move to the start of the program
4966 headers before attempting to read them.
4968 2000-12-14 Kazu Hirata <kazu@hxi.com>
4970 * peigen.c: Fix formatting.
4974 2000-12-13 Kazu Hirata <kazu@hxi.com>
4976 * peigen.c: Fix formatting.
4978 2000-12-12 Jim Wilson <wilson@redhat.com>
4980 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
4982 2000-12-08 Mark Salter <msalter@redhat.com>
4984 * binary.c (binary_set_section_contents): Ignore sections
4987 2000-12-12 Kazu Hirata <kazu@hxi.com>
4989 * m68klinux.c: Fix formatting.
4990 * m68knetbsd.c: Likewise.
4991 * mipsbsd.c: Likewise.
4992 * netbsd-core.c: Likewise.
4993 * netbsd.h: Likewise.
4994 * newsos3.c: Likewise.
4995 * nlm32-alpha.c: Likewise.
4996 * nlm32-i386.c: Likewise.
4997 * nlm32-ppc.c: Likewise.
4998 * nlm32-sparc.c: Likewise.
4999 * nlmcode.h: Likewise.
5000 * nlmswap.h: Likewise.
5001 * nlm-target.h: Likewise.
5002 * ns32knetbsd.c: Likewise.
5004 2000-12-10 Fred Fish <fnf@be.com>
5006 * elflink.h (elf_link_output_extsym): Don't complain about undefined
5007 symbols in shared objects if allow_shlib_undefined is true.
5009 2000-12-12 Nick Clifton <nickc@redhat.com>
5011 * cpu-sh.c: Fix formattng.
5012 * elf.c: Fix formattng.
5013 * elf32-mips.c: Fix formattng.
5014 * elf32-sh.c: Fix formattng.
5015 * elf64-alpha.c: Fix formattng.
5017 2000-12-09 Nick Clifton <nickc@redhat.com>
5019 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
5020 dwarf2_find_line_info as last parameter to invocation of
5021 _bfd_dwarf2_find_nearest_line.
5022 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
5023 dwarf2_find_line_info as last parameter to invocation of
5024 _bfd_dwarf2_find_nearest_line.
5026 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
5028 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
5029 (BFD_LIBS): ...to here.
5030 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
5031 (BFD_LIBS_CFILES): ...to here.
5032 * Makefile.in: Regenerate.
5033 * configure.in: Remove dwarf.lo from the elf shell variable.
5034 * configure: Regenerate.
5035 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
5036 * libcoff.h: Regenerate.
5037 * coffgen.c (coff_find_nearest_line): Call
5038 _bfd_dwarf2_find_nearest_line.
5039 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
5041 (read_abbrevs): Likewise
5042 (decode_line_info): Likewise.
5043 (parse_comp_unit): Likewise.
5044 (comp_unit_find_nearest_line): Likewise.
5045 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
5046 * libbfd.h: Regenerate.
5047 * elf.c (_bfd_elf_find_nearest_line): Update call.
5048 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
5049 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
5050 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
5051 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
5052 (styp_to_sec_flags): Handle DWARF2 sections.
5053 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
5054 to _bfd_find_nearest_line.
5055 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
5056 call to _bfd_find_nearest_line.
5058 2000-12-08 Kazu Hirata <kazu@hxi.com>
5060 * coffgen.c: Fix formatting.
5061 * elf-m10300.c: Likewise.
5062 * elf32-i386.c: Likewise.
5063 * elf32-i960.c: Likewise.
5064 * elf32-m68k.c: Likewise.
5065 * elf32-mcore.c: Likewise.
5066 * elf32-ppc.c: Likewise.
5067 * elf32-sh.c: Likewise.
5068 * elf32-sparc.c: Likewise.
5069 * elf32-v850.c: Likewise.
5070 * elf64-alpha.c: Likewise.
5071 * elf64-hppa.c: Likewise.
5072 * elf64-mips.c: Likewise.
5073 * elf64-sparc.c: Likewise.
5075 2000-12-07 Kazu Hirata <kazu@hxi.com>
5077 * elf32-ppc.c: Fix formatting.
5078 * elf64-x86-64.c: Likewise.
5080 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
5082 From Ralf Baechle <ralf@gnu.org>
5084 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
5085 BFDs containing no sections or empty .text, .data or .bss sections
5086 to be merged, regardless of their flags.
5088 2000-12-06 Kazu Hirata <kazu@hxi.com>
5090 * elf32-m32r.c: Fix formatting.
5091 * elf32-m68hc11.c: Likewise.
5092 * elf32-m68hc12.c: Likewise.
5093 * elf32-m68k.c: Likewise.
5094 * elf32-mcore.c: Likewise.
5095 * elf32-pj.c: Likewise.
5096 * elf32-ppc.c: Likewise.
5098 2000-12-05 Kazu Hirata <kazu@hxi.com>
5100 * elf32-fr30.c: Fix formatting.
5101 * elf32-hppa.c: Likewise.
5102 * elf32-i370.c: Likewise.
5103 * elf32-i386.c: Likewise.
5104 * elf32-i860.c: Likewise.
5105 * elf32-i960.c: Likewise.
5107 2000-12-03 Kazu Hirata <kazu@hxi.com>
5109 * elf32-arm.h: Fix formatting.
5110 * elf32-avr.c: Likewise.
5111 * elf32-cris.c: Likewise.
5112 * elf32-d10v.c: Likewise.
5113 * elf32-d30v.c: Likewise.
5114 * elf-hppa.h: Likewise.
5115 * elf-m10200.c: Likewise.
5116 * elf-m10300.c: Likewise.
5118 2000-12-01 Chris Demetriou <cgd@sibyte.com>
5120 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
5121 bfd_mach_mips32_4k. Update FIXME comment.
5122 * archures.c (bfd_mach_mips32): New constant.
5123 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
5124 the latter, renumber it.
5125 * bfd-in2.h (bfd_mach_mips32): New constant.
5126 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
5127 the latter, renumber it.
5128 * cpu-mips.c (I_mips32): New constant.
5129 (I_mips4K, I_mips32_4k): Rename the former to the latter.
5130 (arch_info_struct): Add bfd_mach_mips32 entry, replace
5131 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
5132 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
5133 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
5134 with E_MIPS_MACH_MIPS32_4K.
5135 (_bfd_mips_elf_final_write_processing): Replace
5136 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
5137 bfd_mach_mips32 case.
5138 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
5139 comparison with support for MIPS32.
5140 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
5143 * aoutx.h (NAME(aout,machine_type)): Add cases for
5144 bfd_mach_mips5 and bfd_mach_mips64.
5145 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
5146 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
5147 * cpu_mips.c (I_mips5, I_mips64): New definitions.
5148 (arch_info_struct): Add entries for bfd_mach_mips5 and
5150 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
5151 _bfd_mips_elf_print_private_bfd_data): Add cases for
5152 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
5153 (_bfd_mips_elf_final_write_processing): Add cases for
5154 bfd_mach_mips5 and bfd_mach_mips64.
5156 * aoutx.h (NAME(aout,machine_type)): Add a
5157 bfd_mach_mips_sb1 case.
5158 * archures.c (bfd_mach_mips_sb1): New constant.
5159 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
5160 * cpu-mips.c (I_sb1): New constant.
5161 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
5162 * elf32-mips.c (elf_mips_mach): Add case for
5164 (_bfd_mips_elf_final_write_processing): Add case for
5167 2000-12-01 Joel Sherrill <joel@OARcorp.com>
5169 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
5170 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
5171 (sparc*-*-rtems*): Switched from a.out to ELF.
5173 2000-11-30 Jan Hubicka <jh@suse.cz>
5175 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
5176 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
5177 (elf64-x86-64.lo): Add dependencies.
5178 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
5179 bfd_mach_x86_64_intel_syntax.
5180 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
5181 * config.bfd (x86_64): Add.
5182 * configure.in: Add support for bfd_elf64_x86_64_vec.
5183 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
5184 (bfd_i386_arch, i8086_ar): Link in.
5185 * elf64-x86-64.c: New file.
5186 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
5187 * targets.c (bfd_elf64_x86_64_vec): Add.
5188 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
5190 2000-11-30 Kazu Hirata <kazu@hxi.com>
5192 * xcofflink.c: Fix formatting.
5194 2000-11-28 Kazu Hirata <kazu@hxi.com>
5196 * aoutx.h: Fix formatting.
5197 * bfd-in.h: Likewise.
5198 * bfd-in2.h: Likewise.
5199 * cache.c: Likewise.
5200 * cisco-core.c: Likewise.
5201 * coff64-rs6000.c: Likewise.
5202 * coffcode.h: Likewise.
5203 * coffswap.h: Likewise.
5204 * corefile.c: Likewise.
5205 * elf32-mips.c: Likewise.
5207 2000-11-27 Kazu Hirata <kazu@hxi.com>
5209 * aout-adobe.c: Fix formatting.
5210 * coff64-rs6000.c: Likewise.
5211 * coffgen.c: Likewise.
5212 * cofflink.c: Likewise.
5214 2000-11-27 Philip Blundell <pb@futuretv.com>
5216 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
5217 (obj_coff_strings_written): New accessor macro for above.
5218 * libcoff.h: Regenerate.
5219 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
5221 * coffcode.h (coff_write_object_contents): No need to write out
5222 the string table if it's already been done.
5224 2000-11-22 Philip Blundell <pb@futuretv.com>
5226 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
5227 weak undefined symbols.
5229 2000-11-24 Nick Clifton <nickc@redhat.com>
5231 * archures.c (bfd_mach_arm_5TE): Define.
5232 (bfd_mach_arm+XScale): Define.
5233 * bfd-in2.h: Regenerate.
5235 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
5236 BFD_RELOC_ARM_PCREL_BLX.
5238 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
5239 XScale machine numbers.
5241 * config.bfd (xscale-elf): Add target.
5242 (xscale-coff): Add target.
5244 * cpu-arm.c: Add xscale machine name.
5245 Add v5t, v5te and XScale machine numbers.
5247 2000-11-23 Kazu Hirata <kazu@hxi.com>
5249 * aix386-core.c: Fix formatting.
5251 2000-11-22 Jim Wilson <wilson@redhat.com>
5253 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
5254 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
5255 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
5256 (ins_imms_scaled): Initialize sign_bit at function entry.
5257 (elf64_ia64_operands): Add missing initializers.
5258 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
5259 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
5260 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
5261 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
5262 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
5264 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
5265 and free_extsyms at function entry.
5266 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
5267 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
5268 (get_got): Delete unused local srel.
5269 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
5270 (elfNN_ia64_relocate_section): Delete unused local dynindx.
5272 2000-11-21 Kazu Hirata <kazu@hxi.com>
5274 * coff-a29k.c: Fix formatting.
5275 * coff-h8500.c: Likewise.
5276 * coff-i960.c: Likewise.
5277 * coff-ppc.c: Likewise.
5278 * coff-rs6000.c: Likewise.
5279 * coff-stgo32.c: Likewise.
5280 * coff-tic54x.c: Likewise.
5281 * coff-w65.c: Likewise.
5282 * cpu-h8500.c: Likewise.
5283 * cpu-hppa.c: Likewise.
5284 * cpu-ns32k.c: Likewise.
5285 * ecoff.c: Likewise.
5286 * ecofflink.c: Likewise.
5288 2000-11-21 Nick Clifton <nickc@redhat.com>
5290 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
5291 remove possibility of infinite loop.
5293 2000-11-20 Kazu Hirata <kazu@hxi.com>
5295 * aix386-core.c: Fix formatting.
5296 * aout-adobe.c: Likewise.
5297 * aout-arm.c: Likewise.
5298 * aout-encap.c: Likewise.
5299 * aout-ns32k.c: Likewise.
5300 * aout-target.h: Likewise.
5301 * aout-tic30.c: Likewise.
5302 * aoutf1.h: Likewise.
5303 * aoutx.h: Likewise.
5304 * archive.c: Likewise.
5305 * bfd-in.h: Likewise.
5306 * bfd-in2.h: Likewise.
5310 2000-11-17 H.J. Lu <hjl@gnu.org>
5312 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
5313 pltoff entries for DT_INIT and DT_FINI.
5314 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
5315 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
5318 2000-11-16 Richard Henderson <rth@redhat.com>
5320 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
5321 (allocate_dynrel_entries): Likewise.
5322 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
5323 (set_pltoff_entry): Likewise.
5324 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
5325 (elfNN_ia64_reloc_type_lookup): Likewise.
5326 (elfNN_ia64_install_value): Likewise.
5327 (elfNN_ia64_relocate_section): Likewise.
5328 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
5329 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
5331 2000-11-16 Kazu Hirata <kazu@hxi.com>
5333 * cpu-a29k.c: Fix formatting.
5334 * cpu-alpha.c: Likewise.
5335 * cpu-arm.c: Likewise.
5336 * cpu-avr.c: Likewise.
5337 * cpu-d10v.c: Likewise.
5338 * cpu-h8500.c: Likewise.
5339 * cpu-hppa.c: Likewise.
5340 * cpu-i370.c: Likewise.
5341 * cpu-i386.c: Likewise.
5342 * cpu-i960.c: Likewise.
5343 * cpu-ia64-opc.c: Likewise.
5344 * cpu-ia64.c: Likewise.
5345 * cpu-m32r.c: Likewise.
5346 * cpu-m68hc11.c: Likewise.
5347 * cpu-m68hc12.c: Likewise.
5348 * cpu-m68k.c: Likewise.
5349 * cpu-m88k.c: Likewise.
5350 * cpu-mips.c: Likewise.
5351 * cpu-ns32k.c: Likewise.
5352 * cpu-pj.c: Likewise.
5353 * cpu-powerpc.c: Likewise.
5354 * cpu-sh.c: Likewise.
5355 * cpu-sparc.c: Likewise.
5356 * cpu-tic54x.c: Likewise.
5357 * cpu-v850.c: Likewise.
5358 * cpu-vax.c: Likewise.
5359 * cpu-w65.c: Likewise.
5360 * cpu-we32k.c: Likewise.
5361 * cpu-z8k.c: Likewise.
5362 * dwarf1.c: Likewise.
5363 * dwarf2.c: Likewise.
5365 2000-11-15 Kazu Hirata <kazu@hxi.com>
5367 * coff-arm.c: Fix formatting.
5368 * coff-ppc.c: Likewise.
5369 * coff-rs6000.c: Likewise.
5370 * coff-sh.c: Likewise.
5371 * coff-sparc.c: Likewise.
5372 * coff-tic30.c: Likewise.
5373 * coff-tic54x.c: Likewise.
5374 * coff-tic80.c: Likewise.
5375 * coff-w65.c: Likewise.
5376 * coff-we32k.c: Likewise.
5377 * coff-z8k.c: Likewise.
5379 2000-11-15 Richard Henderson <rth@redhat.com>
5381 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
5382 section with the same ALLOC|LOAD flags as the source section.
5384 2000-11-14 Jakub Jelinek <jakub@redhat.com>
5386 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
5387 by STO_ALPHA constants.
5389 2000-11-14 Kazu Hirata <kazu@hxi.com>
5391 * coff-pmac.c: Fix formatting.
5392 * coff-ppc.c: Likewise.
5394 2000-11-13 H.J. Lu <hjl@gnu.org>
5396 * elflink.h (elf_link_add_object_symbols): Also add indirect
5397 symbols for common symbols with the default version.
5399 2000-11-09 Philip Blundell <pb@futuretv.com>
5401 * section.c (STD_SECTION): Set gc_mark flag.
5403 2000-11-11 Kazu Hirata <kazu@hxi.com>
5405 * coff-i960.c: Likewise.
5406 * coff-m68k.c: Likewise.
5407 * coff-m88k.c: Likewise.
5408 * coff-mcore.c: Likewise.
5409 * coff-mips.c: Likewise.
5411 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
5413 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
5415 2000-11-10 Kazu Hirata <kazu@hxi.com>
5417 * coff-h8300.c: Fix formatting.
5418 * coff-h8500.c: Likewise.
5419 * coff-i386.c: Likewise.
5420 * coff-i860.c: Likewise.
5421 * coff-i960.c: Likewise.
5422 * coff-ia64.c: Likewise.
5424 2000-11-09 Kazu Hirata <kazu@hxi.com>
5426 * archive.c: Fix formatting.
5427 * archures.c: Likewise.
5429 2000-11-07 Richard Henderson <rth@redhat.com>
5431 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
5432 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
5433 * section.c (bfd_set_section_contents): Call memcpy if
5434 section->contents set and location not equal to contents plus offset.
5436 2000-11-08 Kazu Hirata <kazu@hxi.com>
5438 * bfd-in.h: Fix formatting.
5439 * bfd-in2.h: Likewise.
5441 * binary.c: Likewise.
5443 * coff-a29k.c: Likewise.
5444 * coff-alpha.c: Likewise.
5445 * coff-apollo.c: Likewise.
5446 * coff-aux.c: Likewise.
5448 2000-11-07 Kazu Hirata <kazu@hxi.com>
5450 * aix386-core.c: Fix formatting.
5451 * aoutf1.h: Likewise.
5452 * aoutx.h: Likewise.
5453 * archures.c: Likewise.
5454 * armnetbsd.c: Likewise.
5456 2000-11-07 Alan Modra <alan@linuxcare.com.au>
5458 * coff-h8300.c (special): Adjust reloc address.
5460 2000-11-06 Steve Ellcey <sje@cup.hp.com>
5462 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
5463 to differentiate elf32 and elf64 on ia64.
5464 * bfd-in2.h: Regenerate.
5465 * config.bfd: Add target for "ia64*-*-hpux*".
5466 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
5467 * configure: Regenerate.
5468 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
5469 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
5471 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
5472 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
5473 * Makefile.in: Regnerate.
5474 * elf64-ia64.c: Deleted.
5475 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
5477 2000-11-06 Kazu Hirata <kazu@hxi.com>
5479 * aout-adobe.c: Fix formatting.
5480 * aout-arm.c: Likewise.
5481 * aout-cris.c: Likewise.
5482 * aout-encap.c: Likewise.
5483 * aout-ns32k.c: Likewise.
5484 * aout-target.h: Likewise.
5485 * aout-tic30.c: Likewise.
5487 2000-11-05 Philip Blundell <philb@gnu.org>
5489 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
5490 BFDs containing no sections to be merged, regardless of their flags.
5492 2000-11-04 Philip Blundell <philb@gnu.org>
5494 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
5495 if a relocation for an undefined symbol also results in an
5498 2000-11-06 Christopher Faylor <cgf@cygnus.com>
5500 * config.bfd: Add support for Sun Chorus.
5502 2000-11-05 David O'Brien <obrien@FreeBSD.org>
5504 * configure.in: Recognize alpha-*-freebsd*.
5505 * configure: Regenerate.
5507 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
5509 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
5510 (Chunk): New global variable set by a parameter in objcopy.c.
5511 (S3Forced): New global variable set by a parameter in
5513 (srec_set_section_contents): If S3Forced is true, always generate
5515 (srec_write_section): Use 'Chunk' to limit maximum length of S
5518 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5520 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
5521 * Makefile.in: Regenerate.
5522 * bfd-in2.h: Regenerate.
5523 * po/bfd.pot: Regenerate.
5525 2000-10-31 Philip Blundell <philb@gnu.org>
5527 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
5528 EF_SOFT_FLOAT if it is defined.
5530 2000-10-27 Philip Blundell <philb@gnu.org>
5532 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
5533 attempts to mix PIC code with non-PIC, just mark the output as
5534 being position dependent.
5535 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
5536 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
5537 all mismatches, not just the first one.
5539 2000-10-25 Chris Demetriou <cgd@sibyte.com>
5541 * ieee.c (ieee_archive_p): Plug one of many possible
5542 memory leaks in error handling.
5544 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5546 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
5547 elf32_sparc_object_p, elf32_sparc_final_write_processing):
5549 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
5550 sparc64_elf_object_p): Support v9b.
5551 * archures.c: Declare v8plusb and v9b machines.
5553 * cpu-sparc.c: Ditto.
5555 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5557 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
5560 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
5561 (SYMBOL_CALLS_LOCAL): New macro.
5562 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
5563 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
5564 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
5565 (ppc_elf_relocate_section): Use flag variable to determine
5566 whether the relocation refers to a local symbol.
5567 Test whether a PLTREL24 reloc will produce a reloc by looking
5568 to see whether a PLT entry was made.
5570 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5572 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
5573 entries that could serve as a definition for a weak symbol.
5575 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
5577 From Ralf Baechle <ralf@gnu.org>
5579 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
5580 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
5581 against local symbols.
5582 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
5584 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5586 * section.c (struct sec): Add kept_section.
5587 (struct bfd_comdat_info): Remove sec, we can use above.
5588 (STD_SECTION): Add initializer.
5589 (bfd_make_section_anyway): Init here too.
5591 * bfd-in2.h: Regenerate.
5593 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
5595 (elf_link_input_bfd): Set all asection->symbol->value's here, and
5596 fudge values for discarded link-once section symbols.
5598 * elf64-hppa.c: Include alloca-conf.h
5600 2000-10-11 Alan Modra <alan@linuxcare.com.au>
5602 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
5604 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
5606 2000-10-10 Alan Modra <alan@linuxcare.com.au>
5608 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
5610 2000-10-10 Tom Rix <trix@redhat.com>
5612 * section.c (bfd_make_section_anyway): Release newsect ptr when
5613 newsect->symbol fails to alloc. Use bfd_release instead of free.
5615 2000-10-09 Richard Henderson <rth@cygnus.com
5617 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
5618 (elf64_ia64_unwind_entry_compare): New.
5619 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
5621 2000-10-07 Alan Modra <alan@linuxcare.com.au>
5623 * elflink.h (size_dynamic_sections): Don't create various tags if
5624 .dynstr is excluded from the link. Don't set first dynsym entry
5625 if dynsymcount is zero.
5626 (elf_bfd_final_link): Don't try to swap out dynamic syms if
5627 .dynsym excluded from the link. Don't try to write any dynamic
5628 sections excluded from the link.
5630 * elf.c (swap_out_syms): Handle global section symbols.
5632 2000-10-05 DJ Delorie <dj@redhat.com>
5634 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
5635 * coffcode.h (coff_set_alignment_hook): read extended reloc count
5636 (coff_write_relocs): write extended reloc count
5637 (coff_write_object_contents): account for extended relocs
5639 2000-10-05 Jim Wilson <wilson@cygnus.com>
5641 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
5643 * elf.c (_bfd_elf_make_section_from_shdr): Call the
5644 elf_backend_section_flags function.
5645 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
5647 (elf64_ia64_section_flags): New function containing flag conversion
5649 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
5650 * elfxx-target.h (elf_backend_section_flags): Define.
5651 (elfNN_bed): Initialize elf_backend_section_flags field.
5653 2000-10-02 Alan Modra <alan@linuxcare.com.au>
5655 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
5656 _bfd_elf32_gc_record_vtable. Correct a comment.
5658 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
5660 From Ralf Baechle <ralf@gnu.org>
5662 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
5663 produces binaries with got[1] = 0x80000001 to differenciate them
5664 for the dynamic linker from the broken binaries produced by old
5667 2000-09-30 Petr Sorfa <petrs@sco.com>
5669 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
5670 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
5671 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
5672 * configure: Regenerate.
5674 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
5676 Define two bfd_targets for absence and presence of leading
5677 underscore on symbols. Make sure to only link same kind.
5678 * elf32-cris.c (cris_elf_object_p,
5679 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
5680 cris_elf_merge_private_bfd_data): New.
5681 (elf_backend_object_p, elf_backend_final_write_processing,
5682 bfd_elf32_bfd_print_private_bfd_data,
5683 bfd_elf32_bfd_merge_private_bfd_data): Define.
5684 <Target vector definition>: Include elf32-target.h twice with
5685 different macro settings:
5686 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
5687 bfd_elf32_us_cris_vec.
5688 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
5689 (elf_symbol_leading_char): First as 0, then '_'.
5690 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
5691 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
5692 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
5693 * configure: Regenerate.
5694 * targets.c: Declare bfd_elf32_us_cris_vec.
5695 * po/bfd.pot: Regenerate.
5697 2000-09-29 Momchil Velikov <velco@fadata.bg>
5699 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
5700 R_ARM_THM_PC22 relocations.
5702 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
5704 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
5706 2000-09-29 Momchil Velikov <velco@fadata.bg>
5708 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
5709 is has the SEC_HAS_CONTENTS flag set.
5711 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
5712 Hans-Peter Nilsson <hp@axis.com>
5714 * aout-cris.c (N_TXTADDR): Define.
5716 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5718 * som.c: Include alloca-conf.h.
5719 * Makefile.am: "make dep-am"
5720 * Makefile.in: Regenerate.
5722 2000-09-27 Alan Modra <alan@linuxcare.com.au>
5724 * elf32-hppa.c (plt_stub): New.
5725 (PLT_STUB_ENTRY): Define.
5726 (elf32_hppa_link_hash_table): Change multi_subspace to packed
5727 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
5728 (elf32_hppa_link_hash_table_create): Init to suit.
5729 (elf32_hppa_check_relocs): Set has_12bit_branch and
5730 has_17bit_branch as appropriate.
5731 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
5732 non-local functions.
5733 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
5734 Add space for plt_stub as needed.
5735 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
5736 functions at plt_stub.
5737 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
5738 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
5740 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
5741 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
5742 of fixed size, and if negative, disable handling of input sections
5743 before stub section. Set up default stub group size depending
5744 on detected branch relocs.
5745 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
5746 ensure different offsets from sym_value aren't rounded to
5747 different 2k blocks. Use lrsel and rrsel for other stubs too for
5748 consistency rather than necessity.
5749 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
5750 (final_link_relocate): Likewise.
5751 (elf32_hppa_relocate_section): Likewise.
5753 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
5754 (_bfd_elf_hppa_gen_reloc_type): Generate them.
5755 (elf_hppa_final_link_relocate): Handle them.
5756 (elf_hppa_relocate_insn): Likewise.
5757 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
5759 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
5761 * elfcode.h (elf_object_p): Preserve and clear abfd section
5762 information. Restore at error.
5764 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5766 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
5767 is empty, make sure that its rva also 0. NT loader dislikes
5770 2000-09-26 Steve Ellcey <sje@cup.hp.com>
5772 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
5775 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5777 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
5778 currently unused RELATIVE_DYNAMIC_RELOCS code.
5779 (hppa_discard_copies): Likewise.
5780 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
5781 comments. Don't check non-code output sections for stub grouping.
5783 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5785 * section.c (bfd_get_unique_section_name): Return NULL if
5788 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5790 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
5791 instruction sequence to actually work.
5792 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
5795 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
5797 * elf32-sh.c (sh_elf_relocate_section): Use
5798 _bfd_final_link_relocate to apply the relocation against a section
5799 symbol, when doing relocatable links.
5801 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5803 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
5805 (stub_hash_newfunc): Here too.
5806 (hppa_add_stub): And here.
5807 (elf32_hppa_link_hash_table): Remove stub_section_created,
5808 reloc_section_created, first_init_sec and first_fini_sec. Add
5810 (elf32_hppa_link_hash_table_create): Init to suit.
5811 (hppa_get_stub_entry): Add support for grouping stub sections.
5812 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
5813 section code. Index stub vars by section->id.
5814 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
5815 exit paths. Zap allocation of above removed vars. Refine
5818 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
5819 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
5820 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
5821 rather than pointer to bfd_link_info.
5822 (hppa_add_stub): Likewise.
5823 (final_link_relocate): Likewise.
5825 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
5827 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
5830 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
5832 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
5833 ld/emulparams/shelf.sh.
5835 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5837 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
5838 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
5839 * bfd-in2.h: Regenerate.
5841 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
5843 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
5844 LITUSE relocations incorrectly if -relax is specified on the ld
5845 command line and the displacement field of the load or store
5846 instruction is non-zero. (Patch by paul.winalski@compaq.com)
5848 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5850 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
5851 first_fini_sec here.
5852 (elf32_hppa_size_stubs): Instead correctly find the first .init
5853 and .fini section here.
5855 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
5857 * elf32-hppa.c (clobber_millicode_symbols): New function.
5858 (elf32_hppa_size_dynamic_sections): Call it.
5860 2000-09-14 Alan Modra <alan@linuxcare.com.au>
5862 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
5863 packed. Add plabel, plt_abs packed booleans.
5864 (hppa_link_hash_newfunc): Init new fields.
5865 (PLABEL_PLT_ENTRY_SIZE): Define.
5866 (hppa_stub_name): Use size_t len vars.
5867 (hppa_add_stub): Likewise.
5868 (elf32_hppa_build_stubs): Likewise.
5869 (hppa_build_one_stub): Kill some compiler warnings.
5870 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
5871 if dynamic linking. Munge the local plt offsets into
5872 local_got_refcounts. Set h->plabel for all global PLABELs. Use
5873 size_t len vars. Add assert for plabel addend.
5874 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
5875 (elf32_hppa_hide_symbol): New function.
5876 (elf_backend_hide_symbol): Define.
5877 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
5878 with h->plabel set. Don't make plt entries to have dynamic syms
5879 when they have been forced local. If plt entry is used by a
5880 plabel, make it PLABEL_PLT_ENTRY_SIZE.
5881 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
5882 Set up .plt offsets for local syms.
5883 (elf32_hppa_relocate_section): Initialise plt entries for local
5884 syms. Leave weak undefined plabels zero. Make global plabel
5885 relocs against function symbol, and leave the addend zero.
5886 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
5887 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
5888 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
5889 relocs instead of SEGREL32 for dynamic got relocs.
5890 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
5891 (elf_backend_got_header_size): Adjust.
5892 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
5894 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
5895 (hppa_type_of_stub): Use it instead of #if 0
5896 (hppa_discard_copies): Use it here too.
5897 (elf32_hppa_size_dynamic_sections): And here.
5899 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
5900 (elf32_hppa_link_hash_table_create): And here.
5901 (hppa_build_one_stub): And here. Instead keep track of stub
5902 offset using _raw_size.
5903 (elf32_hppa_size_stubs): Likewise.
5904 (elf32_hppa_build_stubs): Likewise.
5905 (hppa_size_one_stub): Likewise. Resize reloc section too.
5907 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
5908 first_fini_sec handling. Don't search for reloc section or set
5909 hplink->reloc_section_created here.
5910 (elf32_hppa_size_stubs): Instead search for reloc sections, and
5911 set reloc_section_created here.
5912 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
5913 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
5915 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
5917 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
5918 with `hplink->root.'.
5919 (elf32_hppa_check_relocs): Likewise.
5920 (elf32_hppa_gc_sweep_hook): Likewise.
5921 (elf32_hppa_adjust_dynamic_symbol): Likewise.
5922 (hppa_handle_PIC_calls): Likewise.
5923 (elf32_hppa_size_dynamic_sections): Likewise.
5924 (elf32_hppa_set_gp): Likewise.
5925 (elf32_hppa_relocate_section): Likewise.
5926 (elf32_hppa_finish_dynamic_symbol): Likewise.
5927 (elf32_hppa_finish_dynamic_sections): Likewise.
5929 From David Huggins-Daines <dhd@linuxcare.com>
5930 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
5931 defined weak symbols in shared links.
5932 (final_link_relocate): Calls to defined weak symbols in shared
5933 objects must go via import stubs, as the target might not be known
5936 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5938 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
5939 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
5940 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
5941 the original entries with EMPTY_HOWTOs, and added new ones to fill
5943 (sh_elf_info_to_howto): Make sure the new gap isn't used.
5944 (sh_elf_relocate_section): Likewise.
5946 2000-09-13 Anders Norlander <anorland@acc.umu.se>
5948 * cpu-mips.c (arch_info_struct): Add mips:4K
5949 * bfd-in2.h (bfd_mach_mips4K): New define.
5950 * archures.c: Add bfd_mach_mips4K to comment.
5951 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
5952 E_MIPS_ARCH_2 for bfd_mach_mips4K.
5954 2000-09-13 Marco Franzen <marcof@thyron.com>
5956 * som.c (som_write_symbol_strings): Do not used fixed buffers,
5957 use size_t as a counter.
5958 (som_write_space_strings): Similarly.
5960 2000-09-12 Jason Eckhardt <jle@cygnus.com>
5962 * elf32-i860.c (elf32_i860_relocate_pc26): New function
5964 (elf32_i860_relocate_section): Invoke new function from here.
5966 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5968 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
5971 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5973 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
5974 target section name instead of dumping core when the target symbol is
5977 2000-09-09 Kazu Hirata <kazu@hxi.com>
5979 * riscix.c: Remove DEFUN.
5981 2000-09-08 Nick Clifton <nickc@redhat.com>
5983 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
5984 initialise flags in output bfd if the input bfd is the default
5985 architecture with the default flags.
5987 2000-09-08 Kazu Hirata <kazu@hxi.com>
5989 * archive.c: Fix formatting.
5990 * coff-arm.c: Likewise.
5991 * doc/chew.c: Likewise.
5993 2000-09-08 Alan Modra <alan@linuxcare.com.au>
5995 * section.c (bfd_get_unique_section_name): Put a dot before the
5998 2000-09-07 Kazu Hirata <kazu@hxi.com>
6000 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
6001 * elf.c: Fix formatting.
6003 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
6005 * config.bfd (sh-*-linux*): Added.
6006 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
6007 * targets.c: Declare them.
6008 * elf32-sh-lin.c: New file.
6009 * Makefile.am: Compile it.
6010 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
6011 * configure, Makefile.in: Rebuilt.
6013 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
6015 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
6016 pseduo-section when determining where the TOC ends.
6018 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
6019 output x_tvndx as it is only two bytes wide.
6021 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
6022 reloc is 26 or 32 bits wide.
6024 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
6025 for relocs that don't change anything. Also look at the full
6028 2000-09-06 Philip Blundell <philb@gnu.org>
6030 * config.bfd (arm*-*-uclinux*): New target.
6032 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
6034 * configure: Rebuilt with new libtool.m4.
6036 2000-09-06 Alan Modra <alan@linuxcare.com.au>
6038 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
6039 word for variable name.
6040 * bfd-in2.h: Regenerate.
6042 2000-09-05 Nick Clifton <nickc@redhat.com>
6044 * config.in: Regenerate.
6045 * libbfd.h: Regenerate.
6046 * po/bfd.pot: Regenerate.
6047 * doc/bfdint.texi: Remove CVS date string - it foils compares with
6050 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
6052 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
6054 2000-09-05 Alan Modra <alan@linuxcare.com.au>
6056 Shared library and PIC support.
6057 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
6058 (GOT_ENTRY_SIZE): New.
6059 (ELF_DYNAMIC_INTERPRETER): New.
6060 (STUB_SUFFIX): Define.
6061 (LONG_BRANCH_PIC_IN_SHLIB): Define.
6062 (RELATIVE_DYNAMIC_RELOCS): Define.
6063 (enum elf32_hppa_stub_type): New.
6064 (struct elf32_hppa_stub_hash_entry): Rename offset to
6065 stub_offset. Add a number of new fields.
6066 (struct elf32_hppa_link_hash_entry): New.
6067 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
6069 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
6070 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
6071 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
6073 (hppa_link_hash_newfunc): New function.
6074 (elf32_hppa_link_hash_table_create): Use above function. Init new
6076 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
6077 instead of addend, and remove sym_name from args. Don't use
6078 symbol name for local syms, instead use sym index.
6079 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
6080 stub type rather than size. Pass in hash and handle import stub
6081 case. Also pass in reloc instead of offset so we can calculate
6082 PCREL22F and PCREL12F branches properly.
6083 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
6084 import and export stubs too.
6085 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
6086 import and export stub sizing.
6087 (elf32_hppa_check_relocs): New function.
6088 (elf32_hppa_adjust_dynamic_symbol): New function.
6089 (hppa_discard_copies): New function.
6090 (elf32_hppa_size_dynamic_sections): New function.
6091 (elf_backend_size_dynamic_sections): Define.
6092 (elf32_hppa_finish_dynamic_symbol): New function.
6093 (elf_backend_finish_dynamic_symbol): Define.
6094 (elf32_hppa_size_stubs): Stash params in link hash table, and move
6095 some local vars into the link hash table too. For shared links,
6096 trundle over function syms, generating export stubs. Handle
6097 PCREL22F branches. Break out stub creation code from here..
6098 (hppa_add_stub): .. to here. New function.
6099 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
6100 call the bfd linker. Use elf_gp to record global pointer.
6101 Calculate a value from sections if $global$ is missing.
6102 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
6103 (elf32_hppa_gc_mark_hook): New function.
6104 (elf_backend_gc_mark_hook): Define.
6105 (elf32_hppa_gc_sweep_hook): New function.
6106 (elf_backend_gc_sweep_hook): Define.
6107 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
6108 Add rel to args, and remove howto, input_bfd, offset, addend,
6109 sym_name as we can recalculate these locally. Handle calls to
6110 dynamic objects, extra PIC relocs, PCREL22F branches. Change
6111 handling of undefined weak syms. Check that stubs are in range.
6112 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
6113 message on hitting a DPREL21L reloc that needs fixing. Subtract
6114 off PC for PCREL14F. Break out code that does a stub lookup from
6116 (hppa_get_stub_entry): ..to here. New function.
6117 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
6118 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
6120 (elf32_hppa_finish_dynamic_sections): New function.
6121 (elf_backend_finish_dynamic_sections): Define.
6122 (elf_backend_final_write_processing) Define.
6123 (hppa_handle_PIC_calls): New function.
6124 (elf32_hppa_build_stubs): Call it. Pass link_info to
6125 hppa_build_one_stub.
6126 (elf32_hppa_create_dynamic_sections): New function
6127 to create .plt and .got then set .plt flags correctly.
6128 (elf_backend_create_dynamic_sections): Define.
6129 (elf32_hppa_object_p): New function.
6130 (elf_backend_object_p): Define.
6131 (elf32_hppa_elf_get_symbol_type): New function.
6132 (elf_backend_get_symbol_type): Define.
6133 (elf_backend_can_gc_sections): Define.
6134 (elf_backend_want_got_plt): Define.
6135 (elf_backend_plt_alignment): Set to 2.
6136 (elf_backend_plt_readonly): Define.
6137 (elf_backend_want_plt_sym): Define.
6138 (elf_backend_got_header_size): Reserve one entry.
6140 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
6141 (elf32_hppa_size_stubs): Pass in multi_subspace.
6142 (elf32_hppa_set_gp): Declare.
6144 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
6145 (bfd_get_unique_section_name): New function.
6146 * bfd-in2.h: Regenerate.
6148 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
6149 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
6152 From David Huggins-Daines <dhd@linuxcare.com>
6153 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
6154 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
6155 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
6156 been updated in finish_dynamic_symbol before modifying function
6159 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
6160 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
6161 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
6162 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
6163 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
6164 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
6165 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
6166 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
6168 From David Huggins-Daines <dhd@linuxcare.com>
6169 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
6170 style of local labels as well.
6172 2000-09-03 Philip Blundell <philb@gnu.org>
6174 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
6175 references to undefined symbols in debugging sections.
6177 2000-09-02 H.J. Lu <hjl@gnu.org>
6179 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
6180 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
6181 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
6184 2000-09-02 Jason Eckhardt <jle@cygnus.com>
6186 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
6187 (elf32_i860_is_local_label_name): New function and prototype.
6189 2000-09-02 Nick Clifton <nickc@redhat.com>
6191 * configure.in: Increase version number to 2.10.91.
6192 * configure: Regenerate.
6193 * aclocal.m4: Regenerate.
6194 * config.in: Regenerate.
6195 * po/bfd.pot: Regenerate.
6197 2000-09-02 Daniel Berlin <dberlin@redhat.com>
6199 * elf.c (_bfd_elf_make_section_from_shdr): Add
6200 .gnu.linkobce.wi. to the list of debug section names.
6202 2000-09-02 Nick Clifton <nickc@redhat.com>
6204 * dwarf2.c (find_debug_info): New function: Locate a section
6205 containing dwarf2 debug information.
6206 (bfd_dwarf2_find_nearest_line): Find all sections containing
6207 debug information and include them in the stash.
6209 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
6211 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
6212 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
6213 (sh_reloc_map): Add new relocs.
6214 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
6215 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
6216 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
6217 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
6219 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
6220 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
6221 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
6222 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
6223 New array constants.
6224 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
6226 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
6227 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
6228 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
6229 elf_sh_plt_reloc_offset): Define.
6230 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
6231 elf_sh_link_hash_table): New structs.
6232 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
6233 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
6235 (elf_backend_create_dynamic_sections,
6236 bfd_elf32_bfd_link_hash_table_create,
6237 elf_backend_adjust_dynamic_symbol,
6238 elf_backend_size_dynamic_sections,
6239 elf_backend_finish_dynamic_symbol,
6240 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
6241 elf_backend_plt_readonly, elf_backend_want_plt_sym,
6242 elf_backend_got_header_size, elf_backend_plt_header_size):
6244 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
6245 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
6247 * bfd-in2.h, libbfd.h: Rebuilt.
6249 2000-09-01 Alan Modra <alan@linuxcare.com.au>
6251 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
6254 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
6256 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
6257 not initialized, set them to indicate the SH1 instruction set.
6259 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
6261 * acinclude.m4: Include libtool and gettext macros from the
6263 * aclocal.m4, configure: Rebuilt.
6265 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
6267 * elf.c: Eliminate references to __sparcv9 macro; replace with
6268 autoconf variables HAVE_PSINFO32_T etc.
6269 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
6270 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
6272 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
6273 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
6274 * aclocal.m4: Ditto.
6275 * configure: Regenerate.
6277 2000-08-27 Alan Modra <alan@linuxcare.com.au>
6279 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
6280 for any shared link, not just shared -Bsymbolic.
6281 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
6282 any shared link, and pass link info to it.
6283 (elf_i386_size_dynamic_sections): Update comment.
6284 (elf_i386_discard_copies): Modify to discard relocs for symbols
6285 that have been forced local.
6286 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
6287 that have been forced local.
6289 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
6291 * elflink.h (elf_link_add_object_symbols): Allow common
6292 symbols to have an alignment of 1 if explicitly requested, and
6293 not overridden by other definitions.
6295 2000-08-22 Doug Kwan <dkwan@transmeta.com>
6297 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
6298 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
6300 2000-08-22 H.J. Lu <hjl@gnu.org>
6302 * elf-bfd.h (elf_link_hash_table): Add runpath.
6304 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
6305 * bfd-in2.h: Rebuilt.
6307 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
6308 "runpath" field to NULL.
6309 (bfd_elf_get_runpath_list): New function.
6311 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
6314 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
6316 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
6317 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
6318 explicitly. Improve validation of r_type.
6320 2000-08-21 H.J. Lu <hjl@gnu.org>
6322 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
6323 dynamic allocated content space. Add a comment to remind us that
6324 one day this ought to be fixed.
6325 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6326 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6327 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6329 2000-08-21 Jason Eckhardt <jle@cygnus.com>
6331 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
6332 field with the newly relocated value instead of adding it to the
6333 existing immediate field.
6334 (elf32_i860_relocate_splitn): Likewise.
6335 (elf32_i860_relocate_highadj): Likewise.
6337 2000-08-16 Jason Eckhardt <jle@cygnus.com>
6339 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
6340 was previously just a stub).
6342 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
6344 * elflink.c (_bfd_elf_create_got_section): Don't abort().
6346 (_bfd_elf_create_dynamic_sections): Likewise.
6348 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
6350 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
6351 for undefined symbols to be the beginning of the section.
6353 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
6354 four extra entries at the beginning of the .rela.plt section.
6355 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
6356 section to account for the four reserved entries in the .plt section.
6358 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
6360 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
6361 to the list of NOPs we recognize after a branch-and-link.
6362 Use the ori NOP when one is needed.
6364 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
6367 2000-08-14 Jim Wilson <wilson@cygnus.com>
6369 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
6370 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
6371 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
6374 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
6376 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
6378 2000-08-10 Jason Eckhardt <jle@cygnus.com>
6380 * elf32-i860.c (elf32_i860_relocate_section): New function.
6381 (i860_final_link_relocate): New function.
6382 (elf32_i860_relocate_splitn): New function.
6383 (elf32_i860_relocate_pc16): New function.
6384 (elf32_i860_relocate_highadj): New function.
6385 (elf32_i860_howto): Minor adjustments to some relocations.
6386 (elf_info_to_howto_rel): Define.
6387 (elf_backend_relocate_section): Define.
6389 2000-08-10 Nick Clifton <nickc@cygnus.com>
6391 * elf32-arm.h: Fix formatting.
6393 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
6395 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
6397 2000-08-08 Jason Eckhardt <jle@cygnus.com>
6399 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
6401 2000-08-07 Kazu Hirata <kazu@hxi.com>
6403 * ieee.c (ieee_write_debug_part): Rewrite a comment.
6404 * elf64-ia64.c: Fix a typo.
6406 2000-08-05 Jason Eckhardt <jle@cygnus.com>
6408 * elf32-i860.c (elf32_i860_howto_table): New structure.
6409 (lookup_howto): New function.
6410 (elf32_i860_reloc_type_lookup): New function.
6411 (elf32_i860_info_to_howto_rela): New function.
6412 (elf_code_to_howto_index): New structure.
6413 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
6414 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
6415 elf32_i860_reloc_type_lookup.
6417 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
6419 * som.c (struct fixup_format): Constify `format'.
6420 (som_hppa_howto_table): Use SOM_HOWTO macro.
6421 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
6422 (som_bfd_reloc_type_lookup): Likewise.
6423 (compare_subspaces): Remove unused `count1', `count2'.
6424 (som_begin_writing): Remove unused `total_reloc_size'.
6425 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
6426 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
6427 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
6428 (som_find_nearest_line): Decorate unused parameter(s).
6429 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
6430 (som_bfd_link_split_section): Likewise.
6432 2000-08-03 Nick Clifton <nickc@cygnus.com>
6434 * section.c: Restore backed out code.
6435 * elf.c: Restore backed out code.
6436 (copy_private_bfd_data): Fix bug preventing stipped dynamic
6437 binaries from working.
6438 * bfd-in2.h: Regenerate.
6440 2000-08-03 H.J. Lu <hjl@gnu.org>
6442 * section.c: Back out the change made by Nick Clifton
6443 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
6445 * bfd-in2.h: Likewise.
6448 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
6450 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
6452 2000-07-31 Jason Eckhardt <jle@cygnus.com>
6454 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
6455 * bfd-in2.h, libbfd.h: Regenerate.
6457 2000-07-31 Nick Clifton <nickc@cygnus.com>
6459 * section.c (struct sec): Add new boolean field 'segment_mark'.
6460 (STD_SECTION): Initialise new field to zero.
6462 * bfd-in2.h: Regenerate.
6464 * elf.c (copy_private_bfd_data): Reorganise section to segment
6465 mapping to cope with moved sections requiring new segments,
6466 and overlapping segments.
6467 (SEGMENT_END): New macro: Return the end address of a segment.
6468 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
6469 contains a section by comparing their VMA addresses.
6470 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
6471 contains a section by comparing their LMA addresses.
6472 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
6473 section should be included in a segment.
6474 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
6475 follows another in memory.
6476 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
6479 2000-07-22 Jason Eckhardt <jle@cygnus.com>
6481 * cpu-i860.c: Added comments.
6483 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
6484 bfd_elf32_i860_little_vec.
6485 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
6486 (ELF_MAXPAGESIZE): Changed to 4096.
6488 * targets.c (bfd_elf32_i860_little_vec): Declaration of
6490 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
6492 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
6493 config for little endian elf32 i860.
6494 (targ_defvec): Define for the new config above
6495 as "bfd_elf32_i860_little_vec".
6496 (targ_selvecs): Define for the new config above
6497 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
6499 * configure.in (bfd_elf32_i860_little_vec): Added recognition
6502 * configure: Regenerated.
6504 2000-07-27 H.J. Lu <hjl@gnu.org>
6506 * elflink.h (elf_merge_symbol): Take one more argument,
6507 dt_needed, to indicate if the symbol comes from a DT_NEEDED
6508 entry. Don't overide the existing weak definition if dt_needed
6510 (elf_link_add_object_symbols): Pass dt_needed to
6511 elf_merge_symbol ().
6513 2000-07-27 Nick Clifton <nickc@cygnus.com>
6515 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
6518 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
6520 * configure.host (*-*-aix*): AIX has 'long long' always.
6522 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
6523 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
6524 (xcoff_write_archive_contents_big): Don't update the offset
6525 of the symbol table, xcoff_write_armap will do it.
6527 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
6529 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
6530 of dynobj for SGI_COMPAT checks.
6532 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6534 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
6535 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
6536 * bfd-in2.h: Regenerate.
6538 2000-07-21 Nick Clifton <nickc@cygnus.com>
6540 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
6541 range symbol indices in relocs and issue an error message.
6543 2000-07-20 H.J. Lu <hjl@gnu.org>
6545 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
6546 info->new_dtags when setting DT_FLAGS_1. It will only be set
6547 by the new linker options. It shouldn't break anything.
6549 2000-07-20 H.J. Lu <hjl@gnu.org>
6551 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
6552 only if info->new_dtags is true.
6554 2000-07-20 H.J. Lu <hjl@gnu.org>
6556 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
6557 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
6559 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
6561 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
6562 (ALL_MACHINES_CFILES): Add cpu-cris.c.
6563 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
6564 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
6565 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
6566 * Makefile.in: Rebuild.
6567 * aclocal.m4: Rebuild.
6568 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
6569 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
6570 (bfd_cris_arch): Declare.
6571 (bfd_archures_list): Add bfd_cris_arch.
6572 * bfd-in2.h: Rebuild.
6573 * config.bfd: (cris-*-*): New target.
6574 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
6575 * configure: Rebuild.
6576 * elf.c (prep_headers): Add bfd_arch_cris.
6577 * libbfd.h: Rebuild.
6578 * libaout.h (enum machine_type): Add M_CRIS.
6579 * reloc.c: Add CRIS relocations.
6580 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
6581 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
6582 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
6583 * po/POTFILES.in, po/bfd.pot: Regenerate.
6585 2000-07-19 H.J. Lu <hjl@gnu.org>
6587 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
6588 DF_TEXTREL if DT_TEXTREL is set.
6589 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
6590 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
6591 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6592 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
6593 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
6594 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6595 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
6596 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6597 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
6598 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
6600 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
6601 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
6603 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
6605 2000-07-19 H.J. Lu <hjl@gnu.org>
6607 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
6608 * bfd-in2.h: Rebuild.
6610 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
6611 (elf_dt_soname): New.
6613 * elf.c (bfd_elf_set_dt_needed_soname): New.
6615 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
6616 entry if the shared object loaded by DT_NEEDED is used to
6617 resolve the reference in a regular object.
6619 2000-07-19 H.J. Lu <hjl@gnu.org>
6621 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
6622 DT_DEPAUDIT and DT_AUDIT as strings.
6624 2000-07-19 Nick Clifton <nickc@cygnus.com>
6626 * format.c: Fix formatting.
6628 2000-07-19 H.J. Lu <hjl@gnu.org>
6630 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
6632 2000-07-19 H.J. Lu <hjl@gnu.org>
6634 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
6635 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
6636 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
6637 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
6638 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
6639 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
6640 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
6642 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
6644 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
6645 renamed functions from here...
6646 (assign_section_numbers): Use renamed functions.
6647 (prep_headers): Use renamed functions.
6649 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
6650 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
6651 * bfd-in2.h: Regenerate.
6653 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
6655 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
6656 parenthesis in if statement.
6658 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
6660 Enable the support for Traditional MIPS.
6661 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
6662 return ict_none appropriately for traditional mips targets.
6663 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
6664 (STUB_MOVE): Conditionalize for traditonal mips.
6665 (STUB_LI16): Likewise.
6666 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
6667 room for RTPROC header.
6668 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
6669 the permission for the PT_DYNAMIC as read, write and execute.
6670 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
6671 for traditonal mips.
6672 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
6673 _DYNAMIC_LINKING for traditonal mips.
6674 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
6675 in case of traditonal mips.
6676 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
6677 entry is required. For a function if PLT is not required then set the
6678 corresponding hash table entry to 0.
6679 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
6681 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
6682 shared object set the value to 0.
6683 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
6684 _DYNAMIC_LINKING for traditonal mips.
6685 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
6686 for traditonal mips.
6688 2000-07-15 H.J. Lu <hjl@gnu.org>
6690 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
6692 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
6694 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
6695 out a structure that is BFD_IN_MEMORY.
6697 2000-07-11 Alan Modra <alan@linuxcare.com.au>
6699 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
6700 bfd pointer. Print section id instead of bfd pointer for local
6701 syms. Prefix addend with `+' for global syms as well as local.
6702 Correct calculation of name component lengths.
6703 (elf64_hppa_check_relocs): Update call to get_dyn_name.
6705 From David Huggins-Daines <dhd@linuxcare.com>
6706 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
6707 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
6708 (elf64_hppa_modify_segment_map): Likewise.
6710 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6712 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
6713 addresses to be "naturally" sign extended. Return -1 if unknown.
6714 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6715 * bfd-in2.h: Regenerate.
6717 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6719 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
6720 and ECOF_SIGNED_64 to list ways to extract an offset.
6721 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
6722 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
6724 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
6725 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
6727 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6729 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
6730 bfd_get_start_address.
6731 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
6732 (elf_swap_ehdr_out): Ditto.
6734 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
6736 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
6737 compatibility with older binutils.
6739 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6741 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
6742 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
6744 From Ryan Bradetich <rbradetich@uswest.net>
6745 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
6746 (parse_line_table): Ditto.
6747 (_bfd_dwarf1_find_nearest_line): Ditto.
6748 * syms.c (cmpindexentry): Remove extra `*' from params.
6750 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
6752 * elf32-mips.c (sort_dynamic_relocs): New Function.
6753 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
6754 via qsort to sort the dynamic relocations in increasing r_symndx
6757 2000-07-09 Alan Modra <alan@linuxcare.com.au>
6759 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
6760 ATTRIBUTE_UNUSED to unused args.
6761 (get_opd): Likewise.
6762 (get_plt): Likewise.
6763 (get_dlt): Likewise.
6764 (get_stub): Likewise.
6765 (elf64_hppa_adjust_dynamic_symbol): Likewise.
6766 (elf64_hppa_link_output_symbol_hook): Likewise.
6767 (elf64_hppa_check_relocs): Delete unused var.
6768 (elf64_hppa_size_dynamic_sections): Likewise.
6769 (elf64_hppa_finalize_opd): Likewise.
6770 (elf64_hppa_finalize_dynreloc): Likewise.
6771 (elf64_hppa_modify_segment_map): Likewise.
6772 (elf64_hppa_finish_dynamic_sections): Likewise.
6774 * elf-hppa.h (elf_hppa_final_write_processing): Add
6775 ATTRIBUTE_UNUSED to unused args.
6776 (elf_hppa_final_link_relocate): Likewise.
6777 (elf_hppa_record_segment_addrs): Add paretheses.
6778 (elf_hppa_relocate_section): Constify dyn_name.
6780 From David Huggins-Daines <dhd@linuxcare.com>
6781 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
6782 rearrange case statement so that it gets preferred to 32-bit ones.
6784 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
6785 asection->id instead of address of asection structure.
6786 (elf32_hppa_size_stubs): Likewise.
6788 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
6789 for .init* and .fini*.
6791 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
6792 and addends used in stub names to 32 bits.
6793 (elf32_hppa_size_stubs): Likewise.
6795 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
6796 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
6797 not bfd_put_64. Fix minor comment typo and formatting.
6799 Changes to create multiple linker stubs, positioned immediately
6800 before the section where they are required.
6801 * elf32-hppa.c: Don't include hppa_stubs.h.
6802 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
6803 (elf32_hppa_stub_hash_table): Delete.
6804 (elf32_hppa_link_hash_entry): Delete.
6805 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
6806 stub_hash_table, and store the struct here rather than a pointer.
6807 Delete output_symbol_count. Add offset array. Change
6808 global_value to a bfd_vma.
6809 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
6810 (elf32_hppa_stub_hash_traverse): Delete.
6811 (elf32_hppa_name_of_stub): Delete.
6812 (elf32_hppa_link_hash_lookup): Delete.
6813 (elf32_hppa_link_hash_traverse): Delete.
6814 (elf32_hppa_stub_hash_table_init): Delete.
6815 (elf32_hppa_size_of_stub): Pass input section and offset rather
6816 than location and calculate location here. Don't pass name as all
6817 stubs are now the same size.
6818 (elf32_hppa_stub_hash_newfunc): Init new fields.
6819 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
6821 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
6822 comparing against ints. Rewrite stub handling code.
6823 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
6824 Case enums to int before comparing against ints. Remove
6825 bfd_reloc_dangerous case.
6826 (elf32_hppa_build_one_stub): Rewrite.
6827 (elf32_hppa_size_one_stub): New function.
6828 (elf32_hppa_build_stubs): Rewrite.
6829 (elf32_hppa_size_stubs): Pass in linker call-back functions.
6830 Rewrite stub-handling specific code.
6832 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
6834 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
6836 * hppa_stubs.h: Delete.
6837 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
6838 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
6839 * Makefile.in: Regenerate.
6841 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
6844 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
6846 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
6847 and section name for bfd_reloc_notsupported error message.
6848 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
6849 bfd_reloc_notsupported.
6850 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
6852 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
6853 undefined weak symbols for all relocs.
6854 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
6855 offsets are relative to one past the delay slot.
6856 (elf32_hppa_size_stubs): Account for reloc addend when calculating
6857 branch destination. Put addend into stub name too.
6858 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
6859 adjust by 8 when deciding whether a linker stub is needed. Put
6860 addend into stub name as for above.
6862 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
6863 various args and vars.
6864 (elf32_hppa_bfd_final_link_relocate): Here too.
6865 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
6866 inner block var to avoid shadowing.
6868 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
6870 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
6871 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
6872 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
6874 * libhppa.h: Change practically all unsigned ints to plain ints.
6875 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
6878 From Ryan Bradetich <rbradetich@uswest.net>
6879 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
6880 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
6882 From David Huggins-Daines <dhd@linuxcare.com>
6883 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
6884 to the new OP_* ones.
6886 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
6887 error exit. Bail out earlier on plabel relocs that we aren't
6888 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
6889 string, and then don't free our copy.
6890 (elf32_hppa_build_one_stub): Make insn unsigned int.
6892 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
6893 available with BL, not BE and BLE.
6895 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
6896 code for elf arg relocs.
6897 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
6898 argument with elf_link_hash_entry h. Handle undefined weak
6899 symbols. Move $global$ lookup from here...
6900 (elf32_hppa_relocate_section): ...to here. Return correct error
6901 message for non-handled relocs.
6902 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
6903 wrong test was -0x3ffff to +0x40000.
6905 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
6906 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
6907 Handle them as such.
6908 (elf_hppa_relocate_insn): Fix a typo.
6910 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
6911 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6912 assemble_17, assemble_21): Delete.
6913 Supply defines for all 64 possible opcodes.
6914 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
6915 formats. Handle COMICLR.
6916 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
6919 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
6920 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
6921 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
6923 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
6924 the local syms - did this code get deleted accidentally? Ignore
6925 undefined and undefweak syms.
6927 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
6928 block. Use it instead of elf64_hppa_hash_table (info).
6929 (elf_hppa_final_link_relocate): Use hppa_info instead of
6930 elf64_hppa_hash_table (info).
6932 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6933 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6934 (hppa_rebuild_insn): Mask immediate bits here instead.
6935 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6937 2000-07-08 Alan Modra <alan@linuxcare.com.au>
6939 * section.c (struct sec): Add id field. Tidy comment formatting.
6940 (bfd_make_section_anyway): Set id.
6941 (STD_SECTION): Init id too.
6942 Change CONST to const throughout.
6943 * archures.c (bfd_arch_info): Tidy comment.
6944 (bfd_arch_list): Change a CONST to const.
6945 * libbfd-in.h: Tidy comments and replace CONST with const.
6946 * elf-bfd.h: Likewise.
6947 * libbfd.h: Regenerate.
6948 * bfd-in2.h: Regenerate.
6949 * libcoff.h: Regenerate.
6951 2000-07-07 DJ Delorie <dj@redhat.com>
6953 * archive.c (_bfd_write_archive_contents): Add an informative
6956 2000-07-06 Kazu Hirata <kazu@hxi.com>
6958 * srec.c: Fix formatting.
6960 2000-06-05 DJ Delorie <dj@redhat.com>
6964 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
6966 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
6967 value of PC-relative offsets.
6969 2000-07-03 Jim Wilson <wilson@cygnus.com>
6971 * elf64-alpha.c (alpha_elf_size_info): New.
6972 (elf_backend_size_info): Define to alpha_elf_size_info.
6973 * elfcode.h (elf_size_info): Change hash bucket size to 4.
6975 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
6977 * elf32-mips.c: Include elf32-target.h again for the traditional
6980 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
6982 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
6983 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
6984 (avr_info_to_howto_rela): Likewise.
6985 (elf32_avr_gc_mark_hook): Likewise.
6986 (elf32_avr_gc_sweep_hook): Likewise.
6987 (elf32_avr_relocate_section): Likewise.
6989 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
6991 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
6992 an external symbol for a non-shared, non-relocatable link.
6994 2000-07-03 Nick Clifton <nickc@redhat.com>
6996 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
6997 is an external symbol.
6998 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
7001 2000-07-03 Kazu Hirata <kazu@hxi.com>
7003 * reloc16.c: Fix formatting.
7005 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
7007 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
7008 to add a new target for traditional mips i.e
7009 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
7010 * configure.in: Likewise.
7011 * configure: Rebuild.
7012 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
7014 (bfd_elf32_tradlittlemips_vec): Likewise.
7015 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
7016 to see that elfNN_bed does not get redefined even if the target file
7017 is included twice for a chip. See elf32-mips.c.
7019 2000-07-01 Alan Modra <alan@linuxcare.com.au>
7021 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
7022 (CLEANFILES): Add DEPA.
7023 * Makefile.in: Regenerate.
7025 2000-06-30 DJ Delorie <dj@cygnus.com>
7027 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
7028 can't assume the PE header is at 0x80.
7030 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
7032 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
7034 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
7036 * go32stub.h: Update stub.
7038 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
7040 * archures.c (bfd_mach_avr5): Define.
7041 * bfd-in2.h (bfd_mach_avr5): Define.
7042 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
7043 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
7044 (compatible): Update comment. Add missing test.
7045 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
7046 for avr2 and avr4. Simplify 8K wrap code.
7047 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
7048 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
7050 2000-06-26 Kazu Hirata <kazu@hxi.com>
7052 * coff-h8300.c: Fix formatting.
7053 * cpu-h8300.c: Likewise.
7055 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
7057 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
7058 for local symbols whose names are unknown.
7060 2000-06-22 Alan Modra <alan@linuxcare.com.au>
7062 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
7064 * Makefile.in: Regenerate.
7065 * doc/Makefile.in: Regenerate.
7067 2000-06-20 H.J. Lu <hjl@gnu.org>
7069 * Makefile.am: Rebuild dependency.
7070 * Makefile.in: Rebuild.
7072 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7074 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
7075 (elf_backend_copy_indirect_symbol): Map to the new function.
7077 2000-06-20 Alan Modra <alan@linuxcare.com.au>
7079 * archive.c (normalize): Correct pointer comparison when checking
7081 (bfd_bsd_truncate_arname): Likewise.
7082 (bfd_gnu_truncate_arname): Likewise.
7084 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
7086 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
7087 sections elf_{text,data}_{section,symbol}.
7088 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
7089 (_bfd_mips_elf_hide_symbol): New function.
7090 (elf_backend_hide_symbol): Map to the new function.
7091 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
7092 definitions of mips_elf_{text,data}_{section,symbol}.
7093 (mips_elf_local_relocation_p): Try to find the direct symbol
7094 based on new check_forced argument.
7095 (mips_elf_calculate_relocation): Use new version of
7096 mips_elf_local_relocation_p.
7097 (mips_elf_relocate_section): Likewise.
7098 (_bfd_mips_elf_relocate_section): Likewise.
7099 (mips_elf_sort_hash_table): Only assert that have enough GOT
7101 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
7102 entry if the relocation based on the new external argument.
7103 (mips_elf_create_dynamic_relocation): Assert that we have a
7104 section contents allocated where we can swap out the dynamic
7106 (mips_elf_calculate_relocation): Find the real hash-table entry
7107 correctly by using h->root.root.type. Only create a dynamic
7108 relocation entry if the symbol is defined in a shared library.
7109 Create an external GOT entry for the GOT16 relocation if the
7110 symbol was forced local.
7111 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
7112 dynamic index if the symbol was forced local.
7114 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7116 * elf32-mips.c: Fix typos in comments.
7118 2000-06-19 Mark Kettenis <kettenis@gnu.org>
7120 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
7123 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
7125 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
7126 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
7127 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
7128 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
7129 (bfd_elf32_m68hc11_vec): Likewise.
7130 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
7131 Supports 68hc11 & 68hc12 at the same time.
7132 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
7134 (bfd_elf32_m68hc11_vec): Likewise.
7135 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
7136 * archures.c (bfd_m68hc12_arch): Define and register in global list
7137 (bfd_m68hc11_arch): Likewise.
7138 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
7139 BFD_RELOC_M68HC11_3B): Define.
7140 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
7141 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
7143 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
7145 * elf_bfd.h (struct elf_backend_data): Add info argument to
7146 elf_backend_hide_symbol.
7147 (_bfd_elf_link_hash_hide_symbol): Likewise.
7148 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
7149 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
7150 * elflink.h (elf_link_add_object_symbols): Likewise.
7151 (elf_link_assign_sym_version): Likewise.
7153 2000-06-18 H.J. Lu <hjl@gnu.org>
7155 * coff-i386.c (coff_i386_reloc): Don't return in case of
7156 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
7157 Compensate PE relocations when linking with non-PE object
7158 files to generate a non-PE executable.
7160 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
7162 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
7163 GOT entries if we're doing a static link or -Bsymbolic link.
7165 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
7167 * elflink.h (elf_link_adjust_relocs): Check for and call backend
7168 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
7170 (elf_link_output_relocs): Likewise.
7171 (elf_reloc_link_order): Likewise.
7173 2000-06-16 Nicholas Duffek <nsd@redhat.com>
7175 * archures.c (enum bfd_architecture): #define constants for
7176 PowerPc and RS6000 machine numbers.
7177 * bfd-in2.h: Regenerate.
7178 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
7179 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
7180 and RS6000 machine numbers using #defined constants from
7182 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
7183 machine numbers using #defined constants from archures.c. Add
7184 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
7185 64-bit words in 620 entry.
7186 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
7188 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
7190 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
7192 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
7193 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
7194 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
7196 2000-06-16 Nicholas Duffek <nsd@redhat.com>
7198 * bfd-in.h (bfd_family_coff): Define.
7199 * bfd-in2.h: Regenerate.
7200 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
7201 coff_find_nearest_line): Check COFFness using bfd_family_coff()
7202 instead of bfd_target_coff_flavour.
7203 * cofflink.c (_bfd_coff_final_link): Likewise.
7204 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
7205 exclude XCOFF files.
7206 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7208 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
7209 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
7210 * xcofflink.c (XCOFF_XVECP): Delete.
7211 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
7212 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
7213 bfd_xcoff_record_link_assignment,
7214 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
7215 check for bfd_target_xcoff_flavour.
7217 2000-06-16 Nicholas Duffek <nsd@redhat.com>
7219 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
7221 (read_hdr): New function.
7222 (rs6000coff_core_p): Store mstsave or __context64 struct instead
7223 of trying to extract individual registers. Set abfd->arch_info
7224 to match the architecture that created the core file.
7225 (rs6000coff_get_section_contents): Delete.
7226 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
7228 2000-06-14 H.J. Lu <hjl@gnu.org>
7230 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
7233 2000-06-13 H.J. Lu <hjl@gnu.org>
7235 * configure: Regenerate.
7237 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
7239 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
7242 2000-06-08 David O'Brien <obrien@FreeBSD.org>
7244 * configure.in (VERSION): Update to show this is the CVS mainline.
7246 2000-06-07 Alan Modra <alan@linuxcare.com.au>
7248 * elf32-d10v.c: Include elf/d10v.h
7249 (enum reloc_type): Delete.
7250 * elf32-d30v.c: Include elf/d30v.h
7251 (enum reloc_type): Delete.
7253 * Makefile.am: Run "make dep-am" to regenerate dependencies.
7254 * Makefile.in: Regenerate.
7256 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
7257 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
7258 move HOWTOs into elf_howto_table.
7259 (R_386_standard, R_386_ext_offset): Define.
7260 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
7261 (elf_i386_reloc_type_lookup): Modify calculation of index into
7262 elf_howto_table since we've removed the padding.
7263 (elf_i386_info_to_howto_rel): Likewise.
7264 (elf_i386_relocate_section): Likewise.
7266 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
7268 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
7270 2000-06-05 H.J. Lu <hjl@gnu.org>
7272 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
7273 an error when seeing an undefined symbol with hidden/internal
7274 attribute. It is handled in *_relocate_section ().
7276 2000-06-05 H.J. Lu <hjl@gnu.org>
7278 * elflink.h (elf_fix_symbol_flags): Follow the link for the
7279 indirect symbol for the ELF_LINK_NON_ELF bit.
7280 (elf_link_output_extsym): Don't output the indirect symbol even
7281 if the ELF_LINK_NON_ELF bit is set.
7283 2000-06-01 J.T. Conklin <jtc@redback.com>
7285 * config.bfd (i[3456]86-*-netbsdelf*): New target.
7286 (i[3456]86-*-netbsdaout*): New target.
7287 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
7288 (i[3456]86-*-openbsd*): Likewise.
7290 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
7292 * trad-core.c: From hpux-core.c, include <dirent.h> or
7293 <sys/ndir.h> when possible.
7295 2000-05-31 Ulrich Drepper <drepper@redhat.com>
7297 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
7298 definitions. We must not assume they are sorted in the file
7299 according to their index numbers.
7301 2000-05-31 Alan Modra <alan@linuxcare.com.au>
7303 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
7304 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
7305 R_PARISC_DIR17F are for absolute branches; Handle them as such.
7307 2000-05-30 Nick Clifton <nickc@cygnus.com>
7309 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
7310 80960CA, 80960MC as valid machine names.
7312 2000-05-30 H.J. Lu <hjl@gnu.org>
7314 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
7315 visibility bits if the symbol is undefined. Correctly handle
7316 weak undefined symbols with hidden and internal attributes.
7318 * elflink.h (elf_link_add_object_symbols): Always turn the
7319 symbol into local if it has the hidden or internal attribute.
7321 2000-05-29 Philip Blundell <philb@gnu.org>
7323 * ppcboot.c: Add packed attribute if compiling with GCC.
7325 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
7327 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
7329 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
7331 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
7332 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
7333 corefile on a 64-bit (Sparc Solaris) host. Also clean up
7336 2000-05-26 Alan Modra <alan@linuxcare.com.au>
7338 * Makefile.am: Update dependencies with "make dep-am"
7339 * Makefile.in: Regenerate.
7341 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
7342 bindtextdomain): Replace defines with those from intl/libgettext.h
7343 to quieten gcc warnings.
7345 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
7347 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
7349 * archive.c (normalize, bfd_bsd_truncate_arname,
7350 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
7351 file names with backslashes.
7353 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
7356 * sysdep.h: Include filenames.h.
7358 2000-05-26 Alan Modra <alan@linuxcare.com.au>
7360 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
7362 2000-05-26 Jakub Jelinek <jakub@redhat.com>
7364 * elf64-sparc.c (sparc64_elf_relax_section): New.
7365 (sparc64_elf_relocate_section): Optimize tail call into branch always
7367 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7368 (elf32_sparc_relax_section): New.
7370 2000-05-26 Jakub Jelinek <jakub@redhat.com>
7372 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
7373 Remove unusued variables.
7374 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
7375 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
7376 previous fix, so that shared libs really don't influence targets
7377 extension mask and memory model.
7379 2000-05-23 H.J. Lu <hjl@gnu.org>
7381 * elf64-alpha.c (elf64_alpha_relocate_section): Check
7382 h->root.other not h->other.
7383 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7385 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
7387 2000-05-23 H.J. Lu <hjl@gnu.org>
7389 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
7390 undefined symbol with the non-default visibility attributes.
7391 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
7392 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7393 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7394 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7395 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7396 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7397 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7398 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7399 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7400 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
7401 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7403 2000-05-22 Richard Henderson <rth@cygnus.com>
7405 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
7406 PCREL22, PCREL64I. Zero size of special relocs.
7407 (elf64_ia64_reloc_type_lookup): Likewise.
7408 (USE_BRL, oor_brl, oor_ip): New.
7409 (elf64_ia64_relax_section): New.
7410 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
7411 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
7412 (elf64_ia64_relocate_section): Likewise.
7413 (bfd_elf64_bfd_relax_section): New.
7414 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
7415 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
7416 * bfd-in2.h, libbfd.h: Regenerate.
7418 2000-05-22 Nick Clifton <nickc@cygnus.com>
7420 * configure.in : Add peigen.lo to MIPS PE targets.
7421 * configure: Regenerate.
7423 2000-05-22 Momchil Velikov <velco@fadata.bg>
7425 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
7426 only if it is known for both input and output bfds. Separate
7427 error message strings as in some languages, it may be necessary
7428 to change more than one place in the string to change between
7431 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
7432 endianess checks, call _bfd_generic_verify_endian_match() instead.
7434 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
7436 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
7438 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
7439 endianess before checking bfd flavours.
7441 2000-05-22 H.J. Lu <hjl@gnu.org>
7443 * elflink.h (elf_link_output_extsym): Clear the visibility
7444 field for symbols not defined locally.
7446 2000-05-18 Alan Modra <alan@linuxcare.com.au>
7448 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
7449 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
7450 (hppa_rebuild_insn): Mask immediate bits here instead.
7451 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
7453 2000-05-18 Momchil Velikov <velco@fadata.bg>
7455 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
7456 relocs for an executable, ensure that they are virtual addresses.
7458 2000-05-18 Jeffrey A Law (law@cygnus.com)
7460 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
7462 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
7463 Rick Gorton <gorton@scrugs.lkg.dec.com>
7465 * elflink.h: Add emitrelocations support: when enabled, relocation
7466 information and relocation sections are put into final output
7467 executables. If the emitrelocations flag is set, do the following:
7468 (elf_bfd_final_link): Emit relocation sections.
7469 (elf_link_input_bfd): Compute relocation section contents.
7470 (elf_gc_sections): Don't clean relocation sections.
7472 2000-05-16 Catherine Moore <clm@cygnus.com>
7474 * som.c (som_decode_symclass): Recognize weak symbols.
7476 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
7478 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
7479 read idata section only from dataoff.
7480 (pe_print_edata): Correctly check for valid eat_member.
7482 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
7484 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
7486 2000-05-14 Philip Blundell <philb@gnu.org>
7488 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
7490 2000-05-12 Alan Modra <alan@linuxcare.com.au>
7492 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
7494 * peigen.c (pe_print_idata): Look for .idata section and print
7495 info even if data directory has zero entries. Read idata section
7496 starting from dataoff, and adjust all data offsets to suit. Cast
7497 all bfd_vma vars to unsigned long before passing to fprintf.
7498 * peigen.c (pe_print_edata): Similarly, look for .edata section
7499 and print info even if data directory has zero entries. Cast
7500 all bfd_vma vars to unsigned long before passing to fprintf.
7502 From Szabolcs Szakacsits <szaka@F-Secure.com>
7503 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
7504 directory size which may be bogus.
7505 * peigen.c (pe_print_edata): Similarly.
7507 2000-05-09 Alan Modra <alan@linuxcare.com.au>
7509 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
7511 (copy_private_bfd_data): Allow for space possibly taken up by elf
7512 headers when calculating segment physical address from lma.
7514 2000-05-08 Alan Modra <alan@linuxcare.com.au>
7516 * versados.c (versados_scan): Init stringlen and pass_2_done.
7518 * trad-core.c (trad_unix_core_file_p): Return
7519 bfd_error_wrong_format rather than bfd_error_file_truncated.
7521 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
7522 add_data_entry. DataDirectory virtual address is relative.
7523 (pe_print_idata): Account for relative DataDirectory virtual
7524 addresses. Don't trash datasize inside POWERPC_LE_PE code.
7525 (pe_print_edata): Similarly.
7527 From Szabolcs Szakacsits <szaka@F-Secure.com>
7528 * peigen.c (dir_names): Add Delay Import Directory.
7529 (pe_print_idata): Always search for bfd section containing
7530 idata address rather than looking up section name. Print this
7531 section name rather than .idata.
7532 (pe_print_edata): Similarly. Also print some fields as %08lx.
7533 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
7536 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7538 * xcoff.h: Rename to xcoff-target.h
7539 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
7540 * coff-rs6000.c: Ditto.
7541 * coff64-rs6000.c: Ditto.
7542 * coff-pmac.c: Ditto.
7543 * Makefile.in: Regenerate.
7545 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7547 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
7548 Change U802TOC64MAGIC to U803XTOCMAGIC.
7550 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
7552 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
7553 * bfd-in.h: Prototype bfd_elf_get_arch_size.
7554 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
7556 2000-05-04 Alan Modra <alan@linuxcare.com.au>
7558 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
7560 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
7562 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
7563 hidden and internal symbols.
7564 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
7566 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
7567 assign a PLT or GOT entry to symbols with hidden and
7568 internal visibility.
7570 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
7572 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
7574 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
7576 2000-05-02 H.J. Lu <hjl@gnu.org>
7578 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
7581 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7583 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
7584 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
7586 * Makefile.in: Regenerate.
7588 2000-05-01 Jim Wilson <wilson@cygnus.com>
7590 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
7591 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
7592 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
7593 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
7594 * Makefile.in: Rebuild.
7596 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7598 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
7599 doesn't work very well.
7601 * elf-hppa.h (elf_hppa_internal_shdr): Define.
7602 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
7603 Set hdr->s_type to 1 if ARCH_SIZE == 32.
7604 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
7605 (elf_hppa_info_to_howto): Likewise.
7606 (elf_hppa_info_to_howto_rel): Likewise.
7607 (elf_hppa_reloc_type_lookup): Likewise.
7608 (elf_hppa_is_local_label_name): Likewise.
7609 (elf_hppa_fake_sections): Likewise.
7610 (elf_hppa_final_write_processing): Likewise.
7611 (elf_hppa_howto_table): Fully initialise all entries.
7612 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
7613 (elf_hppa_info_to_howto): Likewise.
7614 (elf_hppa_info_to_howto_rel): Likewise.
7615 (elf_hppa_reloc_type_lookup): Likewise.
7616 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
7617 elf_hppa_unmark_useless_dynamic_symbols,
7618 elf_hppa_remark_useless_dynamic_symbols,
7619 elf_hppa_record_segment_addrs, elf_hppa_final_link,
7620 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
7621 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
7622 elf32-hppa.c mess is cleaned up.
7623 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
7624 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
7625 r_field then call hppa_field_adjust inline func with variable
7626 r_field arg, instead call hppa_field_adjust with fixed arg.
7627 In case R_PARISC_PCREL22F, don't set r_field.
7628 (elf_hppa_relocate_insn): Change args and return type to unsigned
7629 int. Call re_assemble_* funcs to do the work.
7631 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
7634 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
7636 (sign_extend): Mask first before sign extending.
7637 (low_sign_extend): Rewrite without condition expression.
7638 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
7639 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
7640 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
7641 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
7642 result as function return value rather than through pointer arg.
7643 Accept unsigned int args, and return unsigned int.
7644 (re_assemble_3): New. Combines function of dis_assemble_3 with
7645 re-assembly of opcode and immediate.
7646 (re_assemble_12): Likewise.
7647 (re_assemble_16): Likewise.
7648 (re_assemble_17): Likewise.
7649 (re_assemble_21): Likewise.
7650 (re_assemble_22): Likewise.
7651 (hppa_field_adjust): Rewrite and document, paying attention to
7652 size of types and signed/unsigned issues.
7653 (get_opcode): Shift before masking.
7654 (FDLW): Rename to FLDW.
7655 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
7656 (hppa_rebuild_insn): Change args and return value to unsigned
7657 int. Make use of re_assemble_*. Correct case 11.
7659 * dep-in.sed: Handle ../opcodes/.
7660 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
7661 elf64-hppa.h, hppa_stubs.h, xcoff.h.
7662 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
7663 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
7664 elfarm-nabi.lo dependencies outside of auto-dependency area.
7665 Regenerate dependencies.
7666 * Makefile.in: Regenerate.
7668 * configure.in (TRAD_HEADER): Test non-null before
7670 * configure: Regenerate.
7672 * reloc.c: Fix mis-spelling in comment.
7674 2000-05-01 Alan Modra <alan@linuxcare.com.au>
7676 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
7677 * vms.c (vms_openr_next_archived_file): Return NULL.
7679 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7681 * coffcode.h Copy changes mistakenly done to libcoff.h in
7684 2000-04-29 Andreas Jaeger <aj@suse.de>
7686 * libbfd-in.h: Correctly check GCC version.
7687 * bfd-in.h: Likewise.
7688 * libhppa.h: Likewise.
7689 * libbfd.h: Regenerate.
7690 * bfd-in2.h: Regenerate.
7692 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7694 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
7695 coffdu-rs6000.{lo,c}.
7696 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
7698 * Makefile.in: Regenerate.
7699 * xcoff.h: New file.
7700 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
7701 * coff-rs6000.c: Move all declarations and defines that are
7702 common to the xcoff backends into xcoff.h
7703 * coff64-rs6000.c: Ditto,
7705 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7707 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
7708 _bfd_coff_force_symnames in strings and
7709 _bfd_coff_debug_string_prefix_length to their default values.
7710 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
7712 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7714 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
7715 _bfd_coff_force_symnames in strings and
7716 _bfd_coff_debug_string_prefix_length to their default values.
7718 2000-04-27 Alan Modra <alan@linuxcare.com.au>
7720 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
7721 Check local_got_refcounts before dereferencing.
7723 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
7724 before deciding we don't need R_PPC_PLT32 relocation.
7725 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
7728 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
7730 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
7732 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
7733 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
7734 (elf_i386_relocate_section): Allow for .plt to go missing.
7735 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
7736 can use a relative reloc for got as elf_i386_relocate_section.
7737 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
7739 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
7741 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
7743 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
7745 * Makefile.am (coff64-rs6000.lo): New rule.
7746 * Makefile.in: Regenerate.
7747 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
7748 xcoff_is_local_label_name, xcoff_rtype2howto,
7749 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
7750 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
7751 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
7752 (NO_COFF_SYMBOLS): Define.
7753 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
7754 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
7756 (MINUS_ONE): New macro.
7757 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
7759 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
7760 coff_SWAP_aux_out): Map to the new functions.
7761 * coff64-rs6000.c: New file.
7762 * libcoff.h (bfd_coff_backend_data): Add new fields
7763 _bfd_coff_force_symnames_in_strings and
7764 _bfd_coff_debug_string_prefix_length.
7765 (bfd_coff_force_symnames_in_strings,
7766 bfd_coff_debug_string_prefix_length): New macros for above fields.
7767 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
7768 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
7769 of using coff_swap_sym_in directly.
7770 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
7771 (coff_set_flags) Set magic for XCOFF64.
7772 (coff_compute_section_file_positions): Add symbol name length to
7773 string section length if bfd_coff_debug_string_prefix_length is
7775 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
7776 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
7777 using coff_swap_lineno_in directly.
7778 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
7779 and _bfd_coff_debug_string_prefix_length fields.
7780 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
7781 symbol names into strings table when
7782 bfd_coff_force_symnames_in_strings is true.
7783 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
7784 SET_RELOC_VADDR): New macros.
7785 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
7786 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
7788 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
7789 changes within RS6000COFF_C specific code.
7790 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
7791 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
7792 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7793 Extend existing hack on target name.
7794 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
7796 * coff-tic54x.c (ticof): Keep up to date with new fields
7797 in bfd_coff_backend_data.
7798 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
7799 targ_selvecs to include rs6000coff64_vec for rs6000.
7800 * configure.in: Add rs6000coff64_vec case.
7801 * cpu-powerpc.c: New bfd_arch_info_type.
7803 2000-04-24 Jeffrey A Law (law@cygnus.com)
7805 * config.bfd: Only disable elf32-hppa vectors, not all of the
7806 BSD and OSF configuration support. Provide (disabled) clauses
7808 * configure.in: Add clause for PA64 support.
7809 * configure: Rebuilt.
7811 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
7812 (bfd_elf64_hppa_vec): Declare.
7814 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
7815 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
7816 (elf64-hppa.lo): Add dependencies.
7817 * Makefile.in: Rebuilt.
7819 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
7821 2000-04-24 Jason Eckhardt <jle@cygnus.com>
7823 * libhppa.h (dis_assemble_16): New function.
7824 (pa_arch): Added pa20w element.
7826 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
7828 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
7829 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
7830 bfd_elf64_slurp_reloc_table.
7832 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
7833 definitions to get external names.
7834 (elf_write_relocs): Renamed from write_relocs and make global.
7835 (elf_slurp_reloc_table): Make global.
7836 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
7838 * archive.c (hpux_uid_gid_encode): New function.
7839 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
7840 defined and the ID is greater than 99999.
7841 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
7842 special uid/gid fields into 32 bit values.
7844 2000-04-21 Matthew Green <mrg@cygnus.com>
7846 * config.bfd: Add NetBSD/sparc64 support.
7848 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
7849 David Mosberger <davidm@hpl.hp.com>
7850 Timothy Wall <twall@cygnus.com>
7851 Jim Wilson <wilson@cygnus.com>
7853 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
7854 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
7855 (BFD64_BACKENDS): Add elf64-ia64.lo.
7856 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
7857 (cpu-ia64.lo, elf64-ia64.lo): New rules.
7858 * Makefile.in: Rebuild.
7859 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
7860 (bfd_ia64_arch): Declare.
7861 (bfd_archures_list): Add bfd_ia64_arch.
7862 * bfd-in2.h: Rebuild.
7863 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
7864 * configure: Rebuild.
7865 * configure.host: (ia64-*-linux*): New host.
7866 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
7867 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
7868 * elf.c (prep_headers): Add bfd_arch_ia64.
7869 * libbfd.h: Rebuild.
7870 * reloc.c: Add IA-64 relocations.
7871 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
7873 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
7874 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
7876 2000-04-21 Richard Henderson <rth@cygnus.com>
7878 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
7879 contents when performing a partial link.
7880 (bfd_elf_d30v_reloc_21): Likewise.
7882 2000-04-20 H.J. Lu <hjl@gnu.org>
7884 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
7885 patch to symbols defined by a shared object.
7886 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
7888 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7891 * dwarf2.c (concat_filename): Avoid string literal concatenation.
7892 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
7894 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
7896 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
7897 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
7898 (coff-ia64.lo): Add dependency.
7899 * Makefile.in: Regenerate.
7900 * coff-ia64.c: New file.
7901 * efi-app-ia32.c: Ditto.
7902 * efi-app-ia64.c: Ditto.
7903 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
7904 (coff_set_flags): Ditto.
7905 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
7906 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
7907 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
7908 * configure: Regenerate.
7909 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
7910 (PUT_OPTHDR_IMAGE_BASE): Ditto.
7911 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7912 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7913 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7914 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7915 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7916 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7917 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7918 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7919 (GET_PDATA_ENTRY): Ditto.
7920 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
7921 data_start. Use above macros to read fields that are 64 bit wide for
7922 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
7923 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
7924 FileAlignment and SectionAlignment to minimum alignment if they
7926 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
7927 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
7928 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
7929 Use above macros to write fields that are 64 bit wide for
7931 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
7932 5*4 otherwise. This should be right for IA-32 and IA-64, but may
7933 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
7934 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
7935 begin address, end address, and unwind info address only. Use
7936 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
7938 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
7939 HIGH3ADJ relocation names.
7940 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
7941 * targets.c: Declare bfd_efi_app_ia32_vec and
7942 bfd_efi_app_ia64_vec.
7943 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
7944 bfd_efi_app_ia64_vec.
7946 2000-04-17 Timothy Wall <twall@cygnus.com>
7948 * bfd-in2.h: Add prototypes for tic54x load page access.
7949 * bfd-in.h: Regenerate.
7950 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
7951 in customized _set_arch_mach function.
7952 * coffcode.h (coff_set_alignment_hook): Set section load page if
7953 the appropriate macro is defined.
7954 (write_object_contents): Read section load page.
7956 2000-04-13 Alan Modra <alan@linuxcare.com.au>
7958 * elf32-hppa.h: Update copyright date.
7960 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
7961 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
7963 * elf32-d30v.c (MAX32): Don't use LL suffix.
7964 (MIN32): Define in terms of MAX32.
7965 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
7967 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
7970 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
7972 2000-04-12 Alan Modra <alan@linuxcare.com.au>
7974 * dep-in.sed: Match space before file name, not after.
7975 * Makefile.am: Regenerate dependencies.
7976 * Makefile.in: Regenerate.
7978 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
7979 case, allow address wrap-around stupidly removed 2000-03-17. Sign
7980 extend without an if statement.
7982 2000-04-11 Alan Modra <alan@linuxcare.com.au>
7984 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
7986 * elf32-mips.c (gprel16_with_gp): Likewise.
7987 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
7988 here using -0x40000, not (int)0xfffc0000.
7989 (elf32_hppa_size_of_stub): Likewise.
7991 2000-04-11 Timothy Wall <twall@cygnus.com>
7993 * coff-tic54x.c: Now builds with all targets.
7994 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
7995 * Makefile.in: Regenerate.
7996 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
7997 unitialized variable.
7999 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
8001 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
8002 --enable-build-warnings option.
8003 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
8004 * Makefile.in, configure: Re-generate.
8006 2000-04-07 Nick Clifton <nickc@cygnus.com>
8008 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
8009 BFD_RELOC_THUMB_PCREL_BLX.
8011 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
8012 R_ARM_XPC25 and R_ARM_THM_PC22.
8014 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
8015 R_ARM_XPC25 and R_ARM_THM_XPC22.
8016 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
8017 R_ARM_[XPC25|THM_XPC22].
8019 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
8020 elf/arm-oabi.h to elf/arm.h
8022 * Makefile.am: Fix dependency for elfarm-oabi.c
8023 * Makefile.in: Regenerate.
8025 * bfd-in2.h: Regenerate.
8026 * libbfd.h: Regenerate.
8028 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
8030 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
8031 and restore it on failure. Release newly allocated tdata on
8034 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
8036 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
8037 (decode_line_info): Set it. Report error if unit->line_offset is
8038 equal to or larger than it.
8040 2000-04-07 Timothy Wall <twall@cygnus.com>
8042 * targets.c: Added vecs for tic54x.
8043 * reloc.c: Added relocs for tic54x.
8044 * libbfd.h: Regenerated.
8045 * configure: Add TI COFF vecs for tic54x.
8046 * configure.in: Ditto.
8047 * config.bfd (targ_cpu): Recognize new tic54x target.
8048 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
8049 * bfd-in2.h: Add tic54x target and relocations.
8050 * Makefile.am, Makefile.in: Add tic54x target.
8051 * archures.c (bfd_archures_list): Add tic54x target.
8052 * coff-tic54x.c: New.
8053 * cpu-tic54x.c: New.
8055 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
8057 * elfcore.h (elf_core_file_p): call backend_object_p which
8058 thereby gets an opportunity to update the arch/machine type.
8060 2000-04-06 Timothy Wall <twall@cygnus.com>
8062 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
8063 class. Handle SEC_CLINK and SEC_BLOCK flags.
8064 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
8065 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
8067 2000-04-06 Nick Clifton <nickc@cygnus.com>
8069 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
8070 EF_INTERWORK if this is an unknown EABI.
8071 (elf32_arm_merge_private_bfd_data): Check EABI version
8072 numbers. Only check EF_xxx flags if the EABI version number
8074 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
8075 if the EABI version number is unknown.
8076 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
8077 if the EABI version number is unknown.
8079 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8081 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
8082 BFD_RELOC_SH_LOOP_END.
8083 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
8084 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
8085 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
8086 (sh_elf_reloc_loop): New function.
8087 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
8089 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
8090 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
8091 * bfd-in2.h, libbfd.h: Regenerate.
8093 2000-04-04 Alan Modra <alan@linuxcare.com.au>
8095 * po/bfd.pot: Regenerate.
8097 * Makefile.am: Remove extraneous mkdep comment.
8098 (MKDEP): Use gcc -MM rather than mkdep.
8099 (DEP): Quote when passing vars to sub-make. Add warning
8101 (DEP1): Rewrite for "gcc -MM".
8102 (CLEANFILES): Add DEP2.
8103 Update dependencies.
8104 * Makefile.in: Regenerate.
8106 2000-04-03 Kevin Buettner <kevinb@redhat.com>
8108 * configure.in: Added corefile support for AIX 4.3. In particular,
8109 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
8110 compiling rs6000-core.c.
8111 * configure: Regenerated.
8113 2000-04-03 H.J. Lu <hjl@gnu.org>
8115 * cache.c (bfd_open_file): Unlink the output file only if
8116 it has non-zero size.
8118 2000-04-01 Ken Block USG <block@zk3.dec.com>
8120 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
8121 relative relocations for non-loaded sections in shared objects.
8122 (elf64_alpha_check_relocs): Similarly.
8124 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
8126 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
8127 BFD_RELOC_16 to switch for extended relocs.
8128 (MY_swap_ext_reloc_in): New.
8129 (MY_swap_ext_reloc_out): New.
8130 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
8131 than NAME(aout,swap_ext_reloc_in) for extended relocs.
8132 (NAME(aout,squirt_out_relocs)): Similarly use
8133 MY_swap_ext_reloc_out.
8134 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
8136 2000-04-03 Kazu Hirata <kazu@hxi.com>
8138 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
8139 the R_PCRWORD_B case.
8141 2000-03-31 Thomas de Lellis <tdel@wrs.com>
8143 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
8147 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
8149 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
8150 HOWTO references to bfd_elf_generic_reloc, that have
8151 partial_inplace == true, now use the new function. The function
8152 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
8153 extends its fixes to the R_M32R_{16,24,32} relocs.
8154 The new logic in m32r_elf_lo16_reloc() has been removed, and
8155 it instead calls the new routine to obtain that functionality.
8157 2000-03-27 Alan Modra <alan@linuxcare.com.au>
8159 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
8160 elf32_avr_check_relocs, avr_final_link_relocate,
8161 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
8162 elf32_avr_object_p): Add prototypes.
8163 (elf32_avr_gc_mark_hook): Add default for h->root.type.
8164 (bfd_elf_avr_final_write_processing): Make static.
8166 2000-03-27 Denis Chertykov <denisc@overta.ru>
8168 * cpu-avr.c: New file. BFD support routines for AVR architecture.
8169 * archures.c (bfd_architecture): Add AVR architecture.
8170 (bfd_archures_list): Add reference to AVR architecture info.
8171 * elf.c (prep_headers): Handle bfd_arch_avr.
8172 * reloc.c: Add various AVR relocation enums.
8173 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
8175 * Makefile.am: Add support for AVR elf.
8176 * configure.in: Likewise.
8177 * config.bfd: Likewise.
8178 * Makefile.in: Regenerate.
8179 * configure: This too.
8180 * bfd-in2.h: And this.
8181 * libbfd.h: And this.
8183 2000-03-24 H.J. Lu <hjl@gnu.org>
8185 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
8186 (elf64_alpha_find_reloc_at_ofs): Likewise.
8188 2000-03-17 Alan Modra <alan@linuxcare.com.au>
8190 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
8191 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
8192 allowable range used to be -2**(n-1) to 2**n-1.
8193 * reloc.c (_bfd_relocate_contents): Same here. Also replace
8194 "boolean overflow" with "bfd_reloc_status_type flag".
8196 2000-03-14 Doug Evans <dje@casey.transmeta.com>
8198 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
8200 2000-03-14 Kazu Hirata <kazu@hxi.com>
8202 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
8203 of shrinks properly, including the last reloc.
8205 2000-03-13 Kazu Hirata <kazu@hxi.com>
8207 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
8210 2000-03-11 Alan Modra <alan@linuxcare.com.au>
8212 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
8213 a format mismatch rather than an "error" from bfd_read such as
8214 bfd_error_file_truncated.
8216 2000-03-10 Geoff Keating <geoffk@cygnus.com>
8218 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
8219 sign-extension and big-endian compensation for
8220 R_MIPS_64 even in ld -r.
8222 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
8224 * elf32-mips.c (mips_elf_next_relocation): Rename from
8225 mips_elf_next_lo16_relocation, and generalize to look
8226 for any relocation type.
8227 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
8228 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
8229 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
8230 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
8231 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
8232 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
8233 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
8234 (mips_rtype_to_howto): Likewise.
8235 (mips_elf_calculate_relocation): Handle new relocs.
8236 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
8237 are paired. The addend for R_MIPS_GNU_REL16_S2
8238 is shifted right two bits.
8240 2000-03-10 Alan Modra <alan@linuxcare.com.au>
8242 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
8243 comment, and ensure it doesn't happen again.
8244 (bfd_install_relocation): Same here.
8245 (_bfd_relocate_contents): Don't bother assigning unused signmask
8246 shift result. Fix typos in comments.
8247 Remove trailing whitespace throughout file.
8249 2000-03-07 Doug Evans <dje@casey.transmeta.com>
8251 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
8252 * bfd-in2.h: Rebuild.
8254 2000-03-06 Nick Clifton <nickc@cygnus.com>
8256 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
8258 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
8259 (SIZEOF_ILF_STRINGS): Redefine.
8260 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
8261 relative reloc, as opposed to a section relative reloc.
8262 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
8264 Add length of symbol's prefix to string pointer.
8265 Store a pointer to the symbol in the symbol pointer table.
8266 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
8267 Initialise the symbol pointer table.
8268 Store the hint in the Hint/Name table.
8269 Make the jump reloc be symbol realtive, not section relative.
8270 Create an import symbol for imported code.
8272 2000-03-06 Catherine Moore <clm@cygnus.com>
8274 * elf.c (swap_out_syms): Check for null type_ptr.
8276 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
8278 * aout-target.h (MY(write_object_contents)): Remove unused
8279 and unusable "#if CHOOSE_RELOC_SIZE".
8280 * pc532-mach.c (MY(write_object_contents)): Ditto.
8281 * netbsd.h (MY(write_object_contents)): Ditto.
8282 * hp300hpux.c (MY(write_object_contents)): Ditto.
8283 * freebsd.h (MY(write_object_contents)): Ditto.
8284 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
8286 2000-02-29 H.J. Lu <hjl@gnu.org>
8288 * peicode.h (jtab): Make it static.
8290 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
8291 defined and COFF_IMAGE_WITH_PE is not defined.
8292 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
8293 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
8295 2000-03-01 Nick Clifton <nickc@cygnus.com>
8297 * coff-arm.c (bfd_arm_process_before_allocation): Make
8298 'symndx' signed to prevent compile time warning.
8300 * coff-mcore.c: Remove unused prototype for pe_object_p.
8302 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
8303 functions that are not used when COFF_IMAGE_WITH_PE is
8305 (struct sh_opcode): Change type of 'flags' field to unsigned
8306 long so that it can hold the USESAS flag.
8308 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
8310 * elf-m10300.c (mn10300_elf_relax_section): Initialise
8313 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
8315 Remove unusued variables and code.
8316 (elf_backend_add_symbol_hook): Fix prototype.
8318 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
8321 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
8324 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
8326 Remove unusued variables and code.
8327 (elf_backend_add_symbol_hook): Fix prototype.
8329 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
8331 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
8332 to unused function parameter.
8334 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
8336 Use EMPTY_HOWTO to initialise empty howto slots.
8337 Remove unused variables.
8339 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
8341 2000-03-01 H.J. Lu <hjl@gnu.org>
8343 * aoutx.h (aout_link_input_section_std): Pass "true" to
8344 the undefined_symbol callback.
8345 (aout_link_input_section_ext): Likewise.
8346 * bout.c (get_value): Likewise.
8347 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
8348 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
8350 (alpha_relocate_section): Likewise.
8351 * coff-arm.c (coff_arm_relocate_section): Likewise.
8352 * coff-i960.c (coff_i960_relocate_section): Likewise.
8353 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
8354 * coff-mips.c (mips_relocate_section): Likewise.
8355 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
8356 * coff-sh.c (sh_relocate_section): Likewise.
8357 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
8358 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
8359 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
8360 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
8361 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
8362 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
8363 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
8364 * elf32-i370.c (i370_elf_relocate_section): Likewise.
8365 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
8366 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
8367 * elf32-sh.c (sh_elf_relocate_section): Likewise.
8368 * elf32-v850.c (v850_elf_relocate_section): Likewise.
8369 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
8370 * elflink.h (elf_link_output_extsym): Likewise.
8371 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
8372 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
8373 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
8375 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
8376 undefined_symbol callback when building shared library with
8377 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
8379 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
8380 * elf32-i386.c (elf_i386_relocate_section): Likewise.
8381 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
8382 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
8383 (elf32_mips_get_relocated_section_content): Likewise.
8384 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
8385 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
8386 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
8387 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
8389 2000-02-28 Nick Clifton <nickc@cygnus.com>
8391 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
8392 * Makefile.in: Regenerate.
8394 * configure.in: Add support for mips and sh pe vectors.
8395 * configure: regenerate.
8397 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
8400 * targets.c: Add mips and sh pe vectors.
8402 * libpei.h (coff_final_link_postscript): Only define if not
8405 * coffcode.h: Add support for WinCE magic numbers.
8407 * peigen.c (pe_print_reloc): Update comment and rearrange
8408 appending of newline character.
8410 * peicode.h: Add support for Image Library Format.
8411 (pe_ILF_vars): Structure containing data used by ILF code.
8412 (pe_ILF_make_a_section): New function. Create a section based
8414 (pe_ILF_make_a_reloc): New function. Create a reloc based on
8416 (pe_ILF_make_a_symbol): New function. Create a symbol based
8418 (pe_ILF_save_relocs): New function. Store the relocs created
8419 by pe_ILF_make_a_reloc in a section.
8420 (pe_ILF_build_a_bfd): New function. Create a BFD describing
8422 (pe_ILF_object_p): New function. Return a bfd_target pointer
8424 (pe_bfd_object_p): If an ILF object is detected call
8425 pe_ILF_object_p on it.
8427 * coff-arm.c: Add support for WinCE relocs which are different
8428 from normal ARM COFF relocs.
8429 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
8431 * coff-sh.c: Add support for sh-pe target.
8432 * pe-sh.c: New file. Support code for sh-pe target.
8433 * pei-sh.c: New file. Support code for sh-pe target.
8435 * pe-mips.c: New file. Support code for mips-pe target.
8436 * pei-mips.c: New file. Support code for mips-pe target.
8438 2000-02-27 Jakub Jelinek <jakub@redhat.com>
8440 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
8441 architecture if the object causing the bump is dynamic.
8442 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
8443 and also don't it for memory ordering.
8444 (sparc64_elf_write_relocs): Take src_rela out of the loop.
8446 2000-02-27 Ian Lance Taylor <ian@zembu.com>
8448 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
8449 calling bfd_get_section_size_before_reloc.
8450 (decode_line_info): Likewise.
8451 (_bfd_dwarf2_find_nearest_line): Likewise.
8453 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
8455 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
8456 name of the libtool directory.
8457 * Makefile.in: Rebuild.
8459 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
8461 * som.c (SOM_HOWTO): Define.
8462 (som_hppa_howto_table): Use it.
8464 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8466 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
8468 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
8470 2000-02-24 Catherine Moore <clm@cygnus.com>
8472 * som.c (som_misc_symbol_info): Add field
8474 (som_bfd_derive_misc_symbol_info): Initialize
8476 (som_build_and_write_symbol_table): Keep track
8477 of secondary_def field.
8478 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
8479 if secondary_def field is set.
8480 (som_bfd_ar_write_symbol_stuff): Initialize
8483 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
8485 * dwarf2.c (read_address): Read 16-bits addresses.
8486 (parse_comp_unit): Accept addr_size == 2.
8488 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
8490 * bfd-in.h: Update copyright date.
8492 2000-02-23 Linas Vepstas <linas@linas.org>
8494 * cpu-i370.c: New file.
8495 * elf32-i370.c: New file.
8496 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
8497 (bfd_i370_arch): New.
8498 (bfd_archures_list): Add bfd_i370_arch.
8499 * elf.c (prep_headers): Add bfd_arch_i370.
8500 * Makefile.am: Add support for IBM 370 elf.
8501 * config.bfd: Likewise.
8502 * configure.in: Likewise.
8503 * libbfd.h (bfd_reloc_code_real_names): Likewise.
8504 * reloc.c (bfd_reloc_code_type): Likewise.
8505 * targets.c: Likewise.
8507 * Makefile.in: Regenerate.
8508 * configure: Regenerate.
8509 * bfd-in2.h: Regenerate.
8511 2000-02-22 Ian Lance Taylor <ian@zembu.com>
8513 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
8514 invalid relocation types, and change them to R_386_NONE.
8516 2000-02-22 H.J. Lu <hjl@gnu.org>
8518 * elflink.h (elf_link_add_object_symbols): If a version symbol is
8519 not defined, don't add a second ELF_VER_CHR.
8521 * elflink.h (elf_bfd_final_link): Call output_extsym for global
8522 symbols converted to local symbols even when stripping all
8524 (elf_link_output_extsym): Process global symbols converted to
8525 local symbols even if they are being stripped.
8527 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
8529 * archures.c (bfd_octets_per_byte): Return unsigned int.
8530 (bfd_arch_mach_octets_per_byte): Ditto.
8531 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
8533 * section.c (bfd_get_section_size_before_reloc): Quell signed
8534 vs. unsigned comparison warning.
8535 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
8536 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
8537 change. What was I thinking?
8538 * bfd-in2.h: Regenerate.
8540 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
8541 (elf_gc_sections): Same here.
8542 (elf_gc_common_finalize_got_offsets): And here.
8544 2000-02-21 Ian Lance Taylor <ian@zembu.com>
8546 ELF HPPA doesn't work at present; remove it until it does.
8547 * config.bfd: Comment out setting targ_defvec to
8549 * Makefile.am: Rebuild dependencies.
8550 (BFD32_BACKENDS): Remove elf32-hppa.lo.
8551 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
8552 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
8553 * Makefile.in: Rebuild.
8554 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
8556 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8558 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
8559 is no bfd_free(). Revert bfd_free part of previous change.
8561 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8563 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
8565 (coff_compute_section_file_positions): Use bfd_free to pair
8567 (coff_write_object_contents): Likewise.
8569 * coff-rs6000.c (xcoff_howto_table_16): New variable.
8570 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
8572 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
8574 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
8575 (xcoff_ar_file_hdr_big): New structure.
8576 (SIZEOF_AR_FILE_HDR_BIG): New macro.
8577 (xcoff_ar_hdr_big): New structure.
8578 (SIZEOF_AR_HDR_BIG): New macro.
8579 (xcoff_big_format_p): New macro.
8580 (xcoff_ardata_big): New macro.
8581 (arch_xhdr_big): New macro.
8582 (xcoff_slurp_armap): Handle large archives.
8583 (xcoff_archive_p): Detect large archives.
8584 (xcoff_read_ar_hdr): Handle large archives.
8585 (xcoff_openr_next_archived_file): Handle large archives.
8586 (xcoff_generic_stat_arch_elt): Handle large archives.
8587 (xcoff_write_armap_old): Rename from xcoff_write_armap.
8588 (xcoff_write_armap_big): New function.
8589 (xcoff_write_armap): New function, dispatch to _old or _big.
8590 (xcoff_write_archive_contents_old): Rename from
8591 xcoff_write_archive_contents.
8592 (xcoff_write_archive_contents_big): New function.
8593 (xcoff_write_archive_contents): New function, dispatch to _old or
8596 2000-02-18 Richard Henderson <rth@cygnus.com>
8598 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
8599 and hide_symbol members.
8600 (elf_link_hash_copy_indirect): Remove.
8601 (elf_link_hash_hide_symbol): Remove.
8602 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
8603 and elf_backend_hide_symbol.
8604 (_bfd_elf_link_hash_copy_indirect): Declare.
8605 (_bfd_elf_link_hash_hide_symbol): Declare.
8606 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
8607 (_bfd_elf_link_hash_hide_symbol): Likewise.
8608 (_bfd_elf_link_hash_table_init): Don't init killed members.
8609 * elflink.h (elf_link_add_object_symbols): Use the bed function
8610 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
8611 (elf_link_assign_sym_version): Likewise.
8612 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
8613 (elf_backend_hide_symbol): Likewise.
8614 (elfNN_bed): Update for new members.
8616 2000-02-17 Kevin Buettner <kevinb@redhat.com>
8618 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
8619 STACK_END_ADDR): Define for new core file format.
8620 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
8621 for handling the vagaries of the various core file structures used
8622 by AIX over the years.
8623 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
8624 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
8625 core_dumpx structure.
8627 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8629 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
8630 (bfd_mach_sh3_dsp): Likewise.
8631 (bfd_mach_sh4): Reinstate.
8632 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
8633 * bfd-in2.h: Regenerate.
8634 * coff-sh.c (struct sh_opcode): flags is no longer short.
8635 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
8636 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
8637 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
8638 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
8639 (sh_opcodes): No longer const.
8640 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
8641 (sh_insn_uses_reg): Check for USESAS and USESR8.
8642 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
8643 (_bfd_sh_align_load_span): Return early for SH4.
8644 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
8645 Take into account that field b of a parallel processing insn
8646 could be mistaken for a separate insn.
8647 * cpu-sh.c (arch_info_struct): New array elements for
8648 sh2, sh-dsp and sh3-dsp.
8649 Reinstate element for sh4.
8650 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
8651 (SH4_NEXT): Reinstate.
8652 (SH3_NEXT, SH3E_NEXT): Adjust.
8653 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
8654 * elf32-sh.c (sh_elf_set_private_flags): New function.
8655 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
8656 (sh_elf_merge_private_data): New function.
8657 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
8658 (bfd_elf32_bfd_copy_private_bfd_data): Define.
8659 (bfd_elf32_bfd_merge_private_bfd_data): Change to
8660 sh_elf_merge_private_data.
8662 2000-02-13 Richard Henderson <rth@cygnus.com>
8664 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
8665 hide_symbol members.
8666 (elf_link_hash_copy_indirect): New.
8667 (elf_link_hash_hide_symbol): New.
8668 * elflink.h (elf_link_add_object_symbols): Break out copy from
8669 indirect new new symbol to elf.c.
8670 (elf_link_assign_sym_version): Break out privatization of
8671 non-exported symbol to elf.c.
8672 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
8673 (_bfd_elf_link_hash_hide_symbol): New.
8674 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
8676 2000-02-13 Ian Lance Taylor <ian@zembu.com>
8678 * section.c (_bfd_strip_section_from_output): Add info parameter.
8679 If it passed as non-NULL, use it to check whether any input BFD
8680 has an input section which uses this output section. Change all
8682 * bfd-in2.h: Rebuild.
8684 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
8685 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
8687 * bfd-in2.h: Rebuild.
8689 2000-02-10 Timothy Wall <twall@cygnus.com>
8691 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
8692 allow final modifications of swapped-in symbol.
8693 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
8694 * coffcode.h (coff_write_relocs): Use macro
8695 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
8696 symbol index should be set to -1.
8698 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
8700 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
8701 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
8702 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
8703 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
8704 sh_insns_uses_or_sets_freg): New functions.
8705 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
8706 * (sh_insns_conflict): Use new functions and new macros to
8707 detect conflicts when two instructions both set same integer registers,
8708 both set same fp register, and both set special register.
8710 2000-02-09 Timothy Wall <twall@cygnus.com>
8712 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
8713 swapping in sections, so that the swapping routines have access to
8716 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
8718 * coff-go32.c: Update comment. Update copyright.
8720 2000-01-27 Thomas de Lellis <tdel@windriver.com>
8722 * syms.c (bfd_decode_symclass)
8723 Two new class characters were added - 'V' and 'v'. The
8724 meaning of 'W' is now restricted to just weak non-object
8725 symbols. This allows differentiation between, for example,
8726 weak functions vs weak objects. nm for example now dumps:
8728 'w' = weak unresolved
8729 'V' = weak global object
8730 'v' = weak unresolved object
8732 (bfd_is_undefined_symclass): New function. Return true if the
8733 given symbol class represents and undefined/unresolved symbol.
8735 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
8738 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
8740 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
8741 STT_ARM_16BIT flag set, but it is not attached to a data object
8742 return STT_ARM_16BIT so that it will be treated as code by the
8745 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
8747 * coff-i386.c (i3coff_object_p): Remove prototype.
8750 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
8751 to name. Update copyright.
8753 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
8754 assignment to avoid warning. Update copyright.
8756 2000-01-24 Robert Lipe (robertl@sco.com)
8758 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
8759 instead of using GNU C extension.
8761 2000-01-21 Nick Clifton <nickc@cygnus.com>
8763 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
8764 amount from a bfd_in_memory structure.
8765 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
8768 2000-01-14 Nick Clifton <nickc@cygnus.com>
8770 * linker.c (default_indirect_link_order): oops - fix incorrectly
8771 applied patch from Tim Wall.
8773 2000-01-13 Timothy Wall (twall@tiac.net>
8775 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
8776 = scnhsz, filhsz, relsz, aoutsz, etc)
8778 * coffswap.h: Ditto.
8780 2000-01-13 Nick Clifton <nickc@cygnus.com>
8782 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
8783 interwork thumb to arm stub.
8785 2000-01-13 Timothy Wall (twall@tiac.net>
8787 * archures.c (bfd_octets_per_byte): New function: Return
8789 (bfd_arch_mach_octets_per_byte): New function: Return target
8792 * section.c: Distinguish between octets and bytes for usage of
8793 _cooked_size, _raw_size, and output_offset. Clarify
8794 description of bfd_set_section_contents.
8796 * bfd-in2.h: Regenerate.
8798 * coffgen.c: Indicate that the offset parameter is in bytes, not
8801 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
8802 where appropriate to get the octet offset when calling
8803 bfd_set_section_contents.
8804 (bfd_coff_reloc_link_order): Ditto.
8806 * linker.c (bfd_generic_reloc_link_order): Ditto.
8807 (_bfd_default_link_order): Ditto.
8809 * reloc.c (bfd_perform_relocation): Distinguish between octets
8810 and bytes. Use octets when indexing into octet data; use bytes
8811 when calculating target addresses.
8812 (bfd_install_relocation): Ditto.
8814 * srec.c (srec_write_section): Ditto.
8816 2000-01-13 Nick Clifton <nickc@cygnus.com>
8818 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
8819 3 to 2. This allows 4 byte sized sections, which is necessary for
8820 dlltool to build functioning DLLs.
8822 2000-01-10 Philip Blundell <pb@futuretv.com>
8824 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
8825 (arm*-*-conix*): New target.
8827 2000-01-10 Egor Duda <deo@logos-m.ru>
8829 * config.bfd: Include elf32_i386 vector to target list for cygwin
8832 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
8833 * configure.in: Test for structure win32_pstatus_t in
8835 * configure: Regenerate.
8837 * elf.c (elfcore_grok_win32pstatus): New function: process
8838 win32_pstatus_t notes in elf core file.
8839 (elfcore_grok_note): Detect win32_pstatus notes.
8841 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
8843 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
8845 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
8846 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
8848 For older changes see ChangeLog-9899
8854 version-control: never