1 2001-01-23 Kazu Hirata <kazu@hxi.com>
3 * coff64-rs6000.c: Fix formatting.
4 * coff-arm.c: Likewise.
6 * cofflink.c: Likewise.
7 * coff-mcore.c: Likewise.
8 * coff-mips.c: Likewise.
9 * coff-pmac.c: Likewise.
10 * coff-ppc.c: Likewise.
11 * coff-rs6000.c: Likewise.
13 * elf32-fr30.c: Likewise.
14 * elf32-i370.c: Likewise.
15 * elf32-i860.c: Likewise.
16 * elf32-m32r.c: Likewise.
17 * elf32-m68k.c: Likewise.
18 * elf32-mcore.c: Likewise.
19 * elf32-ppc.c: Likewise.
20 * elf32-sh.c: Likewise.
21 * elf32-v850.c: Likewise.
22 * elf64-alpha.c: Likewise.
23 * elf64-sparc.c: Likewise.
24 * elflink.c: Likewise.
25 * elflink.h: Likewise.
26 * elf-m10200.c: Likewise.
27 * elf-m10300.c: Likewise.
28 * elfxx-ia64.c: Likewise.
30 * aoutx.h: Fix formatting.
32 * bfd-in2.h: Likewise.
34 * cpu-i386.c: Likewise.
35 * cpu-m68hc11.c: Likewise.
37 * elf64-x86-64.c: Likewise.
39 * freebsd.h: Likewise.
41 * hp300hpux.c: Likewise.
42 * hppabsd-core.c: Likewise.
43 * hpux-core.c: Likewise.
45 2001-01-22 Bo Thorsen <bo@suse.de>
47 * elf64-x86-64.c: Added PIC support for X86-64.
48 (elf64_x86_64_link_hash_newfunc): Function added.
49 (elf64_x86_64_link_hash_table_create): Likewise.
50 (elf64_x86_64_check_relocs): Likewise.
51 (elf64_x86_64_gc_mark_hook): Likewise.
52 (elf64_x86_64_gc_sweep_hook): Likewise.
53 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
54 (elf64_x86_64_size_dynamic_sections): Likewise.
55 (elf64_x86_64_discard_copies): Likewise.
56 (elf64_x86_64_finish_dynamic_symbol): Likewise.
57 (elf64_x86_64_finish_dynamic_sections): Likewise.
58 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
60 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
62 * Makefile.am (install-data-local): Make use of $(DESTDIR).
63 * Makefile.in: Regenerate.
65 2001-01-21 Kazu Hirata <kazu@hxi.com>
67 * coff-a29k.c: Fix formatting.
69 2001-01-19 H.J. Lu <hjl@gnu.org>
71 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
72 relocation section names.
73 (elf_i386_relocate_section): Report files with bad relocation
74 section names and return false.
76 2001-01-17 Bo Thorsen <bo@suse.de>
78 * targets.c: Alphabetize list of xvecs.
80 2001-01-14 Alan Modra <alan@linuxcare.com.au>
82 * config.bfd: Add linux target variant for elfxx-hppa.
83 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
84 bfd_elf64_hppa_linux_vec.
85 * configure: Regenerate.
86 * elf64-hppa.c: Include elf64-target.h again to support linux
88 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
89 * elf32-hppa.c: Include elf32-target.h again to support linux
91 (elf32_hppa_post_process_headers): New function.
92 (elf_backend_post_process_headers): Define.
93 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
94 bfd_elf32_hppa_linux_vec.
96 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
97 and data_segment_base fields.
98 (elf32_hppa_link_hash_table_create ): Init them.
99 (elf32_hppa_check_relocs): Update comments.
100 (hppa_record_segment_addr): New function.
101 (elf32_hppa_relocate_section): Call it.
102 (final_link_relocate): Handle R_PARISC_SEGREL32.
103 (elf32_hppa_final_link): New function.
104 (bfd_elf32_bfd_final_link): Define to call it.
105 (hppa_unwind_entry_compare): New function.
106 * cache.c (bfd_open_file): Create files in write+read mode.
108 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
109 SEGREL32 and numerous other relocs. Change duplicate
110 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
112 * opncls.c (bfd_fdopenr): Add parens like the comment says around
115 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
116 .plt entries for DT_INIT and DT_FINI.
117 (elf32_hppa_finish_dynamic_sections): Remove special handling of
120 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
121 offsets for stub .plt access if wide mode. Check offset in range.
123 2001-01-13 Nick Clifton <nickc@redhat.com>
125 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
128 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
131 2001-01-12 Alan Modra <alan@linuxcare.com.au>
133 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
134 * configure: Regenerate.
136 2001-01-11 Peter Targett <peter.targett@arccores.com>
138 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
139 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
140 * cpu-arc.c (arch_info_struct): Add entries for variants.
141 (bfd_arc_arch) Set default to bfd_mach_arc_5.
142 (arc_get_mach) Don't assume machine names prefixed arc- before
144 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
146 (arc_elf_final_write_processing) Likewise.
147 (ELF_MACHINE_CODE) Use EM_ARC.
149 2001-01-10 Nick Clifton <nickc@redhat.com>
151 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
153 2001-01-07 Philip Blundell <philb@gnu.org>
155 * README: Replace `bug-gnu-utils@gnu.org' with
156 `bug-binutils@gnu.org'.
158 2001-01-04 Kazu Hirata <kazu@hxi.com>
160 * som.c: Fix formatting.
162 2001-01-03 Kazu Hirata <kazu@hxi.com>
164 * ecoffswap.h: Fix formatting.
165 * elf-bfd.h: Likewise.
166 * elfarm-nabi.c: Likewise.
167 * elfarm-oabi.c: Likewise.
168 * elfcode.h: Likewise.
169 * elfcore.h: Likewise.
170 * elflink.c: Likewise.
171 * elflink.h: Likewise.
172 * elfxx-ia64.c: Likewise.
173 * elfxx-target.h: Likewise.
175 * linker.c: Likewise.
176 * lynx-core.c: Likewise.
178 2001-01-02 Kazu Hirata <kazu@hxi.com>
180 * pc532-mach.c: Fix formatting.
181 * pe-arm.c: Likewise.
182 * pe-i386.c: Likewise.
183 * pe-mips.c: Likewise.
184 * pe-ppc.c: Likewise.
186 * pei-mips.c: Likewise.
187 * pei-sh.c: Likewise.
188 * peicode.h: Likewise.
189 * ppcboot.c: Likewise.
190 * ptrace-core.c: Likewise.
192 2001-01-01 Kazu Hirata <kazu@hxi.com>
194 * reloc.c: Fix formatting.
195 * riscix.c: Likewise.
196 * rs6000-core.c: Likewise.
197 * xcoff-target.h: Likewise.
199 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
201 * elfcode.h (elf_object_p): Also restore the bfd mach field on
202 error, by calling bfd_default_set_arch_mach with incoming
205 2000-12-26 Kazu Hirata <kazu@hxi.com>
207 * vaxnetbsd.c: Fix formatting.
208 * versados.c: Likewise.
209 * vms-gsd.c: Likewise.
210 * vms-hdr.c: Likewise.
211 * vms-misc.c: Likewise.
213 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
215 * archive.c (coff_write_armap): Don't write more than symbol_count
216 `archive_member_file_ptr's.
218 2000-12-25 Kazu Hirata <kazu@hxi.com>
220 * vms-tir.c: Fix formatting.
222 2000-12-23 Kazu Hirata <kazu@hxi.com>
224 * vms.c: Fix formatting.
227 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
229 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
231 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
233 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
236 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
238 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
240 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
242 * libbfd.c (bfd_get_bits): Added
243 (bfd_put_bits): Likewise
244 * bfd-in.h: Declared the above.
245 * bfd-in2.h: Regenerated.
247 2000-12-20 Kazu Hirata <kazu@hxi.com>
249 * targets.c: Fix formatting.
250 * tekhex.c: Likewise.
251 * trad-core.c: Likewise.
253 2000-12-19 Kazu Hirata <kazu@hxi.com>
255 * sco5-core.c: Fix formatting.
256 * section.c: Likewise.
257 * sparclinux.c: Likewise.
258 * sparclynx.c: Likewise.
259 * sparcnetbsd.c: Likewise.
262 * stab-syms.c: Likewise.
265 * sysdep.h: Likewise.
267 2000-12-18 Nick Clifton <nickc@redhat.com>
269 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
271 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
272 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
274 2000-12-18 Nick Clifton <nickc@redhat.com>
276 * vms-misc.c (_bfd_vms_get_record): Add default case to
279 2000-12-15 Miloslav Trmac <mitr@volny.cz>
281 * elfcore.h (elf_core_file_p): Move to the start of the program
282 headers before attempting to read them.
284 2000-12-14 Kazu Hirata <kazu@hxi.com>
286 * peigen.c: Fix formatting.
290 2000-12-13 Kazu Hirata <kazu@hxi.com>
292 * peigen.c: Fix formatting.
294 2000-12-12 Jim Wilson <wilson@redhat.com>
296 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
298 2000-12-08 Mark Salter <msalter@redhat.com>
300 * binary.c (binary_set_section_contents): Ignore sections
303 2000-12-12 Kazu Hirata <kazu@hxi.com>
305 * m68klinux.c: Fix formatting.
306 * m68knetbsd.c: Likewise.
307 * mipsbsd.c: Likewise.
308 * netbsd-core.c: Likewise.
309 * netbsd.h: Likewise.
310 * newsos3.c: Likewise.
311 * nlm32-alpha.c: Likewise.
312 * nlm32-i386.c: Likewise.
313 * nlm32-ppc.c: Likewise.
314 * nlm32-sparc.c: Likewise.
315 * nlmcode.h: Likewise.
316 * nlmswap.h: Likewise.
317 * nlm-target.h: Likewise.
318 * ns32knetbsd.c: Likewise.
320 2000-12-10 Fred Fish <fnf@be.com>
322 * elflink.h (elf_link_output_extsym): Don't complain about undefined
323 symbols in shared objects if allow_shlib_undefined is true.
325 2000-12-12 Nick Clifton <nickc@redhat.com>
327 * cpu-sh.c: Fix formattng.
328 * elf.c: Fix formattng.
329 * elf32-mips.c: Fix formattng.
330 * elf32-sh.c: Fix formattng.
331 * elf64-alpha.c: Fix formattng.
333 2000-12-09 Nick Clifton <nickc@redhat.com>
335 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
336 dwarf2_find_line_info as last parameter to invocation of
337 _bfd_dwarf2_find_nearest_line.
338 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
339 dwarf2_find_line_info as last parameter to invocation of
340 _bfd_dwarf2_find_nearest_line.
342 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
344 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
345 (BFD_LIBS): ...to here.
346 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
347 (BFD_LIBS_CFILES): ...to here.
348 * Makefile.in: Regenerate.
349 * configure.in: Remove dwarf.lo from the elf shell variable.
350 * configure: Regenerate.
351 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
352 * libcoff.h: Regenerate.
353 * coffgen.c (coff_find_nearest_line): Call
354 _bfd_dwarf2_find_nearest_line.
355 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
357 (read_abbrevs): Likewise
358 (decode_line_info): Likewise.
359 (parse_comp_unit): Likewise.
360 (comp_unit_find_nearest_line): Likewise.
361 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
362 * libbfd.h: Regenerate.
363 * elf.c (_bfd_elf_find_nearest_line): Update call.
364 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
365 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
366 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
367 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
368 (styp_to_sec_flags): Handle DWARF2 sections.
369 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
370 to _bfd_find_nearest_line.
371 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
372 call to _bfd_find_nearest_line.
374 2000-12-08 Kazu Hirata <kazu@hxi.com>
376 * coffgen.c: Fix formatting.
377 * elf-m10300.c: Likewise.
378 * elf32-i386.c: Likewise.
379 * elf32-i960.c: Likewise.
380 * elf32-m68k.c: Likewise.
381 * elf32-mcore.c: Likewise.
382 * elf32-ppc.c: Likewise.
383 * elf32-sh.c: Likewise.
384 * elf32-sparc.c: Likewise.
385 * elf32-v850.c: Likewise.
386 * elf64-alpha.c: Likewise.
387 * elf64-hppa.c: Likewise.
388 * elf64-mips.c: Likewise.
389 * elf64-sparc.c: Likewise.
391 2000-12-07 Kazu Hirata <kazu@hxi.com>
393 * elf32-ppc.c: Fix formatting.
394 * elf64-x86-64.c: Likewise.
396 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
398 From Ralf Baechle <ralf@gnu.org>
400 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
401 BFDs containing no sections or empty .text, .data or .bss sections
402 to be merged, regardless of their flags.
404 2000-12-06 Kazu Hirata <kazu@hxi.com>
406 * elf32-m32r.c: Fix formatting.
407 * elf32-m68hc11.c: Likewise.
408 * elf32-m68hc12.c: Likewise.
409 * elf32-m68k.c: Likewise.
410 * elf32-mcore.c: Likewise.
411 * elf32-pj.c: Likewise.
412 * elf32-ppc.c: Likewise.
414 2000-12-05 Kazu Hirata <kazu@hxi.com>
416 * elf32-fr30.c: Fix formatting.
417 * elf32-hppa.c: Likewise.
418 * elf32-i370.c: Likewise.
419 * elf32-i386.c: Likewise.
420 * elf32-i860.c: Likewise.
421 * elf32-i960.c: Likewise.
423 2000-12-03 Kazu Hirata <kazu@hxi.com>
425 * elf32-arm.h: Fix formatting.
426 * elf32-avr.c: Likewise.
427 * elf32-cris.c: Likewise.
428 * elf32-d10v.c: Likewise.
429 * elf32-d30v.c: Likewise.
430 * elf-hppa.h: Likewise.
431 * elf-m10200.c: Likewise.
432 * elf-m10300.c: Likewise.
434 2000-12-01 Chris Demetriou <cgd@sibyte.com>
436 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
437 bfd_mach_mips32_4k. Update FIXME comment.
438 * archures.c (bfd_mach_mips32): New constant.
439 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
440 the latter, renumber it.
441 * bfd-in2.h (bfd_mach_mips32): New constant.
442 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
443 the latter, renumber it.
444 * cpu-mips.c (I_mips32): New constant.
445 (I_mips4K, I_mips32_4k): Rename the former to the latter.
446 (arch_info_struct): Add bfd_mach_mips32 entry, replace
447 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
448 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
449 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
450 with E_MIPS_MACH_MIPS32_4K.
451 (_bfd_mips_elf_final_write_processing): Replace
452 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
453 bfd_mach_mips32 case.
454 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
455 comparison with support for MIPS32.
456 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
459 * aoutx.h (NAME(aout,machine_type)): Add cases for
460 bfd_mach_mips5 and bfd_mach_mips64.
461 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
462 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
463 * cpu_mips.c (I_mips5, I_mips64): New definitions.
464 (arch_info_struct): Add entries for bfd_mach_mips5 and
466 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
467 _bfd_mips_elf_print_private_bfd_data): Add cases for
468 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
469 (_bfd_mips_elf_final_write_processing): Add cases for
470 bfd_mach_mips5 and bfd_mach_mips64.
472 * bfd/aoutx.h (NAME(aout,machine_type)): Add a
473 bfd_mach_mips_sb1 case.
474 * bfd/archures.c (bfd_mach_mips_sb1): New constant.
475 * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
476 * bfd/cpu-mips.c (I_sb1): New constant.
477 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
478 * bfd/elf32-mips.c (elf_mips_mach): Add case for
480 (_bfd_mips_elf_final_write_processing): Add case for
483 2000-12-01 Joel Sherrill <joel@OARcorp.com>
485 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
486 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
487 (sparc*-*-rtems*): Switched from a.out to ELF.
489 2000-11-30 Jan Hubicka <jh@suse.cz>
491 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
492 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
493 (elf64-x86-64.lo): Add dependencies.
494 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
495 bfd_mach_x86_64_intel_syntax.
496 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
497 * config.bfd (x86_64): Add.
498 * configure.in: Add support for bfd_elf64_x86_64_vec.
499 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
500 (bfd_i386_arch, i8086_ar): Link in.
501 * elf64-x86-64.c: New file.
502 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
503 * targets.c (bfd_elf64_x86_64_vec): Add.
504 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
506 2000-11-30 Kazu Hirata <kazu@hxi.com>
508 * xcofflink.c: Fix formatting.
510 2000-11-28 Kazu Hirata <kazu@hxi.com>
512 * aoutx.h: Fix formatting.
513 * bfd-in.h: Likewise.
514 * bfd-in2.h: Likewise.
516 * cisco-core.c: Likewise.
517 * coff64-rs6000.c: Likewise.
518 * coffcode.h: Likewise.
519 * coffswap.h: Likewise.
520 * corefile.c: Likewise.
521 * elf32-mips.c: Likewise.
523 2000-11-27 Kazu Hirata <kazu@hxi.com>
525 * aout-adobe.c: Fix formatting.
526 * coff64-rs6000.c: Likewise.
527 * coffgen.c: Likewise.
528 * cofflink.c: Likewise.
530 2000-11-27 Philip Blundell <pb@futuretv.com>
532 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
533 (obj_coff_strings_written): New accessor macro for above.
534 * libcoff.h: Regenerate.
535 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
537 * coffcode.h (coff_write_object_contents): No need to write out
538 the string table if it's already been done.
540 2000-11-22 Philip Blundell <pb@futuretv.com>
542 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
543 weak undefined symbols.
545 2000-11-24 Nick Clifton <nickc@redhat.com>
547 * archures.c (bfd_mach_arm_5TE): Define.
548 (bfd_mach_arm+XScale): Define.
549 * bfd-in2.h: Regenerate.
551 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
552 BFD_RELOC_ARM_PCREL_BLX.
554 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
555 XScale machine numbers.
557 * config.bfd (xscale-elf): Add target.
558 (xscale-coff): Add target.
560 * cpu-arm.c: Add xscale machine name.
561 Add v5t, v5te and XScale machine numbers.
563 2000-11-23 Kazu Hirata <kazu@hxi.com>
565 * aix386-core.c: Fix formatting.
567 2000-11-22 Jim Wilson <wilson@redhat.com>
569 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
570 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
571 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
572 (ins_imms_scaled): Initialize sign_bit at function entry.
573 (elf64_ia64_operands): Add missing initializers.
574 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
575 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
576 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
577 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
578 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
580 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
581 and free_extsyms at function entry.
582 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
583 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
584 (get_got): Delete unused local srel.
585 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
586 (elfNN_ia64_relocate_section): Delete unused local dynindx.
588 2000-11-21 Kazu Hirata <kazu@hxi.com>
590 * coff-a29k.c: Fix formatting.
591 * coff-h8500.c: Likewise.
592 * coff-i960.c: Likewise.
593 * coff-ppc.c: Likewise.
594 * coff-rs6000.c: Likewise.
595 * coff-stgo32.c: Likewise.
596 * coff-tic54x.c: Likewise.
597 * coff-w65.c: Likewise.
598 * cpu-h8500.c: Likewise.
599 * cpu-hppa.c: Likewise.
600 * cpu-ns32k.c: Likewise.
602 * ecofflink.c: Likewise.
604 2000-11-21 Nick Clifton <nickc@redhat.com>
606 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
607 remove possibility of infinite loop.
609 2000-11-20 Kazu Hirata <kazu@hxi.com>
611 * aix386-core.c: Fix formatting.
612 * aout-adobe.c: Likewise.
613 * aout-arm.c: Likewise.
614 * aout-encap.c: Likewise.
615 * aout-ns32k.c: Likewise.
616 * aout-target.h: Likewise.
617 * aout-tic30.c: Likewise.
618 * aoutf1.h: Likewise.
620 * archive.c: Likewise.
621 * bfd-in.h: Likewise.
622 * bfd-in2.h: Likewise.
626 2000-11-17 H.J. Lu <hjl@gnu.org>
628 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
629 pltoff entries for DT_INIT and DT_FINI.
630 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
631 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
634 2000-11-16 Richard Henderson <rth@redhat.com>
636 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
637 (allocate_dynrel_entries): Likewise.
638 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
639 (set_pltoff_entry): Likewise.
640 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
641 (elfNN_ia64_reloc_type_lookup): Likewise.
642 (elfNN_ia64_install_value): Likewise.
643 (elfNN_ia64_relocate_section): Likewise.
644 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
645 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
647 2000-11-16 Kazu Hirata <kazu@hxi.com>
649 * cpu-a29k.c: Fix formatting.
650 * cpu-alpha.c: Likewise.
651 * cpu-arm.c: Likewise.
652 * cpu-avr.c: Likewise.
653 * cpu-d10v.c: Likewise.
654 * cpu-h8500.c: Likewise.
655 * cpu-hppa.c: Likewise.
656 * cpu-i370.c: Likewise.
657 * cpu-i386.c: Likewise.
658 * cpu-i960.c: Likewise.
659 * cpu-ia64-opc.c: Likewise.
660 * cpu-ia64.c: Likewise.
661 * cpu-m32r.c: Likewise.
662 * cpu-m68hc11.c: Likewise.
663 * cpu-m68hc12.c: Likewise.
664 * cpu-m68k.c: Likewise.
665 * cpu-m88k.c: Likewise.
666 * cpu-mips.c: Likewise.
667 * cpu-ns32k.c: Likewise.
668 * cpu-pj.c: Likewise.
669 * cpu-powerpc.c: Likewise.
670 * cpu-sh.c: Likewise.
671 * cpu-sparc.c: Likewise.
672 * cpu-tic54x.c: Likewise.
673 * cpu-v850.c: Likewise.
674 * cpu-vax.c: Likewise.
675 * cpu-w65.c: Likewise.
676 * cpu-we32k.c: Likewise.
677 * cpu-z8k.c: Likewise.
678 * dwarf1.c: Likewise.
679 * dwarf2.c: Likewise.
681 2000-11-15 Kazu Hirata <kazu@hxi.com>
683 * coff-arm.c: Fix formatting.
684 * coff-ppc.c: Likewise.
685 * coff-rs6000.c: Likewise.
686 * coff-sh.c: Likewise.
687 * coff-sparc.c: Likewise.
688 * coff-tic30.c: Likewise.
689 * coff-tic54x.c: Likewise.
690 * coff-tic80.c: Likewise.
691 * coff-w65.c: Likewise.
692 * coff-we32k.c: Likewise.
693 * coff-z8k.c: Likewise.
695 2000-11-15 Richard Henderson <rth@redhat.com>
697 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
698 section with the same ALLOC|LOAD flags as the source section.
700 2000-11-14 Jakub Jelinek <jakub@redhat.com>
702 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
703 by STO_ALPHA constants.
705 2000-11-14 Kazu Hirata <kazu@hxi.com>
707 * coff-pmac.c: Fix formatting.
708 * coff-ppc.c: Likewise.
710 2000-11-13 H.J. Lu <hjl@gnu.org>
712 * elflink.h (elf_link_add_object_symbols): Also add indirect
713 symbols for common symbols with the default version.
715 2000-11-09 Philip Blundell <pb@futuretv.com>
717 * section.c (STD_SECTION): Set gc_mark flag.
719 2000-11-11 Kazu Hirata <kazu@hxi.com>
721 * coff-i960.c: Likewise.
722 * coff-m68k.c: Likewise.
723 * coff-m88k.c: Likewise.
724 * coff-mcore.c: Likewise.
725 * coff-mips.c: Likewise.
727 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
729 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
731 2000-11-10 Kazu Hirata <kazu@hxi.com>
733 * coff-h8300.c: Fix formatting.
734 * coff-h8500.c: Likewise.
735 * coff-i386.c: Likewise.
736 * coff-i860.c: Likewise.
737 * coff-i960.c: Likewise.
738 * coff-ia64.c: Likewise.
740 2000-11-09 Kazu Hirata <kazu@hxi.com>
742 * archive.c: Fix formatting.
743 * archures.c: Likewise.
745 2000-11-07 Richard Henderson <rth@redhat.com>
747 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
748 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
749 * section.c (bfd_set_section_contents): Call memcpy if
750 section->contents set and location not equal to contents plus offset.
752 2000-11-08 Kazu Hirata <kazu@hxi.com>
754 * bfd-in.h: Fix formatting.
755 * bfd-in2.h: Likewise.
757 * binary.c: Likewise.
759 * coff-a29k.c: Likewise.
760 * coff-alpha.c: Likewise.
761 * coff-apollo.c: Likewise.
762 * coff-aux.c: Likewise.
764 2000-11-07 Kazu Hirata <kazu@hxi.com>
766 * aix386-core.c: Fix formatting.
767 * aoutf1.h: Likewise.
769 * archures.c: Likewise.
770 * armnetbsd.c: Likewise.
772 2000-11-07 Alan Modra <alan@linuxcare.com.au>
774 * coff-h8300.c (special): Adjust reloc address.
776 2000-11-06 Steve Ellcey <sje@cup.hp.com>
778 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
779 to differentiate elf32 and elf64 on ia64.
780 * bfd-in2.h: Regenerate.
781 * config.bfd: Add target for "ia64*-*-hpux*".
782 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
783 * configure: Regenerate.
784 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
785 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
787 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
788 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
789 * Makefile.in: Regnerate.
790 * elf64-ia64.c: Deleted.
791 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
793 2000-11-06 Kazu Hirata <kazu@hxi.com>
795 * aout-adobe.c: Fix formatting.
796 * aout-arm.c: Likewise.
797 * aout-cris.c: Likewise.
798 * aout-encap.c: Likewise.
799 * aout-ns32k.c: Likewise.
800 * aout-target.h: Likewise.
801 * aout-tic30.c: Likewise.
803 2000-11-05 Philip Blundell <philb@gnu.org>
805 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
806 BFDs containing no sections to be merged, regardless of their flags.
808 2000-11-04 Philip Blundell <philb@gnu.org>
810 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
811 if a relocation for an undefined symbol also results in an
814 2000-11-06 Christopher Faylor <cgf@cygnus.com>
816 * config.bfd: Add support for Sun Chorus.
818 2000-11-05 David O'Brien <obrien@FreeBSD.org>
820 * configure.in: Recognize alpha-*-freebsd*.
821 * configure: Regenerate.
823 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
825 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
826 (Chunk): New global variable set by a parameter in objcopy.c.
827 (S3Forced): New global variable set by a parameter in
829 (srec_set_section_contents): If S3Forced is true, always generate
831 (srec_write_section): Use 'Chunk' to limit maximum length of S
834 2000-11-02 Per Lundberg <plundis@chaosdev.org>
836 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
837 * Makefile.in: Regenerate.
838 * bfd-in2.h: Regenerate.
839 * po/bfd.pot: Regenerate.
841 2000-10-31 Philip Blundell <philb@gnu.org>
843 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
844 EF_SOFT_FLOAT if it is defined.
846 2000-10-27 Philip Blundell <philb@gnu.org>
848 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
849 attempts to mix PIC code with non-PIC, just mark the output as
850 being position dependent.
851 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
852 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
853 all mismatches, not just the first one.
855 2000-10-25 Chris Demetriou <cgd@sibyte.com>
857 * ieee.c (ieee_archive_p): Plug one of many possible
858 memory leaks in error handling.
860 2000-10-20 Jakub Jelinek <jakub@redhat.com>
862 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
863 elf32_sparc_object_p, elf32_sparc_final_write_processing):
865 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
866 sparc64_elf_object_p): Support v9b.
867 * archures.c: Declare v8plusb and v9b machines.
869 * cpu-sparc.c: Ditto.
871 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
873 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
876 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
877 (SYMBOL_CALLS_LOCAL): New macro.
878 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
879 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
880 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
881 (ppc_elf_relocate_section): Use flag variable to determine
882 whether the relocation refers to a local symbol.
883 Test whether a PLTREL24 reloc will produce a reloc by looking
884 to see whether a PLT entry was made.
886 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
888 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
889 entries that could serve as a definition for a weak symbol.
891 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
893 From Ralf Baechle <ralf@gnu.org>
895 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
896 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
897 against local symbols.
898 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
900 2000-10-12 Alan Modra <alan@linuxcare.com.au>
902 * section.c (struct sec): Add kept_section.
903 (struct bfd_comdat_info): Remove sec, we can use above.
904 (STD_SECTION): Add initializer.
905 (bfd_make_section_anyway): Init here too.
907 * bfd-in2.h: Regenerate.
909 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
911 (elf_link_input_bfd): Set all asection->symbol->value's here, and
912 fudge values for discarded link-once section symbols.
914 * elf64-hppa.c: Include alloca-conf.h
916 2000-10-11 Alan Modra <alan@linuxcare.com.au>
918 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
920 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
922 2000-10-10 Alan Modra <alan@linuxcare.com.au>
924 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
926 2000-10-10 Tom Rix <trix@redhat.com>
928 * section.c (bfd_make_section_anyway): Release newsect ptr when
929 newsect->symbol fails to alloc. Use bfd_release instead of free.
931 2000-10-09 Richard Henderson <rth@cygnus.com
933 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
934 (elf64_ia64_unwind_entry_compare): New.
935 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
937 2000-10-07 Alan Modra <alan@linuxcare.com.au>
939 * elflink.h (size_dynamic_sections): Don't create various tags if
940 .dynstr is excluded from the link. Don't set first dynsym entry
941 if dynsymcount is zero.
942 (elf_bfd_final_link): Don't try to swap out dynamic syms if
943 .dynsym excluded from the link. Don't try to write any dynamic
944 sections excluded from the link.
946 * elf.c (swap_out_syms): Handle global section symbols.
948 2000-10-05 DJ Delorie <dj@redhat.com>
950 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
951 * coffcode.h (coff_set_alignment_hook): read extended reloc count
952 (coff_write_relocs): write extended reloc count
953 (coff_write_object_contents): account for extended relocs
955 2000-10-05 Jim Wilson <wilson@cygnus.com>
957 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
959 * elf.c (_bfd_elf_make_section_from_shdr): Call the
960 elf_backend_section_flags function.
961 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
963 (elf64_ia64_section_flags): New function containing flag conversion
965 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
966 * elfxx-target.h (elf_backend_section_flags): Define.
967 (elfNN_bed): Initialize elf_backend_section_flags field.
969 2000-10-02 Alan Modra <alan@linuxcare.com.au>
971 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
972 _bfd_elf32_gc_record_vtable. Correct a comment.
974 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
976 From Ralf Baechle <ralf@gnu.org>
978 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
979 produces binaries with got[1] = 0x80000001 to differenciate them
980 for the dynamic linker from the broken binaries produced by old
983 2000-09-30 Petr Sorfa <petrs@sco.com>
985 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
986 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
987 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
988 * configure: Regenerate.
990 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
992 Define two bfd_targets for absence and presence of leading
993 underscore on symbols. Make sure to only link same kind.
994 * elf32-cris.c (cris_elf_object_p,
995 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
996 cris_elf_merge_private_bfd_data): New.
997 (elf_backend_object_p, elf_backend_final_write_processing,
998 bfd_elf32_bfd_print_private_bfd_data,
999 bfd_elf32_bfd_merge_private_bfd_data): Define.
1000 <Target vector definition>: Include elf32-target.h twice with
1001 different macro settings:
1002 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1003 bfd_elf32_us_cris_vec.
1004 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1005 (elf_symbol_leading_char): First as 0, then '_'.
1006 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1007 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1008 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1009 * configure: Regenerate.
1010 * targets.c: Declare bfd_elf32_us_cris_vec.
1011 * po/bfd.pot: Regenerate.
1013 2000-09-29 Momchil Velikov <velco@fadata.bg>
1015 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1016 R_ARM_THM_PC22 relocations.
1018 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1020 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1022 2000-09-29 Momchil Velikov <velco@fadata.bg>
1024 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1025 is has the SEC_HAS_CONTENTS flag set.
1027 2000-09-28 Örjan Friberg <orjanf@axis.com>
1028 Hans-Peter Nilsson <hp@axis.com>
1030 * aout-cris.c (N_TXTADDR): Define.
1032 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1034 * som.c: Include alloca-conf.h.
1035 * Makefile.am: "make dep-am"
1036 * Makefile.in: Regenerate.
1038 2000-09-27 Alan Modra <alan@linuxcare.com.au>
1040 * elf32-hppa.c (plt_stub): New.
1041 (PLT_STUB_ENTRY): Define.
1042 (elf32_hppa_link_hash_table): Change multi_subspace to packed
1043 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1044 (elf32_hppa_link_hash_table_create): Init to suit.
1045 (elf32_hppa_check_relocs): Set has_12bit_branch and
1046 has_17bit_branch as appropriate.
1047 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1048 non-local functions.
1049 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1050 Add space for plt_stub as needed.
1051 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1052 functions at plt_stub.
1053 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1054 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1056 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1057 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
1058 of fixed size, and if negative, disable handling of input sections
1059 before stub section. Set up default stub group size depending
1060 on detected branch relocs.
1061 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1062 ensure different offsets from sym_value aren't rounded to
1063 different 2k blocks. Use lrsel and rrsel for other stubs too for
1064 consistency rather than necessity.
1065 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1066 (final_link_relocate): Likewise.
1067 (elf32_hppa_relocate_section): Likewise.
1069 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1070 (_bfd_elf_hppa_gen_reloc_type): Generate them.
1071 (elf_hppa_final_link_relocate): Handle them.
1072 (elf_hppa_relocate_insn): Likewise.
1073 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1075 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
1077 * elfcode.h (elf_object_p): Preserve and clear abfd section
1078 information. Restore at error.
1080 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1082 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1083 is empty, make sure that its rva also 0. NT loader dislikes
1086 2000-09-26 Steve Ellcey <sje@cup.hp.com>
1088 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1091 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1093 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1094 currently unused RELATIVE_DYNAMIC_RELOCS code.
1095 (hppa_discard_copies): Likewise.
1096 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1097 comments. Don't check non-code output sections for stub grouping.
1099 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1101 * section.c (bfd_get_unique_section_name): Return NULL if
1104 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1106 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1107 instruction sequence to actually work.
1108 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1111 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
1113 * elf32-sh.c (sh_elf_relocate_section): Use
1114 _bfd_final_link_relocate to apply the relocation against a section
1115 symbol, when doing relocatable links.
1117 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1119 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1121 (stub_hash_newfunc): Here too.
1122 (hppa_add_stub): And here.
1123 (elf32_hppa_link_hash_table): Remove stub_section_created,
1124 reloc_section_created, first_init_sec and first_fini_sec. Add
1126 (elf32_hppa_link_hash_table_create): Init to suit.
1127 (hppa_get_stub_entry): Add support for grouping stub sections.
1128 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
1129 section code. Index stub vars by section->id.
1130 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
1131 exit paths. Zap allocation of above removed vars. Refine
1134 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1135 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1136 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1137 rather than pointer to bfd_link_info.
1138 (hppa_add_stub): Likewise.
1139 (final_link_relocate): Likewise.
1141 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
1143 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1146 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
1148 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1149 ld/emulparams/shelf.sh.
1151 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1153 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1154 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1155 * bfd-in2.h: Regenerate.
1157 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
1159 * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1160 LITUSE relocations incorrectly if -relax is specified on the ld
1161 command line and the displacement field of the load or store
1162 instruction is non-zero. (Patch by paul.winalski@compaq.com)
1164 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1166 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1167 first_fini_sec here.
1168 (elf32_hppa_size_stubs): Instead correctly find the first .init
1169 and .fini section here.
1171 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
1173 * elf32-hppa.c (clobber_millicode_symbols): New function.
1174 (elf32_hppa_size_dynamic_sections): Call it.
1176 2000-09-14 Alan Modra <alan@linuxcare.com.au>
1178 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1179 packed. Add plabel, plt_abs packed booleans.
1180 (hppa_link_hash_newfunc): Init new fields.
1181 (PLABEL_PLT_ENTRY_SIZE): Define.
1182 (hppa_stub_name): Use size_t len vars.
1183 (hppa_add_stub): Likewise.
1184 (elf32_hppa_build_stubs): Likewise.
1185 (hppa_build_one_stub): Kill some compiler warnings.
1186 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1187 if dynamic linking. Munge the local plt offsets into
1188 local_got_refcounts. Set h->plabel for all global PLABELs. Use
1189 size_t len vars. Add assert for plabel addend.
1190 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1191 (elf32_hppa_hide_symbol): New function.
1192 (elf_backend_hide_symbol): Define.
1193 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1194 with h->plabel set. Don't make plt entries to have dynamic syms
1195 when they have been forced local. If plt entry is used by a
1196 plabel, make it PLABEL_PLT_ENTRY_SIZE.
1197 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1198 Set up .plt offsets for local syms.
1199 (elf32_hppa_relocate_section): Initialise plt entries for local
1200 syms. Leave weak undefined plabels zero. Make global plabel
1201 relocs against function symbol, and leave the addend zero.
1202 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1203 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1204 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
1205 relocs instead of SEGREL32 for dynamic got relocs.
1206 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1207 (elf_backend_got_header_size): Adjust.
1208 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
1210 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1211 (hppa_type_of_stub): Use it instead of #if 0
1212 (hppa_discard_copies): Use it here too.
1213 (elf32_hppa_size_dynamic_sections): And here.
1215 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1216 (elf32_hppa_link_hash_table_create): And here.
1217 (hppa_build_one_stub): And here. Instead keep track of stub
1218 offset using _raw_size.
1219 (elf32_hppa_size_stubs): Likewise.
1220 (elf32_hppa_build_stubs): Likewise.
1221 (hppa_size_one_stub): Likewise. Resize reloc section too.
1223 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
1224 first_fini_sec handling. Don't search for reloc section or set
1225 hplink->reloc_section_created here.
1226 (elf32_hppa_size_stubs): Instead search for reloc sections, and
1227 set reloc_section_created here.
1228 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
1229 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
1231 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
1233 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
1234 with `hplink->root.'.
1235 (elf32_hppa_check_relocs): Likewise.
1236 (elf32_hppa_gc_sweep_hook): Likewise.
1237 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1238 (hppa_handle_PIC_calls): Likewise.
1239 (elf32_hppa_size_dynamic_sections): Likewise.
1240 (elf32_hppa_set_gp): Likewise.
1241 (elf32_hppa_relocate_section): Likewise.
1242 (elf32_hppa_finish_dynamic_symbol): Likewise.
1243 (elf32_hppa_finish_dynamic_sections): Likewise.
1245 From David Huggins-Daines <dhd@linuxcare.com>
1246 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
1247 defined weak symbols in shared links.
1248 (final_link_relocate): Calls to defined weak symbols in shared
1249 objects must go via import stubs, as the target might not be known
1252 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1254 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
1255 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
1256 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
1257 the original entries with EMPTY_HOWTOs, and added new ones to fill
1259 (sh_elf_info_to_howto): Make sure the new gap isn't used.
1260 (sh_elf_relocate_section): Likewise.
1262 2000-09-13 Anders Norlander <anorland@acc.umu.se>
1264 * cpu-mips.c (arch_info_struct): Add mips:4K
1265 * bfd-in2.h (bfd_mach_mips4K): New define.
1266 * archures.c: Add bfd_mach_mips4K to comment.
1267 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
1268 E_MIPS_ARCH_2 for bfd_mach_mips4K.
1270 2000-09-13 Marco Franzen <marcof@thyron.com>
1272 * som.c (som_write_symbol_strings): Do not used fixed buffers,
1273 use size_t as a counter.
1274 (som_write_space_strings): Similarly.
1276 2000-09-12 Jason Eckhardt <jle@cygnus.com>
1278 * elf32-i860.c (elf32_i860_relocate_pc26): New function
1280 (elf32_i860_relocate_section): Invoke new function from here.
1282 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1284 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
1287 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1289 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
1290 target section name instead of dumping core when the target symbol is
1293 2000-09-09 Kazu Hirata <kazu@hxi.com>
1295 * riscix.c: Remove DEFUN.
1297 2000-09-08 Nick Clifton <nickc@redhat.com>
1299 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
1300 initialise flags in output bfd if the input bfd is the default
1301 architecture with the default flags.
1303 2000-09-08 Kazu Hirata <kazu@hxi.com>
1305 * archive.c: Fix formatting.
1306 * coff-arm.c: Likewise.
1307 * doc/chew.c: Likewise.
1309 2000-09-08 Alan Modra <alan@linuxcare.com.au>
1311 * section.c (bfd_get_unique_section_name): Put a dot before the
1314 2000-09-07 Kazu Hirata <kazu@hxi.com>
1316 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
1317 * elf.c: Fix formatting.
1319 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
1321 * config.bfd (sh-*-linux*): Added.
1322 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
1323 * targets.c: Declare them.
1324 * elf32-sh-lin.c: New file.
1325 * Makefile.am: Compile it.
1326 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
1327 * configure, Makefile.in: Rebuilt.
1329 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
1331 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
1332 pseduo-section when determining where the TOC ends.
1334 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
1335 output x_tvndx as it is only two bytes wide.
1337 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
1338 reloc is 26 or 32 bits wide.
1340 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
1341 for relocs that don't change anything. Also look at the full
1344 2000-09-06 Philip Blundell <philb@gnu.org>
1346 * config.bfd (arm*-*-uclinux*): New target.
1348 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1350 * configure: Rebuilt with new libtool.m4.
1352 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1354 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
1355 word for variable name.
1356 * bfd-in2.h: Regenerate.
1358 2000-09-05 Nick Clifton <nickc@redhat.com>
1360 * config.in: Regenerate.
1361 * libbfd.h: Regenerate.
1362 * po/bfd.pot: Regenerate.
1363 * doc/bfdint.texi: Remove CVS date string - it foils compares with
1366 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
1368 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
1370 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1372 Shared library and PIC support.
1373 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
1374 (GOT_ENTRY_SIZE): New.
1375 (ELF_DYNAMIC_INTERPRETER): New.
1376 (STUB_SUFFIX): Define.
1377 (LONG_BRANCH_PIC_IN_SHLIB): Define.
1378 (RELATIVE_DYNAMIC_RELOCS): Define.
1379 (enum elf32_hppa_stub_type): New.
1380 (struct elf32_hppa_stub_hash_entry): Rename offset to
1381 stub_offset. Add a number of new fields.
1382 (struct elf32_hppa_link_hash_entry): New.
1383 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
1385 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
1386 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
1387 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
1389 (hppa_link_hash_newfunc): New function.
1390 (elf32_hppa_link_hash_table_create): Use above function. Init new
1392 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
1393 instead of addend, and remove sym_name from args. Don't use
1394 symbol name for local syms, instead use sym index.
1395 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
1396 stub type rather than size. Pass in hash and handle import stub
1397 case. Also pass in reloc instead of offset so we can calculate
1398 PCREL22F and PCREL12F branches properly.
1399 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
1400 import and export stubs too.
1401 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
1402 import and export stub sizing.
1403 (elf32_hppa_check_relocs): New function.
1404 (elf32_hppa_adjust_dynamic_symbol): New function.
1405 (hppa_discard_copies): New function.
1406 (elf32_hppa_size_dynamic_sections): New function.
1407 (elf_backend_size_dynamic_sections): Define.
1408 (elf32_hppa_finish_dynamic_symbol): New function.
1409 (elf_backend_finish_dynamic_symbol): Define.
1410 (elf32_hppa_size_stubs): Stash params in link hash table, and move
1411 some local vars into the link hash table too. For shared links,
1412 trundle over function syms, generating export stubs. Handle
1413 PCREL22F branches. Break out stub creation code from here..
1414 (hppa_add_stub): .. to here. New function.
1415 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
1416 call the bfd linker. Use elf_gp to record global pointer.
1417 Calculate a value from sections if $global$ is missing.
1418 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
1419 (elf32_hppa_gc_mark_hook): New function.
1420 (elf_backend_gc_mark_hook): Define.
1421 (elf32_hppa_gc_sweep_hook): New function.
1422 (elf_backend_gc_sweep_hook): Define.
1423 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
1424 Add rel to args, and remove howto, input_bfd, offset, addend,
1425 sym_name as we can recalculate these locally. Handle calls to
1426 dynamic objects, extra PIC relocs, PCREL22F branches. Change
1427 handling of undefined weak syms. Check that stubs are in range.
1428 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
1429 message on hitting a DPREL21L reloc that needs fixing. Subtract
1430 off PC for PCREL14F. Break out code that does a stub lookup from
1432 (hppa_get_stub_entry): ..to here. New function.
1433 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
1434 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
1436 (elf32_hppa_finish_dynamic_sections): New function.
1437 (elf_backend_finish_dynamic_sections): Define.
1438 (elf_backend_final_write_processing) Define.
1439 (hppa_handle_PIC_calls): New function.
1440 (elf32_hppa_build_stubs): Call it. Pass link_info to
1441 hppa_build_one_stub.
1442 (elf32_hppa_create_dynamic_sections): New function
1443 to create .plt and .got then set .plt flags correctly.
1444 (elf_backend_create_dynamic_sections): Define.
1445 (elf32_hppa_object_p): New function.
1446 (elf_backend_object_p): Define.
1447 (elf32_hppa_elf_get_symbol_type): New function.
1448 (elf_backend_get_symbol_type): Define.
1449 (elf_backend_can_gc_sections): Define.
1450 (elf_backend_want_got_plt): Define.
1451 (elf_backend_plt_alignment): Set to 2.
1452 (elf_backend_plt_readonly): Define.
1453 (elf_backend_want_plt_sym): Define.
1454 (elf_backend_got_header_size): Reserve one entry.
1456 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
1457 (elf32_hppa_size_stubs): Pass in multi_subspace.
1458 (elf32_hppa_set_gp): Declare.
1460 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
1461 (bfd_get_unique_section_name): New function.
1462 * bfd_in2.h: Regenerate.
1464 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
1465 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
1468 From David Huggins-Daines <dhd@linuxcare.com>
1469 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
1470 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
1471 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
1472 been updated in finish_dynamic_symbol before modifying function
1475 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
1476 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
1477 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
1478 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
1479 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
1480 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
1481 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
1482 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
1484 From David Huggins-Daines <dhd@linuxcare.com>
1485 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
1486 style of local labels as well.
1488 2000-09-03 Philip Blundell <philb@gnu.org>
1490 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
1491 references to undefined symbols in debugging sections.
1493 2000-09-02 H.J. Lu <hjl@gnu.org>
1495 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1496 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
1497 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
1500 2000-09-02 Jason Eckhardt <jle@cygnus.com>
1502 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
1503 (elf32_i860_is_local_label_name): New function and prototype.
1505 2000-09-02 Nick Clifton <nickc@redhat.com>
1507 * configure.in: Increase version number to 2.10.91.
1508 * configure: Regenerate.
1509 * aclocal.m4: Regenerate.
1510 * config.in: Regenerate.
1511 * po/bfd.pot: Regenerate.
1513 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1515 * elf.c (_bfd_elf_make_section_from_shdr): Add
1516 .gnu.linkobce.wi. to the list of debug section names.
1518 2000-09-02 Nick Clifton <nickc@redhat.com>
1520 * dwarf2.c (find_debug_info): New function: Locate a section
1521 containing dwarf2 debug information.
1522 (bfd_dwarf2_find_nearest_line): Find all sections containing
1523 debug information and include them in the stash.
1525 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1527 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
1528 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
1529 (sh_reloc_map): Add new relocs.
1530 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
1531 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
1532 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
1533 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
1535 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
1536 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1537 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
1538 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
1539 New array constants.
1540 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
1542 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1543 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
1544 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
1545 elf_sh_plt_reloc_offset): Define.
1546 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
1547 elf_sh_link_hash_table): New structs.
1548 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
1549 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
1551 (elf_backend_create_dynamic_sections,
1552 bfd_elf32_bfd_link_hash_table_create,
1553 elf_backend_adjust_dynamic_symbol,
1554 elf_backend_size_dynamic_sections,
1555 elf_backend_finish_dynamic_symbol,
1556 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1557 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1558 elf_backend_got_header_size, elf_backend_plt_header_size):
1560 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1561 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
1563 * bfd-in2.h, libbfd.h: Rebuilt.
1565 2000-09-01 Alan Modra <alan@linuxcare.com.au>
1567 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
1570 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
1572 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
1573 not initialized, set them to indicate the SH1 instruction set.
1575 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1577 * acinclude.m4: Include libtool and gettext macros from the
1579 * aclocal.m4, configure: Rebuilt.
1581 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
1583 * elf.c: Eliminate references to __sparcv9 macro; replace with
1584 autoconf variables HAVE_PSINFO32_T etc.
1585 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
1586 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
1588 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
1589 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
1590 * aclocal.m4: Ditto.
1591 * configure: Regenerate.
1593 2000-08-27 Alan Modra <alan@linuxcare.com.au>
1595 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
1596 for any shared link, not just shared -Bsymbolic.
1597 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
1598 any shared link, and pass link info to it.
1599 (elf_i386_size_dynamic_sections): Update comment.
1600 (elf_i386_discard_copies): Modify to discard relocs for symbols
1601 that have been forced local.
1602 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
1603 that have been forced local.
1605 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
1607 * elflink.h (elf_link_add_object_symbols): Allow common
1608 symbols to have an alignment of 1 if explicitly requested, and
1609 not overridden by other definitions.
1611 2000-08-22 Doug Kwan <dkwan@transmeta.com>
1613 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
1614 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
1616 2000-08-22 H.J. Lu <hjl@gnu.org>
1618 * elf-bfd.h (elf_link_hash_table): Add runpath.
1620 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
1621 * bfd-in2.h: Rebuilt.
1623 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
1624 "runpath" field to NULL.
1625 (bfd_elf_get_runpath_list): New function.
1627 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
1630 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
1632 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
1633 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
1634 explicitly. Improve validation of r_type.
1636 2000-08-21 H.J. Lu <hjl@gnu.org>
1638 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
1639 dynamic allocated content space. Add a comment to remind us that
1640 one day this ought to be fixed.
1641 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1642 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
1643 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1645 2000-08-21 Jason Eckhardt <jle@cygnus.com>
1647 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
1648 field with the newly relocated value instead of adding it to the
1649 existing immediate field.
1650 (elf32_i860_relocate_splitn): Likewise.
1651 (elf32_i860_relocate_highadj): Likewise.
1653 2000-08-16 Jason Eckhardt <jle@cygnus.com>
1655 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
1656 was previously just a stub).
1658 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
1660 * elflink.c (_bfd_elf_create_got_section): Don't abort().
1662 (_bfd_elf_create_dynamic_sections): Likewise.
1664 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
1666 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
1667 for undefined symbols to be the beginning of the section.
1669 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
1670 four extra entries at the beginning of the .rela.plt section.
1671 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
1672 section to account for the four reserved entries in the .plt section.
1674 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
1676 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
1677 to the list of NOPs we recognize after a branch-and-link.
1678 Use the ori NOP when one is needed.
1680 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
1683 2000-08-14 Jim Wilson <wilson@cygnus.com>
1685 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
1686 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
1687 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
1690 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
1692 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
1694 2000-08-10 Jason Eckhardt <jle@cygnus.com>
1696 * elf32-i860.c (elf32_i860_relocate_section): New function.
1697 (i860_final_link_relocate): New function.
1698 (elf32_i860_relocate_splitn): New function.
1699 (elf32_i860_relocate_pc16): New function.
1700 (elf32_i860_relocate_highadj): New function.
1701 (elf32_i860_howto): Minor adjustments to some relocations.
1702 (elf_info_to_howto_rel): Define.
1703 (elf_backend_relocate_section): Define.
1705 2000-08-10 Nick Clifton <nickc@cygnus.com>
1707 * elf32-arm.h: Fix formatting.
1709 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
1711 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
1713 2000-08-08 Jason Eckhardt <jle@cygnus.com>
1715 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
1717 2000-08-07 Kazu Hirata <kazu@hxi.com>
1719 * ieee.c (ieee_write_debug_part): Rewrite a comment.
1720 * elf64-ia64.c: Fix a typo.
1722 2000-08-05 Jason Eckhardt <jle@cygnus.com>
1724 * elf32-i860 (elf32_i860_howto_table): New structure.
1725 (lookup_howto): New function.
1726 (elf32_i860_reloc_type_lookup): New function.
1727 (elf32_i860_info_to_howto_rela): New function.
1728 (elf_code_to_howto_index): New structure.
1729 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
1730 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
1731 elf32_i860_reloc_type_lookup.
1733 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
1735 * som.c (struct fixup_format): Constify `format'.
1736 (som_hppa_howto_table): Use SOM_HOWTO macro.
1737 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
1738 (som_bfd_reloc_type_lookup): Likewise.
1739 (compare_subspaces): Remove unused `count1', `count2'.
1740 (som_begin_writing): Remove unused `total_reloc_size'.
1741 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
1742 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
1743 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
1744 (som_find_nearest_line): Decorate unused parameter(s).
1745 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
1746 (som_bfd_link_split_section): Likewise.
1748 2000-08-03 Nick Clifton <nickc@cygnus.com>
1750 * section.c: Restore backed out code.
1751 * elf.c: Restore backed out code.
1752 (copy_private_bfd_data): Fix bug preventing stipped dynamic
1753 binaries from working.
1754 * bfd-in2.h: Regenerate.
1756 2000-08-03 H.J. Lu <hjl@gnu.org>
1758 * section.c: Back out the change made by Nick Clifton
1759 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
1761 * bfd-in2.h: Likewise.
1764 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
1766 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
1768 2000-07-31 Jason Eckhardt <jle@cygnus.com>
1770 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
1771 * bfd-in2.h, libbfd.h: Regenerate.
1773 2000-07-31 Nick Clifton <nickc@cygnus.com>
1775 * section.c (struct sec): Add new boolean field 'segment_mark'.
1776 (STD_SECTION): Initialise new field to zero.
1778 * bfd-in2.h: Regenerate.
1780 * elf.c (copy_private_bfd_data): Reorganise section to segment
1781 mapping to cope with moved sections requiring new segments,
1782 and overlapping segments.
1783 (SEGMENT_END): New macro: Return the end address of a segment.
1784 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
1785 contains a section by comparing their VMA addresses.
1786 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
1787 contains a section by comparing their LMA addresses.
1788 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
1789 section should be included in a segment.
1790 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
1791 follows another in memory.
1792 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
1795 2000-07-22 Jason Eckhardt <jle@cygnus.com>
1797 * cpu-i860.c: Added comments.
1799 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
1800 bfd_elf32_i860_little_vec.
1801 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
1802 (ELF_MAXPAGESIZE): Changed to 4096.
1804 * targets.c (bfd_elf32_i860_little_vec): Declaration of
1806 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
1808 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
1809 config for little endian elf32 i860.
1810 (targ_defvec): Define for the new config above
1811 as "bfd_elf32_i860_little_vec".
1812 (targ_selvecs): Define for the new config above
1813 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
1815 * configure.in (bfd_elf32_i860_little_vec): Added recognition
1818 * configure: Regenerated.
1820 2000-07-27 H.J. Lu <hjl@gnu.org>
1822 * elflink.h (elf_merge_symbol): Take one more argument,
1823 dt_needed, to indicate if the symbol comes from a DT_NEEDED
1824 entry. Don't overide the existing weak definition if dt_needed
1826 (elf_link_add_object_symbols): Pass dt_needed to
1827 elf_merge_symbol ().
1829 2000-07-27 Nick Clifton <nickc@cygnus.com>
1831 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
1834 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
1836 * configure.host (*-*-aix*): AIX has 'long long' always.
1838 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
1839 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
1840 (xcoff_write_archive_contents_big): Don't update the offset
1841 of the symbol table, xcoff_write_armap will do it.
1843 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
1845 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
1846 of dynobj for SGI_COMPAT checks.
1848 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1850 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
1851 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
1852 * bfd-in2.h: Regenerate.
1854 2000-07-21 Nick Clifton <nickc@cygnus.com>
1856 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
1857 range symbol indices in relocs and issue an error message.
1859 2000-07-20 H.J. Lu <hjl@gnu.org>
1861 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
1862 info->new_dtags when setting DT_FLAGS_1. It will only be set
1863 by the new linker options. It shouldn't break anything.
1865 2000-07-20 H.J. Lu <hjl@gnu.org>
1867 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
1868 only if info->new_dtags is true.
1870 2000-07-20 H.J. Lu <hjl@gnu.org>
1872 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
1873 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
1875 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
1877 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
1878 (ALL_MACHINES_CFILES): Add cpu-cris.c.
1879 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
1880 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
1881 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
1882 * Makefile.in: Rebuild.
1883 * aclocal.m4: Rebuild.
1884 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
1885 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
1886 (bfd_cris_arch): Declare.
1887 (bfd_archures_list): Add bfd_cris_arch.
1888 * bfd-in2.h: Rebuild.
1889 * config.bfd: (cris-*-*): New target.
1890 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
1891 * configure: Rebuild.
1892 * elf.c (prep_headers): Add bfd_arch_cris.
1893 * libbfd.h: Rebuild.
1894 * libaout.h (enum machine_type): Add M_CRIS.
1895 * reloc.c: Add CRIS relocations.
1896 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
1897 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
1898 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
1899 * po/POTFILES.in, po/bfd.pot: Regenerate.
1901 2000-07-19 H.J. Lu <hjl@gnu.org>
1903 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
1904 DF_TEXTREL if DT_TEXTREL is set.
1905 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
1906 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
1907 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1908 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
1909 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
1910 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
1911 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
1912 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1913 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
1914 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
1916 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
1917 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
1919 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
1921 2000-07-19 H.J. Lu <hjl@gnu.org>
1923 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
1924 * bfd-in2.h: Rebuild.
1926 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
1927 (elf_dt_soname): New.
1929 * elf.c (bfd_elf_set_dt_needed_soname): New.
1931 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
1932 entry if the shared object loaded by DT_NEEDED is used to
1933 resolve the reference in a regular object.
1935 2000-07-19 H.J. Lu <hjl@gnu.org>
1937 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
1938 DT_DEPAUDIT and DT_AUDIT as strings.
1940 2000-07-19 Nick Clifton <nickc@cygnus.com>
1942 * format.c: Fix formatting.
1944 2000-07-19 H.J. Lu <hjl@gnu.org>
1946 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
1948 2000-07-19 H.J. Lu <hjl@gnu.org>
1950 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
1951 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
1952 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
1953 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
1954 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
1955 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
1956 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
1958 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
1960 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
1961 renamed functions from here...
1962 (assign_section_numbers): Use renamed functions.
1963 (prep_headers): Use renamed functions.
1965 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
1966 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
1967 * bfd-in2.h: Regenerate.
1969 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
1971 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
1972 parenthesis in if statement.
1974 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
1976 Enable the support for Traditional MIPS.
1977 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
1978 return ict_none appropriately for traditional mips targets.
1979 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
1980 (STUB_MOVE): Conditionalize for traditonal mips.
1981 (STUB_LI16): Likewise.
1982 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
1983 room for RTPROC header.
1984 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
1985 the permission for the PT_DYNAMIC as read, write and execute.
1986 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
1987 for traditonal mips.
1988 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
1989 _DYNAMIC_LINKING for traditonal mips.
1990 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
1991 in case of traditonal mips.
1992 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
1993 entry is required. For a function if PLT is not required then set the
1994 corresponding hash table entry to 0.
1995 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
1997 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
1998 shared object set the value to 0.
1999 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2000 _DYNAMIC_LINKING for traditonal mips.
2001 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2002 for traditonal mips.
2004 2000-07-15 H.J. Lu <hjl@gnu.org>
2006 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2008 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2010 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2011 out a structure that is BFD_IN_MEMORY.
2013 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2015 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2016 bfd pointer. Print section id instead of bfd pointer for local
2017 syms. Prefix addend with `+' for global syms as well as local.
2018 Correct calculation of name component lengths.
2019 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2021 From David Huggins-Daines <dhd@linuxcare.com>
2022 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2023 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2024 (elf64_hppa_modify_segment_map): Likewise.
2026 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2028 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2029 addresses to be "naturally" sign extended. Return -1 if unknown.
2030 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2031 * bfd-in2.h: Regenerate.
2033 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2035 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2036 and ECOF_SIGNED_64 to list ways to extract an offset.
2037 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2038 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2040 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2041 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2043 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2045 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2046 bfd_get_start_address.
2047 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2048 (elf_swap_ehdr_out): Ditto.
2050 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
2052 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2053 compatibility with older binutils.
2055 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2057 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2058 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2060 From Ryan Bradetich <rbradetich@uswest.net>
2061 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2062 (parse_line_table): Ditto.
2063 (_bfd_dwarf1_find_nearest_line): Ditto.
2064 * syms.c (cmpindexentry): Remove extra `*' from params.
2066 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
2068 * elf32-mips.c (sort_dynamic_relocs): New Function.
2069 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2070 via qsort to sort the dynamic relocations in increasing r_symndx
2073 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2075 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2076 ATTRIBUTE_UNUSED to unused args.
2077 (get_opd): Likewise.
2078 (get_plt): Likewise.
2079 (get_dlt): Likewise.
2080 (get_stub): Likewise.
2081 (elf64_hppa_adjust_dynamic_symbol): Likewise.
2082 (elf64_hppa_link_output_symbol_hook): Likewise.
2083 (elf64_hppa_check_relocs): Delete unused var.
2084 (elf64_hppa_size_dynamic_sections): Likewise.
2085 (elf64_hppa_finalize_opd): Likewise.
2086 (elf64_hppa_finalize_dynreloc): Likewise.
2087 (elf64_hppa_modify_segment_map): Likewise.
2088 (elf64_hppa_finish_dynamic_sections): Likewise.
2090 * elf-hppa.h (elf_hppa_final_write_processing): Add
2091 ATTRIBUTE_UNUSED to unused args.
2092 (elf_hppa_final_link_relocate): Likewise.
2093 (elf_hppa_record_segment_addrs): Add paretheses.
2094 (elf_hppa_relocate_section): Constify dyn_name.
2096 From David Huggins-Daines <dhd@linuxcare.com>
2097 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2098 rearrange case statement so that it gets preferred to 32-bit ones.
2100 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2101 asection->id instead of address of asection structure.
2102 (elf32_hppa_size_stubs): Likewise.
2104 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2105 for .init* and .fini*.
2107 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2108 and addends used in stub names to 32 bits.
2109 (elf32_hppa_size_stubs): Likewise.
2111 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2112 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
2113 not bfd_put_64. Fix minor comment typo and formatting.
2115 Changes to create multiple linker stubs, positioned immediately
2116 before the section where they are required.
2117 * elf32-hppa.c: Don't include hppa_stubs.h.
2118 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2119 (elf32_hppa_stub_hash_table): Delete.
2120 (elf32_hppa_link_hash_entry): Delete.
2121 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2122 stub_hash_table, and store the struct here rather than a pointer.
2123 Delete output_symbol_count. Add offset array. Change
2124 global_value to a bfd_vma.
2125 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2126 (elf32_hppa_stub_hash_traverse): Delete.
2127 (elf32_hppa_name_of_stub): Delete.
2128 (elf32_hppa_link_hash_lookup): Delete.
2129 (elf32_hppa_link_hash_traverse): Delete.
2130 (elf32_hppa_stub_hash_table_init): Delete.
2131 (elf32_hppa_size_of_stub): Pass input section and offset rather
2132 than location and calculate location here. Don't pass name as all
2133 stubs are now the same size.
2134 (elf32_hppa_stub_hash_newfunc): Init new fields.
2135 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2137 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2138 comparing against ints. Rewrite stub handling code.
2139 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2140 Case enums to int before comparing against ints. Remove
2141 bfd_reloc_dangerous case.
2142 (elf32_hppa_build_one_stub): Rewrite.
2143 (elf32_hppa_size_one_stub): New function.
2144 (elf32_hppa_build_stubs): Rewrite.
2145 (elf32_hppa_size_stubs): Pass in linker call-back functions.
2146 Rewrite stub-handling specific code.
2148 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2150 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2152 * hppa_stubs.h: Delete.
2153 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2154 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2155 * Makefile.in: Regenerate.
2157 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2160 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2162 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2163 and section name for bfd_reloc_notsupported error message.
2164 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2165 bfd_reloc_notsupported.
2166 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2168 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2169 undefined weak symbols for all relocs.
2170 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2171 offsets are relative to one past the delay slot.
2172 (elf32_hppa_size_stubs): Account for reloc addend when calculating
2173 branch destination. Put addend into stub name too.
2174 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2175 adjust by 8 when deciding whether a linker stub is needed. Put
2176 addend into stub name as for above.
2178 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2179 various args and vars.
2180 (elf32_hppa_bfd_final_link_relocate): Here too.
2181 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
2182 inner block var to avoid shadowing.
2184 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
2186 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2187 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2188 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
2190 * libhppa.h: Change practically all unsigned ints to plain ints.
2191 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
2194 From Ryan Bradetich <rbradetich@uswest.net>
2195 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
2196 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2198 From David Huggins-Daines <dhd@linuxcare.com>
2199 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2200 to the new OP_* ones.
2202 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2203 error exit. Bail out earlier on plabel relocs that we aren't
2204 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
2205 string, and then don't free our copy.
2206 (elf32_hppa_build_one_stub): Make insn unsigned int.
2208 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2209 available with BL, not BE and BLE.
2211 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2212 code for elf arg relocs.
2213 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2214 argument with elf_link_hash_entry h. Handle undefined weak
2215 symbols. Move $global$ lookup from here...
2216 (elf32_hppa_relocate_section): ...to here. Return correct error
2217 message for non-handled relocs.
2218 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
2219 wrong test was -0x3ffff to +0x40000.
2221 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2222 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
2223 Handle them as such.
2224 (elf_hppa_relocate_insn): Fix a typo.
2226 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
2227 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2228 assemble_17, assemble_21): Delete.
2229 Supply defines for all 64 possible opcodes.
2230 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
2231 formats. Handle COMICLR.
2232 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
2235 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
2236 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
2237 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
2239 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
2240 the local syms - did this code get deleted accidentally? Ignore
2241 undefined and undefweak syms.
2243 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
2244 block. Use it instead of elf64_hppa_hash_table (info).
2245 (elf_hppa_final_link_relocate): Use hppa_info instead of
2246 elf64_hppa_hash_table (info).
2248 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2249 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2250 (hppa_rebuild_insn): Mask immediate bits here instead.
2251 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2253 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2255 * section.c (struct sec): Add id field. Tidy comment formatting.
2256 (bfd_make_section_anyway): Set id.
2257 (STD_SECTION): Init id too.
2258 Change CONST to const throughout.
2259 * archures.c (bfd_arch_info): Tidy comment.
2260 (bfd_arch_list): Change a CONST to const.
2261 * libbfd-in.h: Tidy comments and replace CONST with const.
2262 * elf-bfd.h: Likewise.
2263 * libbfd.h: Regenerate.
2264 * bfd-in2.h: Regenerate.
2265 * libcoff.h: Regenerate.
2267 2000-07-07 DJ Delorie <dj@redhat.com>
2269 * archive.c (_bfd_write_archive_contents): Add an informative
2272 2000-07-06 Kazu Hirata <kazu@hxi.com>
2274 * srec.c: Fix formatting.
2276 2000-06-05 DJ Delorie <dj@redhat.com>
2280 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
2282 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
2283 value of PC-relative offsets.
2285 2000-07-03 Jim Wilson <wilson@cygnus.com>
2287 * elf64-alpha.c (alpha_elf_size_info): New.
2288 (elf_backend_size_info): Define to alpha_elf_size_info.
2289 * elfcode.h (elf_size_info): Change hash bucket size to 4.
2291 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
2293 * elf32-mips.c: Include elf32-target.h again for the traditional
2296 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
2298 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
2299 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
2300 (avr_info_to_howto_rela): Likewise.
2301 (elf32_avr_gc_mark_hook): Likewise.
2302 (elf32_avr_gc_sweep_hook): Likewise.
2303 (elf32_avr_relocate_section): Likewise.
2305 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
2307 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
2308 an external symbol for a non-shared, non-relocatable link.
2310 2000-07-03 Nick Clifton <nickc@redhat.com>
2312 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2313 is an external symbol.
2314 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2317 2000-07-03 Kazu Hirata <kazu@hxi.com>
2319 * reloc16.c: Fix formatting.
2321 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2323 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
2324 to add a new target for traditional mips i.e
2325 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
2326 * configure.in: Likewise.
2327 * configure: Rebuild.
2328 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
2330 (bfd_elf32_tradlittlemips_vec): Likewise.
2331 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
2332 to see that elfNN_bed does not get redefined even if the target file
2333 is included twice for a chip. See elf32-mips.c.
2335 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2337 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2338 (CLEANFILES): Add DEPA.
2339 * Makefile.in: Regenerate.
2341 2000-06-30 DJ Delorie <dj@cygnus.com>
2343 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
2344 can't assume the PE header is at 0x80.
2346 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2348 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2350 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
2352 * go32stub.h: Update stub.
2354 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2356 * archures.c (bfd_mach_avr5): Define.
2357 * bfd-in2.h (bfd_mach_avr5): Define.
2358 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
2359 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
2360 (compatible): Update comment. Add missing test.
2361 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
2362 for avr2 and avr4. Simplify 8K wrap code.
2363 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
2364 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2366 2000-06-26 Kazu Hirata <kazu@hxi.com>
2368 * coff-h8300.c: Fix formatting.
2369 * cpu-h8300.c: Likewise.
2371 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
2373 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
2374 for local symbols whose names are unknown.
2376 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2378 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2380 * Makefile.in: Regenerate.
2381 * doc/Makefile.in: Regenerate.
2383 2000-06-20 H.J. Lu <hjl@gnu.org>
2385 * Makefile.am: Rebuild dependency.
2386 * Makefile.in: Rebuild.
2388 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2390 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
2391 (elf_backend_copy_indirect_symbol): Map to the new function.
2393 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2395 * archive.c (normalize): Correct pointer comparison when checking
2397 (bfd_bsd_truncate_arname): Likewise.
2398 (bfd_gnu_truncate_arname): Likewise.
2400 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
2402 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
2403 sections elf_{text,data}_{section,symbol}.
2404 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
2405 (_bfd_mips_elf_hide_symbol): New function.
2406 (elf_backend_hide_symbol): Map to the new function.
2407 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
2408 definitions of mips_elf_{text,data}_{section,symbol}.
2409 (mips_elf_local_relocation_p): Try to find the direct symbol
2410 based on new check_forced argument.
2411 (mips_elf_calculate_relocation): Use new version of
2412 mips_elf_local_relocation_p.
2413 (mips_elf_relocate_section): Likewise.
2414 (_bfd_mips_elf_relocate_section): Likewise.
2415 (mips_elf_sort_hash_table): Only assert that have enough GOT
2417 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
2418 entry if the relocation based on the new external argument.
2419 (mips_elf_create_dynamic_relocation): Assert that we have a
2420 section contents allocated where we can swap out the dynamic
2422 (mips_elf_calculate_relocation): Find the real hash-table entry
2423 correctly by using h->root.root.type. Only create a dynamic
2424 relocation entry if the symbol is defined in a shared library.
2425 Create an external GOT entry for the GOT16 relocation if the
2426 symbol was forced local.
2427 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
2428 dynamic index if the symbol was forced local.
2430 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2432 * elf32-mips.c: Fix typos in comments.
2434 2000-06-19 Mark Kettenis <kettenis@gnu.org>
2436 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2439 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2441 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
2442 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
2443 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
2444 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
2445 (bfd_elf32_m68hc11_vec): Likewise.
2446 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
2447 Supports 68hc11 & 68hc12 at the same time.
2448 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
2450 (bfd_elf32_m68hc11_vec): Likewise.
2451 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
2452 * archures.c (bfd_m68hc12_arch): Define and register in global list
2453 (bfd_m68hc11_arch): Likewise.
2454 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
2455 BFD_RELOC_M68HC11_3B): Define.
2456 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
2457 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2459 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
2461 * elf_bfd.h (struct elf_backend_data): Add info argument to
2462 elf_backend_hide_symbol.
2463 (_bfd_elf_link_hash_hide_symbol): Likewise.
2464 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
2465 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
2466 * elflink.h (elf_link_add_object_symbols): Likewise.
2467 (elf_link_assign_sym_version): Likewise.
2469 2000-06-18 H.J. Lu <hjl@gnu.org>
2471 * coff-i386.c (coff_i386_reloc): Don't return in case of
2472 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
2473 Compensate PE relocations when linking with non-PE object
2474 files to generate a non-PE executable.
2476 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
2478 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
2479 GOT entries if we're doing a static link or -Bsymbolic link.
2481 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
2483 * elflink.h (elf_link_adjust_relocs): Check for and call backend
2484 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
2486 (elf_link_output_relocs): Likewise.
2487 (elf_reloc_link_order): Likewise.
2489 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2491 * archures.c (enum bfd_architecture): #define constants for
2492 PowerPc and RS6000 machine numbers.
2493 * bfd-in2.h: Regenerate.
2494 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
2495 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
2496 and RS6000 machine numbers using #defined constants from
2498 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
2499 machine numbers using #defined constants from archures.c. Add
2500 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
2501 64-bit words in 620 entry.
2502 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
2504 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
2506 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
2508 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
2509 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
2510 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
2512 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2514 * bfd-in.h (bfd_family_coff): Define.
2515 * bfd-in2.h: Regenerate.
2516 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
2517 coff_find_nearest_line): Check COFFness using bfd_family_coff()
2518 instead of bfd_target_coff_flavour.
2519 * cofflink.c (_bfd_coff_final_link): Likewise.
2520 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
2521 exclude XCOFF files.
2522 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
2524 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
2525 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
2526 * xcofflink.c (XCOFF_XVECP): Delete.
2527 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
2528 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
2529 bfd_xcoff_record_link_assignment,
2530 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
2531 check for bfd_target_xcoff_flavour.
2533 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2535 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
2537 (read_hdr): New function.
2538 (rs6000coff_core_p): Store mstsave or __context64 struct instead
2539 of trying to extract individual registers. Set abfd->arch_info
2540 to match the architecture that created the core file.
2541 (rs6000coff_get_section_contents): Delete.
2542 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
2544 2000-06-14 H.J. Lu <hjl@gnu.org>
2546 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
2549 2000-06-13 H.J. Lu <hjl@gnu.org>
2551 * configure: Regenerate.
2553 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
2555 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
2558 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2560 * configure.in (VERSION): Update to show this is the CVS mainline.
2562 2000-06-07 Alan Modra <alan@linuxcare.com.au>
2564 * elf32-d10v.c: Include elf/d10v.h
2565 (enum reloc_type): Delete.
2566 * elf32-d30v.c: Include elf/d30v.h
2567 (enum reloc_type): Delete.
2569 * Makefile.am: Run "make dep-am" to regenerate dependencies.
2570 * Makefile.in: Regenerate.
2572 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
2573 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
2574 move HOWTOs into elf_howto_table.
2575 (R_386_standard, R_386_ext_offset): Define.
2576 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
2577 (elf_i386_reloc_type_lookup): Modify calculation of index into
2578 elf_howto_table since we've removed the padding.
2579 (elf_i386_info_to_howto_rel): Likewise.
2580 (elf_i386_relocate_section): Likewise.
2582 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
2584 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
2586 2000-06-05 H.J. Lu <hjl@gnu.org>
2588 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
2589 an error when seeing an undefined symbol with hidden/internal
2590 attribute. It is handled in *_relocate_section ().
2592 2000-06-05 H.J. Lu <hjl@gnu.org>
2594 * elflink.h (elf_fix_symbol_flags): Follow the link for the
2595 indirect symbol for the ELF_LINK_NON_ELF bit.
2596 (elf_link_output_extsym): Don't output the indirect symbol even
2597 if the ELF_LINK_NON_ELF bit is set.
2599 2000-06-01 J.T. Conklin <jtc@redback.com>
2601 * config.bfd (i[3456]86-*-netbsdelf*): New target.
2602 (i[3456]86-*-netbsdaout*): New target.
2603 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
2604 (i[3456]86-*-openbsd*): Likewise.
2606 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
2608 * trad-core.c: From hpux-core.c, include <dirent.h> or
2609 <sys/ndir.h> when possible.
2611 2000-05-31 Nick Clifton <nickc@cygnus.com>
2613 * opintl.h (_(String)): Explain why dgettext is used instead
2616 2000-05-31 Ulrich Drepper <drepper@redhat.com>
2618 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
2619 definitions. We must not assume they are sorted in the file
2620 according to their index numbers.
2622 2000-05-31 Alan Modra <alan@linuxcare.com.au>
2624 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
2625 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
2626 R_PARISC_DIR17F are for absolute branches; Handle them as such.
2628 2000-05-30 Nick Clifton <nickc@cygnus.com>
2630 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
2631 80960CA, 80960MC as valid machine names.
2633 2000-05-30 H.J. Lu <hjl@gnu.org>
2635 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
2636 visibility bits if the symbol is undefined. Correctly handle
2637 weak undefined symbols with hidden and internal attributes.
2639 * elflink.h (elf_link_add_object_symbols): Always turn the
2640 symbol into local if it has the hidden or internal attribute.
2642 2000-05-29 Philip Blundell <philb@gnu.org>
2644 * ppcboot.c: Add packed attribute if compiling with GCC.
2646 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
2648 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
2650 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
2652 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
2653 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
2654 corefile on a 64-bit (Sparc Solaris) host. Also clean up
2657 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2659 * Makefile.am: Update dependencies with "make dep-am"
2660 * Makefile.in: Regenerate.
2662 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
2663 bindtextdomain): Replace defines with those from intl/libgettext.h
2664 to quieten gcc warnings.
2666 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2668 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
2670 * archive.c (normalize, bfd_bsd_truncate_arname,
2671 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
2672 file names with backslashes.
2674 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
2677 * sysdep.h: Include filenames.h.
2679 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2681 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
2683 2000-05-26 Jakub Jelinek <jakub@redhat.com>
2685 * elf64-sparc.c (sparc64_elf_relax_section): New.
2686 (sparc64_elf_relocate_section): Optimize tail call into branch always
2688 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2689 (elf32_sparc_relax_section): New.
2691 2000-05-26 Jakub Jelinek <jakub@redhat.com>
2693 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
2694 Remove unusued variables.
2695 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
2696 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
2697 previous fix, so that shared libs really don't influence targets
2698 extension mask and memory model.
2700 2000-05-23 H.J. Lu <hjl@gnu.org>
2702 * elf64-alpha.c (elf64_alpha_relocate_section): Check
2703 h->root.other not h->other.
2704 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2706 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
2708 2000-05-23 H.J. Lu <hjl@gnu.org>
2710 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
2711 undefined symbol with the non-default visibility attributes.
2712 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
2713 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
2714 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2715 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2716 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
2717 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2718 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2719 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2720 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
2721 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
2722 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2724 2000-05-22 Richard Henderson <rth@cygnus.com>
2726 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
2727 PCREL22, PCREL64I. Zero size of special relocs.
2728 (elf64_ia64_reloc_type_lookup): Likewise.
2729 (USE_BRL, oor_brl, oor_ip): New.
2730 (elf64_ia64_relax_section): New.
2731 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
2732 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
2733 (elf64_ia64_relocate_section): Likewise.
2734 (bfd_elf64_bfd_relax_section): New.
2735 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
2736 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
2737 * bfd-in2.h, libbfd.h: Regenerate.
2739 2000-05-22 Nick Clifton <nickc@cygnus.com>
2741 * configure.in : Add peigen.lo to MIPS PE targets.
2742 * configure: Regenerate.
2744 2000-05-22 Momchil Velikov <velco@fadata.bg>
2746 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
2747 only if it is known for both input and output bfds. Separate
2748 error message strings as in some languages, it may be necessary
2749 to change more than one place in the string to change between
2752 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
2753 endianess checks, call _bfd_generic_verify_endian_match() instead.
2755 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
2757 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
2759 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
2760 endianess before checking bfd flavours.
2762 2000-05-22 H.J. Lu <hjl@gnu.org>
2764 * elflink.h (elf_link_output_extsym): Clear the visibility
2765 field for symbols not defined locally.
2767 2000-05-18 Alan Modra <alan@linuxcare.com.au>
2769 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2770 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2771 (hppa_rebuild_insn): Mask immediate bits here instead.
2772 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2774 2000-05-18 Momchil Velikov <velco@fadata.bg>
2776 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
2777 relocs for an executable, ensure that they are virtual addresses.
2779 2000-05-18 Jeffrey A Law (law@cygnus.com)
2781 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
2783 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
2784 Rick Gorton <gorton@scrugs.lkg.dec.com>
2786 * elflink.h: Add emitrelocations support: when enabled, relocation
2787 information and relocation sections are put into final output
2788 executables. If the emitrelocations flag is set, do the following:
2789 (elf_bfd_final_link): Emit relocation sections.
2790 (elf_link_input_bfd): Compute relocation section contents.
2791 (elf_gc_sections): Don't clean relocation sections.
2793 2000-05-16 Catherine Moore <clm@cygnus.com>
2795 * som.c (som_decode_symclass): Recognize weak symbols.
2797 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
2799 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
2800 read idata section only from dataoff.
2801 (pe_print_edata): Correctly check for valid eat_member.
2803 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
2805 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
2807 2000-05-14 Philip Blundell <philb@gnu.org>
2809 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
2811 2000-05-12 Alan Modra <alan@linuxcare.com.au>
2813 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
2815 * peigen.c (pe_print_idata): Look for .idata section and print
2816 info even if data directory has zero entries. Read idata section
2817 starting from dataoff, and adjust all data offsets to suit. Cast
2818 all bfd_vma vars to unsigned long before passing to fprintf.
2819 * peigen.c (pe_print_edata): Similarly, look for .edata section
2820 and print info even if data directory has zero entries. Cast
2821 all bfd_vma vars to unsigned long before passing to fprintf.
2823 From Szabolcs Szakacsits <szaka@F-Secure.com>
2824 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
2825 directory size which may be bogus.
2826 * peigen.c (pe_print_edata): Similarly.
2828 2000-05-09 Alan Modra <alan@linuxcare.com.au>
2830 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
2832 (copy_private_bfd_data): Allow for space possibly taken up by elf
2833 headers when calculating segment physical address from lma.
2835 2000-05-08 Alan Modra <alan@linuxcare.com.au>
2837 * versados.c (versados_scan): Init stringlen and pass_2_done.
2839 * trad-core.c (trad_unix_core_file_p): Return
2840 bfd_error_wrong_format rather than bfd_error_file_truncated.
2842 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
2843 add_data_entry. DataDirectory virtual address is relative.
2844 (pe_print_idata): Account for relative DataDirectory virtual
2845 addresses. Don't trash datasize inside POWERPC_LE_PE code.
2846 (pe_print_edata): Similarly.
2848 From Szabolcs Szakacsits <szaka@F-Secure.com>
2849 * peigen.c (dir_names): Add Delay Import Directory.
2850 (pe_print_idata): Always search for bfd section containing
2851 idata address rather than looking up section name. Print this
2852 section name rather than .idata.
2853 (pe_print_edata): Similarly. Also print some fields as %08lx.
2854 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
2857 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
2859 * xcoff.h: Rename to xcoff-target.h
2860 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
2861 * coff-rs6000.c: Ditto.
2862 * coff64-rs6000.c: Ditto.
2863 * coff-pmac.c: Ditto.
2864 * Makefile.in: Regenerate.
2866 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
2868 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
2869 Change U802TOC64MAGIC to U803XTOCMAGIC.
2871 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
2873 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
2874 * bfd-in.h: Prototype bfd_elf_get_arch_size.
2875 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
2877 2000-05-04 Alan Modra <alan@linuxcare.com.au>
2879 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
2881 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
2883 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
2884 hidden and internal symbols.
2885 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
2887 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
2888 assign a PLT or GOT entry to symbols with hidden and
2889 internal visibility.
2891 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
2893 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
2895 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2897 2000-05-02 H.J. Lu <hjl@gnu.org>
2899 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
2902 2000-05-02 Alan Modra <alan@linuxcare.com.au>
2904 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
2905 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
2907 * Makefile.in: Regenerate.
2909 2000-05-01 Jim Wilson <wilson@cygnus.com>
2911 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
2912 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
2913 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
2914 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
2915 * Makefile.in: Rebuild.
2917 2000-05-02 Alan Modra <alan@linuxcare.com.au>
2919 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
2920 doesn't work very well.
2922 * elf-hppa.h (elf_hppa_internal_shdr): Define.
2923 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
2924 Set hdr->s_type to 1 if ARCH_SIZE == 32.
2925 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
2926 (elf_hppa_info_to_howto): Likewise.
2927 (elf_hppa_info_to_howto_rel): Likewise.
2928 (elf_hppa_reloc_type_lookup): Likewise.
2929 (elf_hppa_is_local_label_name): Likewise.
2930 (elf_hppa_fake_sections): Likewise.
2931 (elf_hppa_final_write_processing): Likewise.
2932 (elf_hppa_howto_table): Fully initialise all entries.
2933 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
2934 (elf_hppa_info_to_howto): Likewise.
2935 (elf_hppa_info_to_howto_rel): Likewise.
2936 (elf_hppa_reloc_type_lookup): Likewise.
2937 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
2938 elf_hppa_unmark_useless_dynamic_symbols,
2939 elf_hppa_remark_useless_dynamic_symbols,
2940 elf_hppa_record_segment_addrs, elf_hppa_final_link,
2941 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
2942 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
2943 elf32-hppa.c mess is cleaned up.
2944 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
2945 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
2946 r_field then call hppa_field_adjust inline func with variable
2947 r_field arg, instead call hppa_field_adjust with fixed arg.
2948 In case R_PARISC_PCREL22F, don't set r_field.
2949 (elf_hppa_relocate_insn): Change args and return type to unsigned
2950 int. Call re_assemble_* funcs to do the work.
2952 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
2955 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
2957 (sign_extend): Mask first before sign extending.
2958 (low_sign_extend): Rewrite without condition expression.
2959 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
2960 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
2961 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2962 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
2963 result as function return value rather than through pointer arg.
2964 Accept unsigned int args, and return unsigned int.
2965 (re_assemble_3): New. Combines function of dis_assemble_3 with
2966 re-assembly of opcode and immediate.
2967 (re_assemble_12): Likewise.
2968 (re_assemble_16): Likewise.
2969 (re_assemble_17): Likewise.
2970 (re_assemble_21): Likewise.
2971 (re_assemble_22): Likewise.
2972 (hppa_field_adjust): Rewrite and document, paying attention to
2973 size of types and signed/unsigned issues.
2974 (get_opcode): Shift before masking.
2975 (FDLW): Rename to FLDW.
2976 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
2977 (hppa_rebuild_insn): Change args and return value to unsigned
2978 int. Make use of re_assemble_*. Correct case 11.
2980 * dep-in.sed: Handle ../opcodes/.
2981 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
2982 elf64-hppa.h, hppa_stubs.h, xcoff.h.
2983 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
2984 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
2985 elfarm-nabi.lo dependencies outside of auto-dependency area.
2986 Regenerate dependencies.
2987 * Makefile.in: Regenerate.
2989 * configure.in (TRAD_HEADER): Test non-null before
2991 * configure: Regenerate.
2993 * reloc.c: Fix mis-spelling in comment.
2995 2000-05-01 Alan Modra <alan@linuxcare.com.au>
2997 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
2998 * vms.c (vms_openr_next_archived_file): Return NULL.
3000 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3002 * coffcode.h Copy changes mistakenly done to libcoff.h in
3005 2000-04-29 Andreas Jaeger <aj@suse.de>
3007 * libbfd-in.h: Correctly check GCC version.
3008 * bfd-in.h: Likewise.
3009 * libhppa.h: Likewise.
3010 * libbfd.h: Regenerate.
3011 * bfd-in2.h: Regenerate.
3013 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3015 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3016 coffdu-rs6000.{lo,c}.
3017 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3019 * Makefile.in: Regenerate.
3020 * xcoff.h: New file.
3021 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3022 * coff-rs6000.c: Move all declarations and defines that are
3023 common to the xcoff backends into xcoff.h
3024 * coff64-rs6000.c: Ditto,
3026 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3028 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3029 _bfd_coff_force_symnames in strings and
3030 _bfd_coff_debug_string_prefix_length to their default values.
3031 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3033 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3035 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3036 _bfd_coff_force_symnames in strings and
3037 _bfd_coff_debug_string_prefix_length to their default values.
3039 2000-04-27 Alan Modra <alan@linuxcare.com.au>
3041 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
3042 Check local_got_refcounts before dereferencing.
3044 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3045 before deciding we don't need R_PPC_PLT32 relocation.
3046 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3049 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3051 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3053 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3054 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3055 (elf_i386_relocate_section): Allow for .plt to go missing.
3056 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3057 can use a relative reloc for got as elf_i386_relocate_section.
3058 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3060 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3062 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3064 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3066 * Makefile.am (coff64-rs6000.lo): New rule.
3067 * Makefile.in: Regenerate.
3068 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3069 xcoff_is_local_label_name, xcoff_rtype2howto,
3070 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3071 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3072 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3073 (NO_COFF_SYMBOLS): Define.
3074 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3075 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3077 (MINUS_ONE): New macro.
3078 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3080 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3081 coff_SWAP_aux_out): Map to the new functions.
3082 * coff64-rs6000.c: New file.
3083 * libcoff.h (bfd_coff_backend_data): Add new fields
3084 _bfd_coff_force_symnames_in_strings and
3085 _bfd_coff_debug_string_prefix_length.
3086 (bfd_coff_force_symnames_in_strings,
3087 bfd_coff_debug_string_prefix_length): New macros for above fields.
3088 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3089 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
3090 of using coff_swap_sym_in directly.
3091 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3092 (coff_set_flags) Set magic for XCOFF64.
3093 (coff_compute_section_file_positions): Add symbol name length to
3094 string section length if bfd_coff_debug_string_prefix_length is
3096 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3097 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3098 using coff_swap_lineno_in directly.
3099 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3100 and _bfd_coff_debug_string_prefix_length fields.
3101 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3102 symbol names into strings table when
3103 bfd_coff_force_symnames_in_strings is true.
3104 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3105 SET_RELOC_VADDR): New macros.
3106 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3107 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3109 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3110 changes within RS6000COFF_C specific code.
3111 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3112 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3113 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3114 Extend existing hack on target name.
3115 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3117 * coff-tic54x.c (ticof): Keep up to date with new fields
3118 in bfd_coff_backend_data.
3119 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3120 targ_selvecs to include rs6000coff64_vec for rs6000.
3121 * configure.in: Add rs6000coff64_vec case.
3122 * cpu-powerpc.c: New bfd_arch_info_type.
3124 2000-04-24 Jeffrey A Law (law@cygnus.com)
3126 * config.bfd: Only disable elf32-hppa vectors, not all of the
3127 BSD and OSF configuration support. Provide (disabled) clauses
3129 * configure.in: Add clause for PA64 support.
3130 * configure: Rebuilt.
3132 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3133 (bfd_elf64_hppa_vec): Declare.
3135 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3136 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3137 (elf64-hppa.lo): Add dependencies.
3138 * Makefile.in: Rebuilt.
3140 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3142 2000-04-24 Jason Eckhardt <jle@cygnus.com>
3144 * libhppa.h (dis_assemble_16): New function.
3145 (pa_arch): Added pa20w element.
3147 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
3149 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3150 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3151 bfd_elf64_slurp_reloc_table.
3153 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3154 definitions to get external names.
3155 (elf_write_relocs): Renamed from write_relocs and make global.
3156 (elf_slurp_reloc_table): Make global.
3157 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3159 * archive.c (hpux_uid_gid_encode): New function.
3160 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3161 defined and the ID is greater than 99999.
3162 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3163 special uid/gid fields into 32 bit values.
3165 2000-04-21 Matthew Green <mrg@cygnus.com>
3167 * config.bfd: Add NetBSD/sparc64 support.
3169 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3170 David Mosberger <davidm@hpl.hp.com>
3171 Timothy Wall <twall@cygnus.com>
3172 Jim Wilson <wilson@cygnus.com>
3174 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3175 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3176 (BFD64_BACKENDS): Add elf64-ia64.lo.
3177 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3178 (cpu-ia64.lo, elf64-ia64.lo): New rules.
3179 * Makefile.in: Rebuild.
3180 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3181 (bfd_ia64_arch): Declare.
3182 (bfd_archures_list): Add bfd_ia64_arch.
3183 * bfd-in2.h: Rebuild.
3184 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3185 * configure: Rebuild.
3186 * configure.host: (ia64-*-linux*): New host.
3187 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3188 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3189 * elf.c (prep_headers): Add bfd_arch_ia64.
3190 * libbfd.h: Rebuild.
3191 * reloc.c: Add IA-64 relocations.
3192 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3194 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3195 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3197 2000-04-21 Richard Henderson <rth@cygnus.com>
3199 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3200 contents when performing a partial link.
3201 (bfd_elf_d30v_reloc_21): Likewise.
3203 2000-04-20 H.J. Lu <hjl@gnu.org>
3205 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3206 patch to symbols defined by a shared object.
3207 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3209 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3212 * dwarf2.c (concat_filename): Avoid string literal concatenation.
3213 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
3215 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
3217 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3218 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3219 (coff-ia64.lo): Add dependency.
3220 * Makefile.in: Regenerate.
3221 * coff-ia64.c: New file.
3222 * efi-app-ia32.c: Ditto.
3223 * efi-app-ia64.c: Ditto.
3224 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
3225 (coff_set_flags): Ditto.
3226 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
3227 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
3228 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
3229 * configure: Regenerate.
3230 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
3231 (PUT_OPTHDR_IMAGE_BASE): Ditto.
3232 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3233 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3234 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3235 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3236 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3237 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3238 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3239 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3240 (GET_PDATA_ENTRY): Ditto.
3241 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
3242 data_start. Use above macros to read fields that are 64 bit wide for
3243 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
3244 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
3245 FileAlignment and SectionAlignment to minimum alignment if they
3247 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
3248 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
3249 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
3250 Use above macros to write fields that are 64 bit wide for
3252 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
3253 5*4 otherwise. This should be right for IA-32 and IA-64, but may
3254 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
3255 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
3256 begin address, end address, and unwind info address only. Use
3257 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
3259 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
3260 HIGH3ADJ relocation names.
3261 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
3262 * targets.c: Declare bfd_efi_app_ia32_vec and
3263 bfd_efi_app_ia64_vec.
3264 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
3265 bfd_efi_app_ia64_vec.
3267 2000-04-17 Timothy Wall <twall@cygnus.com>
3269 * bfd-in2.h: Add prototypes for tic54x load page access.
3270 * bfd-in.h: Regenerate.
3271 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
3272 in customized _set_arch_mach function.
3273 * coffcode.h (coff_set_alignment_hook): Set section load page if
3274 the appropriate macro is defined.
3275 (write_object_contents): Read section load page.
3277 2000-04-13 Alan Modra <alan@linuxcare.com.au>
3279 * elf32-hppa.h: Update copyright date.
3281 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
3282 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
3284 * elf32-d30v.c (MAX32): Don't use LL suffix.
3285 (MIN32): Define in terms of MAX32.
3286 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
3288 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
3291 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
3293 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3295 * dep-in.sed: Match space before file name, not after.
3296 * Makefile.am: Regenerate dependencies.
3297 * Makefile.in: Regenerate.
3299 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
3300 case, allow address wrap-around stupidly removed 2000-03-17. Sign
3301 extend without an if statement.
3303 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3305 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
3307 * elf32-mips.c (gprel16_with_gp): Likewise.
3308 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
3309 here using -0x40000, not (int)0xfffc0000.
3310 (elf32_hppa_size_of_stub): Likewise.
3312 2000-04-11 Timothy Wall <twall@cygnus.com>
3314 * coff-tic54x.c: Now builds with all targets.
3315 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
3316 * Makefile.in: Regenerate.
3317 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
3318 unitialized variable.
3320 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3322 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3323 --enable-build-warnings option.
3324 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3325 * Makefile.in, configure: Re-generate.
3327 2000-04-07 Nick Clifton <nickc@cygnus.com>
3329 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
3330 BFD_RELOC_THUMB_PCREL_BLX.
3332 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3333 R_ARM_XPC25 and R_ARM_THM_PC22.
3335 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
3336 R_ARM_XPC25 and R_ARM_THM_XPC22.
3337 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
3338 R_ARM_[XPC25|THM_XPC22].
3340 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
3341 elf/arm-oabi.h to elf/arm.h
3343 * Makefile.am: Fix dependency for elfarm-oabi.c
3344 * Makefile.in: Regenerate.
3346 * bfd-in2.h: Regenerate.
3347 * libbfd.h: Regenerate.
3349 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3351 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
3352 and restore it on failure. Release newly allocated tdata on
3355 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
3357 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
3358 (decode_line_info): Set it. Report error if unit->line_offset is
3359 equal to or larger than it.
3361 2000-04-07 Timothy Wall <twall@cygnus.com>
3363 * targets.c: Added vecs for tic54x.
3364 * reloc.c: Added relocs for tic54x.
3365 * libbfd.h: Regenerated.
3366 * configure: Add TI COFF vecs for tic54x.
3367 * configure.in: Ditto.
3368 * config.bfd (targ_cpu): Recognize new tic54x target.
3369 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
3370 * bfd-in2.h: Add tic54x target and relocations.
3371 * Makefile.am, Makefile.in: Add tic54x target.
3372 * archures.c (bfd_archures_list): Add tic54x target.
3373 * coff-tic54x.c: New.
3374 * cpu-tic54x.c: New.
3376 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3378 * elfcore.h (elf_core_file_p): call backend_object_p which
3379 thereby gets an opportunity to update the arch/machine type.
3381 2000-04-06 Timothy Wall <twall@cygnus.com>
3383 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
3384 class. Handle SEC_CLINK and SEC_BLOCK flags.
3385 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
3386 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
3388 2000-04-06 Nick Clifton <nickc@cygnus.com>
3390 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
3391 EF_INTERWORK if this is an unknown EABI.
3392 (elf32_arm_merge_private_bfd_data): Check EABI version
3393 numbers. Only check EF_xxx flags if the EABI version number
3395 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
3396 if the EABI version number is unknown.
3397 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
3398 if the EABI version number is unknown.
3400 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3402 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
3403 BFD_RELOC_SH_LOOP_END.
3404 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
3405 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
3406 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
3407 (sh_elf_reloc_loop): New function.
3408 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
3410 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
3411 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
3412 * bfd-in2.h, libbfd.h: Regenerate.
3414 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3416 * po/bfd.pot: Regenerate.
3418 * Makefile.am: Remove extraneous mkdep comment.
3419 (MKDEP): Use gcc -MM rather than mkdep.
3420 (DEP): Quote when passing vars to sub-make. Add warning
3422 (DEP1): Rewrite for "gcc -MM".
3423 (CLEANFILES): Add DEP2.
3424 Update dependencies.
3425 * Makefile.in: Regenerate.
3427 2000-04-03 Kevin Buettner <kevinb@redhat.com>
3429 * configure.in: Added corefile support for AIX 4.3. In particular,
3430 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
3431 compiling rs6000-core.c.
3432 * configure: Regenerated.
3434 2000-04-03 H.J. Lu <hjl@gnu.org>
3436 * cache.c (bfd_open_file): Unlink the output file only if
3437 it has non-zero size.
3439 2000-04-01 Ken Block USG <block@zk3.dec.com>
3441 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
3442 relative relocations for non-loaded sections in shared objects.
3443 (elf64_alpha_check_relocs): Similarly.
3445 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
3447 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
3448 BFD_RELOC_16 to switch for extended relocs.
3449 (MY_swap_ext_reloc_in): New.
3450 (MY_swap_ext_reloc_out): New.
3451 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
3452 than NAME(aout,swap_ext_reloc_in) for extended relocs.
3453 (NAME(aout,squirt_out_relocs)): Similarly use
3454 MY_swap_ext_reloc_out.
3455 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
3457 2000-04-03 Kazu Hirata <kazu@hxi.com>
3459 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
3460 the R_PCRWORD_B case.
3462 2000-03-31 Thomas de Lellis <tdel@wrs.com>
3464 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
3468 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
3470 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
3471 HOWTO references to bfd_elf_generic_reloc, that have
3472 partial_inplace == true, now use the new function. The function
3473 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
3474 extends its fixes to the R_M32R_{16,24,32} relocs.
3475 The new logic in m32r_elf_lo16_reloc() has been removed, and
3476 it instead calls the new routine to obtain that functionality.
3478 2000-03-27 Alan Modra <alan@linuxcare.com.au>
3480 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
3481 elf32_avr_check_relocs, avr_final_link_relocate,
3482 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
3483 elf32_avr_object_p): Add prototypes.
3484 (elf32_avr_gc_mark_hook): Add default for h->root.type.
3485 (bfd_elf_avr_final_write_processing): Make static.
3487 2000-03-27 Denis Chertykov <denisc@overta.ru>
3489 * cpu-avr.c: New file. BFD support routines for AVR architecture.
3490 * archures.c (bfd_architecture): Add AVR architecture.
3491 (bfd_archures_list): Add reference to AVR architecture info.
3492 * elf.c (prep_headers): Handle bfd_arch_avr.
3493 * reloc.c: Add various AVR relocation enums.
3494 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
3496 * Makefile.am: Add support for AVR elf.
3497 * configure.in: Likewise.
3498 * config.bfd: Likewise.
3499 * Makefile.in: Regenerate.
3500 * configure: This too.
3501 * bfd-in2.h: And this.
3502 * libbfd.h: And this.
3504 2000-03-24 H.J. Lu <hjl@gnu.org>
3506 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
3507 (elf64_alpha_find_reloc_at_ofs): Likewise.
3509 2000-03-17 Alan Modra <alan@linuxcare.com.au>
3511 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
3512 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
3513 allowable range used to be -2**(n-1) to 2**n-1.
3514 * reloc.c (_bfd_relocate_contents): Same here. Also replace
3515 "boolean overflow" with "bfd_reloc_status_type flag".
3517 2000-03-14 Doug Evans <dje@casey.transmeta.com>
3519 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
3521 2000-03-14 Kazu Hirata <kazu@hxi.com>
3523 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
3524 of shrinks properly, including the last reloc.
3526 2000-03-13 Kazu Hirata <kazu@hxi.com>
3528 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
3531 2000-03-11 Alan Modra <alan@linuxcare.com.au>
3533 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
3534 a format mismatch rather than an "error" from bfd_read such as
3535 bfd_error_file_truncated.
3537 2000-03-10 Geoff Keating <geoffk@cygnus.com>
3539 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
3540 sign-extension and big-endian compensation for
3541 R_MIPS_64 even in ld -r.
3543 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
3545 * elf32-mips.c (mips_elf_next_relocation): Rename from
3546 mips_elf_next_lo16_relocation, and generalize to look
3547 for any relocation type.
3548 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
3549 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
3550 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
3551 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
3552 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
3553 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
3554 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
3555 (mips_rtype_to_howto): Likewise.
3556 (mips_elf_calculate_relocation): Handle new relocs.
3557 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
3558 are paired. The addend for R_MIPS_GNU_REL16_S2
3559 is shifted right two bits.
3561 2000-03-10 Alan Modra <alan@linuxcare.com.au>
3563 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
3564 comment, and ensure it doesn't happen again.
3565 (bfd_install_relocation): Same here.
3566 (_bfd_relocate_contents): Don't bother assigning unused signmask
3567 shift result. Fix typos in comments.
3568 Remove trailing whitespace throughout file.
3570 2000-03-07 Doug Evans <dje@casey.transmeta.com>
3572 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
3573 * bfd-in2.h: Rebuild.
3575 2000-03-06 Nick Clifton <nickc@cygnus.com>
3577 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
3579 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
3580 (SIZEOF_ILF_STRINGS): Redefine.
3581 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
3582 relative reloc, as opposed to a section relative reloc.
3583 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
3585 Add length of symbol's prefix to string pointer.
3586 Store a pointer to the symbol in the symbol pointer table.
3587 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
3588 Initialise the symbol pointer table.
3589 Store the hint in the Hint/Name table.
3590 Make the jump reloc be symbol realtive, not section relative.
3591 Create an import symbol for imported code.
3593 2000-03-06 Catherine Moore <clm@cygnus.com>
3595 * elf.c (swap_out_syms): Check for null type_ptr.
3597 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
3599 * aout-target.h (MY(write_object_contents)): Remove unused
3600 and unusable "#if CHOOSE_RELOC_SIZE".
3601 * pc532-mach.c (MY(write_object_contents)): Ditto.
3602 * netbsd.h (MY(write_object_contents)): Ditto.
3603 * hp300hpux.c (MY(write_object_contents)): Ditto.
3604 * freebsd.h (MY(write_object_contents)): Ditto.
3605 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
3607 2000-02-29 H.J. Lu <hjl@gnu.org>
3609 * peicode.h (jtab): Make it static.
3611 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
3612 defined and COFF_IMAGE_WITH_PE is not defined.
3613 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
3614 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
3616 2000-03-01 Nick Clifton <nickc@cygnus.com>
3618 * coff-arm.c (bfd_arm_process_before_allocation): Make
3619 'symndx' signed to prevent compile time warning.
3621 * coff-mcore.c: Remove unused prototype for pe_object_p.
3623 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
3624 functions that are not used when COFF_IMAGE_WITH_PE is
3626 (struct sh_opcode): Change type of 'flags' field to unsigned
3627 long so that it can hold the USESAS flag.
3629 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
3631 * elf-m10300.c (mn10300_elf_relax_section): Initialise
3634 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
3636 Remove unusued variables and code.
3637 (elf_backend_add_symbol_hook): Fix prototype.
3639 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
3642 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
3645 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
3647 Remove unusued variables and code.
3648 (elf_backend_add_symbol_hook): Fix prototype.
3650 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
3652 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
3653 to unused function parameter.
3655 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
3657 Use EMPTY_HOWTO to initialise empty howto slots.
3658 Remove unused variables.
3660 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
3662 2000-03-01 H.J. Lu <hjl@gnu.org>
3664 * aoutx.h (aout_link_input_section_std): Pass "true" to
3665 the undefined_symbol callback.
3666 (aout_link_input_section_ext): Likewise.
3667 * bout.c (get_value): Likewise.
3668 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
3669 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
3671 (alpha_relocate_section): Likewise.
3672 * coff-arm.c (coff_arm_relocate_section): Likewise.
3673 * coff-i960.c (coff_i960_relocate_section): Likewise.
3674 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
3675 * coff-mips.c (mips_relocate_section): Likewise.
3676 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
3677 * coff-sh.c (sh_relocate_section): Likewise.
3678 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
3679 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
3680 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
3681 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
3682 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
3683 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
3684 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
3685 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3686 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
3687 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3688 * elf32-sh.c (sh_elf_relocate_section): Likewise.
3689 * elf32-v850.c (v850_elf_relocate_section): Likewise.
3690 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
3691 * elflink.h (elf_link_output_extsym): Likewise.
3692 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
3693 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
3694 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
3696 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
3697 undefined_symbol callback when building shared library with
3698 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
3700 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3701 * elf32-i386.c (elf_i386_relocate_section): Likewise.
3702 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3703 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3704 (elf32_mips_get_relocated_section_content): Likewise.
3705 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3706 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3707 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3708 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3710 2000-02-28 Nick Clifton <nickc@cygnus.com>
3712 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
3713 * Makefile.in: Regenerate.
3715 * configure.in: Add support for mips and sh pe vectors.
3716 * configure: regenerate.
3718 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
3721 * targets.c: Add mips and sh pe vectors.
3723 * libpei.h (coff_final_link_postscript): Only define if not
3726 * coffcode.h: Add support for WinCE magic numbers.
3728 * peigen.c (pe_print_reloc): Update comment and rearrange
3729 appending of newline character.
3731 * peicode.h: Add support for Image Library Format.
3732 (pe_ILF_vars): Structure containing data used by ILF code.
3733 (pe_ILF_make_a_section): New function. Create a section based
3735 (pe_ILF_make_a_reloc): New function. Create a reloc based on
3737 (pe_ILF_make_a_symbol): New function. Create a symbol based
3739 (pe_ILF_save_relocs): New function. Store the relocs created
3740 by pe_ILF_make_a_reloc in a section.
3741 (pe_ILF_build_a_bfd): New function. Create a BFD describing
3743 (pe_ILF_object_p): New function. Return a bfd_target pointer
3745 (pe_bfd_object_p): If an ILF object is detected call
3746 pe_ILF_object_p on it.
3748 * coff-arm.c: Add support for WinCE relocs which are different
3749 from normal ARM COFF relocs.
3750 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
3752 * coff-sh.c: Add support for sh-pe target.
3753 * pe-sh.c: New file. Support code for sh-pe target.
3754 * pei-sh.c: New file. Support code for sh-pe target.
3756 * pe-mips.c: New file. Support code for mips-pe target.
3757 * pei-mips.c: New file. Support code for mips-pe target.
3759 2000-02-27 Jakub Jelinek <jakub@redhat.com>
3761 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
3762 architecture if the object causing the bump is dynamic.
3763 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
3764 and also don't it for memory ordering.
3765 (sparc64_elf_write_relocs): Take src_rela out of the loop.
3767 2000-02-27 Ian Lance Taylor <ian@zembu.com>
3769 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
3770 calling bfd_get_section_size_before_reloc.
3771 (decode_line_info): Likewise.
3772 (_bfd_dwarf2_find_nearest_line): Likewise.
3774 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
3776 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
3777 name of the libtool directory.
3778 * Makefile.in: Rebuild.
3780 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
3782 * som.c (SOM_HOWTO): Define.
3783 (som_hppa_howto_table): Use it.
3785 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3787 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
3789 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
3791 2000-02-24 Catherine Moore <clm@cygnus.com>
3793 * som.c (som_misc_symbol_info): Add field
3795 (som_bfd_derive_misc_symbol_info): Initialize
3797 (som_build_and_write_symbol_table): Keep track
3798 of secondary_def field.
3799 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
3800 if secondary_def field is set.
3801 (som_bfd_ar_write_symbol_stuff): Initialize
3804 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
3806 * dwarf2.c (read_address): Read 16-bits addresses.
3807 (parse_comp_unit): Accept addr_size == 2.
3809 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3811 * bfd-in.h: Update copyright date.
3813 2000-02-23 Linas Vepstas <linas@linas.org>
3815 * cpu-i370.c: New file.
3816 * elf32-i370.c: New file.
3817 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
3818 (bfd_i370_arch): New.
3819 (bfd_archures_list): Add bfd_i370_arch.
3820 * elf.c (prep_headers): Add bfd_arch_i370.
3821 * Makefile.am: Add support for IBM 370 elf.
3822 * config.bfd: Likewise.
3823 * configure.in: Likewise.
3824 * libbfd.h (bfd_reloc_code_real_names): Likewise.
3825 * reloc.c (bfd_reloc_code_type): Likewise.
3826 * targets.c: Likewise.
3828 * Makefile.in: Regenerate.
3829 * configure: Regenerate.
3830 * bfd-in2.h: Regenerate.
3832 2000-02-22 Ian Lance Taylor <ian@zembu.com>
3834 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
3835 invalid relocation types, and change them to R_386_NONE.
3837 2000-02-22 H.J. Lu <hjl@gnu.org>
3839 * elflink.h (elf_link_add_object_symbols): If a version symbol is
3840 not defined, don't add a second ELF_VER_CHR.
3842 * elflink.h (elf_bfd_final_link): Call output_extsym for global
3843 symbols converted to local symbols even when stripping all
3845 (elf_link_output_extsym): Process global symbols converted to
3846 local symbols even if they are being stripped.
3848 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3850 * archures.c (bfd_octets_per_byte): Return unsigned int.
3851 (bfd_arch_mach_octets_per_byte): Ditto.
3852 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
3854 * section.c (bfd_get_section_size_before_reloc): Quell signed
3855 vs. unsigned comparison warning.
3856 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
3857 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
3858 change. What was I thinking?
3859 * bfd-in2.h: Regenerate.
3861 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
3862 (elf_gc_sections): Same here.
3863 (elf_gc_common_finalize_got_offsets): And here.
3865 2000-02-21 Ian Lance Taylor <ian@zembu.com>
3867 ELF HPPA doesn't work at present; remove it until it does.
3868 * config.bfd: Comment out setting targ_defvec to
3870 * Makefile.am: Rebuild dependencies.
3871 (BFD32_BACKENDS): Remove elf32-hppa.lo.
3872 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
3873 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
3874 * Makefile.in: Rebuild.
3875 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
3877 2000-02-18 Geoff Keating <geoffk@cygnus.com>
3879 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
3880 is no bfd_free(). Revert bfd_free part of previous change.
3882 2000-02-18 Geoff Keating <geoffk@cygnus.com>
3884 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
3886 (coff_compute_section_file_positions): Use bfd_free to pair
3888 (coff_write_object_contents): Likewise.
3890 * coff-rs6000.c (xcoff_howto_table_16): New variable.
3891 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
3893 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
3895 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
3896 (xcoff_ar_file_hdr_big): New structure.
3897 (SIZEOF_AR_FILE_HDR_BIG): New macro.
3898 (xcoff_ar_hdr_big): New structure.
3899 (SIZEOF_AR_HDR_BIG): New macro.
3900 (xcoff_big_format_p): New macro.
3901 (xcoff_ardata_big): New macro.
3902 (arch_xhdr_big): New macro.
3903 (xcoff_slurp_armap): Handle large archives.
3904 (xcoff_archive_p): Detect large archives.
3905 (xcoff_read_ar_hdr): Handle large archives.
3906 (xcoff_openr_next_archived_file): Handle large archives.
3907 (xcoff_generic_stat_arch_elt): Handle large archives.
3908 (xcoff_write_armap_old): Rename from xcoff_write_armap.
3909 (xcoff_write_armap_big): New function.
3910 (xcoff_write_armap): New function, dispatch to _old or _big.
3911 (xcoff_write_archive_contents_old): Rename from
3912 xcoff_write_archive_contents.
3913 (xcoff_write_archive_contents_big): New function.
3914 (xcoff_write_archive_contents): New function, dispatch to _old or
3917 2000-02-18 Richard Henderson <rth@cygnus.com>
3919 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
3920 and hide_symbol members.
3921 (elf_link_hash_copy_indirect): Remove.
3922 (elf_link_hash_hide_symbol): Remove.
3923 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
3924 and elf_backend_hide_symbol.
3925 (_bfd_elf_link_hash_copy_indirect): Declare.
3926 (_bfd_elf_link_hash_hide_symbol): Declare.
3927 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
3928 (_bfd_elf_link_hash_hide_symbol): Likewise.
3929 (_bfd_elf_link_hash_table_init): Don't init killed members.
3930 * elflink.h (elf_link_add_object_symbols): Use the bed function
3931 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
3932 (elf_link_assign_sym_version): Likewise.
3933 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
3934 (elf_backend_hide_symbol): Likewise.
3935 (elfNN_bed): Update for new members.
3937 2000-02-17 Kevin Buettner <kevinb@redhat.com>
3939 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
3940 STACK_END_ADDR): Define for new core file format.
3941 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
3942 for handling the vagaries of the various core file structures used
3943 by AIX over the years.
3944 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
3945 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
3946 core_dumpx structure.
3948 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3950 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
3951 (bfd_mach_sh3_dsp): Likewise.
3952 (bfd_mach_sh4): Reinstate.
3953 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
3954 * bfd-in2.h: Regenerate.
3955 * coff-sh.c (struct sh_opcode): flags is no longer short.
3956 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
3957 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
3958 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
3959 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
3960 (sh_opcodes): No longer const.
3961 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
3962 (sh_insn_uses_reg): Check for USESAS and USESR8.
3963 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
3964 (_bfd_sh_align_load_span): Return early for SH4.
3965 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
3966 Take into account that field b of a parallel processing insn
3967 could be mistaken for a separate insn.
3968 * cpu-sh.c (arch_info_struct): New array elements for
3969 sh2, sh-dsp and sh3-dsp.
3970 Reinstate element for sh4.
3971 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
3972 (SH4_NEXT): Reinstate.
3973 (SH3_NEXT, SH3E_NEXT): Adjust.
3974 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
3975 * elf32-sh.c (sh_elf_set_private_flags): New function.
3976 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
3977 (sh_elf_merge_private_data): New function.
3978 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
3979 (bfd_elf32_bfd_copy_private_bfd_data): Define.
3980 (bfd_elf32_bfd_merge_private_bfd_data): Change to
3981 sh_elf_merge_private_data.
3983 2000-02-13 Richard Henderson <rth@cygnus.com>
3985 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
3986 hide_symbol members.
3987 (elf_link_hash_copy_indirect): New.
3988 (elf_link_hash_hide_symbol): New.
3989 * elflink.h (elf_link_add_object_symbols): Break out copy from
3990 indirect new new symbol to elf.c.
3991 (elf_link_assign_sym_version): Break out privatization of
3992 non-exported symbol to elf.c.
3993 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
3994 (_bfd_elf_link_hash_hide_symbol): New.
3995 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
3997 2000-02-13 Ian Lance Taylor <ian@zembu.com>
3999 * section.c (_bfd_strip_section_from_output): Add info parameter.
4000 If it passed as non-NULL, use it to check whether any input BFD
4001 has an input section which uses this output section. Change all
4003 * bfd-in2.h: Rebuild.
4005 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4006 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4008 * bfd-in2.h: Rebuild.
4010 2000-02-10 Timothy Wall <twall@cygnus.com>
4012 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4013 allow final modifications of swapped-in symbol.
4014 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4015 * coffcode.h (coff_write_relocs): Use macro
4016 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4017 symbol index should be set to -1.
4019 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4021 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4022 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4023 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4024 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4025 sh_insns_uses_or_sets_freg): New functions.
4026 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4027 * (sh_insns_conflict): Use new functions and new macros to
4028 detect conflicts when two instructions both set same integer registers,
4029 both set same fp register, and both set special register.
4031 2000-02-09 Timothy Wall <twall@cygnus.com>
4033 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4034 swapping in sections, so that the swapping routines have access to
4037 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4039 * coff-go32.c: Update comment. Update copyright.
4041 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4043 * syms.c (bfd_decode_symclass)
4044 Two new class characters were added - 'V' and 'v'. The
4045 meaning of 'W' is now restricted to just weak non-object
4046 symbols. This allows differentiation between, for example,
4047 weak functions vs weak objects. nm for example now dumps:
4049 'w' = weak unresolved
4050 'V' = weak global object
4051 'v' = weak unresolved object
4053 (bfd_is_undefined_symclass): New function. Return true if the
4054 given symbol class represents and undefined/unresolved symbol.
4056 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4059 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4061 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4062 STT_ARM_16BIT flag set, but it is not attached to a data object
4063 return STT_ARM_16BIT so that it will be treated as code by the
4066 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4068 * coff-i386.c (i3coff_object_p): Remove prototype.
4071 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4072 to name. Update copyright.
4074 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4075 assignment to avoid warning. Update copyright.
4077 2000-01-24 Robert Lipe (robertl@sco.com)
4079 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4080 instead of using GNU C extension.
4082 2000-01-21 Nick Clifton <nickc@cygnus.com>
4084 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4085 amount from a bfd_in_memory structure.
4086 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4089 2000-01-14 Nick Clifton <nickc@cygnus.com>
4091 * linker.c (default_indirect_link_order): oops - fix incorrectly
4092 applied patch from Tim Wall.
4094 2000-01-13 Timothy Wall (twall@tiac.net>
4096 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4097 = scnhsz, filhsz, relsz, aoutsz, etc)
4099 * coffswap.h: Ditto.
4101 2000-01-13 Nick Clifton <nickc@cygnus.com>
4103 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4104 interwork thumb to arm stub.
4106 2000-01-13 Timothy Wall (twall@tiac.net>
4108 * archures.c (bfd_octets_per_byte): New function: Return
4110 (bfd_arch_mach_octets_per_byte): New function: Return target
4113 * section.c: Distinguish between octets and bytes for usage of
4114 _cooked_size, _raw_size, and output_offset. Clarify
4115 description of bfd_set_section_contents.
4117 * bfd-in2.h: Regenerate.
4119 * coffgen.c: Indicate that the offset parameter is in bytes, not
4122 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4123 where appropriate to get the octet offset when calling
4124 bfd_set_section_contents.
4125 (bfd_coff_reloc_link_order): Ditto.
4127 * linker.c (bfd_generic_reloc_link_order): Ditto.
4128 (_bfd_default_link_order): Ditto.
4130 * reloc.c (bfd_perform_relocation): Distinguish between octets
4131 and bytes. Use octets when indexing into octet data; use bytes
4132 when calculating target addresses.
4133 (bfd_install_relocation): Ditto.
4135 * srec.c (srec_write_section): Ditto.
4137 2000-01-13 Nick Clifton <nickc@cygnus.com>
4139 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4140 3 to 2. This allows 4 byte sized sections, which is necessary for
4141 dlltool to build functioning DLLs.
4143 2000-01-10 Philip Blundell <pb@futuretv.com>
4145 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4146 (arm*-*-conix*): New target.
4148 2000-01-10 Egor Duda <deo@logos-m.ru>
4150 * config.bfd: Include elf32_i386 vector to target list for cygwin
4153 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4154 * configure.in: Test for structure win32_pstatus_t in
4156 * configure: Regenerate.
4158 * elf.c (elfcore_grok_win32pstatus): New function: process
4159 win32_pstatus_t notes in elf core file.
4160 (elfcore_grok_note): Detect win32_pstatus notes.
4162 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4164 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4166 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4167 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4169 For older changes see ChangeLog-9899
4175 version-control: never