1 2001-06-20 H.J. Lu <hjl@gnu.org>
3 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
4 allocate local .got space.
6 2001-06-19 Andreas Jaeger <aj@suse.de>
8 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
11 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
13 * elflink.h (struct elf_assign_sym_version_info): Remove member
14 export_dynamic. All users changed to use info member.
15 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
16 export_dynamic, instead use member in parameter info.
17 * bfd-in.h (bfd_elf32_size_dynamic_sections,
18 bfd_elf64_size_dynamic_sections): Update prototype.
19 * bfd-in2.h: Regenerate.
21 2001-06-18 H.J. Lu <hjl@gnu.org>
23 * elflink.h (elf_info_failed): Add a new field, verdefs.
24 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
26 (elf_export_symbol): Check eif->verdefs to decide if a symbol
29 2001-06-17 H.J. Lu <hjl@gnu.org>
31 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
32 readonly_reloc, to record if a relocation in the .rel.dyn
33 section is against a read-only section.
34 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
36 (_bfd_mips_elf_check_relocs): Record if there is a relocation
37 in the .rel.dyn section against a read-only section by setting
38 DF_TEXTREL or readonly_reloc.
39 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
41 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
42 there is a relocation in the .rel.dyn section against a
44 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
47 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
49 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
50 function. Move flagword result into parameter list. Remove
51 comment about setting bfd_error_handler to intercept failure
53 * coffgen.c (make_a_section_from_file): Examine result of
54 calling bfd_coff_styp_to_sec_flags and pass a failure back to
56 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
57 function. Move flagword result into parameter list.
58 * libcoff.h: Regenerate.
59 * libecoff.h: Regenerate.
61 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
63 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
64 section is going to follow it.
66 2001-06-12 Catherine Moore <clm@redhat.com>
68 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
69 with the file_align entry from elf_backend_data.
70 (elf_gc_smash_unused_vtentry_relocs): Likewise.
71 (elf_gc_record_vtentry): Likewise.
73 2001-06-10 Alan Modra <amodra@bigpond.net.au>
75 * elflink.h: Whitespace changes.
76 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
77 rather than "unsigned char".
78 (elf_link_output_relocs): Likewise.
79 (elf_link_input_bfd): Likewise.
80 (elf_reloc_link_order): LIkewise.
81 * elf.c: s/CONST/const/. Whitespace changes.
82 * elf32-mips.c: Formatting fix.
84 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
85 * Makefile.in: Regenerate.
86 * po/Make-in: Remove trailing tab.
88 2001-06-09 Philip Blundell <philb@gnu.org>
90 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
92 (elf32_arm_plt_entry): Likewise.
94 2001-06-08 H.J. Lu <hjl@gnu.org>
96 * elf.c (swap_out_syms): Keep names for global section symbols.
98 2001-06-07 H.J. Lu <hjl@gnu.org>
100 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
101 MIPS-based machines need it.
103 2001-06-07 H.J. Lu <hjl@gnu.org>
105 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
108 * config.bfd: Remove ecoff from Linux/mips.
110 2001-06-07 Andreas Jaeger <aj@suse.de>
112 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
114 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
115 alignment of 8 for .rela sections; handle further relocations.
117 2001-06-06 Christian Groessler <cpg@aladdin.de>
119 * coff-z8k.c: Fix formatting.
120 Fix howtos: howto->size was always 1.
122 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
124 * configure.host (mips64*-*-linux*): Define.
126 2001-06-05 Alan Modra <amodra@bigpond.net.au>
128 * elf32-i386.c (elf_i386_discard_copies): Rename to
129 discard_copies, and use elf_link_hash_entry arg rather than
130 elf_i386_link_hash_entry.
131 (elf_i386_link_hash_traverse): Delete.
132 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
133 Tidy sizing of dynamic sections.
134 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
135 possible .plt entries.
136 (elf_i386_gc_sweep_hook): Likewise.
137 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
138 everything with plt.refcount <= 0.
140 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
142 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
143 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
145 (allocate_plt_and_got): ..instead do it all here. New function.
146 (elf_i386_size_dynamic_sections): Allocate local .got space and
147 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
148 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
149 rather than gc variety).
150 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
151 (elf_i386_relocate_section): Use it here and correct handling of
152 R_386_GOT32. Provide section and offset for "unresolvable
153 relocation" error message.
154 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
156 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
157 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
158 (elf_i386_link_hash_table_create): Init them.
159 (create_got_section): New function.
160 (elf_i386_create_dynamic_sections): New function.
161 (elf_backend_create_dynamic_sections): Set to above.
162 (elf_i386_check_relocs): Use shortcuts from hash table rather than
163 calling bfd_get_section_by_name.
164 (elf_i386_gc_sweep_hook): Likewise.
165 (elf_i386_adjust_dynamic_symbol): Likewise.
166 (elf_i386_size_dynamic_sections): Likewise.
167 (elf_i386_relocate_section): Likewise.
168 (elf_i386_finish_dynamic_sections): Likewise.
170 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
172 2001-06-02 H.J. Lu <hjl@gnu.org>
174 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
176 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
178 2001-06-02 H.J. Lu <hjl@gnu.org>
180 * aout-cris.c (MACHTYPE_OK): New. Defined.
182 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
184 * section.c (_bfd_strip_section_from_output): Handle NULL
187 2001-06-02 H.J. Lu <hjl@gnu.org>
189 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
190 rs6000coff64_vec only if BFD64 is defined.
191 (powerpc64-*-aix*): Enable only if BFD64 is defined.
193 2001-06-02 H.J. Lu <hjl@gnu.org>
195 * coff-ia64.c (ia64coff_object_p): Rewrite with
196 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
198 2001-06-01 Andreas Jaeger <aj@suse.de>
200 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
201 relocation, small reformatting.
203 2001-05-29 Andreas Jaeger <aj@suse.de>
205 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
206 (elf64_x86_64_relocate_section): Likewise.
208 2001-05-30 Alan Modra <amodra@one.net.au>
210 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
211 millicode. Don't allocate .got and .rela.got space here..
212 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
213 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
215 (hppa_handle_PIC_calls): ..nor here..
216 (allocate_plt_and_got): ..instead do it all here. New function.
217 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
218 call allocate_plt_and_got. No need to zap .got if not dynamic.
219 (elf32_hppa_final_link): Call regular bfd_final_link instead of
220 gc_common_final_link.
221 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
222 (elf32_hppa_relocate_section): Use it here.
223 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
224 dynamic_sections_created.
225 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
227 2001-05-28 Andreas Jaeger <aj@suse.de>
229 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
230 generic version since we want a hashsize of 4.
231 (elf_backend_size_info): Likewise.
233 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
235 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
237 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
238 (elf_link_input_bfd): Likewise.
239 (elf_reloc_link_order): Likewise.
240 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
241 relocations correctly.
243 2001-05-28 Nicolas Pitre <nico@cam.org>
245 * elf32-arm.h: fix PLT generation for big endian ARM
247 2001-05-28 Alan Modra <amodra@one.net.au>
249 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
250 for symbols forced local that need plabels.
251 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
252 .plt.rela for local syms if non-shared.
253 (hppa_build_one_stub): Mask lsb of plt.offset.
254 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
255 (clobber_millicode_symbols): Correct comment.
256 (elf32_hppa_relocate_section): Likewise.
257 (elf32_hppa_finish_dynamic_symbol): Likewise.
259 2001-05-28 Jeff Sturm <jsturm@one-point.com>
261 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
262 * bfd-in2.h: Regenerate.
263 * libbfd.h: Regenerate.
264 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
265 and BFD_RELOC_SPARC_UA64 mapping
266 * elf64-sparc.c: Likewise.
268 2001-05-25 H.J. Lu <hjl@gnu.org>
270 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
271 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
272 (coff-rs6000.lo): Remove the old dependency.
273 * Makefile.in: Rebuild.
275 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
278 2001-05-25 H.J. Lu <hjl@gnu.org>
280 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
281 rs6000coff_core_file_matches_executable_p,
282 rs6000coff_core_file_failing_command and
283 rs6000coff_core_file_failing_signal only if AIX_CORE is
285 (pmac_xcoff_vec): Likewise.
286 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
288 2001-05-25 Timothy Wall <twall@redhat.com>
290 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
291 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
293 2001-05-25 H.J. Lu <hjl@gnu.org>
295 * bfd-in2.h: Regenerated.
296 * libcoff.h: Likewise.
298 2001-05-25 Alan Modra <amodra@one.net.au>
300 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
301 undefined millicode syms in shared libs.
302 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
303 (elf32_hppa_check_relocs): Likewise.
304 (elf32_hppa_adjust_dynamic_symbol): Likewise.
305 (elf32_hppa_size_dynamic_sections): Likewise.
306 (elf32_hppa_relocate_section): Likewise.
307 (elf32_hppa_finish_dynamic_symbol): Likewise.
308 (elf32_hppa_finish_dynamic_sections): Likewise.
310 2001-05-24 Tom Rix <trix@redhat.com>
312 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
313 xcoff-target.h not used to define rs6000 or ppc bfd.
316 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
319 * coff-rs6000.c : Many changes for 64 bit support. Move common
320 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
323 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
324 linker now supported. Explictly define the rs6000coff64_vec.
326 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
327 (coff_print_aux) same
328 (coff_write_object_contents) same
329 (coff_slurp_line_table) same
331 * coffgen.c : (coff_fix_symbol_name) formatting
332 (coff_mangle_symbols) xcoff 64 bit support
333 (coff_write_symbol) same
334 (coff_write_alien_symbol) same
335 (coff_write_native_symbol) same
336 (coff_write_symbols) same
337 (coff_get_symbol_info) same
338 (bfd_coff_get_syment) same
339 (coff_print_symbol) same
341 * config.bfd : add powerpc64-*-aix* target
343 * libcoff-in.h : formatting
345 * libcoff.h : move xcoff extern declarations to libxcoff.h
347 * libxcoff.h : New file
349 * xcofflink.c : Many changes for xcoff64 support. Move common
350 structures to include/coff/xcoff.h. Move specific structure to
351 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
352 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
354 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
357 (xcoff_build_ldsyms) : handle special __rtinit symbol.
359 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
361 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
364 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
366 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
367 * libbfd.h: Regenerate.
368 * bfd-in2.h: Regenerate.
370 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
371 * archures.c (bfd_mach_mips12000): Define.
372 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
373 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
375 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
376 * bfd-in2.h: Regenerate.
377 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
379 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
381 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
382 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
383 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
386 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
388 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
389 of entries in a structured section.
390 * elf.c: Use new macro.
391 * elf32-i386.c: Use new macro.
392 * elf32-mips.c: Use new macro.
393 * elf64-alpha.c: Use new macro.
394 * elf64-sparc.c: Use new macro.
395 * elfcode.h: Use new macro.
396 * elflink.h: Use new macro.
398 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
400 * bfdint.texi: Replace -oformat with --oformat.
402 2001-05-21 Andreas Jaeger <aj@suse.de>
404 * dwarf2.c (decode_line_info): Fix error message.
405 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
406 adjust error message.
408 2001-05-18 H.J. Lu <hjl@gnu.org>
410 * elflink.h (elf_link_add_object_symbols): Revert the last
413 2001-05-17 Alan Modra <amodra@one.net.au>
415 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
416 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
417 (hppa_build_one_stub): Add an assert to check plt.offset.
419 2001-05-17 H.J. Lu <hjl@gnu.org>
421 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
422 version definition to basename of the output filename.
424 2001-05-17 H.J. Lu <hjl@gnu.org>
426 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
427 basename of the bfd filename.
429 2001-05-16 Alan Modra <amodra@one.net.au>
431 * section.c (asection): Add linker_has_input field.
432 (STD_SECTION): Adjust initialization to suit.
433 * ecoff.c (bfd_debug_section): Likewise.
434 * bfd-in2.h: Regenerate.
436 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
438 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
439 negative 32-bit operands to 16 operands when the operand is
440 going to be zero-extended by the modified opcode.
442 2001-05-12 Peter Targett <peter.targett@arccores.com>
444 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
445 name for 'arc5' core versions.
446 (bfd_arc_arch): Make bfd_mach_arc_6 default.
448 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
450 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
452 2001-05-11 Jakub Jelinek <jakub@redhat.com>
454 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
456 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
457 to .gnu.linkonce.t.FOO text section.
459 2001-05-11 Jakub Jelinek <jakub@redhat.com>
461 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
462 fields, change sec into secinfo.
463 (struct sec_merge_info): Add chain, remove last fields.
464 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
465 (sec_merge_hash_lookup): If lookup could not use a string only
466 because it has bad alignment, mark the old string for deletion.
467 (sec_merge_add): Add secinfo argument. Don't compute entry's
468 position, instead record the section.
469 (sec_merge_emit): Update for the sec into secinfo change in
470 struct sec_merge_hash_entry.
471 (_bfd_merge_section): Only record the section for merging, defer
472 putting strings into the hash table.
473 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
474 _bfd_merge_sections): New functions.
475 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
477 * libbfd-in.h (_bfd_merge_sections): Add prototype.
478 (_bfd_nolink_bfd_merge_sections): Define.
479 * libbfd.h: Likewise.
480 (bfd_generic_merge_sections): Add prototype.
481 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
482 (struct bfd_target): Likewise.
483 * bfd.c (bfd_merge_sections): Define.
484 * bfd-in2.h: Rebuilt.
485 * elf.c (_bfd_elf_merge_sections): New function.
486 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
487 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
488 * reloc.c (bfd_generic_merge_sections): New function.
489 * vms.c (vms_bfd_merge_sections): New function.
490 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
491 * aout-target.h (MY_bfd_merge_sections): Define.
492 * aout-tic30.c (MY_bfd_merge_sections): Define.
493 * binary.c (binary_bfd_merge_sections): Define.
494 * bout.c (b_out_bfd_merge_sections): Define.
495 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
496 * coffcode.c (coff_bfd_merge_sections): Define.
497 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
498 * i386msdos.c (msdos_bfd_merge_sections): Define.
499 * i386os9k.c (os9k_bfd_merge_sections): Define.
500 * ieee.c (ieee_bfd_merge_sections): Define.
501 * ihex.c (ihex_bfd_merge_sections): Define.
502 * nlm-target.h (nlm_bfd_merge_sections): Define.
503 * oasys.c (oasys_bfd_merge_sections): Define.
504 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
505 * som.c (som_bfd_merge_sections): Define.
506 * srec.c (srec_bfd_merge_sections): Define.
507 * tekhex.c (tekhex_bfd_merge_sections): Define.
508 * versados.c (versados_bfd_merge_sections): Define.
509 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
511 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
513 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
514 to be unsigned long, in order to match its use.
516 2001-05-10 H.J. Lu <hjl@gnu.org>
518 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
521 2001-05-09 H.J. Lu <hjl@gnu.org>
523 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
524 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
525 Remove the unused veriable `dynver'.
527 2001-05-08 Ian Lance Taylor <ian@zembu.com>
529 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
531 (coff_i386_rtype_to_howto): Don't dump core if output section
534 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
536 * ecoff.c (bfd_debug_section): Fix initialization.
537 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
538 is always a positive integer. Cast away sign mismatch.
539 * elf32-mips.c: Fix misleading comment and typo.
540 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
542 * elflink.c: Fix typo.
543 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
544 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
546 2001-05-04 Richard Henderson <rth@redhat.com>
548 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
550 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
552 * elf32-arm.h (elf32_arm_final_link_relocate): Set
553 EF_ARM_HASENTRY if the start address is set.
555 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
557 * targets.c (_bfd_target_vector_entries): Compute value based on
558 the size of the _bfd_target_vector and not bfd_target_vector.
560 2001-05-03 H.J. Lu <hjl@gnu.org>
562 * elfcode.h: Include "libiberty.h".
564 * elflink.h (elf_link_add_object_symbols): Set
565 elf_dt_name (abfd) to basename of the bfd filename.
566 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
569 2001-05-03 Andreas Jaeger <aj@suse.de>
571 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
572 (elf_generic_info_to_howto_rel): Likewise.
573 * coff-alpha.c (reloc_nil): Likewise.
574 (alpha_ecoff_bad_format_hook): Likewise.
575 (alpha_adjust_reloc_out): Likewise.
576 (alpha_bfd_reloc_type_lookup): Likewise.
577 (alpha_convert_external_reloc): Likewise.
578 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
579 (elf64_alpha_reloc_bad): Likewise.
580 (elf64_alpha_reloc_gpdisp): Likewise.
581 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
582 (elf64_alpha_info_to_howto): Likewise.
583 (elf64_alpha_add_symbol_hook): Likewise.
584 (elf64_alpha_create_got_section): Likewise.
585 (elf64_alpha_is_local_label_name): Likewise.
586 (elf64_alpha_merge_ind_symbols): Likewise.
587 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
588 (mips_elf64_get_reloc_upper_bound): Likewise.
589 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
590 (nlm_alpha_get_public_offset): Likewise.
592 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
594 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
595 about overflow in R_OPENRISC_LO_16_IN_INSN and
596 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
598 2001-04-30 H.J. Lu <hjl@gnu.org>
600 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
601 only for ELF_LINK_FORCED_LOCAL.
602 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
603 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
604 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
606 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
607 if the symbol has hidden or internal visibility.
609 2001-04-30 Alan Modra <amodra@one.net.au>
611 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
612 calls to undefined weak symbols.
614 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
616 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
617 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
619 2001-04-27 Andreas Jaeger <aj@suse.de>
621 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
623 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
624 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
625 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
628 2001-04-27 Sean McNeil <sean@mcneil.com>
630 * config.bfd: Add arm-vxworks target.
631 * coff-arm (coff_arm_relocate_section): Add in symbol value to
632 addend (fro VXworks targets).
634 2001-04-26 H.J. Lu <hjl@gnu.org>
636 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
639 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
641 * bfd-in.h (bfd_cache_close): Declare newly exported function.
642 * bfd-in2.h: Regenerated.
644 2001-04-24 Jakub Jelinek <jakub@redhat.com>
646 * merge.c (struct sec_merge_hash_entry): Add alignment field.
647 (struct sec_merge_hash): Remove alignment_power.
648 (sec_merge_hash_newfunc): Clear alignment.
649 (sec_merge_hash_lookup): Pass alignment as argument.
650 Use hashp->root.next, not hashp->next to walk the hash chain.
651 If a string already in the hashtable does not have required
652 alignment, create a new hashtable entry.
653 (sec_merge_init): Remove alignment_power argument.
654 (sec_merge_add): Add alignment argument.
655 (sec_merge_emit): Alignment is now a per-entity thing, not per
657 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
658 for proper alignment.
659 Pass alignment information to sec_merge_add.
661 2001-04-24 Christian Groessler <cpg@aladdin.de>
663 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
664 and R_REL16 reloc types; accept odd values for R_REL16 type
666 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
668 * cpu-openrisc.c: New file.
669 * elf32-openrisc.c: Likewise.
671 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
672 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
673 (BFD32_BACKENDS): Add elf32-openrisc.lo.
674 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
675 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
676 * Makefile.in: Regenerated.
677 * config.bfd: (openrisc-*-elf): New target.
678 * configure.in (bfd_elf32_openrisc_vec): New vector.
679 * configure: Regenerated.
680 * libbfd.h: Regenerated.
681 * bfd-in2.h: Regenerated.
682 * reloc.c: Add OpenRISC relocations.
683 * targets.c (bfd_elf32_openrisc_vec): Declare.
684 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
685 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
686 (bfd_openrisc_arch): Declare.
687 (bfd_archures_list): Add bfd_openrisc_arch.
688 * elf.c (prep_headers): Add bfd_arch_openrisc.
690 2001-04-23 Bo Thorsen <bo@suse.de>
692 * elf64-x86-64.c: Add c++ vtable hack.
693 Small whitespace and comment changes.
695 2001-04-19 Andreas Jaeger <aj@suse.de>
697 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
698 (elf64_x86_64_plt_entry): Likewise.
699 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
700 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
702 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
704 * elf32-cris.c: Tweak comments related to dynamic linking.
705 (cris_elf_relocate_section): When not creating shared object, fill
706 in the .got table for any symbol not in the dynamic symbol table.
707 (elf_cris_finish_dynamic_symbol): When not creating shared object,
708 only emit a .got.rela reloc if the symbol is in the dynamic symbol
710 (cris_elf_check_relocs): Use variable r_type in all places rather
711 than the original expression. Add default case in switch for
713 (elf_cris_size_dynamic_sections): Iterate over
714 elf_cris_discard_excess_program_dynamics when not creating shared
716 (elf_cris_discard_excess_dso_dynamics): Renamed from
717 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
718 (elf_cris_discard_excess_program_dynamics): New.
720 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
722 * coffcode.h (coff_write_object_contents): Use
723 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
725 2001-04-14 H.J. Lu <hjl@gnu.org>
727 * bfd-in2.h: Regenerate.
729 2001-04-14 Jakub Jelinek <jakub@redhat.com>
731 * section.c (STD_SECTION): Add entsize.
733 2001-04-13 H.J. Lu <hjl@gnu.org>
735 * section.c (SEC_MERGE): Define new flag for merging.
736 (SEC_STRINGS): Likewise.
737 (entsize): New field.
739 2001-04-13 Roger Sayle <roger@metaphorics.com>
741 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
742 flag on pe-i386 targets.
744 2001-04-13 Jakub Jelinek <jakub@redhat.com>
746 * libbfd-in.h (_bfd_merge_section): New.
747 (_bfd_write_merged_section): New.
748 (_bfd_merged_section_offset): New.
750 * linker.c (_bfd_generic_link_output_symbols): Handle
752 * aoutx.h (aout_link_write_symbols): Likewise.
753 * pdp11.c (aout_link_write_symbols): Likewise.
754 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
755 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
757 (elf_link_sec_merge_syms): New.
758 (elf_link_input_bfd): Call _bfd_merged_section_offset
759 and _bfd_write_merged_section.
760 Handle discard_sec_merge.
761 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
763 (struct bfd_elf_section_data): Likewise.
764 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
765 SEC_STRINGS section flags and entsize from their ELF counterparts.
766 (_bfd_elf_link_hash_table_init): Initialize merge_info.
767 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
768 from their BFD counterparts.
770 * Makefile.am: Add strtab.lo.
771 * Makefile.in: Rebuilt.
773 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
775 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
776 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
778 2001-04-05 Steven J. Hill <sjhill@cotw.com>
780 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
781 endian MIPS ELF target.
782 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
785 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
786 64bit big endian MIPS ELF target.
787 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
788 endian MIPS ELF target.
789 * configure: Regenerated.
791 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
792 little endian targets.
793 (mips_elf_sym_is_global): Handle traditional targets.
795 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
796 64bit big endian MIPS ELF target.
797 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
798 endian MIPS ELF target.
800 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
801 and bfd_elf64_tradlittlemips_vec.
803 2001-04-05 David Mosberger <davidm@hpl.hp.com>
805 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
806 ordinary "progbits" section.
808 2001-04-04 Alan Modra <alan@linuxcare.com.au>
810 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
811 when -Bsymbolic causes a symbol to no longer need a .plt entry.
813 2001-04-03 David Mosberger <davidm@hpl.hp.com>
815 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
817 2001-03-30 H.J. Lu <hjl@gnu.org>
819 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
820 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
822 2001-03-26 H.J. Lu <hjl@gnu.org>
824 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
825 if there are any relocations for generic ELF.
826 (bfd_elf32_bfd_link_add_symbols): Defined to
827 elf32_generic_link_add_symbols.
828 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
829 if there are any relocations for generic ELF.
830 (bfd_elf64_bfd_link_add_symbols): Defined to
831 elf64_generic_link_add_symbols.
833 2001-03-23 Nick Clifton <nickc@redhat.com>
835 * Makefile.am (BUILD_CFILES): New variable: List of C source
836 files created in build directory.
837 (BUILD_HFILES): New variable: List of header files created in
840 (po/POTFILES.in): Replace rule with empty entry.
841 (po/SRC-POTFILES.in): New rule: Create a list of source files
842 in the source directory.
843 (po/BLD-POTFILES.in): New rule: Create a list of source files
844 in the build directory.
845 (MOSTLYCLEAN): Do not delete source files created in build
847 * Makefile.in: Regenerate.
848 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
850 * configure: Regenerate.
852 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
854 Add .. to the search path when building bfd.pot.
855 Delete POTFILES when performing distclean.
856 Add comment describing why distclean is broken in maintainer mode.
857 * po/POTFILES.in: Delete.
858 * po/SRC-POTFILES.in: New file.
859 * po/BLD-POTFILES.in: New file.
860 * po/bfd.pot: Regenerate.
862 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
864 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
865 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
866 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
867 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
868 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
869 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
871 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
872 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
873 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
874 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
875 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
876 New HOWTO members for new relocs.
877 (cris_reloc_map): Map new relocs.
878 (ELF_DYNAMIC_INTERPRETER): Define.
879 (PLT_ENTRY_SIZE): Define.
880 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
881 elf_cris_pic_plt_entry): New, PLT templates.
882 (struct elf_cris_pcrel_relocs_copied, struct
883 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
884 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
885 (cris_final_link_relocate): Check that 16-bit GOT relocs have
886 positive values. Adjust PCREL relocs to be relative to location
888 (cris_elf_relocate_section): Handle relocations to dynamic
889 objects. Handle new relocations. Call error handler when seeing
890 non-PIC relocation for read-only sections while generating shared
892 (cris_elf_check_relocs): Set reference counts for GOT and PLT
894 (bfd_elf32_bfd_link_hash_table_create,
895 elf_backend_adjust_dynamic_symbol,
896 elf_backend_size_dynamic_sections,
897 elf_backend_finish_dynamic_symbol,
898 elf_backend_finish_dynamic_sections,
899 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
900 elf_backend_hide_symbol, elf_backend_want_got_plt,
901 elf_backend_plt_readonly, elf_backend_want_plt_sym,
902 elf_backend_got_header_size, elf_backend_plt_header_size):
905 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
906 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
907 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
908 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
909 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
910 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
911 * bfd-in2.h, libbfd.h: Regenerate.
913 2001-03-21 Diego Novillo <dnovillo@redhat.com>
915 (_bfd_mips_elf_relocate_section): Give a better error message when
916 a relocation is not recognized.
918 2001-03-21 Alan Modra <alan@linuxcare.com.au>
920 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
921 non-NULL before attempting to dereference.
923 2001-03-20 H.J. Lu <hjl@gnu.org>
925 * configure.in: Remove the redundent AC_ARG_PROGRAM.
926 * configure: Rebuild.
928 2001-03-20 Andreas Schwab <schwab@suse.de>
930 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
931 relocation value when resolving a reference from a debugging
934 2001-03-16 Scott Thomason <SThomaso@hii.com>
936 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
937 (xcoff64_swap_sym_out): Fix syntax errors.
939 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
941 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
943 2001-03-15 Alan Modra <alan@linuxcare.com.au>
945 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
946 (hppa_link_hash_newfunc): Init it.
947 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
948 section appears to be non-PIC.
949 (final_link_relocate): Likewise.
950 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
951 possible candidate function, and set pic_call for those that will
952 only have a .plt entry for the PIC call stub.
953 (hppa_handle_PIC_calls): Set maybe_pic_call.
955 2001-03-12 DJ Delorie <dj@redhat.com>
957 * elf32-sh.c (sh_elf_relocate_section): Only relocation
958 R_SH_DIR8WP* relocs if they're against external symbols, else
959 they're just for relaxing. Validate the reloc values.
961 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
963 * binary.c (bfd_external_binary_architecture): Declare.
964 (binary_object_p): If bfd_external_binary_architecture is defined,
965 set the architecture to this string.
967 2001-03-11 Philip Blundell <philb@gnu.org>
969 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
970 entries that could serve as a definition for a weak symbol.
972 2001-03-08 Nick Clifton <nickc@redhat.com>
974 * Most files: Update copyright notices using Perl script created
975 by Kevin Buettner <kevinb@redhat.com>.
977 2001-03-07 Nick Clifton <nickc@redhat.com>
979 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
980 prior patch on ! defined OLD_ARM_ABI.
982 2001-03-07 Andreas Jaeger <aj@suse.de>
984 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
985 some relocation values.
987 2001-03-06 Nick Clifton <nickc@redhat.com>
989 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
990 of offset in BLX(1) instruction.
991 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
992 offset in BLX(1) instruction.
995 2001-03-06 Nick Clifton <nickc@redhat.com>
997 * coff-arm.c (coff_arm_reloc_type_lookup): Add
998 BFD_RELOC_THUMB_PCREL_BLX.
1000 2001-03-06 Igor Shevlyakov <igor@windriver.com>
1002 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1003 * bfd-in2.h: Regenerate.
1004 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1005 * ieee.c (ieee_write_processor): Set proper id for
1008 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
1010 * configure.in: Add s390 target.
1011 * configure: Regenerate.
1013 2001-02-28 Andreas Jaeger <aj@suse.de>
1015 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1018 2001-02-28 Philip Blundell <pb@futuretv.com>
1020 * elf32-arm.h: Update mentions of renamed EF_xx constants.
1021 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
1023 2001-02-27 H.J. Lu <hjl@gnu.org>
1025 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1026 abfd->tdata.aout_data == NULL.
1028 2001-02-27 Alan Modra <alan@linuxcare.com.au>
1030 * elf32-hppa.c: Correct field selector in stub comments.
1031 (clobber_millicode_symbols): Formatting fix.
1033 * configure.in: Bump version to 2.11.90.
1034 * configure: Regenerate.
1035 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1036 (CFILES): $SOURCE_CFILES + generated C files.
1037 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1039 * Makefile.in: Regenerate.
1040 * doc/Makefile.in: This too.
1042 2001-02-26 Timothy Wall <twall@cygnus.com>
1044 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
1047 2001-02-26 Nick Clifton <nickc@redhat.com>
1049 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1050 up, replacing multiple if statements with a switch.
1051 (handle_COMDAT): New function.
1053 2001-02-26 H.J. Lu <hjl@gnu.org>
1055 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1056 a warning for section flags we do not handle instead of
1059 2001-02-26 Andreas Jaeger <aj@suse.de>
1061 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1063 2001-02-22 Timothy Wall <twall@cygnus.com>
1065 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1066 * configure.in: Add objects for elf64_ia64_aix vectors.
1067 * configure: Regenerated.
1068 * configure.host: Recognize ia64-*-aix*.
1069 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
1070 for AIX. AIX5 requires most relocations to be dynamic (*all*
1071 binaries are somewhat similar to shared libraries).
1072 * targets.c: Add elf64_ia64_aix vectors.
1074 2001-02-21 David Mosberger <davidm@hpl.hp.com>
1076 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1077 C8 said "1" instead of "8". Clarify error string for IMM22:
1078 "signed integer" instead of just "integer".
1080 2001-02-20 Andreas Jaeger <aj@suse.de>
1082 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1083 PLT entries that could serve as a definition for a weak symbol.
1085 2001-02-19 Jakub Jelinek <jakub@redhat.com>
1087 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1088 entries that could serve as a definition for a weak symbol.
1089 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1091 2001-02-18 David O'Brien <obrien@FreeBSD>
1093 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1094 FreeBSD/i386-CURRENT differently until I can figure out the needed
1096 * configure: Regenerate.
1097 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1098 FreeBSD/PowerPC, and FreeBSD/sparc64.
1100 2001-02-18 lars brinkhoff <lars@nocrew.org>
1102 * Makefile.am: Add PDP-11 a.out target.
1103 * config.bfd: Likewise.
1104 * configure.in: Likewise.
1105 * targets.c: Likewise.
1106 * archures.c: Likewise.
1107 * bfd-in2.h: Likewise. Add PDP-11 relocations.
1108 * libbfd.h: Add PDP-11 relocations.
1109 * reloc.c: Likewise.
1110 * cpu-pdp11.c: New file.
1111 * pdp11.c: New file.
1113 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1114 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1115 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1116 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1117 (GET_MAGIC): New macro.
1118 (PUT_MAGIC): Likewise.
1119 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1121 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
1123 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1124 multiarch needs it).
1126 2001-02-18 H.J. Lu <hjl@gnu.org>
1128 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1131 2001-02-18 Kazu Hirata <kazu@hxi.com>
1133 * vms-misc.c: Fix formatting.
1135 2001-02-16 Kazu Hirata <kazu@hxi.com>
1137 * vms.c: Fix formatting.
1139 2001-02-14 H.J. Lu <hjl@gnu.org>
1141 * elf.c (elf_find_function): New function.
1142 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1143 the file name and function name.
1145 2001-02-14 Nick Clifton <nickc@redhat.com>
1147 * ecoff.c (bfd_debug_section): Update to initialise new fields in
1150 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1151 (BFD64_BACKENDS): Add pepigen.c
1152 Add rules to create peigen.c and pepigen.c from peXXigen.c.
1154 * Makefile.in: Regenerate.
1155 * configure: Regenerate.
1156 * po/POTFILES.in: Regenerate.
1157 * po/bfd.pot: Regenerate.
1159 2001-02-14 H.J. Lu <hjl@gnu.org>
1161 * libcoff-in.h (pe_tdata): Add members target_subsystem and
1162 force_minimum_alignment.
1164 2001-02-14 Bo Thorsen <bo@suse.de>
1166 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1167 (elf64_86_64_size_info): Struct added to fix a problem
1168 with the hashtable string entries.
1169 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1170 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1171 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1172 remove the FIXME for this.
1173 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1174 section. Also removed the FIXME for it.
1175 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1176 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1177 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1179 2001-02-13 Richard Henderson <rth@redhat.com>
1181 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1182 and not user provided.
1184 2001-02-13 Kazu Hirata <kazu@hxi.com>
1186 * vms.c (vms_print_symbol): Remove unreachable code.
1188 * rs6000-core.c: Fix formatting.
1190 2001-02-13 David Mosberger <davidm@hpl.hp.com>
1192 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1193 as _bfd_XXi_only_swap_filehdr_out.
1194 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1195 pe->force_minimum_alignment to TRUE.
1196 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1197 PEI_TARGET_SUBSYSTEM.
1198 (pe_print_private_bfd_data): Call
1199 _bfd_XX_print_private_bfd_data_common() instead of
1200 _bfd_pe_print_private_bfd_data_common().
1201 (pe_bfd_copy_private_bfd_data): Call
1202 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1203 _bfd_pe_bfd_copy_private_bfd_data_common().
1204 (coff_bfd_copy_private_section_data): Define as
1205 _bfd_XX_bfd_copy_private_section_data instead of
1206 _bfd_pe_bfd_copy_private_section_data.
1207 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1208 of a _bfd_pe_get_symbol_info.
1212 * peXXigen.c: Renamed from peigen.c.
1213 (COFF_WITH_XX): Define this macro (will get expanded into
1214 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1215 compiled as peigen.c or pepigen.c.
1216 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1217 define the canonical PEP structures and definitions.
1218 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1219 effect, enforce minimum file and section alignments. If
1220 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1221 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1222 so, by default, this is a no-op).
1224 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1225 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1226 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1227 _bfd_pefoo if it's not defined. Use these macros to define
1230 * libcoff.h (pe_tdata): Add members target_subsystem and
1231 force_minimum_alignment.
1233 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1235 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1237 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1240 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1241 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1244 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1245 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1246 (peigen.c): Add rule to generate from peXXigen.c.
1248 (pepigen.lo): List dependencies for pepigen.lo.
1250 2001-02-13 Alan Modra <alan@linuxcare.com.au>
1252 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1253 $global$ referenced but not defined, set its value here.
1255 2001-02-09 Bo Thorsen <bo@suse.de>
1257 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1259 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1261 (elf64_x86_64_relocate_section): Fix formatting.
1262 (elf64_x86_64_relocate_section): Fix addend for relocation of
1263 R_X86_64_(8|16|32|PC8|PC16|PC32).
1265 2001-02-12 Jan Hubicka <jh@suse.cz>
1267 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1269 2001-02-11 H.J. Lu <hjl@gnu.org>
1271 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
1274 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1276 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1277 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
1278 relocations against dynsym symbols.
1280 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1281 the R_MIPS_26 relocation.
1282 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1283 the R_MIPS_26 relocation.
1284 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1286 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1287 the R_MIPS_26 relocation.
1288 (mips_elf64_howto_table_rela): Likewise.
1290 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1291 member to mark symbols that have non-CALL relocations against
1293 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1294 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1296 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1297 non-CALL relocation against it is encountered.
1298 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1299 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1300 no_fn_stub is not set.
1302 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1303 information from the real symbol for indirect ones.
1304 Check no_fn_stub to find out if a symbol has a function stub
1307 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1309 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1310 * Makefile.in: Regenerate.
1312 2001-02-09 David Mosberger <davidm@hpl.hp.com>
1314 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1315 true if section name is an unwind table section name.
1316 (elfNN_ia64_additional_program_headers): Count each unwind section
1318 (elfNN_ia64_modify_segment_map): Install one unwind program header
1319 for each unwind separate section. Note: normally the linker
1320 script merges the unwind sections that go into a single segment,
1321 so this still generates at most one unwind program header per
1324 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1325 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1326 (elfNN_ia64_fake_sections): Mark sections with names that start
1327 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1330 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1331 Use it to make sh_info in unwind section point to the text section
1334 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1336 * Makefile.am: Add linux target for S/390.
1337 * archures.c: Likewise.
1338 * bfd-in2.h: Likewise.
1339 * config.bfd: Likewise.
1340 * configure.in: Likewise.
1342 * libbfd.h: Likewise.
1343 * targets.c: Likewise.
1344 * cpu-s390.c: New file.
1345 * elf32-s390.c: New file.
1346 * elf64-s390.c: New file.
1348 2001-02-09 Nick Clifton <nickc@redhat.com>
1350 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1351 ImageBase. This has already been done by coff_swap_hdr_in.
1353 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1355 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1357 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1359 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1360 (sparc64_elf_relocate_section): Likewise.
1362 2001-02-09 Mark Kettenis <kettenis@gnu.org>
1364 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1365 similar to R_SPARC_32.
1366 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1368 2001-02-08 H.J. Lu <hjl@gnu.org>
1370 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1371 relocation entries for weak definitions when building DSO with
1374 2001-02-08 Richard Henderson <rth@redhat.com>
1376 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1377 before visibility. Locally defined protected symbols are not
1380 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
1382 * config.bfd: Enable coff64 for rs6000-*. Patch from
1383 <hzoli@austin.ibm.com>.
1385 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
1387 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1388 found, do not attempt to find dwarf2 info before returning.
1390 2001-02-07 Jakub Jelinek <jakub@redhat.com>
1392 * elflink.h (is_global_symbol_definition): Rename to
1393 is_global_data_symbol_definition and have it reject function
1395 (elf_link_is_defined_archive_symbol): Use renamed function.
1397 2001-02-07 Todd Vierling <tv@wasabisystems.com>
1399 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1400 * libbfd.h (bfd_target_vector): Likewise.
1401 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
1402 make static; create pointer reference named bfd_target_vector.
1403 (_bfd_target_vector_entries): Calculate this based on the array
1404 typed _bfd_target_vector.
1406 2001-02-06 H.J. Lu <hjl@gnu.org>
1408 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1409 internal symbols are not dynamic.
1410 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1412 2001-02-06 Nick Clifton <nickc@redhat.com>
1414 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1415 that it will not be pulled into the list of files that make up
1417 * Makefile.in: Regenerate.
1418 * po/bfd.pot: Regenerate.
1420 2001-02-06 H.J. Lu <hjl@gnu.org>
1422 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
1424 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1425 external_PEI_IMAGE_hdr.
1427 2001-02-06 Kazu Hirata <kazu@hxi.com>
1429 * elf-m10200.c: Fix formatting.
1431 2001-02-04 Nick Clifton <nickc@redhat.com>
1433 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1434 rel, it will be handled later on.
1436 2001-02-02 Fred Fish <fnf@ninemoons.com>
1438 * Makefile.in: Fix typo.
1440 2001-02-01 Kazu Hirata <kazu@hxi.com>
1442 * elf-m10300.c: Fix formatting.
1444 2001-01-30 Alan Modra <alan@linuxcare.com.au>
1446 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1447 (elf_backend_get_symbol_type): Define.
1448 (elf64_hppa_object_p): Set architecture and machine from elf
1451 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
1453 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1456 2001-01-26 Richard Henderson <rth@redhat.com>
1458 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1459 for non-default visibility.
1460 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1461 delete ugly macro and replace with pretty function.
1463 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
1465 * coff-go32.c: Update copyright.
1466 * coff-stgo32.c: Likewise.
1467 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1468 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1469 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1470 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1472 2001-01-25 Kazu Hirata <kazu@hxi.com>
1474 * bfd-in2.h: Rebuild.
1475 * libbfd.h: Likewise.
1477 2001-01-23 H.J. Lu <hjl@gnu.org>
1479 * bfd-in2.h: Rebuild.
1481 2001-01-23 H.J. Lu <hjl@gnu.org>
1483 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1484 is NULL or PRIV(vms_rec) is outside of the buffer.
1486 2001-01-23 Kazu Hirata <kazu@hxi.com>
1488 * coff64-rs6000.c: Fix formatting.
1489 * coff-arm.c: Likewise.
1490 * coffgen.c: Likewise.
1491 * cofflink.c: Likewise.
1492 * coff-mcore.c: Likewise.
1493 * coff-mips.c: Likewise.
1494 * coff-pmac.c: Likewise.
1495 * coff-ppc.c: Likewise.
1496 * coff-rs6000.c: Likewise.
1497 * elf32.c: Likewise.
1498 * elf32-fr30.c: Likewise.
1499 * elf32-i370.c: Likewise.
1500 * elf32-i860.c: Likewise.
1501 * elf32-m32r.c: Likewise.
1502 * elf32-m68k.c: Likewise.
1503 * elf32-mcore.c: Likewise.
1504 * elf32-ppc.c: Likewise.
1505 * elf32-sh.c: Likewise.
1506 * elf32-v850.c: Likewise.
1507 * elf64-alpha.c: Likewise.
1508 * elf64-sparc.c: Likewise.
1509 * elflink.c: Likewise.
1510 * elflink.h: Likewise.
1511 * elf-m10200.c: Likewise.
1512 * elf-m10300.c: Likewise.
1513 * elfxx-ia64.c: Likewise.
1515 * aoutx.h: Fix formatting.
1517 * bfd-in2.h: Likewise.
1518 * bfd-in.h: Likewise.
1519 * cpu-i386.c: Likewise.
1520 * cpu-m68hc11.c: Likewise.
1521 * dwarf2.c: Likewise.
1522 * elf64-x86-64.c: Likewise.
1523 * format.c: Likewise.
1524 * freebsd.h: Likewise.
1526 * hp300hpux.c: Likewise.
1527 * hppabsd-core.c: Likewise.
1528 * hpux-core.c: Likewise.
1530 2001-01-22 Bo Thorsen <bo@suse.de>
1532 * elf64-x86-64.c: Added PIC support for X86-64.
1533 (elf64_x86_64_link_hash_newfunc): Function added.
1534 (elf64_x86_64_link_hash_table_create): Likewise.
1535 (elf64_x86_64_check_relocs): Likewise.
1536 (elf64_x86_64_gc_mark_hook): Likewise.
1537 (elf64_x86_64_gc_sweep_hook): Likewise.
1538 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1539 (elf64_x86_64_size_dynamic_sections): Likewise.
1540 (elf64_x86_64_discard_copies): Likewise.
1541 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1542 (elf64_x86_64_finish_dynamic_sections): Likewise.
1543 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1545 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1547 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1548 * Makefile.in: Regenerate.
1550 2001-01-21 Kazu Hirata <kazu@hxi.com>
1552 * coff-a29k.c: Fix formatting.
1554 2001-01-19 H.J. Lu <hjl@gnu.org>
1556 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1557 relocation section names.
1558 (elf_i386_relocate_section): Report files with bad relocation
1559 section names and return false.
1561 2001-01-17 Bo Thorsen <bo@suse.de>
1563 * targets.c: Alphabetize list of xvecs.
1565 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1567 * config.bfd: Add linux target variant for elfxx-hppa.
1568 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1569 bfd_elf64_hppa_linux_vec.
1570 * configure: Regenerate.
1571 * elf64-hppa.c: Include elf64-target.h again to support linux
1573 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
1574 * elf32-hppa.c: Include elf32-target.h again to support linux
1576 (elf32_hppa_post_process_headers): New function.
1577 (elf_backend_post_process_headers): Define.
1578 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
1579 bfd_elf32_hppa_linux_vec.
1581 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
1582 and data_segment_base fields.
1583 (elf32_hppa_link_hash_table_create ): Init them.
1584 (elf32_hppa_check_relocs): Update comments.
1585 (hppa_record_segment_addr): New function.
1586 (elf32_hppa_relocate_section): Call it.
1587 (final_link_relocate): Handle R_PARISC_SEGREL32.
1588 (elf32_hppa_final_link): New function.
1589 (bfd_elf32_bfd_final_link): Define to call it.
1590 (hppa_unwind_entry_compare): New function.
1591 * cache.c (bfd_open_file): Create files in write+read mode.
1593 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
1594 SEGREL32 and numerous other relocs. Change duplicate
1595 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1597 * opncls.c (bfd_fdopenr): Add parens like the comment says around
1600 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1601 .plt entries for DT_INIT and DT_FINI.
1602 (elf32_hppa_finish_dynamic_sections): Remove special handling of
1603 DT_INIT and DT_FINI.
1605 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1606 offsets for stub .plt access if wide mode. Check offset in range.
1608 2001-01-13 Nick Clifton <nickc@redhat.com>
1610 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1613 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1616 2001-01-12 Alan Modra <alan@linuxcare.com.au>
1618 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1619 * configure: Regenerate.
1621 2001-01-11 Peter Targett <peter.targett@arccores.com>
1623 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1624 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1625 * cpu-arc.c (arch_info_struct): Add entries for variants.
1626 (bfd_arc_arch) Set default to bfd_mach_arc_5.
1627 (arc_get_mach) Don't assume machine names prefixed arc- before
1629 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1631 (arc_elf_final_write_processing) Likewise.
1632 (ELF_MACHINE_CODE) Use EM_ARC.
1634 2001-01-10 Nick Clifton <nickc@redhat.com>
1636 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
1638 2001-01-07 Philip Blundell <philb@gnu.org>
1640 * README: Replace `bug-gnu-utils@gnu.org' with
1641 `bug-binutils@gnu.org'.
1643 2001-01-04 Kazu Hirata <kazu@hxi.com>
1645 * som.c: Fix formatting.
1647 2001-01-03 Kazu Hirata <kazu@hxi.com>
1649 * ecoffswap.h: Fix formatting.
1650 * elf-bfd.h: Likewise.
1651 * elfarm-nabi.c: Likewise.
1652 * elfarm-oabi.c: Likewise.
1653 * elfcode.h: Likewise.
1654 * elfcore.h: Likewise.
1655 * elflink.c: Likewise.
1656 * elflink.h: Likewise.
1657 * elfxx-ia64.c: Likewise.
1658 * elfxx-target.h: Likewise.
1659 * libbfd.c: Likewise
1660 * linker.c: Likewise.
1661 * lynx-core.c: Likewise.
1663 2001-01-02 Kazu Hirata <kazu@hxi.com>
1665 * pc532-mach.c: Fix formatting.
1666 * pe-arm.c: Likewise.
1667 * pe-i386.c: Likewise.
1668 * pe-mips.c: Likewise.
1669 * pe-ppc.c: Likewise.
1670 * pe-sh.c: Likewise.
1671 * pei-mips.c: Likewise.
1672 * pei-sh.c: Likewise.
1673 * peicode.h: Likewise.
1674 * ppcboot.c: Likewise.
1675 * ptrace-core.c: Likewise.
1677 2001-01-01 Kazu Hirata <kazu@hxi.com>
1679 * reloc.c: Fix formatting.
1680 * riscix.c: Likewise.
1681 * rs6000-core.c: Likewise.
1682 * xcoff-target.h: Likewise.
1684 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1686 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1687 error, by calling bfd_default_set_arch_mach with incoming
1690 2000-12-26 Kazu Hirata <kazu@hxi.com>
1692 * vaxnetbsd.c: Fix formatting.
1693 * versados.c: Likewise.
1694 * vms-gsd.c: Likewise.
1695 * vms-hdr.c: Likewise.
1696 * vms-misc.c: Likewise.
1698 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
1700 * archive.c (coff_write_armap): Don't write more than symbol_count
1701 `archive_member_file_ptr's.
1703 2000-12-25 Kazu Hirata <kazu@hxi.com>
1705 * vms-tir.c: Fix formatting.
1707 2000-12-23 Kazu Hirata <kazu@hxi.com>
1709 * vms.c: Fix formatting.
1712 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
1714 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1716 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1718 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1721 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1723 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1725 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
1727 * libbfd.c (bfd_get_bits): Added
1728 (bfd_put_bits): Likewise
1729 * bfd-in.h: Declared the above.
1730 * bfd-in2.h: Regenerated.
1732 2000-12-20 Kazu Hirata <kazu@hxi.com>
1734 * targets.c: Fix formatting.
1735 * tekhex.c: Likewise.
1736 * trad-core.c: Likewise.
1738 2000-12-19 Kazu Hirata <kazu@hxi.com>
1740 * sco5-core.c: Fix formatting.
1741 * section.c: Likewise.
1742 * sparclinux.c: Likewise.
1743 * sparclynx.c: Likewise.
1744 * sparcnetbsd.c: Likewise.
1746 * stabs.c: Likewise.
1747 * stab-syms.c: Likewise.
1748 * sunos.c: Likewise.
1750 * sysdep.h: Likewise.
1752 2000-12-18 Nick Clifton <nickc@redhat.com>
1754 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1756 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1757 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1759 2000-12-18 Nick Clifton <nickc@redhat.com>
1761 * vms-misc.c (_bfd_vms_get_record): Add default case to
1764 2000-12-15 Miloslav Trmac <mitr@volny.cz>
1766 * elfcore.h (elf_core_file_p): Move to the start of the program
1767 headers before attempting to read them.
1769 2000-12-14 Kazu Hirata <kazu@hxi.com>
1771 * peigen.c: Fix formatting.
1775 2000-12-13 Kazu Hirata <kazu@hxi.com>
1777 * peigen.c: Fix formatting.
1779 2000-12-12 Jim Wilson <wilson@redhat.com>
1781 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1783 2000-12-08 Mark Salter <msalter@redhat.com>
1785 * binary.c (binary_set_section_contents): Ignore sections
1788 2000-12-12 Kazu Hirata <kazu@hxi.com>
1790 * m68klinux.c: Fix formatting.
1791 * m68knetbsd.c: Likewise.
1792 * mipsbsd.c: Likewise.
1793 * netbsd-core.c: Likewise.
1794 * netbsd.h: Likewise.
1795 * newsos3.c: Likewise.
1796 * nlm32-alpha.c: Likewise.
1797 * nlm32-i386.c: Likewise.
1798 * nlm32-ppc.c: Likewise.
1799 * nlm32-sparc.c: Likewise.
1800 * nlmcode.h: Likewise.
1801 * nlmswap.h: Likewise.
1802 * nlm-target.h: Likewise.
1803 * ns32knetbsd.c: Likewise.
1805 2000-12-10 Fred Fish <fnf@be.com>
1807 * elflink.h (elf_link_output_extsym): Don't complain about undefined
1808 symbols in shared objects if allow_shlib_undefined is true.
1810 2000-12-12 Nick Clifton <nickc@redhat.com>
1812 * cpu-sh.c: Fix formattng.
1813 * elf.c: Fix formattng.
1814 * elf32-mips.c: Fix formattng.
1815 * elf32-sh.c: Fix formattng.
1816 * elf64-alpha.c: Fix formattng.
1818 2000-12-09 Nick Clifton <nickc@redhat.com>
1820 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1821 dwarf2_find_line_info as last parameter to invocation of
1822 _bfd_dwarf2_find_nearest_line.
1823 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
1824 dwarf2_find_line_info as last parameter to invocation of
1825 _bfd_dwarf2_find_nearest_line.
1827 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
1829 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
1830 (BFD_LIBS): ...to here.
1831 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1832 (BFD_LIBS_CFILES): ...to here.
1833 * Makefile.in: Regenerate.
1834 * configure.in: Remove dwarf.lo from the elf shell variable.
1835 * configure: Regenerate.
1836 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1837 * libcoff.h: Regenerate.
1838 * coffgen.c (coff_find_nearest_line): Call
1839 _bfd_dwarf2_find_nearest_line.
1840 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
1842 (read_abbrevs): Likewise
1843 (decode_line_info): Likewise.
1844 (parse_comp_unit): Likewise.
1845 (comp_unit_find_nearest_line): Likewise.
1846 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1847 * libbfd.h: Regenerate.
1848 * elf.c (_bfd_elf_find_nearest_line): Update call.
1849 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
1850 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
1851 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
1852 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
1853 (styp_to_sec_flags): Handle DWARF2 sections.
1854 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
1855 to _bfd_find_nearest_line.
1856 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
1857 call to _bfd_find_nearest_line.
1859 2000-12-08 Kazu Hirata <kazu@hxi.com>
1861 * coffgen.c: Fix formatting.
1862 * elf-m10300.c: Likewise.
1863 * elf32-i386.c: Likewise.
1864 * elf32-i960.c: Likewise.
1865 * elf32-m68k.c: Likewise.
1866 * elf32-mcore.c: Likewise.
1867 * elf32-ppc.c: Likewise.
1868 * elf32-sh.c: Likewise.
1869 * elf32-sparc.c: Likewise.
1870 * elf32-v850.c: Likewise.
1871 * elf64-alpha.c: Likewise.
1872 * elf64-hppa.c: Likewise.
1873 * elf64-mips.c: Likewise.
1874 * elf64-sparc.c: Likewise.
1876 2000-12-07 Kazu Hirata <kazu@hxi.com>
1878 * elf32-ppc.c: Fix formatting.
1879 * elf64-x86-64.c: Likewise.
1881 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
1883 From Ralf Baechle <ralf@gnu.org>
1885 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1886 BFDs containing no sections or empty .text, .data or .bss sections
1887 to be merged, regardless of their flags.
1889 2000-12-06 Kazu Hirata <kazu@hxi.com>
1891 * elf32-m32r.c: Fix formatting.
1892 * elf32-m68hc11.c: Likewise.
1893 * elf32-m68hc12.c: Likewise.
1894 * elf32-m68k.c: Likewise.
1895 * elf32-mcore.c: Likewise.
1896 * elf32-pj.c: Likewise.
1897 * elf32-ppc.c: Likewise.
1899 2000-12-05 Kazu Hirata <kazu@hxi.com>
1901 * elf32-fr30.c: Fix formatting.
1902 * elf32-hppa.c: Likewise.
1903 * elf32-i370.c: Likewise.
1904 * elf32-i386.c: Likewise.
1905 * elf32-i860.c: Likewise.
1906 * elf32-i960.c: Likewise.
1908 2000-12-03 Kazu Hirata <kazu@hxi.com>
1910 * elf32-arm.h: Fix formatting.
1911 * elf32-avr.c: Likewise.
1912 * elf32-cris.c: Likewise.
1913 * elf32-d10v.c: Likewise.
1914 * elf32-d30v.c: Likewise.
1915 * elf-hppa.h: Likewise.
1916 * elf-m10200.c: Likewise.
1917 * elf-m10300.c: Likewise.
1919 2000-12-01 Chris Demetriou <cgd@sibyte.com>
1921 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1922 bfd_mach_mips32_4k. Update FIXME comment.
1923 * archures.c (bfd_mach_mips32): New constant.
1924 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1925 the latter, renumber it.
1926 * bfd-in2.h (bfd_mach_mips32): New constant.
1927 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1928 the latter, renumber it.
1929 * cpu-mips.c (I_mips32): New constant.
1930 (I_mips4K, I_mips32_4k): Rename the former to the latter.
1931 (arch_info_struct): Add bfd_mach_mips32 entry, replace
1932 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1933 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1934 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
1935 with E_MIPS_MACH_MIPS32_4K.
1936 (_bfd_mips_elf_final_write_processing): Replace
1937 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1938 bfd_mach_mips32 case.
1939 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1940 comparison with support for MIPS32.
1941 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1944 * aoutx.h (NAME(aout,machine_type)): Add cases for
1945 bfd_mach_mips5 and bfd_mach_mips64.
1946 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1947 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1948 * cpu_mips.c (I_mips5, I_mips64): New definitions.
1949 (arch_info_struct): Add entries for bfd_mach_mips5 and
1951 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
1952 _bfd_mips_elf_print_private_bfd_data): Add cases for
1953 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1954 (_bfd_mips_elf_final_write_processing): Add cases for
1955 bfd_mach_mips5 and bfd_mach_mips64.
1957 * aoutx.h (NAME(aout,machine_type)): Add a
1958 bfd_mach_mips_sb1 case.
1959 * archures.c (bfd_mach_mips_sb1): New constant.
1960 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1961 * cpu-mips.c (I_sb1): New constant.
1962 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
1963 * elf32-mips.c (elf_mips_mach): Add case for
1965 (_bfd_mips_elf_final_write_processing): Add case for
1968 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1970 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1971 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1972 (sparc*-*-rtems*): Switched from a.out to ELF.
1974 2000-11-30 Jan Hubicka <jh@suse.cz>
1976 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1977 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1978 (elf64-x86-64.lo): Add dependencies.
1979 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1980 bfd_mach_x86_64_intel_syntax.
1981 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1982 * config.bfd (x86_64): Add.
1983 * configure.in: Add support for bfd_elf64_x86_64_vec.
1984 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1985 (bfd_i386_arch, i8086_ar): Link in.
1986 * elf64-x86-64.c: New file.
1987 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1988 * targets.c (bfd_elf64_x86_64_vec): Add.
1989 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
1991 2000-11-30 Kazu Hirata <kazu@hxi.com>
1993 * xcofflink.c: Fix formatting.
1995 2000-11-28 Kazu Hirata <kazu@hxi.com>
1997 * aoutx.h: Fix formatting.
1998 * bfd-in.h: Likewise.
1999 * bfd-in2.h: Likewise.
2000 * cache.c: Likewise.
2001 * cisco-core.c: Likewise.
2002 * coff64-rs6000.c: Likewise.
2003 * coffcode.h: Likewise.
2004 * coffswap.h: Likewise.
2005 * corefile.c: Likewise.
2006 * elf32-mips.c: Likewise.
2008 2000-11-27 Kazu Hirata <kazu@hxi.com>
2010 * aout-adobe.c: Fix formatting.
2011 * coff64-rs6000.c: Likewise.
2012 * coffgen.c: Likewise.
2013 * cofflink.c: Likewise.
2015 2000-11-27 Philip Blundell <pb@futuretv.com>
2017 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2018 (obj_coff_strings_written): New accessor macro for above.
2019 * libcoff.h: Regenerate.
2020 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2022 * coffcode.h (coff_write_object_contents): No need to write out
2023 the string table if it's already been done.
2025 2000-11-22 Philip Blundell <pb@futuretv.com>
2027 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
2028 weak undefined symbols.
2030 2000-11-24 Nick Clifton <nickc@redhat.com>
2032 * archures.c (bfd_mach_arm_5TE): Define.
2033 (bfd_mach_arm+XScale): Define.
2034 * bfd-in2.h: Regenerate.
2036 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2037 BFD_RELOC_ARM_PCREL_BLX.
2039 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2040 XScale machine numbers.
2042 * config.bfd (xscale-elf): Add target.
2043 (xscale-coff): Add target.
2045 * cpu-arm.c: Add xscale machine name.
2046 Add v5t, v5te and XScale machine numbers.
2048 2000-11-23 Kazu Hirata <kazu@hxi.com>
2050 * aix386-core.c: Fix formatting.
2052 2000-11-22 Jim Wilson <wilson@redhat.com>
2054 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2055 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2056 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2057 (ins_imms_scaled): Initialize sign_bit at function entry.
2058 (elf64_ia64_operands): Add missing initializers.
2059 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2060 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2061 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2062 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2063 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2065 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2066 and free_extsyms at function entry.
2067 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2068 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2069 (get_got): Delete unused local srel.
2070 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2071 (elfNN_ia64_relocate_section): Delete unused local dynindx.
2073 2000-11-21 Kazu Hirata <kazu@hxi.com>
2075 * coff-a29k.c: Fix formatting.
2076 * coff-h8500.c: Likewise.
2077 * coff-i960.c: Likewise.
2078 * coff-ppc.c: Likewise.
2079 * coff-rs6000.c: Likewise.
2080 * coff-stgo32.c: Likewise.
2081 * coff-tic54x.c: Likewise.
2082 * coff-w65.c: Likewise.
2083 * cpu-h8500.c: Likewise.
2084 * cpu-hppa.c: Likewise.
2085 * cpu-ns32k.c: Likewise.
2086 * ecoff.c: Likewise.
2087 * ecofflink.c: Likewise.
2089 2000-11-21 Nick Clifton <nickc@redhat.com>
2091 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2092 remove possibility of infinite loop.
2094 2000-11-20 Kazu Hirata <kazu@hxi.com>
2096 * aix386-core.c: Fix formatting.
2097 * aout-adobe.c: Likewise.
2098 * aout-arm.c: Likewise.
2099 * aout-encap.c: Likewise.
2100 * aout-ns32k.c: Likewise.
2101 * aout-target.h: Likewise.
2102 * aout-tic30.c: Likewise.
2103 * aoutf1.h: Likewise.
2104 * aoutx.h: Likewise.
2105 * archive.c: Likewise.
2106 * bfd-in.h: Likewise.
2107 * bfd-in2.h: Likewise.
2111 2000-11-17 H.J. Lu <hjl@gnu.org>
2113 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2114 pltoff entries for DT_INIT and DT_FINI.
2115 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2116 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2119 2000-11-16 Richard Henderson <rth@redhat.com>
2121 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2122 (allocate_dynrel_entries): Likewise.
2123 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
2124 (set_pltoff_entry): Likewise.
2125 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2126 (elfNN_ia64_reloc_type_lookup): Likewise.
2127 (elfNN_ia64_install_value): Likewise.
2128 (elfNN_ia64_relocate_section): Likewise.
2129 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2130 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2132 2000-11-16 Kazu Hirata <kazu@hxi.com>
2134 * cpu-a29k.c: Fix formatting.
2135 * cpu-alpha.c: Likewise.
2136 * cpu-arm.c: Likewise.
2137 * cpu-avr.c: Likewise.
2138 * cpu-d10v.c: Likewise.
2139 * cpu-h8500.c: Likewise.
2140 * cpu-hppa.c: Likewise.
2141 * cpu-i370.c: Likewise.
2142 * cpu-i386.c: Likewise.
2143 * cpu-i960.c: Likewise.
2144 * cpu-ia64-opc.c: Likewise.
2145 * cpu-ia64.c: Likewise.
2146 * cpu-m32r.c: Likewise.
2147 * cpu-m68hc11.c: Likewise.
2148 * cpu-m68hc12.c: Likewise.
2149 * cpu-m68k.c: Likewise.
2150 * cpu-m88k.c: Likewise.
2151 * cpu-mips.c: Likewise.
2152 * cpu-ns32k.c: Likewise.
2153 * cpu-pj.c: Likewise.
2154 * cpu-powerpc.c: Likewise.
2155 * cpu-sh.c: Likewise.
2156 * cpu-sparc.c: Likewise.
2157 * cpu-tic54x.c: Likewise.
2158 * cpu-v850.c: Likewise.
2159 * cpu-vax.c: Likewise.
2160 * cpu-w65.c: Likewise.
2161 * cpu-we32k.c: Likewise.
2162 * cpu-z8k.c: Likewise.
2163 * dwarf1.c: Likewise.
2164 * dwarf2.c: Likewise.
2166 2000-11-15 Kazu Hirata <kazu@hxi.com>
2168 * coff-arm.c: Fix formatting.
2169 * coff-ppc.c: Likewise.
2170 * coff-rs6000.c: Likewise.
2171 * coff-sh.c: Likewise.
2172 * coff-sparc.c: Likewise.
2173 * coff-tic30.c: Likewise.
2174 * coff-tic54x.c: Likewise.
2175 * coff-tic80.c: Likewise.
2176 * coff-w65.c: Likewise.
2177 * coff-we32k.c: Likewise.
2178 * coff-z8k.c: Likewise.
2180 2000-11-15 Richard Henderson <rth@redhat.com>
2182 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2183 section with the same ALLOC|LOAD flags as the source section.
2185 2000-11-14 Jakub Jelinek <jakub@redhat.com>
2187 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2188 by STO_ALPHA constants.
2190 2000-11-14 Kazu Hirata <kazu@hxi.com>
2192 * coff-pmac.c: Fix formatting.
2193 * coff-ppc.c: Likewise.
2195 2000-11-13 H.J. Lu <hjl@gnu.org>
2197 * elflink.h (elf_link_add_object_symbols): Also add indirect
2198 symbols for common symbols with the default version.
2200 2000-11-09 Philip Blundell <pb@futuretv.com>
2202 * section.c (STD_SECTION): Set gc_mark flag.
2204 2000-11-11 Kazu Hirata <kazu@hxi.com>
2206 * coff-i960.c: Likewise.
2207 * coff-m68k.c: Likewise.
2208 * coff-m88k.c: Likewise.
2209 * coff-mcore.c: Likewise.
2210 * coff-mips.c: Likewise.
2212 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
2214 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2216 2000-11-10 Kazu Hirata <kazu@hxi.com>
2218 * coff-h8300.c: Fix formatting.
2219 * coff-h8500.c: Likewise.
2220 * coff-i386.c: Likewise.
2221 * coff-i860.c: Likewise.
2222 * coff-i960.c: Likewise.
2223 * coff-ia64.c: Likewise.
2225 2000-11-09 Kazu Hirata <kazu@hxi.com>
2227 * archive.c: Fix formatting.
2228 * archures.c: Likewise.
2230 2000-11-07 Richard Henderson <rth@redhat.com>
2232 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2233 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
2234 * section.c (bfd_set_section_contents): Call memcpy if
2235 section->contents set and location not equal to contents plus offset.
2237 2000-11-08 Kazu Hirata <kazu@hxi.com>
2239 * bfd-in.h: Fix formatting.
2240 * bfd-in2.h: Likewise.
2242 * binary.c: Likewise.
2244 * coff-a29k.c: Likewise.
2245 * coff-alpha.c: Likewise.
2246 * coff-apollo.c: Likewise.
2247 * coff-aux.c: Likewise.
2249 2000-11-07 Kazu Hirata <kazu@hxi.com>
2251 * aix386-core.c: Fix formatting.
2252 * aoutf1.h: Likewise.
2253 * aoutx.h: Likewise.
2254 * archures.c: Likewise.
2255 * armnetbsd.c: Likewise.
2257 2000-11-07 Alan Modra <alan@linuxcare.com.au>
2259 * coff-h8300.c (special): Adjust reloc address.
2261 2000-11-06 Steve Ellcey <sje@cup.hp.com>
2263 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
2264 to differentiate elf32 and elf64 on ia64.
2265 * bfd-in2.h: Regenerate.
2266 * config.bfd: Add target for "ia64*-*-hpux*".
2267 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2268 * configure: Regenerate.
2269 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
2270 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2272 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2273 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2274 * Makefile.in: Regnerate.
2275 * elf64-ia64.c: Deleted.
2276 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2278 2000-11-06 Kazu Hirata <kazu@hxi.com>
2280 * aout-adobe.c: Fix formatting.
2281 * aout-arm.c: Likewise.
2282 * aout-cris.c: Likewise.
2283 * aout-encap.c: Likewise.
2284 * aout-ns32k.c: Likewise.
2285 * aout-target.h: Likewise.
2286 * aout-tic30.c: Likewise.
2288 2000-11-05 Philip Blundell <philb@gnu.org>
2290 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2291 BFDs containing no sections to be merged, regardless of their flags.
2293 2000-11-04 Philip Blundell <philb@gnu.org>
2295 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2296 if a relocation for an undefined symbol also results in an
2299 2000-11-06 Christopher Faylor <cgf@cygnus.com>
2301 * config.bfd: Add support for Sun Chorus.
2303 2000-11-05 David O'Brien <obrien@FreeBSD.org>
2305 * configure.in: Recognize alpha-*-freebsd*.
2306 * configure: Regenerate.
2308 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
2310 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2311 (Chunk): New global variable set by a parameter in objcopy.c.
2312 (S3Forced): New global variable set by a parameter in
2314 (srec_set_section_contents): If S3Forced is true, always generate
2316 (srec_write_section): Use 'Chunk' to limit maximum length of S
2319 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2321 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2322 * Makefile.in: Regenerate.
2323 * bfd-in2.h: Regenerate.
2324 * po/bfd.pot: Regenerate.
2326 2000-10-31 Philip Blundell <philb@gnu.org>
2328 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2329 EF_SOFT_FLOAT if it is defined.
2331 2000-10-27 Philip Blundell <philb@gnu.org>
2333 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2334 attempts to mix PIC code with non-PIC, just mark the output as
2335 being position dependent.
2336 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
2337 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
2338 all mismatches, not just the first one.
2340 2000-10-25 Chris Demetriou <cgd@sibyte.com>
2342 * ieee.c (ieee_archive_p): Plug one of many possible
2343 memory leaks in error handling.
2345 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2347 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2348 elf32_sparc_object_p, elf32_sparc_final_write_processing):
2350 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2351 sparc64_elf_object_p): Support v9b.
2352 * archures.c: Declare v8plusb and v9b machines.
2354 * cpu-sparc.c: Ditto.
2356 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2358 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2361 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2362 (SYMBOL_CALLS_LOCAL): New macro.
2363 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2364 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2365 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2366 (ppc_elf_relocate_section): Use flag variable to determine
2367 whether the relocation refers to a local symbol.
2368 Test whether a PLTREL24 reloc will produce a reloc by looking
2369 to see whether a PLT entry was made.
2371 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2373 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2374 entries that could serve as a definition for a weak symbol.
2376 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
2378 From Ralf Baechle <ralf@gnu.org>
2380 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2381 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
2382 against local symbols.
2383 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
2385 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2387 * section.c (struct sec): Add kept_section.
2388 (struct bfd_comdat_info): Remove sec, we can use above.
2389 (STD_SECTION): Add initializer.
2390 (bfd_make_section_anyway): Init here too.
2392 * bfd-in2.h: Regenerate.
2394 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
2396 (elf_link_input_bfd): Set all asection->symbol->value's here, and
2397 fudge values for discarded link-once section symbols.
2399 * elf64-hppa.c: Include alloca-conf.h
2401 2000-10-11 Alan Modra <alan@linuxcare.com.au>
2403 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2405 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2407 2000-10-10 Alan Modra <alan@linuxcare.com.au>
2409 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2411 2000-10-10 Tom Rix <trix@redhat.com>
2413 * section.c (bfd_make_section_anyway): Release newsect ptr when
2414 newsect->symbol fails to alloc. Use bfd_release instead of free.
2416 2000-10-09 Richard Henderson <rth@cygnus.com
2418 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2419 (elf64_ia64_unwind_entry_compare): New.
2420 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2422 2000-10-07 Alan Modra <alan@linuxcare.com.au>
2424 * elflink.h (size_dynamic_sections): Don't create various tags if
2425 .dynstr is excluded from the link. Don't set first dynsym entry
2426 if dynsymcount is zero.
2427 (elf_bfd_final_link): Don't try to swap out dynamic syms if
2428 .dynsym excluded from the link. Don't try to write any dynamic
2429 sections excluded from the link.
2431 * elf.c (swap_out_syms): Handle global section symbols.
2433 2000-10-05 DJ Delorie <dj@redhat.com>
2435 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2436 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2437 (coff_write_relocs): write extended reloc count
2438 (coff_write_object_contents): account for extended relocs
2440 2000-10-05 Jim Wilson <wilson@cygnus.com>
2442 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2444 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2445 elf_backend_section_flags function.
2446 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2448 (elf64_ia64_section_flags): New function containing flag conversion
2450 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2451 * elfxx-target.h (elf_backend_section_flags): Define.
2452 (elfNN_bed): Initialize elf_backend_section_flags field.
2454 2000-10-02 Alan Modra <alan@linuxcare.com.au>
2456 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2457 _bfd_elf32_gc_record_vtable. Correct a comment.
2459 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
2461 From Ralf Baechle <ralf@gnu.org>
2463 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2464 produces binaries with got[1] = 0x80000001 to differenciate them
2465 for the dynamic linker from the broken binaries produced by old
2468 2000-09-30 Petr Sorfa <petrs@sco.com>
2470 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2471 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2472 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2473 * configure: Regenerate.
2475 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
2477 Define two bfd_targets for absence and presence of leading
2478 underscore on symbols. Make sure to only link same kind.
2479 * elf32-cris.c (cris_elf_object_p,
2480 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2481 cris_elf_merge_private_bfd_data): New.
2482 (elf_backend_object_p, elf_backend_final_write_processing,
2483 bfd_elf32_bfd_print_private_bfd_data,
2484 bfd_elf32_bfd_merge_private_bfd_data): Define.
2485 <Target vector definition>: Include elf32-target.h twice with
2486 different macro settings:
2487 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2488 bfd_elf32_us_cris_vec.
2489 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2490 (elf_symbol_leading_char): First as 0, then '_'.
2491 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2492 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2493 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2494 * configure: Regenerate.
2495 * targets.c: Declare bfd_elf32_us_cris_vec.
2496 * po/bfd.pot: Regenerate.
2498 2000-09-29 Momchil Velikov <velco@fadata.bg>
2500 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2501 R_ARM_THM_PC22 relocations.
2503 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
2505 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2507 2000-09-29 Momchil Velikov <velco@fadata.bg>
2509 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2510 is has the SEC_HAS_CONTENTS flag set.
2512 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
2513 Hans-Peter Nilsson <hp@axis.com>
2515 * aout-cris.c (N_TXTADDR): Define.
2517 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2519 * som.c: Include alloca-conf.h.
2520 * Makefile.am: "make dep-am"
2521 * Makefile.in: Regenerate.
2523 2000-09-27 Alan Modra <alan@linuxcare.com.au>
2525 * elf32-hppa.c (plt_stub): New.
2526 (PLT_STUB_ENTRY): Define.
2527 (elf32_hppa_link_hash_table): Change multi_subspace to packed
2528 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
2529 (elf32_hppa_link_hash_table_create): Init to suit.
2530 (elf32_hppa_check_relocs): Set has_12bit_branch and
2531 has_17bit_branch as appropriate.
2532 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
2533 non-local functions.
2534 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
2535 Add space for plt_stub as needed.
2536 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
2537 functions at plt_stub.
2538 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
2539 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
2541 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
2542 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
2543 of fixed size, and if negative, disable handling of input sections
2544 before stub section. Set up default stub group size depending
2545 on detected branch relocs.
2546 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
2547 ensure different offsets from sym_value aren't rounded to
2548 different 2k blocks. Use lrsel and rrsel for other stubs too for
2549 consistency rather than necessity.
2550 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
2551 (final_link_relocate): Likewise.
2552 (elf32_hppa_relocate_section): Likewise.
2554 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
2555 (_bfd_elf_hppa_gen_reloc_type): Generate them.
2556 (elf_hppa_final_link_relocate): Handle them.
2557 (elf_hppa_relocate_insn): Likewise.
2558 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
2560 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
2562 * elfcode.h (elf_object_p): Preserve and clear abfd section
2563 information. Restore at error.
2565 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2567 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
2568 is empty, make sure that its rva also 0. NT loader dislikes
2571 2000-09-26 Steve Ellcey <sje@cup.hp.com>
2573 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
2576 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2578 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
2579 currently unused RELATIVE_DYNAMIC_RELOCS code.
2580 (hppa_discard_copies): Likewise.
2581 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
2582 comments. Don't check non-code output sections for stub grouping.
2584 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2586 * section.c (bfd_get_unique_section_name): Return NULL if
2589 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2591 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
2592 instruction sequence to actually work.
2593 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
2596 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
2598 * elf32-sh.c (sh_elf_relocate_section): Use
2599 _bfd_final_link_relocate to apply the relocation against a section
2600 symbol, when doing relocatable links.
2602 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2604 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
2606 (stub_hash_newfunc): Here too.
2607 (hppa_add_stub): And here.
2608 (elf32_hppa_link_hash_table): Remove stub_section_created,
2609 reloc_section_created, first_init_sec and first_fini_sec. Add
2611 (elf32_hppa_link_hash_table_create): Init to suit.
2612 (hppa_get_stub_entry): Add support for grouping stub sections.
2613 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
2614 section code. Index stub vars by section->id.
2615 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
2616 exit paths. Zap allocation of above removed vars. Refine
2619 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
2620 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
2621 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
2622 rather than pointer to bfd_link_info.
2623 (hppa_add_stub): Likewise.
2624 (final_link_relocate): Likewise.
2626 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
2628 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
2631 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
2633 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
2634 ld/emulparams/shelf.sh.
2636 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2638 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
2639 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
2640 * bfd-in2.h: Regenerate.
2642 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
2644 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
2645 LITUSE relocations incorrectly if -relax is specified on the ld
2646 command line and the displacement field of the load or store
2647 instruction is non-zero. (Patch by paul.winalski@compaq.com)
2649 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2651 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
2652 first_fini_sec here.
2653 (elf32_hppa_size_stubs): Instead correctly find the first .init
2654 and .fini section here.
2656 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
2658 * elf32-hppa.c (clobber_millicode_symbols): New function.
2659 (elf32_hppa_size_dynamic_sections): Call it.
2661 2000-09-14 Alan Modra <alan@linuxcare.com.au>
2663 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
2664 packed. Add plabel, plt_abs packed booleans.
2665 (hppa_link_hash_newfunc): Init new fields.
2666 (PLABEL_PLT_ENTRY_SIZE): Define.
2667 (hppa_stub_name): Use size_t len vars.
2668 (hppa_add_stub): Likewise.
2669 (elf32_hppa_build_stubs): Likewise.
2670 (hppa_build_one_stub): Kill some compiler warnings.
2671 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
2672 if dynamic linking. Munge the local plt offsets into
2673 local_got_refcounts. Set h->plabel for all global PLABELs. Use
2674 size_t len vars. Add assert for plabel addend.
2675 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
2676 (elf32_hppa_hide_symbol): New function.
2677 (elf_backend_hide_symbol): Define.
2678 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
2679 with h->plabel set. Don't make plt entries to have dynamic syms
2680 when they have been forced local. If plt entry is used by a
2681 plabel, make it PLABEL_PLT_ENTRY_SIZE.
2682 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
2683 Set up .plt offsets for local syms.
2684 (elf32_hppa_relocate_section): Initialise plt entries for local
2685 syms. Leave weak undefined plabels zero. Make global plabel
2686 relocs against function symbol, and leave the addend zero.
2687 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
2688 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
2689 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
2690 relocs instead of SEGREL32 for dynamic got relocs.
2691 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
2692 (elf_backend_got_header_size): Adjust.
2693 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
2695 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
2696 (hppa_type_of_stub): Use it instead of #if 0
2697 (hppa_discard_copies): Use it here too.
2698 (elf32_hppa_size_dynamic_sections): And here.
2700 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
2701 (elf32_hppa_link_hash_table_create): And here.
2702 (hppa_build_one_stub): And here. Instead keep track of stub
2703 offset using _raw_size.
2704 (elf32_hppa_size_stubs): Likewise.
2705 (elf32_hppa_build_stubs): Likewise.
2706 (hppa_size_one_stub): Likewise. Resize reloc section too.
2708 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
2709 first_fini_sec handling. Don't search for reloc section or set
2710 hplink->reloc_section_created here.
2711 (elf32_hppa_size_stubs): Instead search for reloc sections, and
2712 set reloc_section_created here.
2713 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
2714 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
2716 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
2718 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
2719 with `hplink->root.'.
2720 (elf32_hppa_check_relocs): Likewise.
2721 (elf32_hppa_gc_sweep_hook): Likewise.
2722 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2723 (hppa_handle_PIC_calls): Likewise.
2724 (elf32_hppa_size_dynamic_sections): Likewise.
2725 (elf32_hppa_set_gp): Likewise.
2726 (elf32_hppa_relocate_section): Likewise.
2727 (elf32_hppa_finish_dynamic_symbol): Likewise.
2728 (elf32_hppa_finish_dynamic_sections): Likewise.
2730 From David Huggins-Daines <dhd@linuxcare.com>
2731 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
2732 defined weak symbols in shared links.
2733 (final_link_relocate): Calls to defined weak symbols in shared
2734 objects must go via import stubs, as the target might not be known
2737 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2739 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
2740 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
2741 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
2742 the original entries with EMPTY_HOWTOs, and added new ones to fill
2744 (sh_elf_info_to_howto): Make sure the new gap isn't used.
2745 (sh_elf_relocate_section): Likewise.
2747 2000-09-13 Anders Norlander <anorland@acc.umu.se>
2749 * cpu-mips.c (arch_info_struct): Add mips:4K
2750 * bfd-in2.h (bfd_mach_mips4K): New define.
2751 * archures.c: Add bfd_mach_mips4K to comment.
2752 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
2753 E_MIPS_ARCH_2 for bfd_mach_mips4K.
2755 2000-09-13 Marco Franzen <marcof@thyron.com>
2757 * som.c (som_write_symbol_strings): Do not used fixed buffers,
2758 use size_t as a counter.
2759 (som_write_space_strings): Similarly.
2761 2000-09-12 Jason Eckhardt <jle@cygnus.com>
2763 * elf32-i860.c (elf32_i860_relocate_pc26): New function
2765 (elf32_i860_relocate_section): Invoke new function from here.
2767 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2769 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
2772 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2774 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
2775 target section name instead of dumping core when the target symbol is
2778 2000-09-09 Kazu Hirata <kazu@hxi.com>
2780 * riscix.c: Remove DEFUN.
2782 2000-09-08 Nick Clifton <nickc@redhat.com>
2784 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
2785 initialise flags in output bfd if the input bfd is the default
2786 architecture with the default flags.
2788 2000-09-08 Kazu Hirata <kazu@hxi.com>
2790 * archive.c: Fix formatting.
2791 * coff-arm.c: Likewise.
2792 * doc/chew.c: Likewise.
2794 2000-09-08 Alan Modra <alan@linuxcare.com.au>
2796 * section.c (bfd_get_unique_section_name): Put a dot before the
2799 2000-09-07 Kazu Hirata <kazu@hxi.com>
2801 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
2802 * elf.c: Fix formatting.
2804 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
2806 * config.bfd (sh-*-linux*): Added.
2807 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
2808 * targets.c: Declare them.
2809 * elf32-sh-lin.c: New file.
2810 * Makefile.am: Compile it.
2811 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
2812 * configure, Makefile.in: Rebuilt.
2814 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
2816 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
2817 pseduo-section when determining where the TOC ends.
2819 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
2820 output x_tvndx as it is only two bytes wide.
2822 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
2823 reloc is 26 or 32 bits wide.
2825 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
2826 for relocs that don't change anything. Also look at the full
2829 2000-09-06 Philip Blundell <philb@gnu.org>
2831 * config.bfd (arm*-*-uclinux*): New target.
2833 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2835 * configure: Rebuilt with new libtool.m4.
2837 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2839 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
2840 word for variable name.
2841 * bfd-in2.h: Regenerate.
2843 2000-09-05 Nick Clifton <nickc@redhat.com>
2845 * config.in: Regenerate.
2846 * libbfd.h: Regenerate.
2847 * po/bfd.pot: Regenerate.
2848 * doc/bfdint.texi: Remove CVS date string - it foils compares with
2851 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
2853 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
2855 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2857 Shared library and PIC support.
2858 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
2859 (GOT_ENTRY_SIZE): New.
2860 (ELF_DYNAMIC_INTERPRETER): New.
2861 (STUB_SUFFIX): Define.
2862 (LONG_BRANCH_PIC_IN_SHLIB): Define.
2863 (RELATIVE_DYNAMIC_RELOCS): Define.
2864 (enum elf32_hppa_stub_type): New.
2865 (struct elf32_hppa_stub_hash_entry): Rename offset to
2866 stub_offset. Add a number of new fields.
2867 (struct elf32_hppa_link_hash_entry): New.
2868 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
2870 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
2871 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
2872 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
2874 (hppa_link_hash_newfunc): New function.
2875 (elf32_hppa_link_hash_table_create): Use above function. Init new
2877 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
2878 instead of addend, and remove sym_name from args. Don't use
2879 symbol name for local syms, instead use sym index.
2880 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
2881 stub type rather than size. Pass in hash and handle import stub
2882 case. Also pass in reloc instead of offset so we can calculate
2883 PCREL22F and PCREL12F branches properly.
2884 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
2885 import and export stubs too.
2886 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
2887 import and export stub sizing.
2888 (elf32_hppa_check_relocs): New function.
2889 (elf32_hppa_adjust_dynamic_symbol): New function.
2890 (hppa_discard_copies): New function.
2891 (elf32_hppa_size_dynamic_sections): New function.
2892 (elf_backend_size_dynamic_sections): Define.
2893 (elf32_hppa_finish_dynamic_symbol): New function.
2894 (elf_backend_finish_dynamic_symbol): Define.
2895 (elf32_hppa_size_stubs): Stash params in link hash table, and move
2896 some local vars into the link hash table too. For shared links,
2897 trundle over function syms, generating export stubs. Handle
2898 PCREL22F branches. Break out stub creation code from here..
2899 (hppa_add_stub): .. to here. New function.
2900 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
2901 call the bfd linker. Use elf_gp to record global pointer.
2902 Calculate a value from sections if $global$ is missing.
2903 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
2904 (elf32_hppa_gc_mark_hook): New function.
2905 (elf_backend_gc_mark_hook): Define.
2906 (elf32_hppa_gc_sweep_hook): New function.
2907 (elf_backend_gc_sweep_hook): Define.
2908 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
2909 Add rel to args, and remove howto, input_bfd, offset, addend,
2910 sym_name as we can recalculate these locally. Handle calls to
2911 dynamic objects, extra PIC relocs, PCREL22F branches. Change
2912 handling of undefined weak syms. Check that stubs are in range.
2913 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
2914 message on hitting a DPREL21L reloc that needs fixing. Subtract
2915 off PC for PCREL14F. Break out code that does a stub lookup from
2917 (hppa_get_stub_entry): ..to here. New function.
2918 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
2919 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
2921 (elf32_hppa_finish_dynamic_sections): New function.
2922 (elf_backend_finish_dynamic_sections): Define.
2923 (elf_backend_final_write_processing) Define.
2924 (hppa_handle_PIC_calls): New function.
2925 (elf32_hppa_build_stubs): Call it. Pass link_info to
2926 hppa_build_one_stub.
2927 (elf32_hppa_create_dynamic_sections): New function
2928 to create .plt and .got then set .plt flags correctly.
2929 (elf_backend_create_dynamic_sections): Define.
2930 (elf32_hppa_object_p): New function.
2931 (elf_backend_object_p): Define.
2932 (elf32_hppa_elf_get_symbol_type): New function.
2933 (elf_backend_get_symbol_type): Define.
2934 (elf_backend_can_gc_sections): Define.
2935 (elf_backend_want_got_plt): Define.
2936 (elf_backend_plt_alignment): Set to 2.
2937 (elf_backend_plt_readonly): Define.
2938 (elf_backend_want_plt_sym): Define.
2939 (elf_backend_got_header_size): Reserve one entry.
2941 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
2942 (elf32_hppa_size_stubs): Pass in multi_subspace.
2943 (elf32_hppa_set_gp): Declare.
2945 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
2946 (bfd_get_unique_section_name): New function.
2947 * bfd-in2.h: Regenerate.
2949 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
2950 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
2953 From David Huggins-Daines <dhd@linuxcare.com>
2954 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
2955 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
2956 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
2957 been updated in finish_dynamic_symbol before modifying function
2960 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
2961 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
2962 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
2963 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
2964 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
2965 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
2966 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
2967 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
2969 From David Huggins-Daines <dhd@linuxcare.com>
2970 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
2971 style of local labels as well.
2973 2000-09-03 Philip Blundell <philb@gnu.org>
2975 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
2976 references to undefined symbols in debugging sections.
2978 2000-09-02 H.J. Lu <hjl@gnu.org>
2980 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2981 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
2982 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
2985 2000-09-02 Jason Eckhardt <jle@cygnus.com>
2987 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
2988 (elf32_i860_is_local_label_name): New function and prototype.
2990 2000-09-02 Nick Clifton <nickc@redhat.com>
2992 * configure.in: Increase version number to 2.10.91.
2993 * configure: Regenerate.
2994 * aclocal.m4: Regenerate.
2995 * config.in: Regenerate.
2996 * po/bfd.pot: Regenerate.
2998 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3000 * elf.c (_bfd_elf_make_section_from_shdr): Add
3001 .gnu.linkobce.wi. to the list of debug section names.
3003 2000-09-02 Nick Clifton <nickc@redhat.com>
3005 * dwarf2.c (find_debug_info): New function: Locate a section
3006 containing dwarf2 debug information.
3007 (bfd_dwarf2_find_nearest_line): Find all sections containing
3008 debug information and include them in the stash.
3010 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3012 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
3013 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
3014 (sh_reloc_map): Add new relocs.
3015 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
3016 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
3017 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
3018 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
3020 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
3021 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
3022 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
3023 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
3024 New array constants.
3025 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
3027 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
3028 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
3029 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
3030 elf_sh_plt_reloc_offset): Define.
3031 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
3032 elf_sh_link_hash_table): New structs.
3033 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
3034 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
3036 (elf_backend_create_dynamic_sections,
3037 bfd_elf32_bfd_link_hash_table_create,
3038 elf_backend_adjust_dynamic_symbol,
3039 elf_backend_size_dynamic_sections,
3040 elf_backend_finish_dynamic_symbol,
3041 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
3042 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3043 elf_backend_got_header_size, elf_backend_plt_header_size):
3045 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3046 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
3048 * bfd-in2.h, libbfd.h: Rebuilt.
3050 2000-09-01 Alan Modra <alan@linuxcare.com.au>
3052 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
3055 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
3057 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
3058 not initialized, set them to indicate the SH1 instruction set.
3060 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3062 * acinclude.m4: Include libtool and gettext macros from the
3064 * aclocal.m4, configure: Rebuilt.
3066 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
3068 * elf.c: Eliminate references to __sparcv9 macro; replace with
3069 autoconf variables HAVE_PSINFO32_T etc.
3070 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
3071 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
3073 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
3074 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
3075 * aclocal.m4: Ditto.
3076 * configure: Regenerate.
3078 2000-08-27 Alan Modra <alan@linuxcare.com.au>
3080 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
3081 for any shared link, not just shared -Bsymbolic.
3082 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
3083 any shared link, and pass link info to it.
3084 (elf_i386_size_dynamic_sections): Update comment.
3085 (elf_i386_discard_copies): Modify to discard relocs for symbols
3086 that have been forced local.
3087 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
3088 that have been forced local.
3090 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
3092 * elflink.h (elf_link_add_object_symbols): Allow common
3093 symbols to have an alignment of 1 if explicitly requested, and
3094 not overridden by other definitions.
3096 2000-08-22 Doug Kwan <dkwan@transmeta.com>
3098 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
3099 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
3101 2000-08-22 H.J. Lu <hjl@gnu.org>
3103 * elf-bfd.h (elf_link_hash_table): Add runpath.
3105 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
3106 * bfd-in2.h: Rebuilt.
3108 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
3109 "runpath" field to NULL.
3110 (bfd_elf_get_runpath_list): New function.
3112 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
3115 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
3117 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
3118 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
3119 explicitly. Improve validation of r_type.
3121 2000-08-21 H.J. Lu <hjl@gnu.org>
3123 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
3124 dynamic allocated content space. Add a comment to remind us that
3125 one day this ought to be fixed.
3126 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
3127 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
3128 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
3130 2000-08-21 Jason Eckhardt <jle@cygnus.com>
3132 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
3133 field with the newly relocated value instead of adding it to the
3134 existing immediate field.
3135 (elf32_i860_relocate_splitn): Likewise.
3136 (elf32_i860_relocate_highadj): Likewise.
3138 2000-08-16 Jason Eckhardt <jle@cygnus.com>
3140 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
3141 was previously just a stub).
3143 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
3145 * elflink.c (_bfd_elf_create_got_section): Don't abort().
3147 (_bfd_elf_create_dynamic_sections): Likewise.
3149 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
3151 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
3152 for undefined symbols to be the beginning of the section.
3154 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
3155 four extra entries at the beginning of the .rela.plt section.
3156 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
3157 section to account for the four reserved entries in the .plt section.
3159 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
3161 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
3162 to the list of NOPs we recognize after a branch-and-link.
3163 Use the ori NOP when one is needed.
3165 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
3168 2000-08-14 Jim Wilson <wilson@cygnus.com>
3170 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
3171 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
3172 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
3175 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
3177 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
3179 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3181 * elf32-i860.c (elf32_i860_relocate_section): New function.
3182 (i860_final_link_relocate): New function.
3183 (elf32_i860_relocate_splitn): New function.
3184 (elf32_i860_relocate_pc16): New function.
3185 (elf32_i860_relocate_highadj): New function.
3186 (elf32_i860_howto): Minor adjustments to some relocations.
3187 (elf_info_to_howto_rel): Define.
3188 (elf_backend_relocate_section): Define.
3190 2000-08-10 Nick Clifton <nickc@cygnus.com>
3192 * elf32-arm.h: Fix formatting.
3194 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
3196 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
3198 2000-08-08 Jason Eckhardt <jle@cygnus.com>
3200 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
3202 2000-08-07 Kazu Hirata <kazu@hxi.com>
3204 * ieee.c (ieee_write_debug_part): Rewrite a comment.
3205 * elf64-ia64.c: Fix a typo.
3207 2000-08-05 Jason Eckhardt <jle@cygnus.com>
3209 * elf32-i860.c (elf32_i860_howto_table): New structure.
3210 (lookup_howto): New function.
3211 (elf32_i860_reloc_type_lookup): New function.
3212 (elf32_i860_info_to_howto_rela): New function.
3213 (elf_code_to_howto_index): New structure.
3214 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
3215 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
3216 elf32_i860_reloc_type_lookup.
3218 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
3220 * som.c (struct fixup_format): Constify `format'.
3221 (som_hppa_howto_table): Use SOM_HOWTO macro.
3222 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
3223 (som_bfd_reloc_type_lookup): Likewise.
3224 (compare_subspaces): Remove unused `count1', `count2'.
3225 (som_begin_writing): Remove unused `total_reloc_size'.
3226 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
3227 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
3228 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
3229 (som_find_nearest_line): Decorate unused parameter(s).
3230 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
3231 (som_bfd_link_split_section): Likewise.
3233 2000-08-03 Nick Clifton <nickc@cygnus.com>
3235 * section.c: Restore backed out code.
3236 * elf.c: Restore backed out code.
3237 (copy_private_bfd_data): Fix bug preventing stipped dynamic
3238 binaries from working.
3239 * bfd-in2.h: Regenerate.
3241 2000-08-03 H.J. Lu <hjl@gnu.org>
3243 * section.c: Back out the change made by Nick Clifton
3244 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
3246 * bfd-in2.h: Likewise.
3249 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
3251 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
3253 2000-07-31 Jason Eckhardt <jle@cygnus.com>
3255 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
3256 * bfd-in2.h, libbfd.h: Regenerate.
3258 2000-07-31 Nick Clifton <nickc@cygnus.com>
3260 * section.c (struct sec): Add new boolean field 'segment_mark'.
3261 (STD_SECTION): Initialise new field to zero.
3263 * bfd-in2.h: Regenerate.
3265 * elf.c (copy_private_bfd_data): Reorganise section to segment
3266 mapping to cope with moved sections requiring new segments,
3267 and overlapping segments.
3268 (SEGMENT_END): New macro: Return the end address of a segment.
3269 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
3270 contains a section by comparing their VMA addresses.
3271 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
3272 contains a section by comparing their LMA addresses.
3273 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
3274 section should be included in a segment.
3275 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
3276 follows another in memory.
3277 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
3280 2000-07-22 Jason Eckhardt <jle@cygnus.com>
3282 * cpu-i860.c: Added comments.
3284 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
3285 bfd_elf32_i860_little_vec.
3286 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
3287 (ELF_MAXPAGESIZE): Changed to 4096.
3289 * targets.c (bfd_elf32_i860_little_vec): Declaration of
3291 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
3293 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
3294 config for little endian elf32 i860.
3295 (targ_defvec): Define for the new config above
3296 as "bfd_elf32_i860_little_vec".
3297 (targ_selvecs): Define for the new config above
3298 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
3300 * configure.in (bfd_elf32_i860_little_vec): Added recognition
3303 * configure: Regenerated.
3305 2000-07-27 H.J. Lu <hjl@gnu.org>
3307 * elflink.h (elf_merge_symbol): Take one more argument,
3308 dt_needed, to indicate if the symbol comes from a DT_NEEDED
3309 entry. Don't overide the existing weak definition if dt_needed
3311 (elf_link_add_object_symbols): Pass dt_needed to
3312 elf_merge_symbol ().
3314 2000-07-27 Nick Clifton <nickc@cygnus.com>
3316 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
3319 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
3321 * configure.host (*-*-aix*): AIX has 'long long' always.
3323 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
3324 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
3325 (xcoff_write_archive_contents_big): Don't update the offset
3326 of the symbol table, xcoff_write_armap will do it.
3328 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
3330 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
3331 of dynobj for SGI_COMPAT checks.
3333 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3335 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
3336 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
3337 * bfd-in2.h: Regenerate.
3339 2000-07-21 Nick Clifton <nickc@cygnus.com>
3341 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
3342 range symbol indices in relocs and issue an error message.
3344 2000-07-20 H.J. Lu <hjl@gnu.org>
3346 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
3347 info->new_dtags when setting DT_FLAGS_1. It will only be set
3348 by the new linker options. It shouldn't break anything.
3350 2000-07-20 H.J. Lu <hjl@gnu.org>
3352 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
3353 only if info->new_dtags is true.
3355 2000-07-20 H.J. Lu <hjl@gnu.org>
3357 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
3358 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
3360 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3362 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
3363 (ALL_MACHINES_CFILES): Add cpu-cris.c.
3364 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
3365 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
3366 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
3367 * Makefile.in: Rebuild.
3368 * aclocal.m4: Rebuild.
3369 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
3370 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
3371 (bfd_cris_arch): Declare.
3372 (bfd_archures_list): Add bfd_cris_arch.
3373 * bfd-in2.h: Rebuild.
3374 * config.bfd: (cris-*-*): New target.
3375 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
3376 * configure: Rebuild.
3377 * elf.c (prep_headers): Add bfd_arch_cris.
3378 * libbfd.h: Rebuild.
3379 * libaout.h (enum machine_type): Add M_CRIS.
3380 * reloc.c: Add CRIS relocations.
3381 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
3382 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
3383 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
3384 * po/POTFILES.in, po/bfd.pot: Regenerate.
3386 2000-07-19 H.J. Lu <hjl@gnu.org>
3388 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
3389 DF_TEXTREL if DT_TEXTREL is set.
3390 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
3391 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
3392 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
3393 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
3394 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
3395 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
3396 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
3397 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
3398 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
3399 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
3401 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
3402 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
3404 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
3406 2000-07-19 H.J. Lu <hjl@gnu.org>
3408 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
3409 * bfd-in2.h: Rebuild.
3411 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
3412 (elf_dt_soname): New.
3414 * elf.c (bfd_elf_set_dt_needed_soname): New.
3416 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
3417 entry if the shared object loaded by DT_NEEDED is used to
3418 resolve the reference in a regular object.
3420 2000-07-19 H.J. Lu <hjl@gnu.org>
3422 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
3423 DT_DEPAUDIT and DT_AUDIT as strings.
3425 2000-07-19 Nick Clifton <nickc@cygnus.com>
3427 * format.c: Fix formatting.
3429 2000-07-19 H.J. Lu <hjl@gnu.org>
3431 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
3433 2000-07-19 H.J. Lu <hjl@gnu.org>
3435 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
3436 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
3437 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
3438 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
3439 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
3440 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
3441 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
3443 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
3445 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
3446 renamed functions from here...
3447 (assign_section_numbers): Use renamed functions.
3448 (prep_headers): Use renamed functions.
3450 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
3451 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
3452 * bfd-in2.h: Regenerate.
3454 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
3456 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
3457 parenthesis in if statement.
3459 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
3461 Enable the support for Traditional MIPS.
3462 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
3463 return ict_none appropriately for traditional mips targets.
3464 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
3465 (STUB_MOVE): Conditionalize for traditonal mips.
3466 (STUB_LI16): Likewise.
3467 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
3468 room for RTPROC header.
3469 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
3470 the permission for the PT_DYNAMIC as read, write and execute.
3471 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
3472 for traditonal mips.
3473 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
3474 _DYNAMIC_LINKING for traditonal mips.
3475 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
3476 in case of traditonal mips.
3477 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
3478 entry is required. For a function if PLT is not required then set the
3479 corresponding hash table entry to 0.
3480 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
3482 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
3483 shared object set the value to 0.
3484 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
3485 _DYNAMIC_LINKING for traditonal mips.
3486 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
3487 for traditonal mips.
3489 2000-07-15 H.J. Lu <hjl@gnu.org>
3491 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
3493 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3495 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
3496 out a structure that is BFD_IN_MEMORY.
3498 2000-07-11 Alan Modra <alan@linuxcare.com.au>
3500 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
3501 bfd pointer. Print section id instead of bfd pointer for local
3502 syms. Prefix addend with `+' for global syms as well as local.
3503 Correct calculation of name component lengths.
3504 (elf64_hppa_check_relocs): Update call to get_dyn_name.
3506 From David Huggins-Daines <dhd@linuxcare.com>
3507 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
3508 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
3509 (elf64_hppa_modify_segment_map): Likewise.
3511 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3513 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
3514 addresses to be "naturally" sign extended. Return -1 if unknown.
3515 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
3516 * bfd-in2.h: Regenerate.
3518 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3520 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
3521 and ECOF_SIGNED_64 to list ways to extract an offset.
3522 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
3523 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
3525 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
3526 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
3528 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3530 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
3531 bfd_get_start_address.
3532 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
3533 (elf_swap_ehdr_out): Ditto.
3535 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
3537 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
3538 compatibility with older binutils.
3540 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3542 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
3543 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
3545 From Ryan Bradetich <rbradetich@uswest.net>
3546 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
3547 (parse_line_table): Ditto.
3548 (_bfd_dwarf1_find_nearest_line): Ditto.
3549 * syms.c (cmpindexentry): Remove extra `*' from params.
3551 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
3553 * elf32-mips.c (sort_dynamic_relocs): New Function.
3554 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
3555 via qsort to sort the dynamic relocations in increasing r_symndx
3558 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3560 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
3561 ATTRIBUTE_UNUSED to unused args.
3562 (get_opd): Likewise.
3563 (get_plt): Likewise.
3564 (get_dlt): Likewise.
3565 (get_stub): Likewise.
3566 (elf64_hppa_adjust_dynamic_symbol): Likewise.
3567 (elf64_hppa_link_output_symbol_hook): Likewise.
3568 (elf64_hppa_check_relocs): Delete unused var.
3569 (elf64_hppa_size_dynamic_sections): Likewise.
3570 (elf64_hppa_finalize_opd): Likewise.
3571 (elf64_hppa_finalize_dynreloc): Likewise.
3572 (elf64_hppa_modify_segment_map): Likewise.
3573 (elf64_hppa_finish_dynamic_sections): Likewise.
3575 * elf-hppa.h (elf_hppa_final_write_processing): Add
3576 ATTRIBUTE_UNUSED to unused args.
3577 (elf_hppa_final_link_relocate): Likewise.
3578 (elf_hppa_record_segment_addrs): Add paretheses.
3579 (elf_hppa_relocate_section): Constify dyn_name.
3581 From David Huggins-Daines <dhd@linuxcare.com>
3582 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
3583 rearrange case statement so that it gets preferred to 32-bit ones.
3585 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
3586 asection->id instead of address of asection structure.
3587 (elf32_hppa_size_stubs): Likewise.
3589 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
3590 for .init* and .fini*.
3592 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
3593 and addends used in stub names to 32 bits.
3594 (elf32_hppa_size_stubs): Likewise.
3596 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
3597 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
3598 not bfd_put_64. Fix minor comment typo and formatting.
3600 Changes to create multiple linker stubs, positioned immediately
3601 before the section where they are required.
3602 * elf32-hppa.c: Don't include hppa_stubs.h.
3603 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
3604 (elf32_hppa_stub_hash_table): Delete.
3605 (elf32_hppa_link_hash_entry): Delete.
3606 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
3607 stub_hash_table, and store the struct here rather than a pointer.
3608 Delete output_symbol_count. Add offset array. Change
3609 global_value to a bfd_vma.
3610 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
3611 (elf32_hppa_stub_hash_traverse): Delete.
3612 (elf32_hppa_name_of_stub): Delete.
3613 (elf32_hppa_link_hash_lookup): Delete.
3614 (elf32_hppa_link_hash_traverse): Delete.
3615 (elf32_hppa_stub_hash_table_init): Delete.
3616 (elf32_hppa_size_of_stub): Pass input section and offset rather
3617 than location and calculate location here. Don't pass name as all
3618 stubs are now the same size.
3619 (elf32_hppa_stub_hash_newfunc): Init new fields.
3620 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
3622 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
3623 comparing against ints. Rewrite stub handling code.
3624 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
3625 Case enums to int before comparing against ints. Remove
3626 bfd_reloc_dangerous case.
3627 (elf32_hppa_build_one_stub): Rewrite.
3628 (elf32_hppa_size_one_stub): New function.
3629 (elf32_hppa_build_stubs): Rewrite.
3630 (elf32_hppa_size_stubs): Pass in linker call-back functions.
3631 Rewrite stub-handling specific code.
3633 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
3635 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
3637 * hppa_stubs.h: Delete.
3638 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
3639 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
3640 * Makefile.in: Regenerate.
3642 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
3645 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
3647 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
3648 and section name for bfd_reloc_notsupported error message.
3649 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
3650 bfd_reloc_notsupported.
3651 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
3653 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
3654 undefined weak symbols for all relocs.
3655 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
3656 offsets are relative to one past the delay slot.
3657 (elf32_hppa_size_stubs): Account for reloc addend when calculating
3658 branch destination. Put addend into stub name too.
3659 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
3660 adjust by 8 when deciding whether a linker stub is needed. Put
3661 addend into stub name as for above.
3663 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
3664 various args and vars.
3665 (elf32_hppa_bfd_final_link_relocate): Here too.
3666 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
3667 inner block var to avoid shadowing.
3669 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
3671 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
3672 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
3673 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
3675 * libhppa.h: Change practically all unsigned ints to plain ints.
3676 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
3679 From Ryan Bradetich <rbradetich@uswest.net>
3680 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
3681 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
3683 From David Huggins-Daines <dhd@linuxcare.com>
3684 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
3685 to the new OP_* ones.
3687 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
3688 error exit. Bail out earlier on plabel relocs that we aren't
3689 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
3690 string, and then don't free our copy.
3691 (elf32_hppa_build_one_stub): Make insn unsigned int.
3693 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
3694 available with BL, not BE and BLE.
3696 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
3697 code for elf arg relocs.
3698 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
3699 argument with elf_link_hash_entry h. Handle undefined weak
3700 symbols. Move $global$ lookup from here...
3701 (elf32_hppa_relocate_section): ...to here. Return correct error
3702 message for non-handled relocs.
3703 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
3704 wrong test was -0x3ffff to +0x40000.
3706 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
3707 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
3708 Handle them as such.
3709 (elf_hppa_relocate_insn): Fix a typo.
3711 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
3712 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3713 assemble_17, assemble_21): Delete.
3714 Supply defines for all 64 possible opcodes.
3715 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
3716 formats. Handle COMICLR.
3717 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
3720 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
3721 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
3722 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
3724 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
3725 the local syms - did this code get deleted accidentally? Ignore
3726 undefined and undefweak syms.
3728 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
3729 block. Use it instead of elf64_hppa_hash_table (info).
3730 (elf_hppa_final_link_relocate): Use hppa_info instead of
3731 elf64_hppa_hash_table (info).
3733 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3734 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3735 (hppa_rebuild_insn): Mask immediate bits here instead.
3736 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3738 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3740 * section.c (struct sec): Add id field. Tidy comment formatting.
3741 (bfd_make_section_anyway): Set id.
3742 (STD_SECTION): Init id too.
3743 Change CONST to const throughout.
3744 * archures.c (bfd_arch_info): Tidy comment.
3745 (bfd_arch_list): Change a CONST to const.
3746 * libbfd-in.h: Tidy comments and replace CONST with const.
3747 * elf-bfd.h: Likewise.
3748 * libbfd.h: Regenerate.
3749 * bfd-in2.h: Regenerate.
3750 * libcoff.h: Regenerate.
3752 2000-07-07 DJ Delorie <dj@redhat.com>
3754 * archive.c (_bfd_write_archive_contents): Add an informative
3757 2000-07-06 Kazu Hirata <kazu@hxi.com>
3759 * srec.c: Fix formatting.
3761 2000-06-05 DJ Delorie <dj@redhat.com>
3765 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
3767 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
3768 value of PC-relative offsets.
3770 2000-07-03 Jim Wilson <wilson@cygnus.com>
3772 * elf64-alpha.c (alpha_elf_size_info): New.
3773 (elf_backend_size_info): Define to alpha_elf_size_info.
3774 * elfcode.h (elf_size_info): Change hash bucket size to 4.
3776 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
3778 * elf32-mips.c: Include elf32-target.h again for the traditional
3781 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
3783 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
3784 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
3785 (avr_info_to_howto_rela): Likewise.
3786 (elf32_avr_gc_mark_hook): Likewise.
3787 (elf32_avr_gc_sweep_hook): Likewise.
3788 (elf32_avr_relocate_section): Likewise.
3790 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
3792 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
3793 an external symbol for a non-shared, non-relocatable link.
3795 2000-07-03 Nick Clifton <nickc@redhat.com>
3797 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
3798 is an external symbol.
3799 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
3802 2000-07-03 Kazu Hirata <kazu@hxi.com>
3804 * reloc16.c: Fix formatting.
3806 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3808 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
3809 to add a new target for traditional mips i.e
3810 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
3811 * configure.in: Likewise.
3812 * configure: Rebuild.
3813 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
3815 (bfd_elf32_tradlittlemips_vec): Likewise.
3816 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
3817 to see that elfNN_bed does not get redefined even if the target file
3818 is included twice for a chip. See elf32-mips.c.
3820 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3822 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3823 (CLEANFILES): Add DEPA.
3824 * Makefile.in: Regenerate.
3826 2000-06-30 DJ Delorie <dj@cygnus.com>
3828 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
3829 can't assume the PE header is at 0x80.
3831 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
3833 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
3835 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
3837 * go32stub.h: Update stub.
3839 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3841 * archures.c (bfd_mach_avr5): Define.
3842 * bfd-in2.h (bfd_mach_avr5): Define.
3843 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
3844 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
3845 (compatible): Update comment. Add missing test.
3846 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
3847 for avr2 and avr4. Simplify 8K wrap code.
3848 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
3849 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
3851 2000-06-26 Kazu Hirata <kazu@hxi.com>
3853 * coff-h8300.c: Fix formatting.
3854 * cpu-h8300.c: Likewise.
3856 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
3858 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
3859 for local symbols whose names are unknown.
3861 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3863 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3865 * Makefile.in: Regenerate.
3866 * doc/Makefile.in: Regenerate.
3868 2000-06-20 H.J. Lu <hjl@gnu.org>
3870 * Makefile.am: Rebuild dependency.
3871 * Makefile.in: Rebuild.
3873 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3875 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
3876 (elf_backend_copy_indirect_symbol): Map to the new function.
3878 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3880 * archive.c (normalize): Correct pointer comparison when checking
3882 (bfd_bsd_truncate_arname): Likewise.
3883 (bfd_gnu_truncate_arname): Likewise.
3885 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
3887 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
3888 sections elf_{text,data}_{section,symbol}.
3889 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
3890 (_bfd_mips_elf_hide_symbol): New function.
3891 (elf_backend_hide_symbol): Map to the new function.
3892 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
3893 definitions of mips_elf_{text,data}_{section,symbol}.
3894 (mips_elf_local_relocation_p): Try to find the direct symbol
3895 based on new check_forced argument.
3896 (mips_elf_calculate_relocation): Use new version of
3897 mips_elf_local_relocation_p.
3898 (mips_elf_relocate_section): Likewise.
3899 (_bfd_mips_elf_relocate_section): Likewise.
3900 (mips_elf_sort_hash_table): Only assert that have enough GOT
3902 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
3903 entry if the relocation based on the new external argument.
3904 (mips_elf_create_dynamic_relocation): Assert that we have a
3905 section contents allocated where we can swap out the dynamic
3907 (mips_elf_calculate_relocation): Find the real hash-table entry
3908 correctly by using h->root.root.type. Only create a dynamic
3909 relocation entry if the symbol is defined in a shared library.
3910 Create an external GOT entry for the GOT16 relocation if the
3911 symbol was forced local.
3912 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
3913 dynamic index if the symbol was forced local.
3915 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3917 * elf32-mips.c: Fix typos in comments.
3919 2000-06-19 Mark Kettenis <kettenis@gnu.org>
3921 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
3924 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3926 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
3927 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
3928 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
3929 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
3930 (bfd_elf32_m68hc11_vec): Likewise.
3931 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
3932 Supports 68hc11 & 68hc12 at the same time.
3933 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
3935 (bfd_elf32_m68hc11_vec): Likewise.
3936 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
3937 * archures.c (bfd_m68hc12_arch): Define and register in global list
3938 (bfd_m68hc11_arch): Likewise.
3939 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
3940 BFD_RELOC_M68HC11_3B): Define.
3941 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
3942 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
3944 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
3946 * elf_bfd.h (struct elf_backend_data): Add info argument to
3947 elf_backend_hide_symbol.
3948 (_bfd_elf_link_hash_hide_symbol): Likewise.
3949 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
3950 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
3951 * elflink.h (elf_link_add_object_symbols): Likewise.
3952 (elf_link_assign_sym_version): Likewise.
3954 2000-06-18 H.J. Lu <hjl@gnu.org>
3956 * coff-i386.c (coff_i386_reloc): Don't return in case of
3957 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
3958 Compensate PE relocations when linking with non-PE object
3959 files to generate a non-PE executable.
3961 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
3963 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
3964 GOT entries if we're doing a static link or -Bsymbolic link.
3966 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
3968 * elflink.h (elf_link_adjust_relocs): Check for and call backend
3969 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
3971 (elf_link_output_relocs): Likewise.
3972 (elf_reloc_link_order): Likewise.
3974 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3976 * archures.c (enum bfd_architecture): #define constants for
3977 PowerPc and RS6000 machine numbers.
3978 * bfd-in2.h: Regenerate.
3979 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
3980 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
3981 and RS6000 machine numbers using #defined constants from
3983 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
3984 machine numbers using #defined constants from archures.c. Add
3985 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
3986 64-bit words in 620 entry.
3987 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
3989 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
3991 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
3993 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
3994 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
3995 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
3997 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3999 * bfd-in.h (bfd_family_coff): Define.
4000 * bfd-in2.h: Regenerate.
4001 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
4002 coff_find_nearest_line): Check COFFness using bfd_family_coff()
4003 instead of bfd_target_coff_flavour.
4004 * cofflink.c (_bfd_coff_final_link): Likewise.
4005 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
4006 exclude XCOFF files.
4007 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4009 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
4010 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
4011 * xcofflink.c (XCOFF_XVECP): Delete.
4012 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
4013 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
4014 bfd_xcoff_record_link_assignment,
4015 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
4016 check for bfd_target_xcoff_flavour.
4018 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4020 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
4022 (read_hdr): New function.
4023 (rs6000coff_core_p): Store mstsave or __context64 struct instead
4024 of trying to extract individual registers. Set abfd->arch_info
4025 to match the architecture that created the core file.
4026 (rs6000coff_get_section_contents): Delete.
4027 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
4029 2000-06-14 H.J. Lu <hjl@gnu.org>
4031 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
4034 2000-06-13 H.J. Lu <hjl@gnu.org>
4036 * configure: Regenerate.
4038 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
4040 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
4043 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4045 * configure.in (VERSION): Update to show this is the CVS mainline.
4047 2000-06-07 Alan Modra <alan@linuxcare.com.au>
4049 * elf32-d10v.c: Include elf/d10v.h
4050 (enum reloc_type): Delete.
4051 * elf32-d30v.c: Include elf/d30v.h
4052 (enum reloc_type): Delete.
4054 * Makefile.am: Run "make dep-am" to regenerate dependencies.
4055 * Makefile.in: Regenerate.
4057 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
4058 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
4059 move HOWTOs into elf_howto_table.
4060 (R_386_standard, R_386_ext_offset): Define.
4061 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
4062 (elf_i386_reloc_type_lookup): Modify calculation of index into
4063 elf_howto_table since we've removed the padding.
4064 (elf_i386_info_to_howto_rel): Likewise.
4065 (elf_i386_relocate_section): Likewise.
4067 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
4069 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
4071 2000-06-05 H.J. Lu <hjl@gnu.org>
4073 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
4074 an error when seeing an undefined symbol with hidden/internal
4075 attribute. It is handled in *_relocate_section ().
4077 2000-06-05 H.J. Lu <hjl@gnu.org>
4079 * elflink.h (elf_fix_symbol_flags): Follow the link for the
4080 indirect symbol for the ELF_LINK_NON_ELF bit.
4081 (elf_link_output_extsym): Don't output the indirect symbol even
4082 if the ELF_LINK_NON_ELF bit is set.
4084 2000-06-01 J.T. Conklin <jtc@redback.com>
4086 * config.bfd (i[3456]86-*-netbsdelf*): New target.
4087 (i[3456]86-*-netbsdaout*): New target.
4088 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
4089 (i[3456]86-*-openbsd*): Likewise.
4091 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
4093 * trad-core.c: From hpux-core.c, include <dirent.h> or
4094 <sys/ndir.h> when possible.
4096 2000-05-31 Ulrich Drepper <drepper@redhat.com>
4098 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
4099 definitions. We must not assume they are sorted in the file
4100 according to their index numbers.
4102 2000-05-31 Alan Modra <alan@linuxcare.com.au>
4104 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
4105 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
4106 R_PARISC_DIR17F are for absolute branches; Handle them as such.
4108 2000-05-30 Nick Clifton <nickc@cygnus.com>
4110 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
4111 80960CA, 80960MC as valid machine names.
4113 2000-05-30 H.J. Lu <hjl@gnu.org>
4115 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
4116 visibility bits if the symbol is undefined. Correctly handle
4117 weak undefined symbols with hidden and internal attributes.
4119 * elflink.h (elf_link_add_object_symbols): Always turn the
4120 symbol into local if it has the hidden or internal attribute.
4122 2000-05-29 Philip Blundell <philb@gnu.org>
4124 * ppcboot.c: Add packed attribute if compiling with GCC.
4126 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
4128 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
4130 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
4132 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
4133 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
4134 corefile on a 64-bit (Sparc Solaris) host. Also clean up
4137 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4139 * Makefile.am: Update dependencies with "make dep-am"
4140 * Makefile.in: Regenerate.
4142 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
4143 bindtextdomain): Replace defines with those from intl/libgettext.h
4144 to quieten gcc warnings.
4146 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4148 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
4150 * archive.c (normalize, bfd_bsd_truncate_arname,
4151 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
4152 file names with backslashes.
4154 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
4157 * sysdep.h: Include filenames.h.
4159 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4161 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
4163 2000-05-26 Jakub Jelinek <jakub@redhat.com>
4165 * elf64-sparc.c (sparc64_elf_relax_section): New.
4166 (sparc64_elf_relocate_section): Optimize tail call into branch always
4168 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4169 (elf32_sparc_relax_section): New.
4171 2000-05-26 Jakub Jelinek <jakub@redhat.com>
4173 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
4174 Remove unusued variables.
4175 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
4176 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
4177 previous fix, so that shared libs really don't influence targets
4178 extension mask and memory model.
4180 2000-05-23 H.J. Lu <hjl@gnu.org>
4182 * elf64-alpha.c (elf64_alpha_relocate_section): Check
4183 h->root.other not h->other.
4184 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4186 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
4188 2000-05-23 H.J. Lu <hjl@gnu.org>
4190 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
4191 undefined symbol with the non-default visibility attributes.
4192 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
4193 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4194 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4195 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4196 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4197 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4198 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4199 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4200 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4201 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
4202 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4204 2000-05-22 Richard Henderson <rth@cygnus.com>
4206 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
4207 PCREL22, PCREL64I. Zero size of special relocs.
4208 (elf64_ia64_reloc_type_lookup): Likewise.
4209 (USE_BRL, oor_brl, oor_ip): New.
4210 (elf64_ia64_relax_section): New.
4211 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
4212 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
4213 (elf64_ia64_relocate_section): Likewise.
4214 (bfd_elf64_bfd_relax_section): New.
4215 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
4216 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
4217 * bfd-in2.h, libbfd.h: Regenerate.
4219 2000-05-22 Nick Clifton <nickc@cygnus.com>
4221 * configure.in : Add peigen.lo to MIPS PE targets.
4222 * configure: Regenerate.
4224 2000-05-22 Momchil Velikov <velco@fadata.bg>
4226 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
4227 only if it is known for both input and output bfds. Separate
4228 error message strings as in some languages, it may be necessary
4229 to change more than one place in the string to change between
4232 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
4233 endianess checks, call _bfd_generic_verify_endian_match() instead.
4235 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
4237 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
4239 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
4240 endianess before checking bfd flavours.
4242 2000-05-22 H.J. Lu <hjl@gnu.org>
4244 * elflink.h (elf_link_output_extsym): Clear the visibility
4245 field for symbols not defined locally.
4247 2000-05-18 Alan Modra <alan@linuxcare.com.au>
4249 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4250 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4251 (hppa_rebuild_insn): Mask immediate bits here instead.
4252 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4254 2000-05-18 Momchil Velikov <velco@fadata.bg>
4256 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
4257 relocs for an executable, ensure that they are virtual addresses.
4259 2000-05-18 Jeffrey A Law (law@cygnus.com)
4261 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
4263 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4264 Rick Gorton <gorton@scrugs.lkg.dec.com>
4266 * elflink.h: Add emitrelocations support: when enabled, relocation
4267 information and relocation sections are put into final output
4268 executables. If the emitrelocations flag is set, do the following:
4269 (elf_bfd_final_link): Emit relocation sections.
4270 (elf_link_input_bfd): Compute relocation section contents.
4271 (elf_gc_sections): Don't clean relocation sections.
4273 2000-05-16 Catherine Moore <clm@cygnus.com>
4275 * som.c (som_decode_symclass): Recognize weak symbols.
4277 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
4279 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
4280 read idata section only from dataoff.
4281 (pe_print_edata): Correctly check for valid eat_member.
4283 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
4285 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
4287 2000-05-14 Philip Blundell <philb@gnu.org>
4289 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
4291 2000-05-12 Alan Modra <alan@linuxcare.com.au>
4293 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
4295 * peigen.c (pe_print_idata): Look for .idata section and print
4296 info even if data directory has zero entries. Read idata section
4297 starting from dataoff, and adjust all data offsets to suit. Cast
4298 all bfd_vma vars to unsigned long before passing to fprintf.
4299 * peigen.c (pe_print_edata): Similarly, look for .edata section
4300 and print info even if data directory has zero entries. Cast
4301 all bfd_vma vars to unsigned long before passing to fprintf.
4303 From Szabolcs Szakacsits <szaka@F-Secure.com>
4304 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
4305 directory size which may be bogus.
4306 * peigen.c (pe_print_edata): Similarly.
4308 2000-05-09 Alan Modra <alan@linuxcare.com.au>
4310 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
4312 (copy_private_bfd_data): Allow for space possibly taken up by elf
4313 headers when calculating segment physical address from lma.
4315 2000-05-08 Alan Modra <alan@linuxcare.com.au>
4317 * versados.c (versados_scan): Init stringlen and pass_2_done.
4319 * trad-core.c (trad_unix_core_file_p): Return
4320 bfd_error_wrong_format rather than bfd_error_file_truncated.
4322 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
4323 add_data_entry. DataDirectory virtual address is relative.
4324 (pe_print_idata): Account for relative DataDirectory virtual
4325 addresses. Don't trash datasize inside POWERPC_LE_PE code.
4326 (pe_print_edata): Similarly.
4328 From Szabolcs Szakacsits <szaka@F-Secure.com>
4329 * peigen.c (dir_names): Add Delay Import Directory.
4330 (pe_print_idata): Always search for bfd section containing
4331 idata address rather than looking up section name. Print this
4332 section name rather than .idata.
4333 (pe_print_edata): Similarly. Also print some fields as %08lx.
4334 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
4337 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
4339 * xcoff.h: Rename to xcoff-target.h
4340 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
4341 * coff-rs6000.c: Ditto.
4342 * coff64-rs6000.c: Ditto.
4343 * coff-pmac.c: Ditto.
4344 * Makefile.in: Regenerate.
4346 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
4348 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
4349 Change U802TOC64MAGIC to U803XTOCMAGIC.
4351 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
4353 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
4354 * bfd-in.h: Prototype bfd_elf_get_arch_size.
4355 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
4357 2000-05-04 Alan Modra <alan@linuxcare.com.au>
4359 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
4361 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
4363 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
4364 hidden and internal symbols.
4365 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
4367 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
4368 assign a PLT or GOT entry to symbols with hidden and
4369 internal visibility.
4371 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
4373 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
4375 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4377 2000-05-02 H.J. Lu <hjl@gnu.org>
4379 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
4382 2000-05-02 Alan Modra <alan@linuxcare.com.au>
4384 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
4385 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
4387 * Makefile.in: Regenerate.
4389 2000-05-01 Jim Wilson <wilson@cygnus.com>
4391 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
4392 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
4393 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
4394 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
4395 * Makefile.in: Rebuild.
4397 2000-05-02 Alan Modra <alan@linuxcare.com.au>
4399 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
4400 doesn't work very well.
4402 * elf-hppa.h (elf_hppa_internal_shdr): Define.
4403 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
4404 Set hdr->s_type to 1 if ARCH_SIZE == 32.
4405 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
4406 (elf_hppa_info_to_howto): Likewise.
4407 (elf_hppa_info_to_howto_rel): Likewise.
4408 (elf_hppa_reloc_type_lookup): Likewise.
4409 (elf_hppa_is_local_label_name): Likewise.
4410 (elf_hppa_fake_sections): Likewise.
4411 (elf_hppa_final_write_processing): Likewise.
4412 (elf_hppa_howto_table): Fully initialise all entries.
4413 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
4414 (elf_hppa_info_to_howto): Likewise.
4415 (elf_hppa_info_to_howto_rel): Likewise.
4416 (elf_hppa_reloc_type_lookup): Likewise.
4417 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
4418 elf_hppa_unmark_useless_dynamic_symbols,
4419 elf_hppa_remark_useless_dynamic_symbols,
4420 elf_hppa_record_segment_addrs, elf_hppa_final_link,
4421 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
4422 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
4423 elf32-hppa.c mess is cleaned up.
4424 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
4425 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
4426 r_field then call hppa_field_adjust inline func with variable
4427 r_field arg, instead call hppa_field_adjust with fixed arg.
4428 In case R_PARISC_PCREL22F, don't set r_field.
4429 (elf_hppa_relocate_insn): Change args and return type to unsigned
4430 int. Call re_assemble_* funcs to do the work.
4432 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
4435 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
4437 (sign_extend): Mask first before sign extending.
4438 (low_sign_extend): Rewrite without condition expression.
4439 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
4440 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
4441 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4442 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
4443 result as function return value rather than through pointer arg.
4444 Accept unsigned int args, and return unsigned int.
4445 (re_assemble_3): New. Combines function of dis_assemble_3 with
4446 re-assembly of opcode and immediate.
4447 (re_assemble_12): Likewise.
4448 (re_assemble_16): Likewise.
4449 (re_assemble_17): Likewise.
4450 (re_assemble_21): Likewise.
4451 (re_assemble_22): Likewise.
4452 (hppa_field_adjust): Rewrite and document, paying attention to
4453 size of types and signed/unsigned issues.
4454 (get_opcode): Shift before masking.
4455 (FDLW): Rename to FLDW.
4456 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
4457 (hppa_rebuild_insn): Change args and return value to unsigned
4458 int. Make use of re_assemble_*. Correct case 11.
4460 * dep-in.sed: Handle ../opcodes/.
4461 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
4462 elf64-hppa.h, hppa_stubs.h, xcoff.h.
4463 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
4464 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
4465 elfarm-nabi.lo dependencies outside of auto-dependency area.
4466 Regenerate dependencies.
4467 * Makefile.in: Regenerate.
4469 * configure.in (TRAD_HEADER): Test non-null before
4471 * configure: Regenerate.
4473 * reloc.c: Fix mis-spelling in comment.
4475 2000-05-01 Alan Modra <alan@linuxcare.com.au>
4477 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
4478 * vms.c (vms_openr_next_archived_file): Return NULL.
4480 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4482 * coffcode.h Copy changes mistakenly done to libcoff.h in
4485 2000-04-29 Andreas Jaeger <aj@suse.de>
4487 * libbfd-in.h: Correctly check GCC version.
4488 * bfd-in.h: Likewise.
4489 * libhppa.h: Likewise.
4490 * libbfd.h: Regenerate.
4491 * bfd-in2.h: Regenerate.
4493 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4495 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
4496 coffdu-rs6000.{lo,c}.
4497 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
4499 * Makefile.in: Regenerate.
4500 * xcoff.h: New file.
4501 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
4502 * coff-rs6000.c: Move all declarations and defines that are
4503 common to the xcoff backends into xcoff.h
4504 * coff64-rs6000.c: Ditto,
4506 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4508 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
4509 _bfd_coff_force_symnames in strings and
4510 _bfd_coff_debug_string_prefix_length to their default values.
4511 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
4513 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4515 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
4516 _bfd_coff_force_symnames in strings and
4517 _bfd_coff_debug_string_prefix_length to their default values.
4519 2000-04-27 Alan Modra <alan@linuxcare.com.au>
4521 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
4522 Check local_got_refcounts before dereferencing.
4524 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
4525 before deciding we don't need R_PPC_PLT32 relocation.
4526 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
4529 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
4531 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
4533 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
4534 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
4535 (elf_i386_relocate_section): Allow for .plt to go missing.
4536 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
4537 can use a relative reloc for got as elf_i386_relocate_section.
4538 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
4540 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
4542 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
4544 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
4546 * Makefile.am (coff64-rs6000.lo): New rule.
4547 * Makefile.in: Regenerate.
4548 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
4549 xcoff_is_local_label_name, xcoff_rtype2howto,
4550 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
4551 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
4552 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
4553 (NO_COFF_SYMBOLS): Define.
4554 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
4555 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
4557 (MINUS_ONE): New macro.
4558 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
4560 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
4561 coff_SWAP_aux_out): Map to the new functions.
4562 * coff64-rs6000.c: New file.
4563 * libcoff.h (bfd_coff_backend_data): Add new fields
4564 _bfd_coff_force_symnames_in_strings and
4565 _bfd_coff_debug_string_prefix_length.
4566 (bfd_coff_force_symnames_in_strings,
4567 bfd_coff_debug_string_prefix_length): New macros for above fields.
4568 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
4569 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
4570 of using coff_swap_sym_in directly.
4571 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
4572 (coff_set_flags) Set magic for XCOFF64.
4573 (coff_compute_section_file_positions): Add symbol name length to
4574 string section length if bfd_coff_debug_string_prefix_length is
4576 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
4577 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
4578 using coff_swap_lineno_in directly.
4579 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
4580 and _bfd_coff_debug_string_prefix_length fields.
4581 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
4582 symbol names into strings table when
4583 bfd_coff_force_symnames_in_strings is true.
4584 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
4585 SET_RELOC_VADDR): New macros.
4586 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
4587 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
4589 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
4590 changes within RS6000COFF_C specific code.
4591 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
4592 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
4593 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4594 Extend existing hack on target name.
4595 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
4597 * coff-tic54x.c (ticof): Keep up to date with new fields
4598 in bfd_coff_backend_data.
4599 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
4600 targ_selvecs to include rs6000coff64_vec for rs6000.
4601 * configure.in: Add rs6000coff64_vec case.
4602 * cpu-powerpc.c: New bfd_arch_info_type.
4604 2000-04-24 Jeffrey A Law (law@cygnus.com)
4606 * config.bfd: Only disable elf32-hppa vectors, not all of the
4607 BSD and OSF configuration support. Provide (disabled) clauses
4609 * configure.in: Add clause for PA64 support.
4610 * configure: Rebuilt.
4612 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
4613 (bfd_elf64_hppa_vec): Declare.
4615 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
4616 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
4617 (elf64-hppa.lo): Add dependencies.
4618 * Makefile.in: Rebuilt.
4620 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
4622 2000-04-24 Jason Eckhardt <jle@cygnus.com>
4624 * libhppa.h (dis_assemble_16): New function.
4625 (pa_arch): Added pa20w element.
4627 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
4629 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
4630 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
4631 bfd_elf64_slurp_reloc_table.
4633 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
4634 definitions to get external names.
4635 (elf_write_relocs): Renamed from write_relocs and make global.
4636 (elf_slurp_reloc_table): Make global.
4637 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
4639 * archive.c (hpux_uid_gid_encode): New function.
4640 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
4641 defined and the ID is greater than 99999.
4642 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
4643 special uid/gid fields into 32 bit values.
4645 2000-04-21 Matthew Green <mrg@cygnus.com>
4647 * config.bfd: Add NetBSD/sparc64 support.
4649 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
4650 David Mosberger <davidm@hpl.hp.com>
4651 Timothy Wall <twall@cygnus.com>
4652 Jim Wilson <wilson@cygnus.com>
4654 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
4655 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
4656 (BFD64_BACKENDS): Add elf64-ia64.lo.
4657 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
4658 (cpu-ia64.lo, elf64-ia64.lo): New rules.
4659 * Makefile.in: Rebuild.
4660 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
4661 (bfd_ia64_arch): Declare.
4662 (bfd_archures_list): Add bfd_ia64_arch.
4663 * bfd-in2.h: Rebuild.
4664 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
4665 * configure: Rebuild.
4666 * configure.host: (ia64-*-linux*): New host.
4667 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
4668 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
4669 * elf.c (prep_headers): Add bfd_arch_ia64.
4670 * libbfd.h: Rebuild.
4671 * reloc.c: Add IA-64 relocations.
4672 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
4674 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
4675 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
4677 2000-04-21 Richard Henderson <rth@cygnus.com>
4679 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
4680 contents when performing a partial link.
4681 (bfd_elf_d30v_reloc_21): Likewise.
4683 2000-04-20 H.J. Lu <hjl@gnu.org>
4685 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
4686 patch to symbols defined by a shared object.
4687 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
4689 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4692 * dwarf2.c (concat_filename): Avoid string literal concatenation.
4693 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
4695 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
4697 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
4698 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
4699 (coff-ia64.lo): Add dependency.
4700 * Makefile.in: Regenerate.
4701 * coff-ia64.c: New file.
4702 * efi-app-ia32.c: Ditto.
4703 * efi-app-ia64.c: Ditto.
4704 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
4705 (coff_set_flags): Ditto.
4706 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
4707 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
4708 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
4709 * configure: Regenerate.
4710 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
4711 (PUT_OPTHDR_IMAGE_BASE): Ditto.
4712 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4713 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4714 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4715 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4716 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4717 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4718 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4719 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4720 (GET_PDATA_ENTRY): Ditto.
4721 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
4722 data_start. Use above macros to read fields that are 64 bit wide for
4723 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
4724 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
4725 FileAlignment and SectionAlignment to minimum alignment if they
4727 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
4728 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
4729 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
4730 Use above macros to write fields that are 64 bit wide for
4732 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
4733 5*4 otherwise. This should be right for IA-32 and IA-64, but may
4734 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
4735 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
4736 begin address, end address, and unwind info address only. Use
4737 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
4739 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
4740 HIGH3ADJ relocation names.
4741 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
4742 * targets.c: Declare bfd_efi_app_ia32_vec and
4743 bfd_efi_app_ia64_vec.
4744 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
4745 bfd_efi_app_ia64_vec.
4747 2000-04-17 Timothy Wall <twall@cygnus.com>
4749 * bfd-in2.h: Add prototypes for tic54x load page access.
4750 * bfd-in.h: Regenerate.
4751 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
4752 in customized _set_arch_mach function.
4753 * coffcode.h (coff_set_alignment_hook): Set section load page if
4754 the appropriate macro is defined.
4755 (write_object_contents): Read section load page.
4757 2000-04-13 Alan Modra <alan@linuxcare.com.au>
4759 * elf32-hppa.h: Update copyright date.
4761 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
4762 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
4764 * elf32-d30v.c (MAX32): Don't use LL suffix.
4765 (MIN32): Define in terms of MAX32.
4766 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
4768 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
4771 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
4773 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4775 * dep-in.sed: Match space before file name, not after.
4776 * Makefile.am: Regenerate dependencies.
4777 * Makefile.in: Regenerate.
4779 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
4780 case, allow address wrap-around stupidly removed 2000-03-17. Sign
4781 extend without an if statement.
4783 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4785 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
4787 * elf32-mips.c (gprel16_with_gp): Likewise.
4788 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
4789 here using -0x40000, not (int)0xfffc0000.
4790 (elf32_hppa_size_of_stub): Likewise.
4792 2000-04-11 Timothy Wall <twall@cygnus.com>
4794 * coff-tic54x.c: Now builds with all targets.
4795 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
4796 * Makefile.in: Regenerate.
4797 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
4798 unitialized variable.
4800 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
4802 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4803 --enable-build-warnings option.
4804 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4805 * Makefile.in, configure: Re-generate.
4807 2000-04-07 Nick Clifton <nickc@cygnus.com>
4809 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
4810 BFD_RELOC_THUMB_PCREL_BLX.
4812 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
4813 R_ARM_XPC25 and R_ARM_THM_PC22.
4815 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
4816 R_ARM_XPC25 and R_ARM_THM_XPC22.
4817 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
4818 R_ARM_[XPC25|THM_XPC22].
4820 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
4821 elf/arm-oabi.h to elf/arm.h
4823 * Makefile.am: Fix dependency for elfarm-oabi.c
4824 * Makefile.in: Regenerate.
4826 * bfd-in2.h: Regenerate.
4827 * libbfd.h: Regenerate.
4829 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4831 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
4832 and restore it on failure. Release newly allocated tdata on
4835 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
4837 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
4838 (decode_line_info): Set it. Report error if unit->line_offset is
4839 equal to or larger than it.
4841 2000-04-07 Timothy Wall <twall@cygnus.com>
4843 * targets.c: Added vecs for tic54x.
4844 * reloc.c: Added relocs for tic54x.
4845 * libbfd.h: Regenerated.
4846 * configure: Add TI COFF vecs for tic54x.
4847 * configure.in: Ditto.
4848 * config.bfd (targ_cpu): Recognize new tic54x target.
4849 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
4850 * bfd-in2.h: Add tic54x target and relocations.
4851 * Makefile.am, Makefile.in: Add tic54x target.
4852 * archures.c (bfd_archures_list): Add tic54x target.
4853 * coff-tic54x.c: New.
4854 * cpu-tic54x.c: New.
4856 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4858 * elfcore.h (elf_core_file_p): call backend_object_p which
4859 thereby gets an opportunity to update the arch/machine type.
4861 2000-04-06 Timothy Wall <twall@cygnus.com>
4863 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
4864 class. Handle SEC_CLINK and SEC_BLOCK flags.
4865 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
4866 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
4868 2000-04-06 Nick Clifton <nickc@cygnus.com>
4870 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
4871 EF_INTERWORK if this is an unknown EABI.
4872 (elf32_arm_merge_private_bfd_data): Check EABI version
4873 numbers. Only check EF_xxx flags if the EABI version number
4875 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
4876 if the EABI version number is unknown.
4877 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
4878 if the EABI version number is unknown.
4880 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4882 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
4883 BFD_RELOC_SH_LOOP_END.
4884 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
4885 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
4886 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
4887 (sh_elf_reloc_loop): New function.
4888 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
4890 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
4891 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
4892 * bfd-in2.h, libbfd.h: Regenerate.
4894 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4896 * po/bfd.pot: Regenerate.
4898 * Makefile.am: Remove extraneous mkdep comment.
4899 (MKDEP): Use gcc -MM rather than mkdep.
4900 (DEP): Quote when passing vars to sub-make. Add warning
4902 (DEP1): Rewrite for "gcc -MM".
4903 (CLEANFILES): Add DEP2.
4904 Update dependencies.
4905 * Makefile.in: Regenerate.
4907 2000-04-03 Kevin Buettner <kevinb@redhat.com>
4909 * configure.in: Added corefile support for AIX 4.3. In particular,
4910 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
4911 compiling rs6000-core.c.
4912 * configure: Regenerated.
4914 2000-04-03 H.J. Lu <hjl@gnu.org>
4916 * cache.c (bfd_open_file): Unlink the output file only if
4917 it has non-zero size.
4919 2000-04-01 Ken Block USG <block@zk3.dec.com>
4921 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
4922 relative relocations for non-loaded sections in shared objects.
4923 (elf64_alpha_check_relocs): Similarly.
4925 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
4927 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
4928 BFD_RELOC_16 to switch for extended relocs.
4929 (MY_swap_ext_reloc_in): New.
4930 (MY_swap_ext_reloc_out): New.
4931 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
4932 than NAME(aout,swap_ext_reloc_in) for extended relocs.
4933 (NAME(aout,squirt_out_relocs)): Similarly use
4934 MY_swap_ext_reloc_out.
4935 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
4937 2000-04-03 Kazu Hirata <kazu@hxi.com>
4939 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
4940 the R_PCRWORD_B case.
4942 2000-03-31 Thomas de Lellis <tdel@wrs.com>
4944 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
4948 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
4950 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
4951 HOWTO references to bfd_elf_generic_reloc, that have
4952 partial_inplace == true, now use the new function. The function
4953 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
4954 extends its fixes to the R_M32R_{16,24,32} relocs.
4955 The new logic in m32r_elf_lo16_reloc() has been removed, and
4956 it instead calls the new routine to obtain that functionality.
4958 2000-03-27 Alan Modra <alan@linuxcare.com.au>
4960 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
4961 elf32_avr_check_relocs, avr_final_link_relocate,
4962 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
4963 elf32_avr_object_p): Add prototypes.
4964 (elf32_avr_gc_mark_hook): Add default for h->root.type.
4965 (bfd_elf_avr_final_write_processing): Make static.
4967 2000-03-27 Denis Chertykov <denisc@overta.ru>
4969 * cpu-avr.c: New file. BFD support routines for AVR architecture.
4970 * archures.c (bfd_architecture): Add AVR architecture.
4971 (bfd_archures_list): Add reference to AVR architecture info.
4972 * elf.c (prep_headers): Handle bfd_arch_avr.
4973 * reloc.c: Add various AVR relocation enums.
4974 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
4976 * Makefile.am: Add support for AVR elf.
4977 * configure.in: Likewise.
4978 * config.bfd: Likewise.
4979 * Makefile.in: Regenerate.
4980 * configure: This too.
4981 * bfd-in2.h: And this.
4982 * libbfd.h: And this.
4984 2000-03-24 H.J. Lu <hjl@gnu.org>
4986 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
4987 (elf64_alpha_find_reloc_at_ofs): Likewise.
4989 2000-03-17 Alan Modra <alan@linuxcare.com.au>
4991 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
4992 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
4993 allowable range used to be -2**(n-1) to 2**n-1.
4994 * reloc.c (_bfd_relocate_contents): Same here. Also replace
4995 "boolean overflow" with "bfd_reloc_status_type flag".
4997 2000-03-14 Doug Evans <dje@casey.transmeta.com>
4999 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
5001 2000-03-14 Kazu Hirata <kazu@hxi.com>
5003 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
5004 of shrinks properly, including the last reloc.
5006 2000-03-13 Kazu Hirata <kazu@hxi.com>
5008 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
5011 2000-03-11 Alan Modra <alan@linuxcare.com.au>
5013 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
5014 a format mismatch rather than an "error" from bfd_read such as
5015 bfd_error_file_truncated.
5017 2000-03-10 Geoff Keating <geoffk@cygnus.com>
5019 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
5020 sign-extension and big-endian compensation for
5021 R_MIPS_64 even in ld -r.
5023 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
5025 * elf32-mips.c (mips_elf_next_relocation): Rename from
5026 mips_elf_next_lo16_relocation, and generalize to look
5027 for any relocation type.
5028 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
5029 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
5030 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
5031 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
5032 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
5033 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
5034 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
5035 (mips_rtype_to_howto): Likewise.
5036 (mips_elf_calculate_relocation): Handle new relocs.
5037 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
5038 are paired. The addend for R_MIPS_GNU_REL16_S2
5039 is shifted right two bits.
5041 2000-03-10 Alan Modra <alan@linuxcare.com.au>
5043 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
5044 comment, and ensure it doesn't happen again.
5045 (bfd_install_relocation): Same here.
5046 (_bfd_relocate_contents): Don't bother assigning unused signmask
5047 shift result. Fix typos in comments.
5048 Remove trailing whitespace throughout file.
5050 2000-03-07 Doug Evans <dje@casey.transmeta.com>
5052 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
5053 * bfd-in2.h: Rebuild.
5055 2000-03-06 Nick Clifton <nickc@cygnus.com>
5057 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
5059 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
5060 (SIZEOF_ILF_STRINGS): Redefine.
5061 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
5062 relative reloc, as opposed to a section relative reloc.
5063 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
5065 Add length of symbol's prefix to string pointer.
5066 Store a pointer to the symbol in the symbol pointer table.
5067 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
5068 Initialise the symbol pointer table.
5069 Store the hint in the Hint/Name table.
5070 Make the jump reloc be symbol realtive, not section relative.
5071 Create an import symbol for imported code.
5073 2000-03-06 Catherine Moore <clm@cygnus.com>
5075 * elf.c (swap_out_syms): Check for null type_ptr.
5077 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
5079 * aout-target.h (MY(write_object_contents)): Remove unused
5080 and unusable "#if CHOOSE_RELOC_SIZE".
5081 * pc532-mach.c (MY(write_object_contents)): Ditto.
5082 * netbsd.h (MY(write_object_contents)): Ditto.
5083 * hp300hpux.c (MY(write_object_contents)): Ditto.
5084 * freebsd.h (MY(write_object_contents)): Ditto.
5085 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
5087 2000-02-29 H.J. Lu <hjl@gnu.org>
5089 * peicode.h (jtab): Make it static.
5091 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
5092 defined and COFF_IMAGE_WITH_PE is not defined.
5093 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
5094 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
5096 2000-03-01 Nick Clifton <nickc@cygnus.com>
5098 * coff-arm.c (bfd_arm_process_before_allocation): Make
5099 'symndx' signed to prevent compile time warning.
5101 * coff-mcore.c: Remove unused prototype for pe_object_p.
5103 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
5104 functions that are not used when COFF_IMAGE_WITH_PE is
5106 (struct sh_opcode): Change type of 'flags' field to unsigned
5107 long so that it can hold the USESAS flag.
5109 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
5111 * elf-m10300.c (mn10300_elf_relax_section): Initialise
5114 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
5116 Remove unusued variables and code.
5117 (elf_backend_add_symbol_hook): Fix prototype.
5119 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
5122 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
5125 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
5127 Remove unusued variables and code.
5128 (elf_backend_add_symbol_hook): Fix prototype.
5130 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
5132 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
5133 to unused function parameter.
5135 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
5137 Use EMPTY_HOWTO to initialise empty howto slots.
5138 Remove unused variables.
5140 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
5142 2000-03-01 H.J. Lu <hjl@gnu.org>
5144 * aoutx.h (aout_link_input_section_std): Pass "true" to
5145 the undefined_symbol callback.
5146 (aout_link_input_section_ext): Likewise.
5147 * bout.c (get_value): Likewise.
5148 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
5149 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
5151 (alpha_relocate_section): Likewise.
5152 * coff-arm.c (coff_arm_relocate_section): Likewise.
5153 * coff-i960.c (coff_i960_relocate_section): Likewise.
5154 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
5155 * coff-mips.c (mips_relocate_section): Likewise.
5156 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
5157 * coff-sh.c (sh_relocate_section): Likewise.
5158 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
5159 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
5160 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
5161 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
5162 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
5163 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
5164 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
5165 * elf32-i370.c (i370_elf_relocate_section): Likewise.
5166 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
5167 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
5168 * elf32-sh.c (sh_elf_relocate_section): Likewise.
5169 * elf32-v850.c (v850_elf_relocate_section): Likewise.
5170 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
5171 * elflink.h (elf_link_output_extsym): Likewise.
5172 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
5173 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
5174 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
5176 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
5177 undefined_symbol callback when building shared library with
5178 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
5180 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
5181 * elf32-i386.c (elf_i386_relocate_section): Likewise.
5182 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5183 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
5184 (elf32_mips_get_relocated_section_content): Likewise.
5185 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5186 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5187 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
5188 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5190 2000-02-28 Nick Clifton <nickc@cygnus.com>
5192 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
5193 * Makefile.in: Regenerate.
5195 * configure.in: Add support for mips and sh pe vectors.
5196 * configure: regenerate.
5198 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
5201 * targets.c: Add mips and sh pe vectors.
5203 * libpei.h (coff_final_link_postscript): Only define if not
5206 * coffcode.h: Add support for WinCE magic numbers.
5208 * peigen.c (pe_print_reloc): Update comment and rearrange
5209 appending of newline character.
5211 * peicode.h: Add support for Image Library Format.
5212 (pe_ILF_vars): Structure containing data used by ILF code.
5213 (pe_ILF_make_a_section): New function. Create a section based
5215 (pe_ILF_make_a_reloc): New function. Create a reloc based on
5217 (pe_ILF_make_a_symbol): New function. Create a symbol based
5219 (pe_ILF_save_relocs): New function. Store the relocs created
5220 by pe_ILF_make_a_reloc in a section.
5221 (pe_ILF_build_a_bfd): New function. Create a BFD describing
5223 (pe_ILF_object_p): New function. Return a bfd_target pointer
5225 (pe_bfd_object_p): If an ILF object is detected call
5226 pe_ILF_object_p on it.
5228 * coff-arm.c: Add support for WinCE relocs which are different
5229 from normal ARM COFF relocs.
5230 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
5232 * coff-sh.c: Add support for sh-pe target.
5233 * pe-sh.c: New file. Support code for sh-pe target.
5234 * pei-sh.c: New file. Support code for sh-pe target.
5236 * pe-mips.c: New file. Support code for mips-pe target.
5237 * pei-mips.c: New file. Support code for mips-pe target.
5239 2000-02-27 Jakub Jelinek <jakub@redhat.com>
5241 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
5242 architecture if the object causing the bump is dynamic.
5243 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
5244 and also don't it for memory ordering.
5245 (sparc64_elf_write_relocs): Take src_rela out of the loop.
5247 2000-02-27 Ian Lance Taylor <ian@zembu.com>
5249 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
5250 calling bfd_get_section_size_before_reloc.
5251 (decode_line_info): Likewise.
5252 (_bfd_dwarf2_find_nearest_line): Likewise.
5254 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
5256 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
5257 name of the libtool directory.
5258 * Makefile.in: Rebuild.
5260 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
5262 * som.c (SOM_HOWTO): Define.
5263 (som_hppa_howto_table): Use it.
5265 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5267 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
5269 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
5271 2000-02-24 Catherine Moore <clm@cygnus.com>
5273 * som.c (som_misc_symbol_info): Add field
5275 (som_bfd_derive_misc_symbol_info): Initialize
5277 (som_build_and_write_symbol_table): Keep track
5278 of secondary_def field.
5279 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
5280 if secondary_def field is set.
5281 (som_bfd_ar_write_symbol_stuff): Initialize
5284 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
5286 * dwarf2.c (read_address): Read 16-bits addresses.
5287 (parse_comp_unit): Accept addr_size == 2.
5289 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5291 * bfd-in.h: Update copyright date.
5293 2000-02-23 Linas Vepstas <linas@linas.org>
5295 * cpu-i370.c: New file.
5296 * elf32-i370.c: New file.
5297 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
5298 (bfd_i370_arch): New.
5299 (bfd_archures_list): Add bfd_i370_arch.
5300 * elf.c (prep_headers): Add bfd_arch_i370.
5301 * Makefile.am: Add support for IBM 370 elf.
5302 * config.bfd: Likewise.
5303 * configure.in: Likewise.
5304 * libbfd.h (bfd_reloc_code_real_names): Likewise.
5305 * reloc.c (bfd_reloc_code_type): Likewise.
5306 * targets.c: Likewise.
5308 * Makefile.in: Regenerate.
5309 * configure: Regenerate.
5310 * bfd-in2.h: Regenerate.
5312 2000-02-22 Ian Lance Taylor <ian@zembu.com>
5314 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
5315 invalid relocation types, and change them to R_386_NONE.
5317 2000-02-22 H.J. Lu <hjl@gnu.org>
5319 * elflink.h (elf_link_add_object_symbols): If a version symbol is
5320 not defined, don't add a second ELF_VER_CHR.
5322 * elflink.h (elf_bfd_final_link): Call output_extsym for global
5323 symbols converted to local symbols even when stripping all
5325 (elf_link_output_extsym): Process global symbols converted to
5326 local symbols even if they are being stripped.
5328 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5330 * archures.c (bfd_octets_per_byte): Return unsigned int.
5331 (bfd_arch_mach_octets_per_byte): Ditto.
5332 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
5334 * section.c (bfd_get_section_size_before_reloc): Quell signed
5335 vs. unsigned comparison warning.
5336 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
5337 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
5338 change. What was I thinking?
5339 * bfd-in2.h: Regenerate.
5341 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
5342 (elf_gc_sections): Same here.
5343 (elf_gc_common_finalize_got_offsets): And here.
5345 2000-02-21 Ian Lance Taylor <ian@zembu.com>
5347 ELF HPPA doesn't work at present; remove it until it does.
5348 * config.bfd: Comment out setting targ_defvec to
5350 * Makefile.am: Rebuild dependencies.
5351 (BFD32_BACKENDS): Remove elf32-hppa.lo.
5352 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
5353 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
5354 * Makefile.in: Rebuild.
5355 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
5357 2000-02-18 Geoff Keating <geoffk@cygnus.com>
5359 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
5360 is no bfd_free(). Revert bfd_free part of previous change.
5362 2000-02-18 Geoff Keating <geoffk@cygnus.com>
5364 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
5366 (coff_compute_section_file_positions): Use bfd_free to pair
5368 (coff_write_object_contents): Likewise.
5370 * coff-rs6000.c (xcoff_howto_table_16): New variable.
5371 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
5373 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
5375 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
5376 (xcoff_ar_file_hdr_big): New structure.
5377 (SIZEOF_AR_FILE_HDR_BIG): New macro.
5378 (xcoff_ar_hdr_big): New structure.
5379 (SIZEOF_AR_HDR_BIG): New macro.
5380 (xcoff_big_format_p): New macro.
5381 (xcoff_ardata_big): New macro.
5382 (arch_xhdr_big): New macro.
5383 (xcoff_slurp_armap): Handle large archives.
5384 (xcoff_archive_p): Detect large archives.
5385 (xcoff_read_ar_hdr): Handle large archives.
5386 (xcoff_openr_next_archived_file): Handle large archives.
5387 (xcoff_generic_stat_arch_elt): Handle large archives.
5388 (xcoff_write_armap_old): Rename from xcoff_write_armap.
5389 (xcoff_write_armap_big): New function.
5390 (xcoff_write_armap): New function, dispatch to _old or _big.
5391 (xcoff_write_archive_contents_old): Rename from
5392 xcoff_write_archive_contents.
5393 (xcoff_write_archive_contents_big): New function.
5394 (xcoff_write_archive_contents): New function, dispatch to _old or
5397 2000-02-18 Richard Henderson <rth@cygnus.com>
5399 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
5400 and hide_symbol members.
5401 (elf_link_hash_copy_indirect): Remove.
5402 (elf_link_hash_hide_symbol): Remove.
5403 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
5404 and elf_backend_hide_symbol.
5405 (_bfd_elf_link_hash_copy_indirect): Declare.
5406 (_bfd_elf_link_hash_hide_symbol): Declare.
5407 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
5408 (_bfd_elf_link_hash_hide_symbol): Likewise.
5409 (_bfd_elf_link_hash_table_init): Don't init killed members.
5410 * elflink.h (elf_link_add_object_symbols): Use the bed function
5411 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
5412 (elf_link_assign_sym_version): Likewise.
5413 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
5414 (elf_backend_hide_symbol): Likewise.
5415 (elfNN_bed): Update for new members.
5417 2000-02-17 Kevin Buettner <kevinb@redhat.com>
5419 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
5420 STACK_END_ADDR): Define for new core file format.
5421 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
5422 for handling the vagaries of the various core file structures used
5423 by AIX over the years.
5424 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
5425 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
5426 core_dumpx structure.
5428 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5430 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
5431 (bfd_mach_sh3_dsp): Likewise.
5432 (bfd_mach_sh4): Reinstate.
5433 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
5434 * bfd-in2.h: Regenerate.
5435 * coff-sh.c (struct sh_opcode): flags is no longer short.
5436 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
5437 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
5438 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
5439 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
5440 (sh_opcodes): No longer const.
5441 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
5442 (sh_insn_uses_reg): Check for USESAS and USESR8.
5443 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
5444 (_bfd_sh_align_load_span): Return early for SH4.
5445 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
5446 Take into account that field b of a parallel processing insn
5447 could be mistaken for a separate insn.
5448 * cpu-sh.c (arch_info_struct): New array elements for
5449 sh2, sh-dsp and sh3-dsp.
5450 Reinstate element for sh4.
5451 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
5452 (SH4_NEXT): Reinstate.
5453 (SH3_NEXT, SH3E_NEXT): Adjust.
5454 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
5455 * elf32-sh.c (sh_elf_set_private_flags): New function.
5456 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
5457 (sh_elf_merge_private_data): New function.
5458 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
5459 (bfd_elf32_bfd_copy_private_bfd_data): Define.
5460 (bfd_elf32_bfd_merge_private_bfd_data): Change to
5461 sh_elf_merge_private_data.
5463 2000-02-13 Richard Henderson <rth@cygnus.com>
5465 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
5466 hide_symbol members.
5467 (elf_link_hash_copy_indirect): New.
5468 (elf_link_hash_hide_symbol): New.
5469 * elflink.h (elf_link_add_object_symbols): Break out copy from
5470 indirect new new symbol to elf.c.
5471 (elf_link_assign_sym_version): Break out privatization of
5472 non-exported symbol to elf.c.
5473 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
5474 (_bfd_elf_link_hash_hide_symbol): New.
5475 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
5477 2000-02-13 Ian Lance Taylor <ian@zembu.com>
5479 * section.c (_bfd_strip_section_from_output): Add info parameter.
5480 If it passed as non-NULL, use it to check whether any input BFD
5481 has an input section which uses this output section. Change all
5483 * bfd-in2.h: Rebuild.
5485 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
5486 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
5488 * bfd-in2.h: Rebuild.
5490 2000-02-10 Timothy Wall <twall@cygnus.com>
5492 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
5493 allow final modifications of swapped-in symbol.
5494 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
5495 * coffcode.h (coff_write_relocs): Use macro
5496 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
5497 symbol index should be set to -1.
5499 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
5501 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
5502 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
5503 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
5504 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
5505 sh_insns_uses_or_sets_freg): New functions.
5506 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
5507 * (sh_insns_conflict): Use new functions and new macros to
5508 detect conflicts when two instructions both set same integer registers,
5509 both set same fp register, and both set special register.
5511 2000-02-09 Timothy Wall <twall@cygnus.com>
5513 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
5514 swapping in sections, so that the swapping routines have access to
5517 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
5519 * coff-go32.c: Update comment. Update copyright.
5521 2000-01-27 Thomas de Lellis <tdel@windriver.com>
5523 * syms.c (bfd_decode_symclass)
5524 Two new class characters were added - 'V' and 'v'. The
5525 meaning of 'W' is now restricted to just weak non-object
5526 symbols. This allows differentiation between, for example,
5527 weak functions vs weak objects. nm for example now dumps:
5529 'w' = weak unresolved
5530 'V' = weak global object
5531 'v' = weak unresolved object
5533 (bfd_is_undefined_symclass): New function. Return true if the
5534 given symbol class represents and undefined/unresolved symbol.
5536 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
5539 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
5541 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
5542 STT_ARM_16BIT flag set, but it is not attached to a data object
5543 return STT_ARM_16BIT so that it will be treated as code by the
5546 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5548 * coff-i386.c (i3coff_object_p): Remove prototype.
5551 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
5552 to name. Update copyright.
5554 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
5555 assignment to avoid warning. Update copyright.
5557 2000-01-24 Robert Lipe (robertl@sco.com)
5559 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
5560 instead of using GNU C extension.
5562 2000-01-21 Nick Clifton <nickc@cygnus.com>
5564 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
5565 amount from a bfd_in_memory structure.
5566 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
5569 2000-01-14 Nick Clifton <nickc@cygnus.com>
5571 * linker.c (default_indirect_link_order): oops - fix incorrectly
5572 applied patch from Tim Wall.
5574 2000-01-13 Timothy Wall (twall@tiac.net>
5576 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
5577 = scnhsz, filhsz, relsz, aoutsz, etc)
5579 * coffswap.h: Ditto.
5581 2000-01-13 Nick Clifton <nickc@cygnus.com>
5583 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
5584 interwork thumb to arm stub.
5586 2000-01-13 Timothy Wall (twall@tiac.net>
5588 * archures.c (bfd_octets_per_byte): New function: Return
5590 (bfd_arch_mach_octets_per_byte): New function: Return target
5593 * section.c: Distinguish between octets and bytes for usage of
5594 _cooked_size, _raw_size, and output_offset. Clarify
5595 description of bfd_set_section_contents.
5597 * bfd-in2.h: Regenerate.
5599 * coffgen.c: Indicate that the offset parameter is in bytes, not
5602 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
5603 where appropriate to get the octet offset when calling
5604 bfd_set_section_contents.
5605 (bfd_coff_reloc_link_order): Ditto.
5607 * linker.c (bfd_generic_reloc_link_order): Ditto.
5608 (_bfd_default_link_order): Ditto.
5610 * reloc.c (bfd_perform_relocation): Distinguish between octets
5611 and bytes. Use octets when indexing into octet data; use bytes
5612 when calculating target addresses.
5613 (bfd_install_relocation): Ditto.
5615 * srec.c (srec_write_section): Ditto.
5617 2000-01-13 Nick Clifton <nickc@cygnus.com>
5619 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
5620 3 to 2. This allows 4 byte sized sections, which is necessary for
5621 dlltool to build functioning DLLs.
5623 2000-01-10 Philip Blundell <pb@futuretv.com>
5625 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
5626 (arm*-*-conix*): New target.
5628 2000-01-10 Egor Duda <deo@logos-m.ru>
5630 * config.bfd: Include elf32_i386 vector to target list for cygwin
5633 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
5634 * configure.in: Test for structure win32_pstatus_t in
5636 * configure: Regenerate.
5638 * elf.c (elfcore_grok_win32pstatus): New function: process
5639 win32_pstatus_t notes in elf core file.
5640 (elfcore_grok_note): Detect win32_pstatus notes.
5642 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
5644 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
5646 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
5647 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
5649 For older changes see ChangeLog-9899
5655 version-control: never