1 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3 * Makefile.am (install-data-local): Make use of $(DESTDIR).
4 * Makefile.in: Regenerate.
6 2001-01-21 Kazu Hirata <kazu@hxi.com>
8 * coff-a29k.c: Fix formatting.
10 2001-01-19 H.J. Lu <hjl@gnu.org>
12 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
13 relocation section names.
14 (elf_i386_relocate_section): Report files with bad relocation
15 section names and return false.
17 2001-01-17 Bo Thorsen <bo@suse.de>
19 * targets.c: Alphabetize list of xvecs.
21 2001-01-14 Alan Modra <alan@linuxcare.com.au>
23 * config.bfd: Add linux target variant for elfxx-hppa.
24 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
25 bfd_elf64_hppa_linux_vec.
26 * configure: Regenerate.
27 * elf64-hppa.c: Include elf64-target.h again to support linux
29 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
30 * elf32-hppa.c: Include elf32-target.h again to support linux
32 (elf32_hppa_post_process_headers): New function.
33 (elf_backend_post_process_headers): Define.
34 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
35 bfd_elf32_hppa_linux_vec.
37 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
38 and data_segment_base fields.
39 (elf32_hppa_link_hash_table_create ): Init them.
40 (elf32_hppa_check_relocs): Update comments.
41 (hppa_record_segment_addr): New function.
42 (elf32_hppa_relocate_section): Call it.
43 (final_link_relocate): Handle R_PARISC_SEGREL32.
44 (elf32_hppa_final_link): New function.
45 (bfd_elf32_bfd_final_link): Define to call it.
46 (hppa_unwind_entry_compare): New function.
47 * cache.c (bfd_open_file): Create files in write+read mode.
49 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
50 SEGREL32 and numerous other relocs. Change duplicate
51 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
53 * opncls.c (bfd_fdopenr): Add parens like the comment says around
56 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
57 .plt entries for DT_INIT and DT_FINI.
58 (elf32_hppa_finish_dynamic_sections): Remove special handling of
61 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
62 offsets for stub .plt access if wide mode. Check offset in range.
64 2001-01-13 Nick Clifton <nickc@redhat.com>
66 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
69 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
72 2001-01-12 Alan Modra <alan@linuxcare.com.au>
74 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
75 * configure: Regenerate.
77 2001-01-11 Peter Targett <peter.targett@arccores.com>
79 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
80 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
81 * cpu-arc.c (arch_info_struct): Add entries for variants.
82 (bfd_arc_arch) Set default to bfd_mach_arc_5.
83 (arc_get_mach) Don't assume machine names prefixed arc- before
85 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
87 (arc_elf_final_write_processing) Likewise.
88 (ELF_MACHINE_CODE) Use EM_ARC.
90 2001-01-10 Nick Clifton <nickc@redhat.com>
92 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
94 2001-01-07 Philip Blundell <philb@gnu.org>
96 * README: Replace `bug-gnu-utils@gnu.org' with
97 `bug-binutils@gnu.org'.
99 2001-01-04 Kazu Hirata <kazu@hxi.com>
101 * som.c: Fix formatting.
103 2001-01-03 Kazu Hirata <kazu@hxi.com>
105 * ecoffswap.h: Fix formatting.
106 * elf-bfd.h: Likewise.
107 * elfarm-nabi.c: Likewise.
108 * elfarm-oabi.c: Likewise.
109 * elfcode.h: Likewise.
110 * elfcore.h: Likewise.
111 * elflink.c: Likewise.
112 * elflink.h: Likewise.
113 * elfxx-ia64.c: Likewise.
114 * elfxx-target.h: Likewise.
116 * linker.c: Likewise.
117 * lynx-core.c: Likewise.
119 2001-01-02 Kazu Hirata <kazu@hxi.com>
121 * pc532-mach.c: Fix formatting.
122 * pe-arm.c: Likewise.
123 * pe-i386.c: Likewise.
124 * pe-mips.c: Likewise.
125 * pe-ppc.c: Likewise.
127 * pei-mips.c: Likewise.
128 * pei-sh.c: Likewise.
129 * peicode.h: Likewise.
130 * ppcboot.c: Likewise.
131 * ptrace-core.c: Likewise.
133 2001-01-01 Kazu Hirata <kazu@hxi.com>
135 * reloc.c: Fix formatting.
136 * riscix.c: Likewise.
137 * rs6000-core.c: Likewise.
138 * xcoff-target.h: Likewise.
140 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
142 * elfcode.h (elf_object_p): Also restore the bfd mach field on
143 error, by calling bfd_default_set_arch_mach with incoming
146 2000-12-26 Kazu Hirata <kazu@hxi.com>
148 * vaxnetbsd.c: Fix formatting.
149 * versados.c: Likewise.
150 * vms-gsd.c: Likewise.
151 * vms-hdr.c: Likewise.
152 * vms-misc.c: Likewise.
154 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
156 * archive.c (coff_write_armap): Don't write more than symbol_count
157 `archive_member_file_ptr's.
159 2000-12-25 Kazu Hirata <kazu@hxi.com>
161 * vms-tir.c: Fix formatting.
163 2000-12-23 Kazu Hirata <kazu@hxi.com>
165 * vms.c: Fix formatting.
168 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
170 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
172 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
174 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
177 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
179 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
181 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
183 * libbfd.c (bfd_get_bits): Added
184 (bfd_put_bits): Likewise
185 * bfd-in.h: Declared the above.
186 * bfd-in2.h: Regenerated.
188 2000-12-20 Kazu Hirata <kazu@hxi.com>
190 * targets.c: Fix formatting.
191 * tekhex.c: Likewise.
192 * trad-core.c: Likewise.
194 2000-12-19 Kazu Hirata <kazu@hxi.com>
196 * sco5-core.c: Fix formatting.
197 * section.c: Likewise.
198 * sparclinux.c: Likewise.
199 * sparclynx.c: Likewise.
200 * sparcnetbsd.c: Likewise.
203 * stab-syms.c: Likewise.
206 * sysdep.h: Likewise.
208 2000-12-18 Nick Clifton <nickc@redhat.com>
210 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
212 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
213 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
215 2000-12-18 Nick Clifton <nickc@redhat.com>
217 * vms-misc.c (_bfd_vms_get_record): Add default case to
220 2000-12-15 Miloslav Trmac <mitr@volny.cz>
222 * elfcore.h (elf_core_file_p): Move to the start of the program
223 headers before attempting to read them.
225 2000-12-14 Kazu Hirata <kazu@hxi.com>
227 * peigen.c: Fix formatting.
231 2000-12-13 Kazu Hirata <kazu@hxi.com>
233 * peigen.c: Fix formatting.
235 2000-12-12 Jim Wilson <wilson@redhat.com>
237 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
239 2000-12-08 Mark Salter <msalter@redhat.com>
241 * binary.c (binary_set_section_contents): Ignore sections
244 2000-12-12 Kazu Hirata <kazu@hxi.com>
246 * m68klinux.c: Fix formatting.
247 * m68knetbsd.c: Likewise.
248 * mipsbsd.c: Likewise.
249 * netbsd-core.c: Likewise.
250 * netbsd.h: Likewise.
251 * newsos3.c: Likewise.
252 * nlm32-alpha.c: Likewise.
253 * nlm32-i386.c: Likewise.
254 * nlm32-ppc.c: Likewise.
255 * nlm32-sparc.c: Likewise.
256 * nlmcode.h: Likewise.
257 * nlmswap.h: Likewise.
258 * nlm-target.h: Likewise.
259 * ns32knetbsd.c: Likewise.
261 2000-12-10 Fred Fish <fnf@be.com>
263 * elflink.h (elf_link_output_extsym): Don't complain about undefined
264 symbols in shared objects if allow_shlib_undefined is true.
266 2000-12-12 Nick Clifton <nickc@redhat.com>
268 * cpu-sh.c: Fix formattng.
269 * elf.c: Fix formattng.
270 * elf32-mips.c: Fix formattng.
271 * elf32-sh.c: Fix formattng.
272 * elf64-alpha.c: Fix formattng.
274 2000-12-09 Nick Clifton <nickc@redhat.com>
276 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
277 dwarf2_find_line_info as last parameter to invocation of
278 _bfd_dwarf2_find_nearest_line.
279 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
280 dwarf2_find_line_info as last parameter to invocation of
281 _bfd_dwarf2_find_nearest_line.
283 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
285 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
286 (BFD_LIBS): ...to here.
287 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
288 (BFD_LIBS_CFILES): ...to here.
289 * Makefile.in: Regenerate.
290 * configure.in: Remove dwarf.lo from the elf shell variable.
291 * configure: Regenerate.
292 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
293 * libcoff.h: Regenerate.
294 * coffgen.c (coff_find_nearest_line): Call
295 _bfd_dwarf2_find_nearest_line.
296 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
298 (read_abbrevs): Likewise
299 (decode_line_info): Likewise.
300 (parse_comp_unit): Likewise.
301 (comp_unit_find_nearest_line): Likewise.
302 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
303 * libbfd.h: Regenerate.
304 * elf.c (_bfd_elf_find_nearest_line): Update call.
305 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
306 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
307 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
308 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
309 (styp_to_sec_flags): Handle DWARF2 sections.
310 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
311 to _bfd_find_nearest_line.
312 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
313 call to _bfd_find_nearest_line.
315 2000-12-08 Kazu Hirata <kazu@hxi.com>
317 * coffgen.c: Fix formatting.
318 * elf-m10300.c: Likewise.
319 * elf32-i386.c: Likewise.
320 * elf32-i960.c: Likewise.
321 * elf32-m68k.c: Likewise.
322 * elf32-mcore.c: Likewise.
323 * elf32-ppc.c: Likewise.
324 * elf32-sh.c: Likewise.
325 * elf32-sparc.c: Likewise.
326 * elf32-v850.c: Likewise.
327 * elf64-alpha.c: Likewise.
328 * elf64-hppa.c: Likewise.
329 * elf64-mips.c: Likewise.
330 * elf64-sparc.c: Likewise.
332 2000-12-07 Kazu Hirata <kazu@hxi.com>
334 * elf32-ppc.c: Fix formatting.
335 * elf64-x86-64.c: Likewise.
337 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
339 From Ralf Baechle <ralf@gnu.org>
341 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
342 BFDs containing no sections or empty .text, .data or .bss sections
343 to be merged, regardless of their flags.
345 2000-12-06 Kazu Hirata <kazu@hxi.com>
347 * elf32-m32r.c: Fix formatting.
348 * elf32-m68hc11.c: Likewise.
349 * elf32-m68hc12.c: Likewise.
350 * elf32-m68k.c: Likewise.
351 * elf32-mcore.c: Likewise.
352 * elf32-pj.c: Likewise.
353 * elf32-ppc.c: Likewise.
355 2000-12-05 Kazu Hirata <kazu@hxi.com>
357 * elf32-fr30.c: Fix formatting.
358 * elf32-hppa.c: Likewise.
359 * elf32-i370.c: Likewise.
360 * elf32-i386.c: Likewise.
361 * elf32-i860.c: Likewise.
362 * elf32-i960.c: Likewise.
364 2000-12-03 Kazu Hirata <kazu@hxi.com>
366 * elf32-arm.h: Fix formatting.
367 * elf32-avr.c: Likewise.
368 * elf32-cris.c: Likewise.
369 * elf32-d10v.c: Likewise.
370 * elf32-d30v.c: Likewise.
371 * elf-hppa.h: Likewise.
372 * elf-m10200.c: Likewise.
373 * elf-m10300.c: Likewise.
375 2000-12-01 Chris Demetriou <cgd@sibyte.com>
377 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
378 bfd_mach_mips32_4k. Update FIXME comment.
379 * archures.c (bfd_mach_mips32): New constant.
380 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
381 the latter, renumber it.
382 * bfd-in2.h (bfd_mach_mips32): New constant.
383 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
384 the latter, renumber it.
385 * cpu-mips.c (I_mips32): New constant.
386 (I_mips4K, I_mips32_4k): Rename the former to the latter.
387 (arch_info_struct): Add bfd_mach_mips32 entry, replace
388 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
389 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
390 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
391 with E_MIPS_MACH_MIPS32_4K.
392 (_bfd_mips_elf_final_write_processing): Replace
393 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
394 bfd_mach_mips32 case.
395 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
396 comparison with support for MIPS32.
397 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
400 * aoutx.h (NAME(aout,machine_type)): Add cases for
401 bfd_mach_mips5 and bfd_mach_mips64.
402 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
403 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
404 * cpu_mips.c (I_mips5, I_mips64): New definitions.
405 (arch_info_struct): Add entries for bfd_mach_mips5 and
407 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
408 _bfd_mips_elf_print_private_bfd_data): Add cases for
409 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
410 (_bfd_mips_elf_final_write_processing): Add cases for
411 bfd_mach_mips5 and bfd_mach_mips64.
413 * bfd/aoutx.h (NAME(aout,machine_type)): Add a
414 bfd_mach_mips_sb1 case.
415 * bfd/archures.c (bfd_mach_mips_sb1): New constant.
416 * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
417 * bfd/cpu-mips.c (I_sb1): New constant.
418 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
419 * bfd/elf32-mips.c (elf_mips_mach): Add case for
421 (_bfd_mips_elf_final_write_processing): Add case for
424 2000-12-01 Joel Sherrill <joel@OARcorp.com>
426 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
427 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
428 (sparc*-*-rtems*): Switched from a.out to ELF.
430 2000-11-30 Jan Hubicka <jh@suse.cz>
432 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
433 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
434 (elf64-x86-64.lo): Add dependencies.
435 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
436 bfd_mach_x86_64_intel_syntax.
437 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
438 * config.bfd (x86_64): Add.
439 * configure.in: Add support for bfd_elf64_x86_64_vec.
440 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
441 (bfd_i386_arch, i8086_ar): Link in.
442 * elf64-x86-64.c: New file.
443 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
444 * targets.c (bfd_elf64_x86_64_vec): Add.
445 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
447 2000-11-30 Kazu Hirata <kazu@hxi.com>
449 * xcofflink.c: Fix formatting.
451 2000-11-28 Kazu Hirata <kazu@hxi.com>
453 * aoutx.h: Fix formatting.
454 * bfd-in.h: Likewise.
455 * bfd-in2.h: Likewise.
457 * cisco-core.c: Likewise.
458 * coff64-rs6000.c: Likewise.
459 * coffcode.h: Likewise.
460 * coffswap.h: Likewise.
461 * corefile.c: Likewise.
462 * elf32-mips.c: Likewise.
464 2000-11-27 Kazu Hirata <kazu@hxi.com>
466 * aout-adobe.c: Fix formatting.
467 * coff64-rs6000.c: Likewise.
468 * coffgen.c: Likewise.
469 * cofflink.c: Likewise.
471 2000-11-27 Philip Blundell <pb@futuretv.com>
473 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
474 (obj_coff_strings_written): New accessor macro for above.
475 * libcoff.h: Regenerate.
476 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
478 * coffcode.h (coff_write_object_contents): No need to write out
479 the string table if it's already been done.
481 2000-11-22 Philip Blundell <pb@futuretv.com>
483 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
484 weak undefined symbols.
486 2000-11-24 Nick Clifton <nickc@redhat.com>
488 * archures.c (bfd_mach_arm_5TE): Define.
489 (bfd_mach_arm+XScale): Define.
490 * bfd-in2.h: Regenerate.
492 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
493 BFD_RELOC_ARM_PCREL_BLX.
495 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
496 XScale machine numbers.
498 * config.bfd (xscale-elf): Add target.
499 (xscale-coff): Add target.
501 * cpu-arm.c: Add xscale machine name.
502 Add v5t, v5te and XScale machine numbers.
504 2000-11-23 Kazu Hirata <kazu@hxi.com>
506 * aix386-core.c: Fix formatting.
508 2000-11-22 Jim Wilson <wilson@redhat.com>
510 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
511 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
512 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
513 (ins_imms_scaled): Initialize sign_bit at function entry.
514 (elf64_ia64_operands): Add missing initializers.
515 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
516 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
517 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
518 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
519 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
521 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
522 and free_extsyms at function entry.
523 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
524 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
525 (get_got): Delete unused local srel.
526 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
527 (elfNN_ia64_relocate_section): Delete unused local dynindx.
529 2000-11-21 Kazu Hirata <kazu@hxi.com>
531 * coff-a29k.c: Fix formatting.
532 * coff-h8500.c: Likewise.
533 * coff-i960.c: Likewise.
534 * coff-ppc.c: Likewise.
535 * coff-rs6000.c: Likewise.
536 * coff-stgo32.c: Likewise.
537 * coff-tic54x.c: Likewise.
538 * coff-w65.c: Likewise.
539 * cpu-h8500.c: Likewise.
540 * cpu-hppa.c: Likewise.
541 * cpu-ns32k.c: Likewise.
543 * ecofflink.c: Likewise.
545 2000-11-21 Nick Clifton <nickc@redhat.com>
547 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
548 remove possibility of infinite loop.
550 2000-11-20 Kazu Hirata <kazu@hxi.com>
552 * aix386-core.c: Fix formatting.
553 * aout-adobe.c: Likewise.
554 * aout-arm.c: Likewise.
555 * aout-encap.c: Likewise.
556 * aout-ns32k.c: Likewise.
557 * aout-target.h: Likewise.
558 * aout-tic30.c: Likewise.
559 * aoutf1.h: Likewise.
561 * archive.c: Likewise.
562 * bfd-in.h: Likewise.
563 * bfd-in2.h: Likewise.
567 2000-11-17 H.J. Lu <hjl@gnu.org>
569 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
570 pltoff entries for DT_INIT and DT_FINI.
571 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
572 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
575 2000-11-16 Richard Henderson <rth@redhat.com>
577 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
578 (allocate_dynrel_entries): Likewise.
579 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
580 (set_pltoff_entry): Likewise.
581 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
582 (elfNN_ia64_reloc_type_lookup): Likewise.
583 (elfNN_ia64_install_value): Likewise.
584 (elfNN_ia64_relocate_section): Likewise.
585 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
586 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
588 2000-11-16 Kazu Hirata <kazu@hxi.com>
590 * cpu-a29k.c: Fix formatting.
591 * cpu-alpha.c: Likewise.
592 * cpu-arm.c: Likewise.
593 * cpu-avr.c: Likewise.
594 * cpu-d10v.c: Likewise.
595 * cpu-h8500.c: Likewise.
596 * cpu-hppa.c: Likewise.
597 * cpu-i370.c: Likewise.
598 * cpu-i386.c: Likewise.
599 * cpu-i960.c: Likewise.
600 * cpu-ia64-opc.c: Likewise.
601 * cpu-ia64.c: Likewise.
602 * cpu-m32r.c: Likewise.
603 * cpu-m68hc11.c: Likewise.
604 * cpu-m68hc12.c: Likewise.
605 * cpu-m68k.c: Likewise.
606 * cpu-m88k.c: Likewise.
607 * cpu-mips.c: Likewise.
608 * cpu-ns32k.c: Likewise.
609 * cpu-pj.c: Likewise.
610 * cpu-powerpc.c: Likewise.
611 * cpu-sh.c: Likewise.
612 * cpu-sparc.c: Likewise.
613 * cpu-tic54x.c: Likewise.
614 * cpu-v850.c: Likewise.
615 * cpu-vax.c: Likewise.
616 * cpu-w65.c: Likewise.
617 * cpu-we32k.c: Likewise.
618 * cpu-z8k.c: Likewise.
619 * dwarf1.c: Likewise.
620 * dwarf2.c: Likewise.
622 2000-11-15 Kazu Hirata <kazu@hxi.com>
624 * coff-arm.c: Fix formatting.
625 * coff-ppc.c: Likewise.
626 * coff-rs6000.c: Likewise.
627 * coff-sh.c: Likewise.
628 * coff-sparc.c: Likewise.
629 * coff-tic30.c: Likewise.
630 * coff-tic54x.c: Likewise.
631 * coff-tic80.c: Likewise.
632 * coff-w65.c: Likewise.
633 * coff-we32k.c: Likewise.
634 * coff-z8k.c: Likewise.
636 2000-11-15 Richard Henderson <rth@redhat.com>
638 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
639 section with the same ALLOC|LOAD flags as the source section.
641 2000-11-14 Jakub Jelinek <jakub@redhat.com>
643 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
644 by STO_ALPHA constants.
646 2000-11-14 Kazu Hirata <kazu@hxi.com>
648 * coff-pmac.c: Fix formatting.
649 * coff-ppc.c: Likewise.
651 2000-11-13 H.J. Lu <hjl@gnu.org>
653 * elflink.h (elf_link_add_object_symbols): Also add indirect
654 symbols for common symbols with the default version.
656 2000-11-09 Philip Blundell <pb@futuretv.com>
658 * section.c (STD_SECTION): Set gc_mark flag.
660 2000-11-11 Kazu Hirata <kazu@hxi.com>
662 * coff-i960.c: Likewise.
663 * coff-m68k.c: Likewise.
664 * coff-m88k.c: Likewise.
665 * coff-mcore.c: Likewise.
666 * coff-mips.c: Likewise.
668 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
670 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
672 2000-11-10 Kazu Hirata <kazu@hxi.com>
674 * coff-h8300.c: Fix formatting.
675 * coff-h8500.c: Likewise.
676 * coff-i386.c: Likewise.
677 * coff-i860.c: Likewise.
678 * coff-i960.c: Likewise.
679 * coff-ia64.c: Likewise.
681 2000-11-09 Kazu Hirata <kazu@hxi.com>
683 * archive.c: Fix formatting.
684 * archures.c: Likewise.
686 2000-11-07 Richard Henderson <rth@redhat.com>
688 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
689 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
690 * section.c (bfd_set_section_contents): Call memcpy if
691 section->contents set and location not equal to contents plus offset.
693 2000-11-08 Kazu Hirata <kazu@hxi.com>
695 * bfd-in.h: Fix formatting.
696 * bfd-in2.h: Likewise.
698 * binary.c: Likewise.
700 * coff-a29k.c: Likewise.
701 * coff-alpha.c: Likewise.
702 * coff-apollo.c: Likewise.
703 * coff-aux.c: Likewise.
705 2000-11-07 Kazu Hirata <kazu@hxi.com>
707 * aix386-core.c: Fix formatting.
708 * aoutf1.h: Likewise.
710 * archures.c: Likewise.
711 * armnetbsd.c: Likewise.
713 2000-11-07 Alan Modra <alan@linuxcare.com.au>
715 * coff-h8300.c (special): Adjust reloc address.
717 2000-11-06 Steve Ellcey <sje@cup.hp.com>
719 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
720 to differentiate elf32 and elf64 on ia64.
721 * bfd-in2.h: Regenerate.
722 * config.bfd: Add target for "ia64*-*-hpux*".
723 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
724 * configure: Regenerate.
725 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
726 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
728 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
729 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
730 * Makefile.in: Regnerate.
731 * elf64-ia64.c: Deleted.
732 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
734 2000-11-06 Kazu Hirata <kazu@hxi.com>
736 * aout-adobe.c: Fix formatting.
737 * aout-arm.c: Likewise.
738 * aout-cris.c: Likewise.
739 * aout-encap.c: Likewise.
740 * aout-ns32k.c: Likewise.
741 * aout-target.h: Likewise.
742 * aout-tic30.c: Likewise.
744 2000-11-05 Philip Blundell <philb@gnu.org>
746 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
747 BFDs containing no sections to be merged, regardless of their flags.
749 2000-11-04 Philip Blundell <philb@gnu.org>
751 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
752 if a relocation for an undefined symbol also results in an
755 2000-11-06 Christopher Faylor <cgf@cygnus.com>
757 * config.bfd: Add support for Sun Chorus.
759 2000-11-05 David O'Brien <obrien@FreeBSD.org>
761 * configure.in: Recognize alpha-*-freebsd*.
762 * configure: Regenerate.
764 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
766 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
767 (Chunk): New global variable set by a parameter in objcopy.c.
768 (S3Forced): New global variable set by a parameter in
770 (srec_set_section_contents): If S3Forced is true, always generate
772 (srec_write_section): Use 'Chunk' to limit maximum length of S
775 2000-11-02 Per Lundberg <plundis@chaosdev.org>
777 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
778 * Makefile.in: Regenerate.
779 * bfd-in2.h: Regenerate.
780 * po/bfd.pot: Regenerate.
782 2000-10-31 Philip Blundell <philb@gnu.org>
784 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
785 EF_SOFT_FLOAT if it is defined.
787 2000-10-27 Philip Blundell <philb@gnu.org>
789 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
790 attempts to mix PIC code with non-PIC, just mark the output as
791 being position dependent.
792 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
793 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
794 all mismatches, not just the first one.
796 2000-10-25 Chris Demetriou <cgd@sibyte.com>
798 * ieee.c (ieee_archive_p): Plug one of many possible
799 memory leaks in error handling.
801 2000-10-20 Jakub Jelinek <jakub@redhat.com>
803 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
804 elf32_sparc_object_p, elf32_sparc_final_write_processing):
806 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
807 sparc64_elf_object_p): Support v9b.
808 * archures.c: Declare v8plusb and v9b machines.
810 * cpu-sparc.c: Ditto.
812 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
814 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
817 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
818 (SYMBOL_CALLS_LOCAL): New macro.
819 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
820 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
821 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
822 (ppc_elf_relocate_section): Use flag variable to determine
823 whether the relocation refers to a local symbol.
824 Test whether a PLTREL24 reloc will produce a reloc by looking
825 to see whether a PLT entry was made.
827 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
829 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
830 entries that could serve as a definition for a weak symbol.
832 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
834 From Ralf Baechle <ralf@gnu.org>
836 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
837 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
838 against local symbols.
839 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
841 2000-10-12 Alan Modra <alan@linuxcare.com.au>
843 * section.c (struct sec): Add kept_section.
844 (struct bfd_comdat_info): Remove sec, we can use above.
845 (STD_SECTION): Add initializer.
846 (bfd_make_section_anyway): Init here too.
848 * bfd-in2.h: Regenerate.
850 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
852 (elf_link_input_bfd): Set all asection->symbol->value's here, and
853 fudge values for discarded link-once section symbols.
855 * elf64-hppa.c: Include alloca-conf.h
857 2000-10-11 Alan Modra <alan@linuxcare.com.au>
859 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
861 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
863 2000-10-10 Alan Modra <alan@linuxcare.com.au>
865 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
867 2000-10-10 Tom Rix <trix@redhat.com>
869 * section.c (bfd_make_section_anyway): Release newsect ptr when
870 newsect->symbol fails to alloc. Use bfd_release instead of free.
872 2000-10-09 Richard Henderson <rth@cygnus.com
874 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
875 (elf64_ia64_unwind_entry_compare): New.
876 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
878 2000-10-07 Alan Modra <alan@linuxcare.com.au>
880 * elflink.h (size_dynamic_sections): Don't create various tags if
881 .dynstr is excluded from the link. Don't set first dynsym entry
882 if dynsymcount is zero.
883 (elf_bfd_final_link): Don't try to swap out dynamic syms if
884 .dynsym excluded from the link. Don't try to write any dynamic
885 sections excluded from the link.
887 * elf.c (swap_out_syms): Handle global section symbols.
889 2000-10-05 DJ Delorie <dj@redhat.com>
891 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
892 * coffcode.h (coff_set_alignment_hook): read extended reloc count
893 (coff_write_relocs): write extended reloc count
894 (coff_write_object_contents): account for extended relocs
896 2000-10-05 Jim Wilson <wilson@cygnus.com>
898 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
900 * elf.c (_bfd_elf_make_section_from_shdr): Call the
901 elf_backend_section_flags function.
902 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
904 (elf64_ia64_section_flags): New function containing flag conversion
906 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
907 * elfxx-target.h (elf_backend_section_flags): Define.
908 (elfNN_bed): Initialize elf_backend_section_flags field.
910 2000-10-02 Alan Modra <alan@linuxcare.com.au>
912 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
913 _bfd_elf32_gc_record_vtable. Correct a comment.
915 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
917 From Ralf Baechle <ralf@gnu.org>
919 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
920 produces binaries with got[1] = 0x80000001 to differenciate them
921 for the dynamic linker from the broken binaries produced by old
924 2000-09-30 Petr Sorfa <petrs@sco.com>
926 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
927 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
928 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
929 * configure: Regenerate.
931 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
933 Define two bfd_targets for absence and presence of leading
934 underscore on symbols. Make sure to only link same kind.
935 * elf32-cris.c (cris_elf_object_p,
936 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
937 cris_elf_merge_private_bfd_data): New.
938 (elf_backend_object_p, elf_backend_final_write_processing,
939 bfd_elf32_bfd_print_private_bfd_data,
940 bfd_elf32_bfd_merge_private_bfd_data): Define.
941 <Target vector definition>: Include elf32-target.h twice with
942 different macro settings:
943 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
944 bfd_elf32_us_cris_vec.
945 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
946 (elf_symbol_leading_char): First as 0, then '_'.
947 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
948 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
949 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
950 * configure: Regenerate.
951 * targets.c: Declare bfd_elf32_us_cris_vec.
952 * po/bfd.pot: Regenerate.
954 2000-09-29 Momchil Velikov <velco@fadata.bg>
956 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
957 R_ARM_THM_PC22 relocations.
959 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
961 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
963 2000-09-29 Momchil Velikov <velco@fadata.bg>
965 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
966 is has the SEC_HAS_CONTENTS flag set.
968 2000-09-28 Örjan Friberg <orjanf@axis.com>
969 Hans-Peter Nilsson <hp@axis.com>
971 * aout-cris.c (N_TXTADDR): Define.
973 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
975 * som.c: Include alloca-conf.h.
976 * Makefile.am: "make dep-am"
977 * Makefile.in: Regenerate.
979 2000-09-27 Alan Modra <alan@linuxcare.com.au>
981 * elf32-hppa.c (plt_stub): New.
982 (PLT_STUB_ENTRY): Define.
983 (elf32_hppa_link_hash_table): Change multi_subspace to packed
984 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
985 (elf32_hppa_link_hash_table_create): Init to suit.
986 (elf32_hppa_check_relocs): Set has_12bit_branch and
987 has_17bit_branch as appropriate.
988 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
990 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
991 Add space for plt_stub as needed.
992 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
993 functions at plt_stub.
994 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
995 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
997 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
998 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
999 of fixed size, and if negative, disable handling of input sections
1000 before stub section. Set up default stub group size depending
1001 on detected branch relocs.
1002 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1003 ensure different offsets from sym_value aren't rounded to
1004 different 2k blocks. Use lrsel and rrsel for other stubs too for
1005 consistency rather than necessity.
1006 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1007 (final_link_relocate): Likewise.
1008 (elf32_hppa_relocate_section): Likewise.
1010 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1011 (_bfd_elf_hppa_gen_reloc_type): Generate them.
1012 (elf_hppa_final_link_relocate): Handle them.
1013 (elf_hppa_relocate_insn): Likewise.
1014 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1016 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
1018 * elfcode.h (elf_object_p): Preserve and clear abfd section
1019 information. Restore at error.
1021 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1023 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1024 is empty, make sure that its rva also 0. NT loader dislikes
1027 2000-09-26 Steve Ellcey <sje@cup.hp.com>
1029 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1032 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1034 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1035 currently unused RELATIVE_DYNAMIC_RELOCS code.
1036 (hppa_discard_copies): Likewise.
1037 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1038 comments. Don't check non-code output sections for stub grouping.
1040 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1042 * section.c (bfd_get_unique_section_name): Return NULL if
1045 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1047 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1048 instruction sequence to actually work.
1049 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1052 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
1054 * elf32-sh.c (sh_elf_relocate_section): Use
1055 _bfd_final_link_relocate to apply the relocation against a section
1056 symbol, when doing relocatable links.
1058 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1060 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1062 (stub_hash_newfunc): Here too.
1063 (hppa_add_stub): And here.
1064 (elf32_hppa_link_hash_table): Remove stub_section_created,
1065 reloc_section_created, first_init_sec and first_fini_sec. Add
1067 (elf32_hppa_link_hash_table_create): Init to suit.
1068 (hppa_get_stub_entry): Add support for grouping stub sections.
1069 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
1070 section code. Index stub vars by section->id.
1071 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
1072 exit paths. Zap allocation of above removed vars. Refine
1075 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1076 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1077 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1078 rather than pointer to bfd_link_info.
1079 (hppa_add_stub): Likewise.
1080 (final_link_relocate): Likewise.
1082 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
1084 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1087 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
1089 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1090 ld/emulparams/shelf.sh.
1092 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1094 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1095 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1096 * bfd-in2.h: Regenerate.
1098 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
1100 * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1101 LITUSE relocations incorrectly if -relax is specified on the ld
1102 command line and the displacement field of the load or store
1103 instruction is non-zero. (Patch by paul.winalski@compaq.com)
1105 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1107 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1108 first_fini_sec here.
1109 (elf32_hppa_size_stubs): Instead correctly find the first .init
1110 and .fini section here.
1112 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
1114 * elf32-hppa.c (clobber_millicode_symbols): New function.
1115 (elf32_hppa_size_dynamic_sections): Call it.
1117 2000-09-14 Alan Modra <alan@linuxcare.com.au>
1119 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1120 packed. Add plabel, plt_abs packed booleans.
1121 (hppa_link_hash_newfunc): Init new fields.
1122 (PLABEL_PLT_ENTRY_SIZE): Define.
1123 (hppa_stub_name): Use size_t len vars.
1124 (hppa_add_stub): Likewise.
1125 (elf32_hppa_build_stubs): Likewise.
1126 (hppa_build_one_stub): Kill some compiler warnings.
1127 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1128 if dynamic linking. Munge the local plt offsets into
1129 local_got_refcounts. Set h->plabel for all global PLABELs. Use
1130 size_t len vars. Add assert for plabel addend.
1131 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1132 (elf32_hppa_hide_symbol): New function.
1133 (elf_backend_hide_symbol): Define.
1134 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1135 with h->plabel set. Don't make plt entries to have dynamic syms
1136 when they have been forced local. If plt entry is used by a
1137 plabel, make it PLABEL_PLT_ENTRY_SIZE.
1138 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1139 Set up .plt offsets for local syms.
1140 (elf32_hppa_relocate_section): Initialise plt entries for local
1141 syms. Leave weak undefined plabels zero. Make global plabel
1142 relocs against function symbol, and leave the addend zero.
1143 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1144 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1145 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
1146 relocs instead of SEGREL32 for dynamic got relocs.
1147 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1148 (elf_backend_got_header_size): Adjust.
1149 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
1151 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1152 (hppa_type_of_stub): Use it instead of #if 0
1153 (hppa_discard_copies): Use it here too.
1154 (elf32_hppa_size_dynamic_sections): And here.
1156 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1157 (elf32_hppa_link_hash_table_create): And here.
1158 (hppa_build_one_stub): And here. Instead keep track of stub
1159 offset using _raw_size.
1160 (elf32_hppa_size_stubs): Likewise.
1161 (elf32_hppa_build_stubs): Likewise.
1162 (hppa_size_one_stub): Likewise. Resize reloc section too.
1164 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
1165 first_fini_sec handling. Don't search for reloc section or set
1166 hplink->reloc_section_created here.
1167 (elf32_hppa_size_stubs): Instead search for reloc sections, and
1168 set reloc_section_created here.
1169 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
1170 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
1172 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
1174 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
1175 with `hplink->root.'.
1176 (elf32_hppa_check_relocs): Likewise.
1177 (elf32_hppa_gc_sweep_hook): Likewise.
1178 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1179 (hppa_handle_PIC_calls): Likewise.
1180 (elf32_hppa_size_dynamic_sections): Likewise.
1181 (elf32_hppa_set_gp): Likewise.
1182 (elf32_hppa_relocate_section): Likewise.
1183 (elf32_hppa_finish_dynamic_symbol): Likewise.
1184 (elf32_hppa_finish_dynamic_sections): Likewise.
1186 From David Huggins-Daines <dhd@linuxcare.com>
1187 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
1188 defined weak symbols in shared links.
1189 (final_link_relocate): Calls to defined weak symbols in shared
1190 objects must go via import stubs, as the target might not be known
1193 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1195 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
1196 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
1197 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
1198 the original entries with EMPTY_HOWTOs, and added new ones to fill
1200 (sh_elf_info_to_howto): Make sure the new gap isn't used.
1201 (sh_elf_relocate_section): Likewise.
1203 2000-09-13 Anders Norlander <anorland@acc.umu.se>
1205 * cpu-mips.c (arch_info_struct): Add mips:4K
1206 * bfd-in2.h (bfd_mach_mips4K): New define.
1207 * archures.c: Add bfd_mach_mips4K to comment.
1208 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
1209 E_MIPS_ARCH_2 for bfd_mach_mips4K.
1211 2000-09-13 Marco Franzen <marcof@thyron.com>
1213 * som.c (som_write_symbol_strings): Do not used fixed buffers,
1214 use size_t as a counter.
1215 (som_write_space_strings): Similarly.
1217 2000-09-12 Jason Eckhardt <jle@cygnus.com>
1219 * elf32-i860.c (elf32_i860_relocate_pc26): New function
1221 (elf32_i860_relocate_section): Invoke new function from here.
1223 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1225 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
1228 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1230 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
1231 target section name instead of dumping core when the target symbol is
1234 2000-09-09 Kazu Hirata <kazu@hxi.com>
1236 * riscix.c: Remove DEFUN.
1238 2000-09-08 Nick Clifton <nickc@redhat.com>
1240 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
1241 initialise flags in output bfd if the input bfd is the default
1242 architecture with the default flags.
1244 2000-09-08 Kazu Hirata <kazu@hxi.com>
1246 * archive.c: Fix formatting.
1247 * coff-arm.c: Likewise.
1248 * doc/chew.c: Likewise.
1250 2000-09-08 Alan Modra <alan@linuxcare.com.au>
1252 * section.c (bfd_get_unique_section_name): Put a dot before the
1255 2000-09-07 Kazu Hirata <kazu@hxi.com>
1257 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
1258 * elf.c: Fix formatting.
1260 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
1262 * config.bfd (sh-*-linux*): Added.
1263 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
1264 * targets.c: Declare them.
1265 * elf32-sh-lin.c: New file.
1266 * Makefile.am: Compile it.
1267 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
1268 * configure, Makefile.in: Rebuilt.
1270 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
1272 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
1273 pseduo-section when determining where the TOC ends.
1275 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
1276 output x_tvndx as it is only two bytes wide.
1278 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
1279 reloc is 26 or 32 bits wide.
1281 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
1282 for relocs that don't change anything. Also look at the full
1285 2000-09-06 Philip Blundell <philb@gnu.org>
1287 * config.bfd (arm*-*-uclinux*): New target.
1289 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1291 * configure: Rebuilt with new libtool.m4.
1293 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1295 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
1296 word for variable name.
1297 * bfd-in2.h: Regenerate.
1299 2000-09-05 Nick Clifton <nickc@redhat.com>
1301 * config.in: Regenerate.
1302 * libbfd.h: Regenerate.
1303 * po/bfd.pot: Regenerate.
1304 * doc/bfdint.texi: Remove CVS date string - it foils compares with
1307 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
1309 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
1311 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1313 Shared library and PIC support.
1314 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
1315 (GOT_ENTRY_SIZE): New.
1316 (ELF_DYNAMIC_INTERPRETER): New.
1317 (STUB_SUFFIX): Define.
1318 (LONG_BRANCH_PIC_IN_SHLIB): Define.
1319 (RELATIVE_DYNAMIC_RELOCS): Define.
1320 (enum elf32_hppa_stub_type): New.
1321 (struct elf32_hppa_stub_hash_entry): Rename offset to
1322 stub_offset. Add a number of new fields.
1323 (struct elf32_hppa_link_hash_entry): New.
1324 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
1326 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
1327 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
1328 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
1330 (hppa_link_hash_newfunc): New function.
1331 (elf32_hppa_link_hash_table_create): Use above function. Init new
1333 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
1334 instead of addend, and remove sym_name from args. Don't use
1335 symbol name for local syms, instead use sym index.
1336 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
1337 stub type rather than size. Pass in hash and handle import stub
1338 case. Also pass in reloc instead of offset so we can calculate
1339 PCREL22F and PCREL12F branches properly.
1340 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
1341 import and export stubs too.
1342 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
1343 import and export stub sizing.
1344 (elf32_hppa_check_relocs): New function.
1345 (elf32_hppa_adjust_dynamic_symbol): New function.
1346 (hppa_discard_copies): New function.
1347 (elf32_hppa_size_dynamic_sections): New function.
1348 (elf_backend_size_dynamic_sections): Define.
1349 (elf32_hppa_finish_dynamic_symbol): New function.
1350 (elf_backend_finish_dynamic_symbol): Define.
1351 (elf32_hppa_size_stubs): Stash params in link hash table, and move
1352 some local vars into the link hash table too. For shared links,
1353 trundle over function syms, generating export stubs. Handle
1354 PCREL22F branches. Break out stub creation code from here..
1355 (hppa_add_stub): .. to here. New function.
1356 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
1357 call the bfd linker. Use elf_gp to record global pointer.
1358 Calculate a value from sections if $global$ is missing.
1359 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
1360 (elf32_hppa_gc_mark_hook): New function.
1361 (elf_backend_gc_mark_hook): Define.
1362 (elf32_hppa_gc_sweep_hook): New function.
1363 (elf_backend_gc_sweep_hook): Define.
1364 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
1365 Add rel to args, and remove howto, input_bfd, offset, addend,
1366 sym_name as we can recalculate these locally. Handle calls to
1367 dynamic objects, extra PIC relocs, PCREL22F branches. Change
1368 handling of undefined weak syms. Check that stubs are in range.
1369 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
1370 message on hitting a DPREL21L reloc that needs fixing. Subtract
1371 off PC for PCREL14F. Break out code that does a stub lookup from
1373 (hppa_get_stub_entry): ..to here. New function.
1374 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
1375 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
1377 (elf32_hppa_finish_dynamic_sections): New function.
1378 (elf_backend_finish_dynamic_sections): Define.
1379 (elf_backend_final_write_processing) Define.
1380 (hppa_handle_PIC_calls): New function.
1381 (elf32_hppa_build_stubs): Call it. Pass link_info to
1382 hppa_build_one_stub.
1383 (elf32_hppa_create_dynamic_sections): New function
1384 to create .plt and .got then set .plt flags correctly.
1385 (elf_backend_create_dynamic_sections): Define.
1386 (elf32_hppa_object_p): New function.
1387 (elf_backend_object_p): Define.
1388 (elf32_hppa_elf_get_symbol_type): New function.
1389 (elf_backend_get_symbol_type): Define.
1390 (elf_backend_can_gc_sections): Define.
1391 (elf_backend_want_got_plt): Define.
1392 (elf_backend_plt_alignment): Set to 2.
1393 (elf_backend_plt_readonly): Define.
1394 (elf_backend_want_plt_sym): Define.
1395 (elf_backend_got_header_size): Reserve one entry.
1397 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
1398 (elf32_hppa_size_stubs): Pass in multi_subspace.
1399 (elf32_hppa_set_gp): Declare.
1401 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
1402 (bfd_get_unique_section_name): New function.
1403 * bfd_in2.h: Regenerate.
1405 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
1406 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
1409 From David Huggins-Daines <dhd@linuxcare.com>
1410 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
1411 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
1412 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
1413 been updated in finish_dynamic_symbol before modifying function
1416 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
1417 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
1418 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
1419 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
1420 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
1421 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
1422 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
1423 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
1425 From David Huggins-Daines <dhd@linuxcare.com>
1426 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
1427 style of local labels as well.
1429 2000-09-03 Philip Blundell <philb@gnu.org>
1431 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
1432 references to undefined symbols in debugging sections.
1434 2000-09-02 H.J. Lu <hjl@gnu.org>
1436 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1437 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
1438 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
1441 2000-09-02 Jason Eckhardt <jle@cygnus.com>
1443 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
1444 (elf32_i860_is_local_label_name): New function and prototype.
1446 2000-09-02 Nick Clifton <nickc@redhat.com>
1448 * configure.in: Increase version number to 2.10.91.
1449 * configure: Regenerate.
1450 * aclocal.m4: Regenerate.
1451 * config.in: Regenerate.
1452 * po/bfd.pot: Regenerate.
1454 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1456 * elf.c (_bfd_elf_make_section_from_shdr): Add
1457 .gnu.linkobce.wi. to the list of debug section names.
1459 2000-09-02 Nick Clifton <nickc@redhat.com>
1461 * dwarf2.c (find_debug_info): New function: Locate a section
1462 containing dwarf2 debug information.
1463 (bfd_dwarf2_find_nearest_line): Find all sections containing
1464 debug information and include them in the stash.
1466 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1468 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
1469 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
1470 (sh_reloc_map): Add new relocs.
1471 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
1472 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
1473 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
1474 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
1476 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
1477 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1478 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
1479 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
1480 New array constants.
1481 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
1483 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1484 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
1485 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
1486 elf_sh_plt_reloc_offset): Define.
1487 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
1488 elf_sh_link_hash_table): New structs.
1489 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
1490 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
1492 (elf_backend_create_dynamic_sections,
1493 bfd_elf32_bfd_link_hash_table_create,
1494 elf_backend_adjust_dynamic_symbol,
1495 elf_backend_size_dynamic_sections,
1496 elf_backend_finish_dynamic_symbol,
1497 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1498 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1499 elf_backend_got_header_size, elf_backend_plt_header_size):
1501 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1502 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
1504 * bfd-in2.h, libbfd.h: Rebuilt.
1506 2000-09-01 Alan Modra <alan@linuxcare.com.au>
1508 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
1511 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
1513 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
1514 not initialized, set them to indicate the SH1 instruction set.
1516 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1518 * acinclude.m4: Include libtool and gettext macros from the
1520 * aclocal.m4, configure: Rebuilt.
1522 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
1524 * elf.c: Eliminate references to __sparcv9 macro; replace with
1525 autoconf variables HAVE_PSINFO32_T etc.
1526 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
1527 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
1529 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
1530 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
1531 * aclocal.m4: Ditto.
1532 * configure: Regenerate.
1534 2000-08-27 Alan Modra <alan@linuxcare.com.au>
1536 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
1537 for any shared link, not just shared -Bsymbolic.
1538 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
1539 any shared link, and pass link info to it.
1540 (elf_i386_size_dynamic_sections): Update comment.
1541 (elf_i386_discard_copies): Modify to discard relocs for symbols
1542 that have been forced local.
1543 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
1544 that have been forced local.
1546 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
1548 * elflink.h (elf_link_add_object_symbols): Allow common
1549 symbols to have an alignment of 1 if explicitly requested, and
1550 not overridden by other definitions.
1552 2000-08-22 Doug Kwan <dkwan@transmeta.com>
1554 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
1555 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
1557 2000-08-22 H.J. Lu <hjl@gnu.org>
1559 * elf-bfd.h (elf_link_hash_table): Add runpath.
1561 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
1562 * bfd-in2.h: Rebuilt.
1564 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
1565 "runpath" field to NULL.
1566 (bfd_elf_get_runpath_list): New function.
1568 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
1571 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
1573 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
1574 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
1575 explicitly. Improve validation of r_type.
1577 2000-08-21 H.J. Lu <hjl@gnu.org>
1579 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
1580 dynamic allocated content space. Add a comment to remind us that
1581 one day this ought to be fixed.
1582 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1583 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
1584 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1586 2000-08-21 Jason Eckhardt <jle@cygnus.com>
1588 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
1589 field with the newly relocated value instead of adding it to the
1590 existing immediate field.
1591 (elf32_i860_relocate_splitn): Likewise.
1592 (elf32_i860_relocate_highadj): Likewise.
1594 2000-08-16 Jason Eckhardt <jle@cygnus.com>
1596 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
1597 was previously just a stub).
1599 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
1601 * elflink.c (_bfd_elf_create_got_section): Don't abort().
1603 (_bfd_elf_create_dynamic_sections): Likewise.
1605 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
1607 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
1608 for undefined symbols to be the beginning of the section.
1610 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
1611 four extra entries at the beginning of the .rela.plt section.
1612 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
1613 section to account for the four reserved entries in the .plt section.
1615 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
1617 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
1618 to the list of NOPs we recognize after a branch-and-link.
1619 Use the ori NOP when one is needed.
1621 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
1624 2000-08-14 Jim Wilson <wilson@cygnus.com>
1626 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
1627 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
1628 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
1631 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
1633 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
1635 2000-08-10 Jason Eckhardt <jle@cygnus.com>
1637 * elf32-i860.c (elf32_i860_relocate_section): New function.
1638 (i860_final_link_relocate): New function.
1639 (elf32_i860_relocate_splitn): New function.
1640 (elf32_i860_relocate_pc16): New function.
1641 (elf32_i860_relocate_highadj): New function.
1642 (elf32_i860_howto): Minor adjustments to some relocations.
1643 (elf_info_to_howto_rel): Define.
1644 (elf_backend_relocate_section): Define.
1646 2000-08-10 Nick Clifton <nickc@cygnus.com>
1648 * elf32-arm.h: Fix formatting.
1650 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
1652 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
1654 2000-08-08 Jason Eckhardt <jle@cygnus.com>
1656 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
1658 2000-08-07 Kazu Hirata <kazu@hxi.com>
1660 * ieee.c (ieee_write_debug_part): Rewrite a comment.
1661 * elf64-ia64.c: Fix a typo.
1663 2000-08-05 Jason Eckhardt <jle@cygnus.com>
1665 * elf32-i860 (elf32_i860_howto_table): New structure.
1666 (lookup_howto): New function.
1667 (elf32_i860_reloc_type_lookup): New function.
1668 (elf32_i860_info_to_howto_rela): New function.
1669 (elf_code_to_howto_index): New structure.
1670 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
1671 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
1672 elf32_i860_reloc_type_lookup.
1674 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
1676 * som.c (struct fixup_format): Constify `format'.
1677 (som_hppa_howto_table): Use SOM_HOWTO macro.
1678 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
1679 (som_bfd_reloc_type_lookup): Likewise.
1680 (compare_subspaces): Remove unused `count1', `count2'.
1681 (som_begin_writing): Remove unused `total_reloc_size'.
1682 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
1683 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
1684 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
1685 (som_find_nearest_line): Decorate unused parameter(s).
1686 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
1687 (som_bfd_link_split_section): Likewise.
1689 2000-08-03 Nick Clifton <nickc@cygnus.com>
1691 * section.c: Restore backed out code.
1692 * elf.c: Restore backed out code.
1693 (copy_private_bfd_data): Fix bug preventing stipped dynamic
1694 binaries from working.
1695 * bfd-in2.h: Regenerate.
1697 2000-08-03 H.J. Lu <hjl@gnu.org>
1699 * section.c: Back out the change made by Nick Clifton
1700 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
1702 * bfd-in2.h: Likewise.
1705 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
1707 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
1709 2000-07-31 Jason Eckhardt <jle@cygnus.com>
1711 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
1712 * bfd-in2.h, libbfd.h: Regenerate.
1714 2000-07-31 Nick Clifton <nickc@cygnus.com>
1716 * section.c (struct sec): Add new boolean field 'segment_mark'.
1717 (STD_SECTION): Initialise new field to zero.
1719 * bfd-in2.h: Regenerate.
1721 * elf.c (copy_private_bfd_data): Reorganise section to segment
1722 mapping to cope with moved sections requiring new segments,
1723 and overlapping segments.
1724 (SEGMENT_END): New macro: Return the end address of a segment.
1725 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
1726 contains a section by comparing their VMA addresses.
1727 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
1728 contains a section by comparing their LMA addresses.
1729 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
1730 section should be included in a segment.
1731 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
1732 follows another in memory.
1733 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
1736 2000-07-22 Jason Eckhardt <jle@cygnus.com>
1738 * cpu-i860.c: Added comments.
1740 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
1741 bfd_elf32_i860_little_vec.
1742 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
1743 (ELF_MAXPAGESIZE): Changed to 4096.
1745 * targets.c (bfd_elf32_i860_little_vec): Declaration of
1747 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
1749 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
1750 config for little endian elf32 i860.
1751 (targ_defvec): Define for the new config above
1752 as "bfd_elf32_i860_little_vec".
1753 (targ_selvecs): Define for the new config above
1754 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
1756 * configure.in (bfd_elf32_i860_little_vec): Added recognition
1759 * configure: Regenerated.
1761 2000-07-27 H.J. Lu <hjl@gnu.org>
1763 * elflink.h (elf_merge_symbol): Take one more argument,
1764 dt_needed, to indicate if the symbol comes from a DT_NEEDED
1765 entry. Don't overide the existing weak definition if dt_needed
1767 (elf_link_add_object_symbols): Pass dt_needed to
1768 elf_merge_symbol ().
1770 2000-07-27 Nick Clifton <nickc@cygnus.com>
1772 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
1775 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
1777 * configure.host (*-*-aix*): AIX has 'long long' always.
1779 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
1780 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
1781 (xcoff_write_archive_contents_big): Don't update the offset
1782 of the symbol table, xcoff_write_armap will do it.
1784 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
1786 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
1787 of dynobj for SGI_COMPAT checks.
1789 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1791 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
1792 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
1793 * bfd-in2.h: Regenerate.
1795 2000-07-21 Nick Clifton <nickc@cygnus.com>
1797 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
1798 range symbol indices in relocs and issue an error message.
1800 2000-07-20 H.J. Lu <hjl@gnu.org>
1802 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
1803 info->new_dtags when setting DT_FLAGS_1. It will only be set
1804 by the new linker options. It shouldn't break anything.
1806 2000-07-20 H.J. Lu <hjl@gnu.org>
1808 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
1809 only if info->new_dtags is true.
1811 2000-07-20 H.J. Lu <hjl@gnu.org>
1813 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
1814 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
1816 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
1818 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
1819 (ALL_MACHINES_CFILES): Add cpu-cris.c.
1820 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
1821 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
1822 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
1823 * Makefile.in: Rebuild.
1824 * aclocal.m4: Rebuild.
1825 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
1826 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
1827 (bfd_cris_arch): Declare.
1828 (bfd_archures_list): Add bfd_cris_arch.
1829 * bfd-in2.h: Rebuild.
1830 * config.bfd: (cris-*-*): New target.
1831 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
1832 * configure: Rebuild.
1833 * elf.c (prep_headers): Add bfd_arch_cris.
1834 * libbfd.h: Rebuild.
1835 * libaout.h (enum machine_type): Add M_CRIS.
1836 * reloc.c: Add CRIS relocations.
1837 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
1838 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
1839 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
1840 * po/POTFILES.in, po/bfd.pot: Regenerate.
1842 2000-07-19 H.J. Lu <hjl@gnu.org>
1844 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
1845 DF_TEXTREL if DT_TEXTREL is set.
1846 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
1847 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
1848 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1849 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
1850 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
1851 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
1852 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
1853 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1854 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
1855 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
1857 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
1858 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
1860 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
1862 2000-07-19 H.J. Lu <hjl@gnu.org>
1864 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
1865 * bfd-in2.h: Rebuild.
1867 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
1868 (elf_dt_soname): New.
1870 * elf.c (bfd_elf_set_dt_needed_soname): New.
1872 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
1873 entry if the shared object loaded by DT_NEEDED is used to
1874 resolve the reference in a regular object.
1876 2000-07-19 H.J. Lu <hjl@gnu.org>
1878 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
1879 DT_DEPAUDIT and DT_AUDIT as strings.
1881 2000-07-19 Nick Clifton <nickc@cygnus.com>
1883 * format.c: Fix formatting.
1885 2000-07-19 H.J. Lu <hjl@gnu.org>
1887 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
1889 2000-07-19 H.J. Lu <hjl@gnu.org>
1891 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
1892 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
1893 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
1894 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
1895 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
1896 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
1897 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
1899 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
1901 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
1902 renamed functions from here...
1903 (assign_section_numbers): Use renamed functions.
1904 (prep_headers): Use renamed functions.
1906 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
1907 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
1908 * bfd-in2.h: Regenerate.
1910 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
1912 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
1913 parenthesis in if statement.
1915 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
1917 Enable the support for Traditional MIPS.
1918 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
1919 return ict_none appropriately for traditional mips targets.
1920 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
1921 (STUB_MOVE): Conditionalize for traditonal mips.
1922 (STUB_LI16): Likewise.
1923 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
1924 room for RTPROC header.
1925 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
1926 the permission for the PT_DYNAMIC as read, write and execute.
1927 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
1928 for traditonal mips.
1929 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
1930 _DYNAMIC_LINKING for traditonal mips.
1931 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
1932 in case of traditonal mips.
1933 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
1934 entry is required. For a function if PLT is not required then set the
1935 corresponding hash table entry to 0.
1936 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
1938 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
1939 shared object set the value to 0.
1940 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
1941 _DYNAMIC_LINKING for traditonal mips.
1942 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
1943 for traditonal mips.
1945 2000-07-15 H.J. Lu <hjl@gnu.org>
1947 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
1949 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
1951 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
1952 out a structure that is BFD_IN_MEMORY.
1954 2000-07-11 Alan Modra <alan@linuxcare.com.au>
1956 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
1957 bfd pointer. Print section id instead of bfd pointer for local
1958 syms. Prefix addend with `+' for global syms as well as local.
1959 Correct calculation of name component lengths.
1960 (elf64_hppa_check_relocs): Update call to get_dyn_name.
1962 From David Huggins-Daines <dhd@linuxcare.com>
1963 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
1964 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
1965 (elf64_hppa_modify_segment_map): Likewise.
1967 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
1969 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
1970 addresses to be "naturally" sign extended. Return -1 if unknown.
1971 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
1972 * bfd-in2.h: Regenerate.
1974 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
1976 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
1977 and ECOF_SIGNED_64 to list ways to extract an offset.
1978 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
1979 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
1981 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
1982 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
1984 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
1986 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
1987 bfd_get_start_address.
1988 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
1989 (elf_swap_ehdr_out): Ditto.
1991 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
1993 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
1994 compatibility with older binutils.
1996 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1998 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
1999 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2001 From Ryan Bradetich <rbradetich@uswest.net>
2002 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2003 (parse_line_table): Ditto.
2004 (_bfd_dwarf1_find_nearest_line): Ditto.
2005 * syms.c (cmpindexentry): Remove extra `*' from params.
2007 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
2009 * elf32-mips.c (sort_dynamic_relocs): New Function.
2010 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2011 via qsort to sort the dynamic relocations in increasing r_symndx
2014 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2016 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2017 ATTRIBUTE_UNUSED to unused args.
2018 (get_opd): Likewise.
2019 (get_plt): Likewise.
2020 (get_dlt): Likewise.
2021 (get_stub): Likewise.
2022 (elf64_hppa_adjust_dynamic_symbol): Likewise.
2023 (elf64_hppa_link_output_symbol_hook): Likewise.
2024 (elf64_hppa_check_relocs): Delete unused var.
2025 (elf64_hppa_size_dynamic_sections): Likewise.
2026 (elf64_hppa_finalize_opd): Likewise.
2027 (elf64_hppa_finalize_dynreloc): Likewise.
2028 (elf64_hppa_modify_segment_map): Likewise.
2029 (elf64_hppa_finish_dynamic_sections): Likewise.
2031 * elf-hppa.h (elf_hppa_final_write_processing): Add
2032 ATTRIBUTE_UNUSED to unused args.
2033 (elf_hppa_final_link_relocate): Likewise.
2034 (elf_hppa_record_segment_addrs): Add paretheses.
2035 (elf_hppa_relocate_section): Constify dyn_name.
2037 From David Huggins-Daines <dhd@linuxcare.com>
2038 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2039 rearrange case statement so that it gets preferred to 32-bit ones.
2041 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2042 asection->id instead of address of asection structure.
2043 (elf32_hppa_size_stubs): Likewise.
2045 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2046 for .init* and .fini*.
2048 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2049 and addends used in stub names to 32 bits.
2050 (elf32_hppa_size_stubs): Likewise.
2052 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2053 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
2054 not bfd_put_64. Fix minor comment typo and formatting.
2056 Changes to create multiple linker stubs, positioned immediately
2057 before the section where they are required.
2058 * elf32-hppa.c: Don't include hppa_stubs.h.
2059 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2060 (elf32_hppa_stub_hash_table): Delete.
2061 (elf32_hppa_link_hash_entry): Delete.
2062 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2063 stub_hash_table, and store the struct here rather than a pointer.
2064 Delete output_symbol_count. Add offset array. Change
2065 global_value to a bfd_vma.
2066 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2067 (elf32_hppa_stub_hash_traverse): Delete.
2068 (elf32_hppa_name_of_stub): Delete.
2069 (elf32_hppa_link_hash_lookup): Delete.
2070 (elf32_hppa_link_hash_traverse): Delete.
2071 (elf32_hppa_stub_hash_table_init): Delete.
2072 (elf32_hppa_size_of_stub): Pass input section and offset rather
2073 than location and calculate location here. Don't pass name as all
2074 stubs are now the same size.
2075 (elf32_hppa_stub_hash_newfunc): Init new fields.
2076 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2078 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2079 comparing against ints. Rewrite stub handling code.
2080 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2081 Case enums to int before comparing against ints. Remove
2082 bfd_reloc_dangerous case.
2083 (elf32_hppa_build_one_stub): Rewrite.
2084 (elf32_hppa_size_one_stub): New function.
2085 (elf32_hppa_build_stubs): Rewrite.
2086 (elf32_hppa_size_stubs): Pass in linker call-back functions.
2087 Rewrite stub-handling specific code.
2089 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2091 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2093 * hppa_stubs.h: Delete.
2094 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2095 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2096 * Makefile.in: Regenerate.
2098 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2101 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2103 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2104 and section name for bfd_reloc_notsupported error message.
2105 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2106 bfd_reloc_notsupported.
2107 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2109 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2110 undefined weak symbols for all relocs.
2111 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2112 offsets are relative to one past the delay slot.
2113 (elf32_hppa_size_stubs): Account for reloc addend when calculating
2114 branch destination. Put addend into stub name too.
2115 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2116 adjust by 8 when deciding whether a linker stub is needed. Put
2117 addend into stub name as for above.
2119 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2120 various args and vars.
2121 (elf32_hppa_bfd_final_link_relocate): Here too.
2122 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
2123 inner block var to avoid shadowing.
2125 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
2127 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2128 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2129 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
2131 * libhppa.h: Change practically all unsigned ints to plain ints.
2132 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
2135 From Ryan Bradetich <rbradetich@uswest.net>
2136 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
2137 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2139 From David Huggins-Daines <dhd@linuxcare.com>
2140 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2141 to the new OP_* ones.
2143 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2144 error exit. Bail out earlier on plabel relocs that we aren't
2145 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
2146 string, and then don't free our copy.
2147 (elf32_hppa_build_one_stub): Make insn unsigned int.
2149 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2150 available with BL, not BE and BLE.
2152 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2153 code for elf arg relocs.
2154 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2155 argument with elf_link_hash_entry h. Handle undefined weak
2156 symbols. Move $global$ lookup from here...
2157 (elf32_hppa_relocate_section): ...to here. Return correct error
2158 message for non-handled relocs.
2159 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
2160 wrong test was -0x3ffff to +0x40000.
2162 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2163 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
2164 Handle them as such.
2165 (elf_hppa_relocate_insn): Fix a typo.
2167 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
2168 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2169 assemble_17, assemble_21): Delete.
2170 Supply defines for all 64 possible opcodes.
2171 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
2172 formats. Handle COMICLR.
2173 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
2176 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
2177 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
2178 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
2180 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
2181 the local syms - did this code get deleted accidentally? Ignore
2182 undefined and undefweak syms.
2184 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
2185 block. Use it instead of elf64_hppa_hash_table (info).
2186 (elf_hppa_final_link_relocate): Use hppa_info instead of
2187 elf64_hppa_hash_table (info).
2189 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2190 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2191 (hppa_rebuild_insn): Mask immediate bits here instead.
2192 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2194 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2196 * section.c (struct sec): Add id field. Tidy comment formatting.
2197 (bfd_make_section_anyway): Set id.
2198 (STD_SECTION): Init id too.
2199 Change CONST to const throughout.
2200 * archures.c (bfd_arch_info): Tidy comment.
2201 (bfd_arch_list): Change a CONST to const.
2202 * libbfd-in.h: Tidy comments and replace CONST with const.
2203 * elf-bfd.h: Likewise.
2204 * libbfd.h: Regenerate.
2205 * bfd-in2.h: Regenerate.
2206 * libcoff.h: Regenerate.
2208 2000-07-07 DJ Delorie <dj@redhat.com>
2210 * archive.c (_bfd_write_archive_contents): Add an informative
2213 2000-07-06 Kazu Hirata <kazu@hxi.com>
2215 * srec.c: Fix formatting.
2217 2000-06-05 DJ Delorie <dj@redhat.com>
2221 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
2223 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
2224 value of PC-relative offsets.
2226 2000-07-03 Jim Wilson <wilson@cygnus.com>
2228 * elf64-alpha.c (alpha_elf_size_info): New.
2229 (elf_backend_size_info): Define to alpha_elf_size_info.
2230 * elfcode.h (elf_size_info): Change hash bucket size to 4.
2232 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
2234 * elf32-mips.c: Include elf32-target.h again for the traditional
2237 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
2239 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
2240 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
2241 (avr_info_to_howto_rela): Likewise.
2242 (elf32_avr_gc_mark_hook): Likewise.
2243 (elf32_avr_gc_sweep_hook): Likewise.
2244 (elf32_avr_relocate_section): Likewise.
2246 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
2248 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
2249 an external symbol for a non-shared, non-relocatable link.
2251 2000-07-03 Nick Clifton <nickc@redhat.com>
2253 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2254 is an external symbol.
2255 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2258 2000-07-03 Kazu Hirata <kazu@hxi.com>
2260 * reloc16.c: Fix formatting.
2262 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2264 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
2265 to add a new target for traditional mips i.e
2266 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
2267 * configure.in: Likewise.
2268 * configure: Rebuild.
2269 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
2271 (bfd_elf32_tradlittlemips_vec): Likewise.
2272 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
2273 to see that elfNN_bed does not get redefined even if the target file
2274 is included twice for a chip. See elf32-mips.c.
2276 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2278 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2279 (CLEANFILES): Add DEPA.
2280 * Makefile.in: Regenerate.
2282 2000-06-30 DJ Delorie <dj@cygnus.com>
2284 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
2285 can't assume the PE header is at 0x80.
2287 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2289 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2291 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
2293 * go32stub.h: Update stub.
2295 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2297 * archures.c (bfd_mach_avr5): Define.
2298 * bfd-in2.h (bfd_mach_avr5): Define.
2299 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
2300 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
2301 (compatible): Update comment. Add missing test.
2302 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
2303 for avr2 and avr4. Simplify 8K wrap code.
2304 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
2305 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2307 2000-06-26 Kazu Hirata <kazu@hxi.com>
2309 * coff-h8300.c: Fix formatting.
2310 * cpu-h8300.c: Likewise.
2312 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
2314 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
2315 for local symbols whose names are unknown.
2317 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2319 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2321 * Makefile.in: Regenerate.
2322 * doc/Makefile.in: Regenerate.
2324 2000-06-20 H.J. Lu <hjl@gnu.org>
2326 * Makefile.am: Rebuild dependency.
2327 * Makefile.in: Rebuild.
2329 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2331 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
2332 (elf_backend_copy_indirect_symbol): Map to the new function.
2334 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2336 * archive.c (normalize): Correct pointer comparison when checking
2338 (bfd_bsd_truncate_arname): Likewise.
2339 (bfd_gnu_truncate_arname): Likewise.
2341 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
2343 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
2344 sections elf_{text,data}_{section,symbol}.
2345 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
2346 (_bfd_mips_elf_hide_symbol): New function.
2347 (elf_backend_hide_symbol): Map to the new function.
2348 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
2349 definitions of mips_elf_{text,data}_{section,symbol}.
2350 (mips_elf_local_relocation_p): Try to find the direct symbol
2351 based on new check_forced argument.
2352 (mips_elf_calculate_relocation): Use new version of
2353 mips_elf_local_relocation_p.
2354 (mips_elf_relocate_section): Likewise.
2355 (_bfd_mips_elf_relocate_section): Likewise.
2356 (mips_elf_sort_hash_table): Only assert that have enough GOT
2358 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
2359 entry if the relocation based on the new external argument.
2360 (mips_elf_create_dynamic_relocation): Assert that we have a
2361 section contents allocated where we can swap out the dynamic
2363 (mips_elf_calculate_relocation): Find the real hash-table entry
2364 correctly by using h->root.root.type. Only create a dynamic
2365 relocation entry if the symbol is defined in a shared library.
2366 Create an external GOT entry for the GOT16 relocation if the
2367 symbol was forced local.
2368 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
2369 dynamic index if the symbol was forced local.
2371 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2373 * elf32-mips.c: Fix typos in comments.
2375 2000-06-19 Mark Kettenis <kettenis@gnu.org>
2377 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2380 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2382 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
2383 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
2384 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
2385 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
2386 (bfd_elf32_m68hc11_vec): Likewise.
2387 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
2388 Supports 68hc11 & 68hc12 at the same time.
2389 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
2391 (bfd_elf32_m68hc11_vec): Likewise.
2392 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
2393 * archures.c (bfd_m68hc12_arch): Define and register in global list
2394 (bfd_m68hc11_arch): Likewise.
2395 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
2396 BFD_RELOC_M68HC11_3B): Define.
2397 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
2398 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2400 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
2402 * elf_bfd.h (struct elf_backend_data): Add info argument to
2403 elf_backend_hide_symbol.
2404 (_bfd_elf_link_hash_hide_symbol): Likewise.
2405 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
2406 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
2407 * elflink.h (elf_link_add_object_symbols): Likewise.
2408 (elf_link_assign_sym_version): Likewise.
2410 2000-06-18 H.J. Lu <hjl@gnu.org>
2412 * coff-i386.c (coff_i386_reloc): Don't return in case of
2413 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
2414 Compensate PE relocations when linking with non-PE object
2415 files to generate a non-PE executable.
2417 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
2419 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
2420 GOT entries if we're doing a static link or -Bsymbolic link.
2422 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
2424 * elflink.h (elf_link_adjust_relocs): Check for and call backend
2425 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
2427 (elf_link_output_relocs): Likewise.
2428 (elf_reloc_link_order): Likewise.
2430 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2432 * archures.c (enum bfd_architecture): #define constants for
2433 PowerPc and RS6000 machine numbers.
2434 * bfd-in2.h: Regenerate.
2435 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
2436 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
2437 and RS6000 machine numbers using #defined constants from
2439 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
2440 machine numbers using #defined constants from archures.c. Add
2441 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
2442 64-bit words in 620 entry.
2443 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
2445 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
2447 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
2449 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
2450 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
2451 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
2453 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2455 * bfd-in.h (bfd_family_coff): Define.
2456 * bfd-in2.h: Regenerate.
2457 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
2458 coff_find_nearest_line): Check COFFness using bfd_family_coff()
2459 instead of bfd_target_coff_flavour.
2460 * cofflink.c (_bfd_coff_final_link): Likewise.
2461 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
2462 exclude XCOFF files.
2463 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
2465 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
2466 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
2467 * xcofflink.c (XCOFF_XVECP): Delete.
2468 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
2469 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
2470 bfd_xcoff_record_link_assignment,
2471 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
2472 check for bfd_target_xcoff_flavour.
2474 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2476 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
2478 (read_hdr): New function.
2479 (rs6000coff_core_p): Store mstsave or __context64 struct instead
2480 of trying to extract individual registers. Set abfd->arch_info
2481 to match the architecture that created the core file.
2482 (rs6000coff_get_section_contents): Delete.
2483 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
2485 2000-06-14 H.J. Lu <hjl@gnu.org>
2487 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
2490 2000-06-13 H.J. Lu <hjl@gnu.org>
2492 * configure: Regenerate.
2494 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
2496 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
2499 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2501 * configure.in (VERSION): Update to show this is the CVS mainline.
2503 2000-06-07 Alan Modra <alan@linuxcare.com.au>
2505 * elf32-d10v.c: Include elf/d10v.h
2506 (enum reloc_type): Delete.
2507 * elf32-d30v.c: Include elf/d30v.h
2508 (enum reloc_type): Delete.
2510 * Makefile.am: Run "make dep-am" to regenerate dependencies.
2511 * Makefile.in: Regenerate.
2513 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
2514 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
2515 move HOWTOs into elf_howto_table.
2516 (R_386_standard, R_386_ext_offset): Define.
2517 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
2518 (elf_i386_reloc_type_lookup): Modify calculation of index into
2519 elf_howto_table since we've removed the padding.
2520 (elf_i386_info_to_howto_rel): Likewise.
2521 (elf_i386_relocate_section): Likewise.
2523 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
2525 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
2527 2000-06-05 H.J. Lu <hjl@gnu.org>
2529 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
2530 an error when seeing an undefined symbol with hidden/internal
2531 attribute. It is handled in *_relocate_section ().
2533 2000-06-05 H.J. Lu <hjl@gnu.org>
2535 * elflink.h (elf_fix_symbol_flags): Follow the link for the
2536 indirect symbol for the ELF_LINK_NON_ELF bit.
2537 (elf_link_output_extsym): Don't output the indirect symbol even
2538 if the ELF_LINK_NON_ELF bit is set.
2540 2000-06-01 J.T. Conklin <jtc@redback.com>
2542 * config.bfd (i[3456]86-*-netbsdelf*): New target.
2543 (i[3456]86-*-netbsdaout*): New target.
2544 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
2545 (i[3456]86-*-openbsd*): Likewise.
2547 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
2549 * trad-core.c: From hpux-core.c, include <dirent.h> or
2550 <sys/ndir.h> when possible.
2552 2000-05-31 Nick Clifton <nickc@cygnus.com>
2554 * opintl.h (_(String)): Explain why dgettext is used instead
2557 2000-05-31 Ulrich Drepper <drepper@redhat.com>
2559 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
2560 definitions. We must not assume they are sorted in the file
2561 according to their index numbers.
2563 2000-05-31 Alan Modra <alan@linuxcare.com.au>
2565 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
2566 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
2567 R_PARISC_DIR17F are for absolute branches; Handle them as such.
2569 2000-05-30 Nick Clifton <nickc@cygnus.com>
2571 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
2572 80960CA, 80960MC as valid machine names.
2574 2000-05-30 H.J. Lu <hjl@gnu.org>
2576 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
2577 visibility bits if the symbol is undefined. Correctly handle
2578 weak undefined symbols with hidden and internal attributes.
2580 * elflink.h (elf_link_add_object_symbols): Always turn the
2581 symbol into local if it has the hidden or internal attribute.
2583 2000-05-29 Philip Blundell <philb@gnu.org>
2585 * ppcboot.c: Add packed attribute if compiling with GCC.
2587 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
2589 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
2591 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
2593 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
2594 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
2595 corefile on a 64-bit (Sparc Solaris) host. Also clean up
2598 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2600 * Makefile.am: Update dependencies with "make dep-am"
2601 * Makefile.in: Regenerate.
2603 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
2604 bindtextdomain): Replace defines with those from intl/libgettext.h
2605 to quieten gcc warnings.
2607 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2609 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
2611 * archive.c (normalize, bfd_bsd_truncate_arname,
2612 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
2613 file names with backslashes.
2615 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
2618 * sysdep.h: Include filenames.h.
2620 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2622 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
2624 2000-05-26 Jakub Jelinek <jakub@redhat.com>
2626 * elf64-sparc.c (sparc64_elf_relax_section): New.
2627 (sparc64_elf_relocate_section): Optimize tail call into branch always
2629 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2630 (elf32_sparc_relax_section): New.
2632 2000-05-26 Jakub Jelinek <jakub@redhat.com>
2634 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
2635 Remove unusued variables.
2636 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
2637 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
2638 previous fix, so that shared libs really don't influence targets
2639 extension mask and memory model.
2641 2000-05-23 H.J. Lu <hjl@gnu.org>
2643 * elf64-alpha.c (elf64_alpha_relocate_section): Check
2644 h->root.other not h->other.
2645 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2647 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
2649 2000-05-23 H.J. Lu <hjl@gnu.org>
2651 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
2652 undefined symbol with the non-default visibility attributes.
2653 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
2654 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
2655 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2656 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2657 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
2658 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2659 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2660 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2661 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
2662 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
2663 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2665 2000-05-22 Richard Henderson <rth@cygnus.com>
2667 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
2668 PCREL22, PCREL64I. Zero size of special relocs.
2669 (elf64_ia64_reloc_type_lookup): Likewise.
2670 (USE_BRL, oor_brl, oor_ip): New.
2671 (elf64_ia64_relax_section): New.
2672 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
2673 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
2674 (elf64_ia64_relocate_section): Likewise.
2675 (bfd_elf64_bfd_relax_section): New.
2676 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
2677 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
2678 * bfd-in2.h, libbfd.h: Regenerate.
2680 2000-05-22 Nick Clifton <nickc@cygnus.com>
2682 * configure.in : Add peigen.lo to MIPS PE targets.
2683 * configure: Regenerate.
2685 2000-05-22 Momchil Velikov <velco@fadata.bg>
2687 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
2688 only if it is known for both input and output bfds. Separate
2689 error message strings as in some languages, it may be necessary
2690 to change more than one place in the string to change between
2693 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
2694 endianess checks, call _bfd_generic_verify_endian_match() instead.
2696 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
2698 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
2700 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
2701 endianess before checking bfd flavours.
2703 2000-05-22 H.J. Lu <hjl@gnu.org>
2705 * elflink.h (elf_link_output_extsym): Clear the visibility
2706 field for symbols not defined locally.
2708 2000-05-18 Alan Modra <alan@linuxcare.com.au>
2710 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2711 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2712 (hppa_rebuild_insn): Mask immediate bits here instead.
2713 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2715 2000-05-18 Momchil Velikov <velco@fadata.bg>
2717 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
2718 relocs for an executable, ensure that they are virtual addresses.
2720 2000-05-18 Jeffrey A Law (law@cygnus.com)
2722 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
2724 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
2725 Rick Gorton <gorton@scrugs.lkg.dec.com>
2727 * elflink.h: Add emitrelocations support: when enabled, relocation
2728 information and relocation sections are put into final output
2729 executables. If the emitrelocations flag is set, do the following:
2730 (elf_bfd_final_link): Emit relocation sections.
2731 (elf_link_input_bfd): Compute relocation section contents.
2732 (elf_gc_sections): Don't clean relocation sections.
2734 2000-05-16 Catherine Moore <clm@cygnus.com>
2736 * som.c (som_decode_symclass): Recognize weak symbols.
2738 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
2740 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
2741 read idata section only from dataoff.
2742 (pe_print_edata): Correctly check for valid eat_member.
2744 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
2746 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
2748 2000-05-14 Philip Blundell <philb@gnu.org>
2750 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
2752 2000-05-12 Alan Modra <alan@linuxcare.com.au>
2754 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
2756 * peigen.c (pe_print_idata): Look for .idata section and print
2757 info even if data directory has zero entries. Read idata section
2758 starting from dataoff, and adjust all data offsets to suit. Cast
2759 all bfd_vma vars to unsigned long before passing to fprintf.
2760 * peigen.c (pe_print_edata): Similarly, look for .edata section
2761 and print info even if data directory has zero entries. Cast
2762 all bfd_vma vars to unsigned long before passing to fprintf.
2764 From Szabolcs Szakacsits <szaka@F-Secure.com>
2765 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
2766 directory size which may be bogus.
2767 * peigen.c (pe_print_edata): Similarly.
2769 2000-05-09 Alan Modra <alan@linuxcare.com.au>
2771 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
2773 (copy_private_bfd_data): Allow for space possibly taken up by elf
2774 headers when calculating segment physical address from lma.
2776 2000-05-08 Alan Modra <alan@linuxcare.com.au>
2778 * versados.c (versados_scan): Init stringlen and pass_2_done.
2780 * trad-core.c (trad_unix_core_file_p): Return
2781 bfd_error_wrong_format rather than bfd_error_file_truncated.
2783 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
2784 add_data_entry. DataDirectory virtual address is relative.
2785 (pe_print_idata): Account for relative DataDirectory virtual
2786 addresses. Don't trash datasize inside POWERPC_LE_PE code.
2787 (pe_print_edata): Similarly.
2789 From Szabolcs Szakacsits <szaka@F-Secure.com>
2790 * peigen.c (dir_names): Add Delay Import Directory.
2791 (pe_print_idata): Always search for bfd section containing
2792 idata address rather than looking up section name. Print this
2793 section name rather than .idata.
2794 (pe_print_edata): Similarly. Also print some fields as %08lx.
2795 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
2798 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
2800 * xcoff.h: Rename to xcoff-target.h
2801 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
2802 * coff-rs6000.c: Ditto.
2803 * coff64-rs6000.c: Ditto.
2804 * coff-pmac.c: Ditto.
2805 * Makefile.in: Regenerate.
2807 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
2809 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
2810 Change U802TOC64MAGIC to U803XTOCMAGIC.
2812 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
2814 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
2815 * bfd-in.h: Prototype bfd_elf_get_arch_size.
2816 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
2818 2000-05-04 Alan Modra <alan@linuxcare.com.au>
2820 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
2822 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
2824 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
2825 hidden and internal symbols.
2826 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
2828 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
2829 assign a PLT or GOT entry to symbols with hidden and
2830 internal visibility.
2832 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
2834 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
2836 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2838 2000-05-02 H.J. Lu <hjl@gnu.org>
2840 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
2843 2000-05-02 Alan Modra <alan@linuxcare.com.au>
2845 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
2846 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
2848 * Makefile.in: Regenerate.
2850 2000-05-01 Jim Wilson <wilson@cygnus.com>
2852 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
2853 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
2854 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
2855 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
2856 * Makefile.in: Rebuild.
2858 2000-05-02 Alan Modra <alan@linuxcare.com.au>
2860 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
2861 doesn't work very well.
2863 * elf-hppa.h (elf_hppa_internal_shdr): Define.
2864 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
2865 Set hdr->s_type to 1 if ARCH_SIZE == 32.
2866 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
2867 (elf_hppa_info_to_howto): Likewise.
2868 (elf_hppa_info_to_howto_rel): Likewise.
2869 (elf_hppa_reloc_type_lookup): Likewise.
2870 (elf_hppa_is_local_label_name): Likewise.
2871 (elf_hppa_fake_sections): Likewise.
2872 (elf_hppa_final_write_processing): Likewise.
2873 (elf_hppa_howto_table): Fully initialise all entries.
2874 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
2875 (elf_hppa_info_to_howto): Likewise.
2876 (elf_hppa_info_to_howto_rel): Likewise.
2877 (elf_hppa_reloc_type_lookup): Likewise.
2878 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
2879 elf_hppa_unmark_useless_dynamic_symbols,
2880 elf_hppa_remark_useless_dynamic_symbols,
2881 elf_hppa_record_segment_addrs, elf_hppa_final_link,
2882 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
2883 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
2884 elf32-hppa.c mess is cleaned up.
2885 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
2886 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
2887 r_field then call hppa_field_adjust inline func with variable
2888 r_field arg, instead call hppa_field_adjust with fixed arg.
2889 In case R_PARISC_PCREL22F, don't set r_field.
2890 (elf_hppa_relocate_insn): Change args and return type to unsigned
2891 int. Call re_assemble_* funcs to do the work.
2893 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
2896 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
2898 (sign_extend): Mask first before sign extending.
2899 (low_sign_extend): Rewrite without condition expression.
2900 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
2901 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
2902 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2903 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
2904 result as function return value rather than through pointer arg.
2905 Accept unsigned int args, and return unsigned int.
2906 (re_assemble_3): New. Combines function of dis_assemble_3 with
2907 re-assembly of opcode and immediate.
2908 (re_assemble_12): Likewise.
2909 (re_assemble_16): Likewise.
2910 (re_assemble_17): Likewise.
2911 (re_assemble_21): Likewise.
2912 (re_assemble_22): Likewise.
2913 (hppa_field_adjust): Rewrite and document, paying attention to
2914 size of types and signed/unsigned issues.
2915 (get_opcode): Shift before masking.
2916 (FDLW): Rename to FLDW.
2917 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
2918 (hppa_rebuild_insn): Change args and return value to unsigned
2919 int. Make use of re_assemble_*. Correct case 11.
2921 * dep-in.sed: Handle ../opcodes/.
2922 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
2923 elf64-hppa.h, hppa_stubs.h, xcoff.h.
2924 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
2925 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
2926 elfarm-nabi.lo dependencies outside of auto-dependency area.
2927 Regenerate dependencies.
2928 * Makefile.in: Regenerate.
2930 * configure.in (TRAD_HEADER): Test non-null before
2932 * configure: Regenerate.
2934 * reloc.c: Fix mis-spelling in comment.
2936 2000-05-01 Alan Modra <alan@linuxcare.com.au>
2938 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
2939 * vms.c (vms_openr_next_archived_file): Return NULL.
2941 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
2943 * coffcode.h Copy changes mistakenly done to libcoff.h in
2946 2000-04-29 Andreas Jaeger <aj@suse.de>
2948 * libbfd-in.h: Correctly check GCC version.
2949 * bfd-in.h: Likewise.
2950 * libhppa.h: Likewise.
2951 * libbfd.h: Regenerate.
2952 * bfd-in2.h: Regenerate.
2954 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
2956 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
2957 coffdu-rs6000.{lo,c}.
2958 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
2960 * Makefile.in: Regenerate.
2961 * xcoff.h: New file.
2962 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
2963 * coff-rs6000.c: Move all declarations and defines that are
2964 common to the xcoff backends into xcoff.h
2965 * coff64-rs6000.c: Ditto,
2967 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
2969 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
2970 _bfd_coff_force_symnames in strings and
2971 _bfd_coff_debug_string_prefix_length to their default values.
2972 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
2974 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
2976 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
2977 _bfd_coff_force_symnames in strings and
2978 _bfd_coff_debug_string_prefix_length to their default values.
2980 2000-04-27 Alan Modra <alan@linuxcare.com.au>
2982 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
2983 Check local_got_refcounts before dereferencing.
2985 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
2986 before deciding we don't need R_PPC_PLT32 relocation.
2987 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
2990 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
2992 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
2994 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
2995 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
2996 (elf_i386_relocate_section): Allow for .plt to go missing.
2997 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
2998 can use a relative reloc for got as elf_i386_relocate_section.
2999 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3001 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3003 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3005 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3007 * Makefile.am (coff64-rs6000.lo): New rule.
3008 * Makefile.in: Regenerate.
3009 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3010 xcoff_is_local_label_name, xcoff_rtype2howto,
3011 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3012 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3013 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3014 (NO_COFF_SYMBOLS): Define.
3015 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3016 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3018 (MINUS_ONE): New macro.
3019 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3021 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3022 coff_SWAP_aux_out): Map to the new functions.
3023 * coff64-rs6000.c: New file.
3024 * libcoff.h (bfd_coff_backend_data): Add new fields
3025 _bfd_coff_force_symnames_in_strings and
3026 _bfd_coff_debug_string_prefix_length.
3027 (bfd_coff_force_symnames_in_strings,
3028 bfd_coff_debug_string_prefix_length): New macros for above fields.
3029 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3030 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
3031 of using coff_swap_sym_in directly.
3032 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3033 (coff_set_flags) Set magic for XCOFF64.
3034 (coff_compute_section_file_positions): Add symbol name length to
3035 string section length if bfd_coff_debug_string_prefix_length is
3037 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3038 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3039 using coff_swap_lineno_in directly.
3040 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3041 and _bfd_coff_debug_string_prefix_length fields.
3042 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3043 symbol names into strings table when
3044 bfd_coff_force_symnames_in_strings is true.
3045 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3046 SET_RELOC_VADDR): New macros.
3047 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3048 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3050 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3051 changes within RS6000COFF_C specific code.
3052 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3053 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3054 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3055 Extend existing hack on target name.
3056 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3058 * coff-tic54x.c (ticof): Keep up to date with new fields
3059 in bfd_coff_backend_data.
3060 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3061 targ_selvecs to include rs6000coff64_vec for rs6000.
3062 * configure.in: Add rs6000coff64_vec case.
3063 * cpu-powerpc.c: New bfd_arch_info_type.
3065 2000-04-24 Jeffrey A Law (law@cygnus.com)
3067 * config.bfd: Only disable elf32-hppa vectors, not all of the
3068 BSD and OSF configuration support. Provide (disabled) clauses
3070 * configure.in: Add clause for PA64 support.
3071 * configure: Rebuilt.
3073 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3074 (bfd_elf64_hppa_vec): Declare.
3076 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3077 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3078 (elf64-hppa.lo): Add dependencies.
3079 * Makefile.in: Rebuilt.
3081 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3083 2000-04-24 Jason Eckhardt <jle@cygnus.com>
3085 * libhppa.h (dis_assemble_16): New function.
3086 (pa_arch): Added pa20w element.
3088 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
3090 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3091 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3092 bfd_elf64_slurp_reloc_table.
3094 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3095 definitions to get external names.
3096 (elf_write_relocs): Renamed from write_relocs and make global.
3097 (elf_slurp_reloc_table): Make global.
3098 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3100 * archive.c (hpux_uid_gid_encode): New function.
3101 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3102 defined and the ID is greater than 99999.
3103 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3104 special uid/gid fields into 32 bit values.
3106 2000-04-21 Matthew Green <mrg@cygnus.com>
3108 * config.bfd: Add NetBSD/sparc64 support.
3110 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3111 David Mosberger <davidm@hpl.hp.com>
3112 Timothy Wall <twall@cygnus.com>
3113 Jim Wilson <wilson@cygnus.com>
3115 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3116 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3117 (BFD64_BACKENDS): Add elf64-ia64.lo.
3118 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3119 (cpu-ia64.lo, elf64-ia64.lo): New rules.
3120 * Makefile.in: Rebuild.
3121 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3122 (bfd_ia64_arch): Declare.
3123 (bfd_archures_list): Add bfd_ia64_arch.
3124 * bfd-in2.h: Rebuild.
3125 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3126 * configure: Rebuild.
3127 * configure.host: (ia64-*-linux*): New host.
3128 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3129 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3130 * elf.c (prep_headers): Add bfd_arch_ia64.
3131 * libbfd.h: Rebuild.
3132 * reloc.c: Add IA-64 relocations.
3133 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3135 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3136 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3138 2000-04-21 Richard Henderson <rth@cygnus.com>
3140 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3141 contents when performing a partial link.
3142 (bfd_elf_d30v_reloc_21): Likewise.
3144 2000-04-20 H.J. Lu <hjl@gnu.org>
3146 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3147 patch to symbols defined by a shared object.
3148 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3150 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3153 * dwarf2.c (concat_filename): Avoid string literal concatenation.
3154 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
3156 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
3158 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3159 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3160 (coff-ia64.lo): Add dependency.
3161 * Makefile.in: Regenerate.
3162 * coff-ia64.c: New file.
3163 * efi-app-ia32.c: Ditto.
3164 * efi-app-ia64.c: Ditto.
3165 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
3166 (coff_set_flags): Ditto.
3167 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
3168 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
3169 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
3170 * configure: Regenerate.
3171 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
3172 (PUT_OPTHDR_IMAGE_BASE): Ditto.
3173 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3174 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3175 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3176 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3177 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3178 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3179 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3180 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3181 (GET_PDATA_ENTRY): Ditto.
3182 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
3183 data_start. Use above macros to read fields that are 64 bit wide for
3184 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
3185 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
3186 FileAlignment and SectionAlignment to minimum alignment if they
3188 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
3189 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
3190 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
3191 Use above macros to write fields that are 64 bit wide for
3193 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
3194 5*4 otherwise. This should be right for IA-32 and IA-64, but may
3195 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
3196 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
3197 begin address, end address, and unwind info address only. Use
3198 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
3200 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
3201 HIGH3ADJ relocation names.
3202 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
3203 * targets.c: Declare bfd_efi_app_ia32_vec and
3204 bfd_efi_app_ia64_vec.
3205 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
3206 bfd_efi_app_ia64_vec.
3208 2000-04-17 Timothy Wall <twall@cygnus.com>
3210 * bfd-in2.h: Add prototypes for tic54x load page access.
3211 * bfd-in.h: Regenerate.
3212 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
3213 in customized _set_arch_mach function.
3214 * coffcode.h (coff_set_alignment_hook): Set section load page if
3215 the appropriate macro is defined.
3216 (write_object_contents): Read section load page.
3218 2000-04-13 Alan Modra <alan@linuxcare.com.au>
3220 * elf32-hppa.h: Update copyright date.
3222 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
3223 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
3225 * elf32-d30v.c (MAX32): Don't use LL suffix.
3226 (MIN32): Define in terms of MAX32.
3227 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
3229 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
3232 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
3234 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3236 * dep-in.sed: Match space before file name, not after.
3237 * Makefile.am: Regenerate dependencies.
3238 * Makefile.in: Regenerate.
3240 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
3241 case, allow address wrap-around stupidly removed 2000-03-17. Sign
3242 extend without an if statement.
3244 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3246 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
3248 * elf32-mips.c (gprel16_with_gp): Likewise.
3249 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
3250 here using -0x40000, not (int)0xfffc0000.
3251 (elf32_hppa_size_of_stub): Likewise.
3253 2000-04-11 Timothy Wall <twall@cygnus.com>
3255 * coff-tic54x.c: Now builds with all targets.
3256 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
3257 * Makefile.in: Regenerate.
3258 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
3259 unitialized variable.
3261 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3263 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3264 --enable-build-warnings option.
3265 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3266 * Makefile.in, configure: Re-generate.
3268 2000-04-07 Nick Clifton <nickc@cygnus.com>
3270 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
3271 BFD_RELOC_THUMB_PCREL_BLX.
3273 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3274 R_ARM_XPC25 and R_ARM_THM_PC22.
3276 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
3277 R_ARM_XPC25 and R_ARM_THM_XPC22.
3278 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
3279 R_ARM_[XPC25|THM_XPC22].
3281 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
3282 elf/arm-oabi.h to elf/arm.h
3284 * Makefile.am: Fix dependency for elfarm-oabi.c
3285 * Makefile.in: Regenerate.
3287 * bfd-in2.h: Regenerate.
3288 * libbfd.h: Regenerate.
3290 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3292 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
3293 and restore it on failure. Release newly allocated tdata on
3296 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
3298 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
3299 (decode_line_info): Set it. Report error if unit->line_offset is
3300 equal to or larger than it.
3302 2000-04-07 Timothy Wall <twall@cygnus.com>
3304 * targets.c: Added vecs for tic54x.
3305 * reloc.c: Added relocs for tic54x.
3306 * libbfd.h: Regenerated.
3307 * configure: Add TI COFF vecs for tic54x.
3308 * configure.in: Ditto.
3309 * config.bfd (targ_cpu): Recognize new tic54x target.
3310 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
3311 * bfd-in2.h: Add tic54x target and relocations.
3312 * Makefile.am, Makefile.in: Add tic54x target.
3313 * archures.c (bfd_archures_list): Add tic54x target.
3314 * coff-tic54x.c: New.
3315 * cpu-tic54x.c: New.
3317 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3319 * elfcore.h (elf_core_file_p): call backend_object_p which
3320 thereby gets an opportunity to update the arch/machine type.
3322 2000-04-06 Timothy Wall <twall@cygnus.com>
3324 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
3325 class. Handle SEC_CLINK and SEC_BLOCK flags.
3326 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
3327 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
3329 2000-04-06 Nick Clifton <nickc@cygnus.com>
3331 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
3332 EF_INTERWORK if this is an unknown EABI.
3333 (elf32_arm_merge_private_bfd_data): Check EABI version
3334 numbers. Only check EF_xxx flags if the EABI version number
3336 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
3337 if the EABI version number is unknown.
3338 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
3339 if the EABI version number is unknown.
3341 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3343 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
3344 BFD_RELOC_SH_LOOP_END.
3345 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
3346 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
3347 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
3348 (sh_elf_reloc_loop): New function.
3349 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
3351 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
3352 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
3353 * bfd-in2.h, libbfd.h: Regenerate.
3355 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3357 * po/bfd.pot: Regenerate.
3359 * Makefile.am: Remove extraneous mkdep comment.
3360 (MKDEP): Use gcc -MM rather than mkdep.
3361 (DEP): Quote when passing vars to sub-make. Add warning
3363 (DEP1): Rewrite for "gcc -MM".
3364 (CLEANFILES): Add DEP2.
3365 Update dependencies.
3366 * Makefile.in: Regenerate.
3368 2000-04-03 Kevin Buettner <kevinb@redhat.com>
3370 * configure.in: Added corefile support for AIX 4.3. In particular,
3371 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
3372 compiling rs6000-core.c.
3373 * configure: Regenerated.
3375 2000-04-03 H.J. Lu <hjl@gnu.org>
3377 * cache.c (bfd_open_file): Unlink the output file only if
3378 it has non-zero size.
3380 2000-04-01 Ken Block USG <block@zk3.dec.com>
3382 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
3383 relative relocations for non-loaded sections in shared objects.
3384 (elf64_alpha_check_relocs): Similarly.
3386 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
3388 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
3389 BFD_RELOC_16 to switch for extended relocs.
3390 (MY_swap_ext_reloc_in): New.
3391 (MY_swap_ext_reloc_out): New.
3392 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
3393 than NAME(aout,swap_ext_reloc_in) for extended relocs.
3394 (NAME(aout,squirt_out_relocs)): Similarly use
3395 MY_swap_ext_reloc_out.
3396 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
3398 2000-04-03 Kazu Hirata <kazu@hxi.com>
3400 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
3401 the R_PCRWORD_B case.
3403 2000-03-31 Thomas de Lellis <tdel@wrs.com>
3405 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
3409 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
3411 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
3412 HOWTO references to bfd_elf_generic_reloc, that have
3413 partial_inplace == true, now use the new function. The function
3414 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
3415 extends its fixes to the R_M32R_{16,24,32} relocs.
3416 The new logic in m32r_elf_lo16_reloc() has been removed, and
3417 it instead calls the new routine to obtain that functionality.
3419 2000-03-27 Alan Modra <alan@linuxcare.com.au>
3421 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
3422 elf32_avr_check_relocs, avr_final_link_relocate,
3423 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
3424 elf32_avr_object_p): Add prototypes.
3425 (elf32_avr_gc_mark_hook): Add default for h->root.type.
3426 (bfd_elf_avr_final_write_processing): Make static.
3428 2000-03-27 Denis Chertykov <denisc@overta.ru>
3430 * cpu-avr.c: New file. BFD support routines for AVR architecture.
3431 * archures.c (bfd_architecture): Add AVR architecture.
3432 (bfd_archures_list): Add reference to AVR architecture info.
3433 * elf.c (prep_headers): Handle bfd_arch_avr.
3434 * reloc.c: Add various AVR relocation enums.
3435 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
3437 * Makefile.am: Add support for AVR elf.
3438 * configure.in: Likewise.
3439 * config.bfd: Likewise.
3440 * Makefile.in: Regenerate.
3441 * configure: This too.
3442 * bfd-in2.h: And this.
3443 * libbfd.h: And this.
3445 2000-03-24 H.J. Lu <hjl@gnu.org>
3447 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
3448 (elf64_alpha_find_reloc_at_ofs): Likewise.
3450 2000-03-17 Alan Modra <alan@linuxcare.com.au>
3452 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
3453 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
3454 allowable range used to be -2**(n-1) to 2**n-1.
3455 * reloc.c (_bfd_relocate_contents): Same here. Also replace
3456 "boolean overflow" with "bfd_reloc_status_type flag".
3458 2000-03-14 Doug Evans <dje@casey.transmeta.com>
3460 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
3462 2000-03-14 Kazu Hirata <kazu@hxi.com>
3464 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
3465 of shrinks properly, including the last reloc.
3467 2000-03-13 Kazu Hirata <kazu@hxi.com>
3469 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
3472 2000-03-11 Alan Modra <alan@linuxcare.com.au>
3474 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
3475 a format mismatch rather than an "error" from bfd_read such as
3476 bfd_error_file_truncated.
3478 2000-03-10 Geoff Keating <geoffk@cygnus.com>
3480 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
3481 sign-extension and big-endian compensation for
3482 R_MIPS_64 even in ld -r.
3484 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
3486 * elf32-mips.c (mips_elf_next_relocation): Rename from
3487 mips_elf_next_lo16_relocation, and generalize to look
3488 for any relocation type.
3489 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
3490 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
3491 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
3492 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
3493 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
3494 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
3495 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
3496 (mips_rtype_to_howto): Likewise.
3497 (mips_elf_calculate_relocation): Handle new relocs.
3498 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
3499 are paired. The addend for R_MIPS_GNU_REL16_S2
3500 is shifted right two bits.
3502 2000-03-10 Alan Modra <alan@linuxcare.com.au>
3504 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
3505 comment, and ensure it doesn't happen again.
3506 (bfd_install_relocation): Same here.
3507 (_bfd_relocate_contents): Don't bother assigning unused signmask
3508 shift result. Fix typos in comments.
3509 Remove trailing whitespace throughout file.
3511 2000-03-07 Doug Evans <dje@casey.transmeta.com>
3513 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
3514 * bfd-in2.h: Rebuild.
3516 2000-03-06 Nick Clifton <nickc@cygnus.com>
3518 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
3520 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
3521 (SIZEOF_ILF_STRINGS): Redefine.
3522 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
3523 relative reloc, as opposed to a section relative reloc.
3524 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
3526 Add length of symbol's prefix to string pointer.
3527 Store a pointer to the symbol in the symbol pointer table.
3528 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
3529 Initialise the symbol pointer table.
3530 Store the hint in the Hint/Name table.
3531 Make the jump reloc be symbol realtive, not section relative.
3532 Create an import symbol for imported code.
3534 2000-03-06 Catherine Moore <clm@cygnus.com>
3536 * elf.c (swap_out_syms): Check for null type_ptr.
3538 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
3540 * aout-target.h (MY(write_object_contents)): Remove unused
3541 and unusable "#if CHOOSE_RELOC_SIZE".
3542 * pc532-mach.c (MY(write_object_contents)): Ditto.
3543 * netbsd.h (MY(write_object_contents)): Ditto.
3544 * hp300hpux.c (MY(write_object_contents)): Ditto.
3545 * freebsd.h (MY(write_object_contents)): Ditto.
3546 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
3548 2000-02-29 H.J. Lu <hjl@gnu.org>
3550 * peicode.h (jtab): Make it static.
3552 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
3553 defined and COFF_IMAGE_WITH_PE is not defined.
3554 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
3555 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
3557 2000-03-01 Nick Clifton <nickc@cygnus.com>
3559 * coff-arm.c (bfd_arm_process_before_allocation): Make
3560 'symndx' signed to prevent compile time warning.
3562 * coff-mcore.c: Remove unused prototype for pe_object_p.
3564 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
3565 functions that are not used when COFF_IMAGE_WITH_PE is
3567 (struct sh_opcode): Change type of 'flags' field to unsigned
3568 long so that it can hold the USESAS flag.
3570 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
3572 * elf-m10300.c (mn10300_elf_relax_section): Initialise
3575 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
3577 Remove unusued variables and code.
3578 (elf_backend_add_symbol_hook): Fix prototype.
3580 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
3583 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
3586 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
3588 Remove unusued variables and code.
3589 (elf_backend_add_symbol_hook): Fix prototype.
3591 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
3593 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
3594 to unused function parameter.
3596 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
3598 Use EMPTY_HOWTO to initialise empty howto slots.
3599 Remove unused variables.
3601 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
3603 2000-03-01 H.J. Lu <hjl@gnu.org>
3605 * aoutx.h (aout_link_input_section_std): Pass "true" to
3606 the undefined_symbol callback.
3607 (aout_link_input_section_ext): Likewise.
3608 * bout.c (get_value): Likewise.
3609 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
3610 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
3612 (alpha_relocate_section): Likewise.
3613 * coff-arm.c (coff_arm_relocate_section): Likewise.
3614 * coff-i960.c (coff_i960_relocate_section): Likewise.
3615 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
3616 * coff-mips.c (mips_relocate_section): Likewise.
3617 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
3618 * coff-sh.c (sh_relocate_section): Likewise.
3619 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
3620 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
3621 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
3622 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
3623 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
3624 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
3625 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
3626 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3627 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
3628 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3629 * elf32-sh.c (sh_elf_relocate_section): Likewise.
3630 * elf32-v850.c (v850_elf_relocate_section): Likewise.
3631 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
3632 * elflink.h (elf_link_output_extsym): Likewise.
3633 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
3634 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
3635 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
3637 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
3638 undefined_symbol callback when building shared library with
3639 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
3641 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3642 * elf32-i386.c (elf_i386_relocate_section): Likewise.
3643 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3644 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3645 (elf32_mips_get_relocated_section_content): Likewise.
3646 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3647 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3648 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3649 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3651 2000-02-28 Nick Clifton <nickc@cygnus.com>
3653 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
3654 * Makefile.in: Regenerate.
3656 * configure.in: Add support for mips and sh pe vectors.
3657 * configure: regenerate.
3659 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
3662 * targets.c: Add mips and sh pe vectors.
3664 * libpei.h (coff_final_link_postscript): Only define if not
3667 * coffcode.h: Add support for WinCE magic numbers.
3669 * peigen.c (pe_print_reloc): Update comment and rearrange
3670 appending of newline character.
3672 * peicode.h: Add support for Image Library Format.
3673 (pe_ILF_vars): Structure containing data used by ILF code.
3674 (pe_ILF_make_a_section): New function. Create a section based
3676 (pe_ILF_make_a_reloc): New function. Create a reloc based on
3678 (pe_ILF_make_a_symbol): New function. Create a symbol based
3680 (pe_ILF_save_relocs): New function. Store the relocs created
3681 by pe_ILF_make_a_reloc in a section.
3682 (pe_ILF_build_a_bfd): New function. Create a BFD describing
3684 (pe_ILF_object_p): New function. Return a bfd_target pointer
3686 (pe_bfd_object_p): If an ILF object is detected call
3687 pe_ILF_object_p on it.
3689 * coff-arm.c: Add support for WinCE relocs which are different
3690 from normal ARM COFF relocs.
3691 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
3693 * coff-sh.c: Add support for sh-pe target.
3694 * pe-sh.c: New file. Support code for sh-pe target.
3695 * pei-sh.c: New file. Support code for sh-pe target.
3697 * pe-mips.c: New file. Support code for mips-pe target.
3698 * pei-mips.c: New file. Support code for mips-pe target.
3700 2000-02-27 Jakub Jelinek <jakub@redhat.com>
3702 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
3703 architecture if the object causing the bump is dynamic.
3704 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
3705 and also don't it for memory ordering.
3706 (sparc64_elf_write_relocs): Take src_rela out of the loop.
3708 2000-02-27 Ian Lance Taylor <ian@zembu.com>
3710 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
3711 calling bfd_get_section_size_before_reloc.
3712 (decode_line_info): Likewise.
3713 (_bfd_dwarf2_find_nearest_line): Likewise.
3715 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
3717 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
3718 name of the libtool directory.
3719 * Makefile.in: Rebuild.
3721 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
3723 * som.c (SOM_HOWTO): Define.
3724 (som_hppa_howto_table): Use it.
3726 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3728 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
3730 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
3732 2000-02-24 Catherine Moore <clm@cygnus.com>
3734 * som.c (som_misc_symbol_info): Add field
3736 (som_bfd_derive_misc_symbol_info): Initialize
3738 (som_build_and_write_symbol_table): Keep track
3739 of secondary_def field.
3740 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
3741 if secondary_def field is set.
3742 (som_bfd_ar_write_symbol_stuff): Initialize
3745 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
3747 * dwarf2.c (read_address): Read 16-bits addresses.
3748 (parse_comp_unit): Accept addr_size == 2.
3750 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3752 * bfd-in.h: Update copyright date.
3754 2000-02-23 Linas Vepstas <linas@linas.org>
3756 * cpu-i370.c: New file.
3757 * elf32-i370.c: New file.
3758 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
3759 (bfd_i370_arch): New.
3760 (bfd_archures_list): Add bfd_i370_arch.
3761 * elf.c (prep_headers): Add bfd_arch_i370.
3762 * Makefile.am: Add support for IBM 370 elf.
3763 * config.bfd: Likewise.
3764 * configure.in: Likewise.
3765 * libbfd.h (bfd_reloc_code_real_names): Likewise.
3766 * reloc.c (bfd_reloc_code_type): Likewise.
3767 * targets.c: Likewise.
3769 * Makefile.in: Regenerate.
3770 * configure: Regenerate.
3771 * bfd-in2.h: Regenerate.
3773 2000-02-22 Ian Lance Taylor <ian@zembu.com>
3775 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
3776 invalid relocation types, and change them to R_386_NONE.
3778 2000-02-22 H.J. Lu <hjl@gnu.org>
3780 * elflink.h (elf_link_add_object_symbols): If a version symbol is
3781 not defined, don't add a second ELF_VER_CHR.
3783 * elflink.h (elf_bfd_final_link): Call output_extsym for global
3784 symbols converted to local symbols even when stripping all
3786 (elf_link_output_extsym): Process global symbols converted to
3787 local symbols even if they are being stripped.
3789 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3791 * archures.c (bfd_octets_per_byte): Return unsigned int.
3792 (bfd_arch_mach_octets_per_byte): Ditto.
3793 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
3795 * section.c (bfd_get_section_size_before_reloc): Quell signed
3796 vs. unsigned comparison warning.
3797 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
3798 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
3799 change. What was I thinking?
3800 * bfd-in2.h: Regenerate.
3802 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
3803 (elf_gc_sections): Same here.
3804 (elf_gc_common_finalize_got_offsets): And here.
3806 2000-02-21 Ian Lance Taylor <ian@zembu.com>
3808 ELF HPPA doesn't work at present; remove it until it does.
3809 * config.bfd: Comment out setting targ_defvec to
3811 * Makefile.am: Rebuild dependencies.
3812 (BFD32_BACKENDS): Remove elf32-hppa.lo.
3813 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
3814 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
3815 * Makefile.in: Rebuild.
3816 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
3818 2000-02-18 Geoff Keating <geoffk@cygnus.com>
3820 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
3821 is no bfd_free(). Revert bfd_free part of previous change.
3823 2000-02-18 Geoff Keating <geoffk@cygnus.com>
3825 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
3827 (coff_compute_section_file_positions): Use bfd_free to pair
3829 (coff_write_object_contents): Likewise.
3831 * coff-rs6000.c (xcoff_howto_table_16): New variable.
3832 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
3834 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
3836 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
3837 (xcoff_ar_file_hdr_big): New structure.
3838 (SIZEOF_AR_FILE_HDR_BIG): New macro.
3839 (xcoff_ar_hdr_big): New structure.
3840 (SIZEOF_AR_HDR_BIG): New macro.
3841 (xcoff_big_format_p): New macro.
3842 (xcoff_ardata_big): New macro.
3843 (arch_xhdr_big): New macro.
3844 (xcoff_slurp_armap): Handle large archives.
3845 (xcoff_archive_p): Detect large archives.
3846 (xcoff_read_ar_hdr): Handle large archives.
3847 (xcoff_openr_next_archived_file): Handle large archives.
3848 (xcoff_generic_stat_arch_elt): Handle large archives.
3849 (xcoff_write_armap_old): Rename from xcoff_write_armap.
3850 (xcoff_write_armap_big): New function.
3851 (xcoff_write_armap): New function, dispatch to _old or _big.
3852 (xcoff_write_archive_contents_old): Rename from
3853 xcoff_write_archive_contents.
3854 (xcoff_write_archive_contents_big): New function.
3855 (xcoff_write_archive_contents): New function, dispatch to _old or
3858 2000-02-18 Richard Henderson <rth@cygnus.com>
3860 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
3861 and hide_symbol members.
3862 (elf_link_hash_copy_indirect): Remove.
3863 (elf_link_hash_hide_symbol): Remove.
3864 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
3865 and elf_backend_hide_symbol.
3866 (_bfd_elf_link_hash_copy_indirect): Declare.
3867 (_bfd_elf_link_hash_hide_symbol): Declare.
3868 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
3869 (_bfd_elf_link_hash_hide_symbol): Likewise.
3870 (_bfd_elf_link_hash_table_init): Don't init killed members.
3871 * elflink.h (elf_link_add_object_symbols): Use the bed function
3872 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
3873 (elf_link_assign_sym_version): Likewise.
3874 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
3875 (elf_backend_hide_symbol): Likewise.
3876 (elfNN_bed): Update for new members.
3878 2000-02-17 Kevin Buettner <kevinb@redhat.com>
3880 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
3881 STACK_END_ADDR): Define for new core file format.
3882 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
3883 for handling the vagaries of the various core file structures used
3884 by AIX over the years.
3885 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
3886 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
3887 core_dumpx structure.
3889 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3891 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
3892 (bfd_mach_sh3_dsp): Likewise.
3893 (bfd_mach_sh4): Reinstate.
3894 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
3895 * bfd-in2.h: Regenerate.
3896 * coff-sh.c (struct sh_opcode): flags is no longer short.
3897 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
3898 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
3899 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
3900 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
3901 (sh_opcodes): No longer const.
3902 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
3903 (sh_insn_uses_reg): Check for USESAS and USESR8.
3904 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
3905 (_bfd_sh_align_load_span): Return early for SH4.
3906 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
3907 Take into account that field b of a parallel processing insn
3908 could be mistaken for a separate insn.
3909 * cpu-sh.c (arch_info_struct): New array elements for
3910 sh2, sh-dsp and sh3-dsp.
3911 Reinstate element for sh4.
3912 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
3913 (SH4_NEXT): Reinstate.
3914 (SH3_NEXT, SH3E_NEXT): Adjust.
3915 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
3916 * elf32-sh.c (sh_elf_set_private_flags): New function.
3917 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
3918 (sh_elf_merge_private_data): New function.
3919 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
3920 (bfd_elf32_bfd_copy_private_bfd_data): Define.
3921 (bfd_elf32_bfd_merge_private_bfd_data): Change to
3922 sh_elf_merge_private_data.
3924 2000-02-13 Richard Henderson <rth@cygnus.com>
3926 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
3927 hide_symbol members.
3928 (elf_link_hash_copy_indirect): New.
3929 (elf_link_hash_hide_symbol): New.
3930 * elflink.h (elf_link_add_object_symbols): Break out copy from
3931 indirect new new symbol to elf.c.
3932 (elf_link_assign_sym_version): Break out privatization of
3933 non-exported symbol to elf.c.
3934 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
3935 (_bfd_elf_link_hash_hide_symbol): New.
3936 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
3938 2000-02-13 Ian Lance Taylor <ian@zembu.com>
3940 * section.c (_bfd_strip_section_from_output): Add info parameter.
3941 If it passed as non-NULL, use it to check whether any input BFD
3942 has an input section which uses this output section. Change all
3944 * bfd-in2.h: Rebuild.
3946 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
3947 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
3949 * bfd-in2.h: Rebuild.
3951 2000-02-10 Timothy Wall <twall@cygnus.com>
3953 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
3954 allow final modifications of swapped-in symbol.
3955 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
3956 * coffcode.h (coff_write_relocs): Use macro
3957 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
3958 symbol index should be set to -1.
3960 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
3962 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
3963 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
3964 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
3965 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
3966 sh_insns_uses_or_sets_freg): New functions.
3967 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
3968 * (sh_insns_conflict): Use new functions and new macros to
3969 detect conflicts when two instructions both set same integer registers,
3970 both set same fp register, and both set special register.
3972 2000-02-09 Timothy Wall <twall@cygnus.com>
3974 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
3975 swapping in sections, so that the swapping routines have access to
3978 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
3980 * coff-go32.c: Update comment. Update copyright.
3982 2000-01-27 Thomas de Lellis <tdel@windriver.com>
3984 * syms.c (bfd_decode_symclass)
3985 Two new class characters were added - 'V' and 'v'. The
3986 meaning of 'W' is now restricted to just weak non-object
3987 symbols. This allows differentiation between, for example,
3988 weak functions vs weak objects. nm for example now dumps:
3990 'w' = weak unresolved
3991 'V' = weak global object
3992 'v' = weak unresolved object
3994 (bfd_is_undefined_symclass): New function. Return true if the
3995 given symbol class represents and undefined/unresolved symbol.
3997 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4000 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4002 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4003 STT_ARM_16BIT flag set, but it is not attached to a data object
4004 return STT_ARM_16BIT so that it will be treated as code by the
4007 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4009 * coff-i386.c (i3coff_object_p): Remove prototype.
4012 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4013 to name. Update copyright.
4015 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4016 assignment to avoid warning. Update copyright.
4018 2000-01-24 Robert Lipe (robertl@sco.com)
4020 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4021 instead of using GNU C extension.
4023 2000-01-21 Nick Clifton <nickc@cygnus.com>
4025 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4026 amount from a bfd_in_memory structure.
4027 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4030 2000-01-14 Nick Clifton <nickc@cygnus.com>
4032 * linker.c (default_indirect_link_order): oops - fix incorrectly
4033 applied patch from Tim Wall.
4035 2000-01-13 Timothy Wall (twall@tiac.net>
4037 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4038 = scnhsz, filhsz, relsz, aoutsz, etc)
4040 * coffswap.h: Ditto.
4042 2000-01-13 Nick Clifton <nickc@cygnus.com>
4044 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4045 interwork thumb to arm stub.
4047 2000-01-13 Timothy Wall (twall@tiac.net>
4049 * archures.c (bfd_octets_per_byte): New function: Return
4051 (bfd_arch_mach_octets_per_byte): New function: Return target
4054 * section.c: Distinguish between octets and bytes for usage of
4055 _cooked_size, _raw_size, and output_offset. Clarify
4056 description of bfd_set_section_contents.
4058 * bfd-in2.h: Regenerate.
4060 * coffgen.c: Indicate that the offset parameter is in bytes, not
4063 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4064 where appropriate to get the octet offset when calling
4065 bfd_set_section_contents.
4066 (bfd_coff_reloc_link_order): Ditto.
4068 * linker.c (bfd_generic_reloc_link_order): Ditto.
4069 (_bfd_default_link_order): Ditto.
4071 * reloc.c (bfd_perform_relocation): Distinguish between octets
4072 and bytes. Use octets when indexing into octet data; use bytes
4073 when calculating target addresses.
4074 (bfd_install_relocation): Ditto.
4076 * srec.c (srec_write_section): Ditto.
4078 2000-01-13 Nick Clifton <nickc@cygnus.com>
4080 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4081 3 to 2. This allows 4 byte sized sections, which is necessary for
4082 dlltool to build functioning DLLs.
4084 2000-01-10 Philip Blundell <pb@futuretv.com>
4086 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4087 (arm*-*-conix*): New target.
4089 2000-01-10 Egor Duda <deo@logos-m.ru>
4091 * config.bfd: Include elf32_i386 vector to target list for cygwin
4094 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4095 * configure.in: Test for structure win32_pstatus_t in
4097 * configure: Regenerate.
4099 * elf.c (elfcore_grok_win32pstatus): New function: process
4100 win32_pstatus_t notes in elf core file.
4101 (elfcore_grok_note): Detect win32_pstatus notes.
4103 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4105 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4107 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4108 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4110 For older changes see ChangeLog-9899
4116 version-control: never