1 2001-02-07 Jakub Jelinek <jakub@redhat.com>
3 * elflink.h (is_global_symbol_definition): Rename to
4 is_global_data_symbol_definition and have it reject function
6 (elf_link_is_defined_archive_symbol): Use renamed function.
8 2001-02-07 Todd Vierling <tv@wasabisystems.com>
10 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
11 * libbfd.h (bfd_target_vector): Likewise.
12 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
13 make static; create pointer reference named bfd_target_vector.
14 (_bfd_target_vector_entries): Calculate this based on the array
15 typed _bfd_target_vector.
17 2001-02-06 H.J. Lu <hjl@gnu.org>
19 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
20 internal symbols are not dynamic.
21 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
23 2001-02-06 Nick Clifton <nickc@redhat.com>
25 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
26 that it will not be pulled into the list of files that make up
28 * Makefile.in: Regenerate.
29 * po/bfd.pot: Regenerate.
31 2001-02-06 H.J. Lu <hjl@gnu.org>
33 * bfd/peicode.h (coff_swap_filehdr_in): Remove the e_magic
35 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
36 external_PEI_IMAGE_hdr.
38 2001-02-06 Kazu Hirata <kazu@hxi.com>
40 * elf-m10200.c: Fix formatting.
42 2001-02-04 Nick Clifton <nickc@redhat.com>
44 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
45 rel, it will be handled later on.
47 2001-02-02 Fred Fish <fnf@ninemoons.com>
49 * Makefile.in: Fix typo.
51 2001-02-01 Kazu Hirata <kazu@hxi.com>
53 * elf-m10300.c: Fix formatting.
55 2001-01-30 Alan Modra <alan@linuxcare.com.au>
57 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
58 (elf_backend_get_symbol_type): Define.
59 (elf64_hppa_object_p): Set architecture and machine from elf
62 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
64 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
67 2001-01-26 Richard Henderson <rth@redhat.com>
69 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
70 for non-default visibility.
71 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
72 delete ugly macro and replace with pretty function.
74 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
76 * coff-go32.c: Update copyright.
77 * coff-stgo32.c: Likewise.
78 * coff-go32.c (COFF_LONG_FILENAMES): Define.
79 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
80 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
81 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
83 2001-01-25 Kazu Hirata <kazu@hxi.com>
88 2001-01-23 H.J. Lu <hjl@gnu.org>
92 2001-01-23 H.J. Lu <hjl@gnu.org>
94 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
95 is NULL or PRIV(vms_rec) is outside of the buffer.
97 2001-01-23 Kazu Hirata <kazu@hxi.com>
99 * coff64-rs6000.c: Fix formatting.
100 * coff-arm.c: Likewise.
101 * coffgen.c: Likewise.
102 * cofflink.c: Likewise.
103 * coff-mcore.c: Likewise.
104 * coff-mips.c: Likewise.
105 * coff-pmac.c: Likewise.
106 * coff-ppc.c: Likewise.
107 * coff-rs6000.c: Likewise.
109 * elf32-fr30.c: Likewise.
110 * elf32-i370.c: Likewise.
111 * elf32-i860.c: Likewise.
112 * elf32-m32r.c: Likewise.
113 * elf32-m68k.c: Likewise.
114 * elf32-mcore.c: Likewise.
115 * elf32-ppc.c: Likewise.
116 * elf32-sh.c: Likewise.
117 * elf32-v850.c: Likewise.
118 * elf64-alpha.c: Likewise.
119 * elf64-sparc.c: Likewise.
120 * elflink.c: Likewise.
121 * elflink.h: Likewise.
122 * elf-m10200.c: Likewise.
123 * elf-m10300.c: Likewise.
124 * elfxx-ia64.c: Likewise.
126 * aoutx.h: Fix formatting.
128 * bfd-in2.h: Likewise.
129 * bfd-in.h: Likewise.
130 * cpu-i386.c: Likewise.
131 * cpu-m68hc11.c: Likewise.
132 * dwarf2.c: Likewise.
133 * elf64-x86-64.c: Likewise.
134 * format.c: Likewise.
135 * freebsd.h: Likewise.
137 * hp300hpux.c: Likewise.
138 * hppabsd-core.c: Likewise.
139 * hpux-core.c: Likewise.
141 2001-01-22 Bo Thorsen <bo@suse.de>
143 * elf64-x86-64.c: Added PIC support for X86-64.
144 (elf64_x86_64_link_hash_newfunc): Function added.
145 (elf64_x86_64_link_hash_table_create): Likewise.
146 (elf64_x86_64_check_relocs): Likewise.
147 (elf64_x86_64_gc_mark_hook): Likewise.
148 (elf64_x86_64_gc_sweep_hook): Likewise.
149 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
150 (elf64_x86_64_size_dynamic_sections): Likewise.
151 (elf64_x86_64_discard_copies): Likewise.
152 (elf64_x86_64_finish_dynamic_symbol): Likewise.
153 (elf64_x86_64_finish_dynamic_sections): Likewise.
154 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
156 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
158 * Makefile.am (install-data-local): Make use of $(DESTDIR).
159 * Makefile.in: Regenerate.
161 2001-01-21 Kazu Hirata <kazu@hxi.com>
163 * coff-a29k.c: Fix formatting.
165 2001-01-19 H.J. Lu <hjl@gnu.org>
167 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
168 relocation section names.
169 (elf_i386_relocate_section): Report files with bad relocation
170 section names and return false.
172 2001-01-17 Bo Thorsen <bo@suse.de>
174 * targets.c: Alphabetize list of xvecs.
176 2001-01-14 Alan Modra <alan@linuxcare.com.au>
178 * config.bfd: Add linux target variant for elfxx-hppa.
179 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
180 bfd_elf64_hppa_linux_vec.
181 * configure: Regenerate.
182 * elf64-hppa.c: Include elf64-target.h again to support linux
184 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
185 * elf32-hppa.c: Include elf32-target.h again to support linux
187 (elf32_hppa_post_process_headers): New function.
188 (elf_backend_post_process_headers): Define.
189 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
190 bfd_elf32_hppa_linux_vec.
192 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
193 and data_segment_base fields.
194 (elf32_hppa_link_hash_table_create ): Init them.
195 (elf32_hppa_check_relocs): Update comments.
196 (hppa_record_segment_addr): New function.
197 (elf32_hppa_relocate_section): Call it.
198 (final_link_relocate): Handle R_PARISC_SEGREL32.
199 (elf32_hppa_final_link): New function.
200 (bfd_elf32_bfd_final_link): Define to call it.
201 (hppa_unwind_entry_compare): New function.
202 * cache.c (bfd_open_file): Create files in write+read mode.
204 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
205 SEGREL32 and numerous other relocs. Change duplicate
206 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
208 * opncls.c (bfd_fdopenr): Add parens like the comment says around
211 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
212 .plt entries for DT_INIT and DT_FINI.
213 (elf32_hppa_finish_dynamic_sections): Remove special handling of
216 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
217 offsets for stub .plt access if wide mode. Check offset in range.
219 2001-01-13 Nick Clifton <nickc@redhat.com>
221 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
224 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
227 2001-01-12 Alan Modra <alan@linuxcare.com.au>
229 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
230 * configure: Regenerate.
232 2001-01-11 Peter Targett <peter.targett@arccores.com>
234 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
235 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
236 * cpu-arc.c (arch_info_struct): Add entries for variants.
237 (bfd_arc_arch) Set default to bfd_mach_arc_5.
238 (arc_get_mach) Don't assume machine names prefixed arc- before
240 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
242 (arc_elf_final_write_processing) Likewise.
243 (ELF_MACHINE_CODE) Use EM_ARC.
245 2001-01-10 Nick Clifton <nickc@redhat.com>
247 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
249 2001-01-07 Philip Blundell <philb@gnu.org>
251 * README: Replace `bug-gnu-utils@gnu.org' with
252 `bug-binutils@gnu.org'.
254 2001-01-04 Kazu Hirata <kazu@hxi.com>
256 * som.c: Fix formatting.
258 2001-01-03 Kazu Hirata <kazu@hxi.com>
260 * ecoffswap.h: Fix formatting.
261 * elf-bfd.h: Likewise.
262 * elfarm-nabi.c: Likewise.
263 * elfarm-oabi.c: Likewise.
264 * elfcode.h: Likewise.
265 * elfcore.h: Likewise.
266 * elflink.c: Likewise.
267 * elflink.h: Likewise.
268 * elfxx-ia64.c: Likewise.
269 * elfxx-target.h: Likewise.
271 * linker.c: Likewise.
272 * lynx-core.c: Likewise.
274 2001-01-02 Kazu Hirata <kazu@hxi.com>
276 * pc532-mach.c: Fix formatting.
277 * pe-arm.c: Likewise.
278 * pe-i386.c: Likewise.
279 * pe-mips.c: Likewise.
280 * pe-ppc.c: Likewise.
282 * pei-mips.c: Likewise.
283 * pei-sh.c: Likewise.
284 * peicode.h: Likewise.
285 * ppcboot.c: Likewise.
286 * ptrace-core.c: Likewise.
288 2001-01-01 Kazu Hirata <kazu@hxi.com>
290 * reloc.c: Fix formatting.
291 * riscix.c: Likewise.
292 * rs6000-core.c: Likewise.
293 * xcoff-target.h: Likewise.
295 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
297 * elfcode.h (elf_object_p): Also restore the bfd mach field on
298 error, by calling bfd_default_set_arch_mach with incoming
301 2000-12-26 Kazu Hirata <kazu@hxi.com>
303 * vaxnetbsd.c: Fix formatting.
304 * versados.c: Likewise.
305 * vms-gsd.c: Likewise.
306 * vms-hdr.c: Likewise.
307 * vms-misc.c: Likewise.
309 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
311 * archive.c (coff_write_armap): Don't write more than symbol_count
312 `archive_member_file_ptr's.
314 2000-12-25 Kazu Hirata <kazu@hxi.com>
316 * vms-tir.c: Fix formatting.
318 2000-12-23 Kazu Hirata <kazu@hxi.com>
320 * vms.c: Fix formatting.
323 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
325 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
327 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
329 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
332 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
334 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
336 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
338 * libbfd.c (bfd_get_bits): Added
339 (bfd_put_bits): Likewise
340 * bfd-in.h: Declared the above.
341 * bfd-in2.h: Regenerated.
343 2000-12-20 Kazu Hirata <kazu@hxi.com>
345 * targets.c: Fix formatting.
346 * tekhex.c: Likewise.
347 * trad-core.c: Likewise.
349 2000-12-19 Kazu Hirata <kazu@hxi.com>
351 * sco5-core.c: Fix formatting.
352 * section.c: Likewise.
353 * sparclinux.c: Likewise.
354 * sparclynx.c: Likewise.
355 * sparcnetbsd.c: Likewise.
358 * stab-syms.c: Likewise.
361 * sysdep.h: Likewise.
363 2000-12-18 Nick Clifton <nickc@redhat.com>
365 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
367 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
368 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
370 2000-12-18 Nick Clifton <nickc@redhat.com>
372 * vms-misc.c (_bfd_vms_get_record): Add default case to
375 2000-12-15 Miloslav Trmac <mitr@volny.cz>
377 * elfcore.h (elf_core_file_p): Move to the start of the program
378 headers before attempting to read them.
380 2000-12-14 Kazu Hirata <kazu@hxi.com>
382 * peigen.c: Fix formatting.
386 2000-12-13 Kazu Hirata <kazu@hxi.com>
388 * peigen.c: Fix formatting.
390 2000-12-12 Jim Wilson <wilson@redhat.com>
392 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
394 2000-12-08 Mark Salter <msalter@redhat.com>
396 * binary.c (binary_set_section_contents): Ignore sections
399 2000-12-12 Kazu Hirata <kazu@hxi.com>
401 * m68klinux.c: Fix formatting.
402 * m68knetbsd.c: Likewise.
403 * mipsbsd.c: Likewise.
404 * netbsd-core.c: Likewise.
405 * netbsd.h: Likewise.
406 * newsos3.c: Likewise.
407 * nlm32-alpha.c: Likewise.
408 * nlm32-i386.c: Likewise.
409 * nlm32-ppc.c: Likewise.
410 * nlm32-sparc.c: Likewise.
411 * nlmcode.h: Likewise.
412 * nlmswap.h: Likewise.
413 * nlm-target.h: Likewise.
414 * ns32knetbsd.c: Likewise.
416 2000-12-10 Fred Fish <fnf@be.com>
418 * elflink.h (elf_link_output_extsym): Don't complain about undefined
419 symbols in shared objects if allow_shlib_undefined is true.
421 2000-12-12 Nick Clifton <nickc@redhat.com>
423 * cpu-sh.c: Fix formattng.
424 * elf.c: Fix formattng.
425 * elf32-mips.c: Fix formattng.
426 * elf32-sh.c: Fix formattng.
427 * elf64-alpha.c: Fix formattng.
429 2000-12-09 Nick Clifton <nickc@redhat.com>
431 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
432 dwarf2_find_line_info as last parameter to invocation of
433 _bfd_dwarf2_find_nearest_line.
434 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
435 dwarf2_find_line_info as last parameter to invocation of
436 _bfd_dwarf2_find_nearest_line.
438 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
440 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
441 (BFD_LIBS): ...to here.
442 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
443 (BFD_LIBS_CFILES): ...to here.
444 * Makefile.in: Regenerate.
445 * configure.in: Remove dwarf.lo from the elf shell variable.
446 * configure: Regenerate.
447 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
448 * libcoff.h: Regenerate.
449 * coffgen.c (coff_find_nearest_line): Call
450 _bfd_dwarf2_find_nearest_line.
451 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
453 (read_abbrevs): Likewise
454 (decode_line_info): Likewise.
455 (parse_comp_unit): Likewise.
456 (comp_unit_find_nearest_line): Likewise.
457 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
458 * libbfd.h: Regenerate.
459 * elf.c (_bfd_elf_find_nearest_line): Update call.
460 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
461 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
462 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
463 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
464 (styp_to_sec_flags): Handle DWARF2 sections.
465 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
466 to _bfd_find_nearest_line.
467 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
468 call to _bfd_find_nearest_line.
470 2000-12-08 Kazu Hirata <kazu@hxi.com>
472 * coffgen.c: Fix formatting.
473 * elf-m10300.c: Likewise.
474 * elf32-i386.c: Likewise.
475 * elf32-i960.c: Likewise.
476 * elf32-m68k.c: Likewise.
477 * elf32-mcore.c: Likewise.
478 * elf32-ppc.c: Likewise.
479 * elf32-sh.c: Likewise.
480 * elf32-sparc.c: Likewise.
481 * elf32-v850.c: Likewise.
482 * elf64-alpha.c: Likewise.
483 * elf64-hppa.c: Likewise.
484 * elf64-mips.c: Likewise.
485 * elf64-sparc.c: Likewise.
487 2000-12-07 Kazu Hirata <kazu@hxi.com>
489 * elf32-ppc.c: Fix formatting.
490 * elf64-x86-64.c: Likewise.
492 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
494 From Ralf Baechle <ralf@gnu.org>
496 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
497 BFDs containing no sections or empty .text, .data or .bss sections
498 to be merged, regardless of their flags.
500 2000-12-06 Kazu Hirata <kazu@hxi.com>
502 * elf32-m32r.c: Fix formatting.
503 * elf32-m68hc11.c: Likewise.
504 * elf32-m68hc12.c: Likewise.
505 * elf32-m68k.c: Likewise.
506 * elf32-mcore.c: Likewise.
507 * elf32-pj.c: Likewise.
508 * elf32-ppc.c: Likewise.
510 2000-12-05 Kazu Hirata <kazu@hxi.com>
512 * elf32-fr30.c: Fix formatting.
513 * elf32-hppa.c: Likewise.
514 * elf32-i370.c: Likewise.
515 * elf32-i386.c: Likewise.
516 * elf32-i860.c: Likewise.
517 * elf32-i960.c: Likewise.
519 2000-12-03 Kazu Hirata <kazu@hxi.com>
521 * elf32-arm.h: Fix formatting.
522 * elf32-avr.c: Likewise.
523 * elf32-cris.c: Likewise.
524 * elf32-d10v.c: Likewise.
525 * elf32-d30v.c: Likewise.
526 * elf-hppa.h: Likewise.
527 * elf-m10200.c: Likewise.
528 * elf-m10300.c: Likewise.
530 2000-12-01 Chris Demetriou <cgd@sibyte.com>
532 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
533 bfd_mach_mips32_4k. Update FIXME comment.
534 * archures.c (bfd_mach_mips32): New constant.
535 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
536 the latter, renumber it.
537 * bfd-in2.h (bfd_mach_mips32): New constant.
538 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
539 the latter, renumber it.
540 * cpu-mips.c (I_mips32): New constant.
541 (I_mips4K, I_mips32_4k): Rename the former to the latter.
542 (arch_info_struct): Add bfd_mach_mips32 entry, replace
543 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
544 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
545 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
546 with E_MIPS_MACH_MIPS32_4K.
547 (_bfd_mips_elf_final_write_processing): Replace
548 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
549 bfd_mach_mips32 case.
550 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
551 comparison with support for MIPS32.
552 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
555 * aoutx.h (NAME(aout,machine_type)): Add cases for
556 bfd_mach_mips5 and bfd_mach_mips64.
557 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
558 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
559 * cpu_mips.c (I_mips5, I_mips64): New definitions.
560 (arch_info_struct): Add entries for bfd_mach_mips5 and
562 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
563 _bfd_mips_elf_print_private_bfd_data): Add cases for
564 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
565 (_bfd_mips_elf_final_write_processing): Add cases for
566 bfd_mach_mips5 and bfd_mach_mips64.
568 * bfd/aoutx.h (NAME(aout,machine_type)): Add a
569 bfd_mach_mips_sb1 case.
570 * bfd/archures.c (bfd_mach_mips_sb1): New constant.
571 * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
572 * bfd/cpu-mips.c (I_sb1): New constant.
573 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
574 * bfd/elf32-mips.c (elf_mips_mach): Add case for
576 (_bfd_mips_elf_final_write_processing): Add case for
579 2000-12-01 Joel Sherrill <joel@OARcorp.com>
581 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
582 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
583 (sparc*-*-rtems*): Switched from a.out to ELF.
585 2000-11-30 Jan Hubicka <jh@suse.cz>
587 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
588 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
589 (elf64-x86-64.lo): Add dependencies.
590 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
591 bfd_mach_x86_64_intel_syntax.
592 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
593 * config.bfd (x86_64): Add.
594 * configure.in: Add support for bfd_elf64_x86_64_vec.
595 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
596 (bfd_i386_arch, i8086_ar): Link in.
597 * elf64-x86-64.c: New file.
598 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
599 * targets.c (bfd_elf64_x86_64_vec): Add.
600 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
602 2000-11-30 Kazu Hirata <kazu@hxi.com>
604 * xcofflink.c: Fix formatting.
606 2000-11-28 Kazu Hirata <kazu@hxi.com>
608 * aoutx.h: Fix formatting.
609 * bfd-in.h: Likewise.
610 * bfd-in2.h: Likewise.
612 * cisco-core.c: Likewise.
613 * coff64-rs6000.c: Likewise.
614 * coffcode.h: Likewise.
615 * coffswap.h: Likewise.
616 * corefile.c: Likewise.
617 * elf32-mips.c: Likewise.
619 2000-11-27 Kazu Hirata <kazu@hxi.com>
621 * aout-adobe.c: Fix formatting.
622 * coff64-rs6000.c: Likewise.
623 * coffgen.c: Likewise.
624 * cofflink.c: Likewise.
626 2000-11-27 Philip Blundell <pb@futuretv.com>
628 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
629 (obj_coff_strings_written): New accessor macro for above.
630 * libcoff.h: Regenerate.
631 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
633 * coffcode.h (coff_write_object_contents): No need to write out
634 the string table if it's already been done.
636 2000-11-22 Philip Blundell <pb@futuretv.com>
638 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
639 weak undefined symbols.
641 2000-11-24 Nick Clifton <nickc@redhat.com>
643 * archures.c (bfd_mach_arm_5TE): Define.
644 (bfd_mach_arm+XScale): Define.
645 * bfd-in2.h: Regenerate.
647 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
648 BFD_RELOC_ARM_PCREL_BLX.
650 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
651 XScale machine numbers.
653 * config.bfd (xscale-elf): Add target.
654 (xscale-coff): Add target.
656 * cpu-arm.c: Add xscale machine name.
657 Add v5t, v5te and XScale machine numbers.
659 2000-11-23 Kazu Hirata <kazu@hxi.com>
661 * aix386-core.c: Fix formatting.
663 2000-11-22 Jim Wilson <wilson@redhat.com>
665 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
666 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
667 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
668 (ins_imms_scaled): Initialize sign_bit at function entry.
669 (elf64_ia64_operands): Add missing initializers.
670 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
671 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
672 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
673 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
674 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
676 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
677 and free_extsyms at function entry.
678 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
679 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
680 (get_got): Delete unused local srel.
681 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
682 (elfNN_ia64_relocate_section): Delete unused local dynindx.
684 2000-11-21 Kazu Hirata <kazu@hxi.com>
686 * coff-a29k.c: Fix formatting.
687 * coff-h8500.c: Likewise.
688 * coff-i960.c: Likewise.
689 * coff-ppc.c: Likewise.
690 * coff-rs6000.c: Likewise.
691 * coff-stgo32.c: Likewise.
692 * coff-tic54x.c: Likewise.
693 * coff-w65.c: Likewise.
694 * cpu-h8500.c: Likewise.
695 * cpu-hppa.c: Likewise.
696 * cpu-ns32k.c: Likewise.
698 * ecofflink.c: Likewise.
700 2000-11-21 Nick Clifton <nickc@redhat.com>
702 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
703 remove possibility of infinite loop.
705 2000-11-20 Kazu Hirata <kazu@hxi.com>
707 * aix386-core.c: Fix formatting.
708 * aout-adobe.c: Likewise.
709 * aout-arm.c: Likewise.
710 * aout-encap.c: Likewise.
711 * aout-ns32k.c: Likewise.
712 * aout-target.h: Likewise.
713 * aout-tic30.c: Likewise.
714 * aoutf1.h: Likewise.
716 * archive.c: Likewise.
717 * bfd-in.h: Likewise.
718 * bfd-in2.h: Likewise.
722 2000-11-17 H.J. Lu <hjl@gnu.org>
724 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
725 pltoff entries for DT_INIT and DT_FINI.
726 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
727 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
730 2000-11-16 Richard Henderson <rth@redhat.com>
732 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
733 (allocate_dynrel_entries): Likewise.
734 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
735 (set_pltoff_entry): Likewise.
736 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
737 (elfNN_ia64_reloc_type_lookup): Likewise.
738 (elfNN_ia64_install_value): Likewise.
739 (elfNN_ia64_relocate_section): Likewise.
740 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
741 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
743 2000-11-16 Kazu Hirata <kazu@hxi.com>
745 * cpu-a29k.c: Fix formatting.
746 * cpu-alpha.c: Likewise.
747 * cpu-arm.c: Likewise.
748 * cpu-avr.c: Likewise.
749 * cpu-d10v.c: Likewise.
750 * cpu-h8500.c: Likewise.
751 * cpu-hppa.c: Likewise.
752 * cpu-i370.c: Likewise.
753 * cpu-i386.c: Likewise.
754 * cpu-i960.c: Likewise.
755 * cpu-ia64-opc.c: Likewise.
756 * cpu-ia64.c: Likewise.
757 * cpu-m32r.c: Likewise.
758 * cpu-m68hc11.c: Likewise.
759 * cpu-m68hc12.c: Likewise.
760 * cpu-m68k.c: Likewise.
761 * cpu-m88k.c: Likewise.
762 * cpu-mips.c: Likewise.
763 * cpu-ns32k.c: Likewise.
764 * cpu-pj.c: Likewise.
765 * cpu-powerpc.c: Likewise.
766 * cpu-sh.c: Likewise.
767 * cpu-sparc.c: Likewise.
768 * cpu-tic54x.c: Likewise.
769 * cpu-v850.c: Likewise.
770 * cpu-vax.c: Likewise.
771 * cpu-w65.c: Likewise.
772 * cpu-we32k.c: Likewise.
773 * cpu-z8k.c: Likewise.
774 * dwarf1.c: Likewise.
775 * dwarf2.c: Likewise.
777 2000-11-15 Kazu Hirata <kazu@hxi.com>
779 * coff-arm.c: Fix formatting.
780 * coff-ppc.c: Likewise.
781 * coff-rs6000.c: Likewise.
782 * coff-sh.c: Likewise.
783 * coff-sparc.c: Likewise.
784 * coff-tic30.c: Likewise.
785 * coff-tic54x.c: Likewise.
786 * coff-tic80.c: Likewise.
787 * coff-w65.c: Likewise.
788 * coff-we32k.c: Likewise.
789 * coff-z8k.c: Likewise.
791 2000-11-15 Richard Henderson <rth@redhat.com>
793 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
794 section with the same ALLOC|LOAD flags as the source section.
796 2000-11-14 Jakub Jelinek <jakub@redhat.com>
798 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
799 by STO_ALPHA constants.
801 2000-11-14 Kazu Hirata <kazu@hxi.com>
803 * coff-pmac.c: Fix formatting.
804 * coff-ppc.c: Likewise.
806 2000-11-13 H.J. Lu <hjl@gnu.org>
808 * elflink.h (elf_link_add_object_symbols): Also add indirect
809 symbols for common symbols with the default version.
811 2000-11-09 Philip Blundell <pb@futuretv.com>
813 * section.c (STD_SECTION): Set gc_mark flag.
815 2000-11-11 Kazu Hirata <kazu@hxi.com>
817 * coff-i960.c: Likewise.
818 * coff-m68k.c: Likewise.
819 * coff-m88k.c: Likewise.
820 * coff-mcore.c: Likewise.
821 * coff-mips.c: Likewise.
823 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
825 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
827 2000-11-10 Kazu Hirata <kazu@hxi.com>
829 * coff-h8300.c: Fix formatting.
830 * coff-h8500.c: Likewise.
831 * coff-i386.c: Likewise.
832 * coff-i860.c: Likewise.
833 * coff-i960.c: Likewise.
834 * coff-ia64.c: Likewise.
836 2000-11-09 Kazu Hirata <kazu@hxi.com>
838 * archive.c: Fix formatting.
839 * archures.c: Likewise.
841 2000-11-07 Richard Henderson <rth@redhat.com>
843 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
844 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
845 * section.c (bfd_set_section_contents): Call memcpy if
846 section->contents set and location not equal to contents plus offset.
848 2000-11-08 Kazu Hirata <kazu@hxi.com>
850 * bfd-in.h: Fix formatting.
851 * bfd-in2.h: Likewise.
853 * binary.c: Likewise.
855 * coff-a29k.c: Likewise.
856 * coff-alpha.c: Likewise.
857 * coff-apollo.c: Likewise.
858 * coff-aux.c: Likewise.
860 2000-11-07 Kazu Hirata <kazu@hxi.com>
862 * aix386-core.c: Fix formatting.
863 * aoutf1.h: Likewise.
865 * archures.c: Likewise.
866 * armnetbsd.c: Likewise.
868 2000-11-07 Alan Modra <alan@linuxcare.com.au>
870 * coff-h8300.c (special): Adjust reloc address.
872 2000-11-06 Steve Ellcey <sje@cup.hp.com>
874 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
875 to differentiate elf32 and elf64 on ia64.
876 * bfd-in2.h: Regenerate.
877 * config.bfd: Add target for "ia64*-*-hpux*".
878 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
879 * configure: Regenerate.
880 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
881 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
883 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
884 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
885 * Makefile.in: Regnerate.
886 * elf64-ia64.c: Deleted.
887 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
889 2000-11-06 Kazu Hirata <kazu@hxi.com>
891 * aout-adobe.c: Fix formatting.
892 * aout-arm.c: Likewise.
893 * aout-cris.c: Likewise.
894 * aout-encap.c: Likewise.
895 * aout-ns32k.c: Likewise.
896 * aout-target.h: Likewise.
897 * aout-tic30.c: Likewise.
899 2000-11-05 Philip Blundell <philb@gnu.org>
901 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
902 BFDs containing no sections to be merged, regardless of their flags.
904 2000-11-04 Philip Blundell <philb@gnu.org>
906 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
907 if a relocation for an undefined symbol also results in an
910 2000-11-06 Christopher Faylor <cgf@cygnus.com>
912 * config.bfd: Add support for Sun Chorus.
914 2000-11-05 David O'Brien <obrien@FreeBSD.org>
916 * configure.in: Recognize alpha-*-freebsd*.
917 * configure: Regenerate.
919 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
921 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
922 (Chunk): New global variable set by a parameter in objcopy.c.
923 (S3Forced): New global variable set by a parameter in
925 (srec_set_section_contents): If S3Forced is true, always generate
927 (srec_write_section): Use 'Chunk' to limit maximum length of S
930 2000-11-02 Per Lundberg <plundis@chaosdev.org>
932 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
933 * Makefile.in: Regenerate.
934 * bfd-in2.h: Regenerate.
935 * po/bfd.pot: Regenerate.
937 2000-10-31 Philip Blundell <philb@gnu.org>
939 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
940 EF_SOFT_FLOAT if it is defined.
942 2000-10-27 Philip Blundell <philb@gnu.org>
944 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
945 attempts to mix PIC code with non-PIC, just mark the output as
946 being position dependent.
947 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
948 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
949 all mismatches, not just the first one.
951 2000-10-25 Chris Demetriou <cgd@sibyte.com>
953 * ieee.c (ieee_archive_p): Plug one of many possible
954 memory leaks in error handling.
956 2000-10-20 Jakub Jelinek <jakub@redhat.com>
958 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
959 elf32_sparc_object_p, elf32_sparc_final_write_processing):
961 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
962 sparc64_elf_object_p): Support v9b.
963 * archures.c: Declare v8plusb and v9b machines.
965 * cpu-sparc.c: Ditto.
967 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
969 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
972 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
973 (SYMBOL_CALLS_LOCAL): New macro.
974 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
975 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
976 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
977 (ppc_elf_relocate_section): Use flag variable to determine
978 whether the relocation refers to a local symbol.
979 Test whether a PLTREL24 reloc will produce a reloc by looking
980 to see whether a PLT entry was made.
982 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
984 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
985 entries that could serve as a definition for a weak symbol.
987 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
989 From Ralf Baechle <ralf@gnu.org>
991 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
992 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
993 against local symbols.
994 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
996 2000-10-12 Alan Modra <alan@linuxcare.com.au>
998 * section.c (struct sec): Add kept_section.
999 (struct bfd_comdat_info): Remove sec, we can use above.
1000 (STD_SECTION): Add initializer.
1001 (bfd_make_section_anyway): Init here too.
1003 * bfd-in2.h: Regenerate.
1005 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1007 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1008 fudge values for discarded link-once section symbols.
1010 * elf64-hppa.c: Include alloca-conf.h
1012 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1014 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1016 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1018 2000-10-10 Alan Modra <alan@linuxcare.com.au>
1020 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1022 2000-10-10 Tom Rix <trix@redhat.com>
1024 * section.c (bfd_make_section_anyway): Release newsect ptr when
1025 newsect->symbol fails to alloc. Use bfd_release instead of free.
1027 2000-10-09 Richard Henderson <rth@cygnus.com
1029 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1030 (elf64_ia64_unwind_entry_compare): New.
1031 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1033 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1035 * elflink.h (size_dynamic_sections): Don't create various tags if
1036 .dynstr is excluded from the link. Don't set first dynsym entry
1037 if dynsymcount is zero.
1038 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1039 .dynsym excluded from the link. Don't try to write any dynamic
1040 sections excluded from the link.
1042 * elf.c (swap_out_syms): Handle global section symbols.
1044 2000-10-05 DJ Delorie <dj@redhat.com>
1046 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1047 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1048 (coff_write_relocs): write extended reloc count
1049 (coff_write_object_contents): account for extended relocs
1051 2000-10-05 Jim Wilson <wilson@cygnus.com>
1053 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1055 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1056 elf_backend_section_flags function.
1057 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1059 (elf64_ia64_section_flags): New function containing flag conversion
1061 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1062 * elfxx-target.h (elf_backend_section_flags): Define.
1063 (elfNN_bed): Initialize elf_backend_section_flags field.
1065 2000-10-02 Alan Modra <alan@linuxcare.com.au>
1067 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1068 _bfd_elf32_gc_record_vtable. Correct a comment.
1070 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1072 From Ralf Baechle <ralf@gnu.org>
1074 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1075 produces binaries with got[1] = 0x80000001 to differenciate them
1076 for the dynamic linker from the broken binaries produced by old
1079 2000-09-30 Petr Sorfa <petrs@sco.com>
1081 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1082 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1083 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1084 * configure: Regenerate.
1086 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
1088 Define two bfd_targets for absence and presence of leading
1089 underscore on symbols. Make sure to only link same kind.
1090 * elf32-cris.c (cris_elf_object_p,
1091 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1092 cris_elf_merge_private_bfd_data): New.
1093 (elf_backend_object_p, elf_backend_final_write_processing,
1094 bfd_elf32_bfd_print_private_bfd_data,
1095 bfd_elf32_bfd_merge_private_bfd_data): Define.
1096 <Target vector definition>: Include elf32-target.h twice with
1097 different macro settings:
1098 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1099 bfd_elf32_us_cris_vec.
1100 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1101 (elf_symbol_leading_char): First as 0, then '_'.
1102 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1103 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1104 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1105 * configure: Regenerate.
1106 * targets.c: Declare bfd_elf32_us_cris_vec.
1107 * po/bfd.pot: Regenerate.
1109 2000-09-29 Momchil Velikov <velco@fadata.bg>
1111 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1112 R_ARM_THM_PC22 relocations.
1114 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1116 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1118 2000-09-29 Momchil Velikov <velco@fadata.bg>
1120 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1121 is has the SEC_HAS_CONTENTS flag set.
1123 2000-09-28 Örjan Friberg <orjanf@axis.com>
1124 Hans-Peter Nilsson <hp@axis.com>
1126 * aout-cris.c (N_TXTADDR): Define.
1128 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1130 * som.c: Include alloca-conf.h.
1131 * Makefile.am: "make dep-am"
1132 * Makefile.in: Regenerate.
1134 2000-09-27 Alan Modra <alan@linuxcare.com.au>
1136 * elf32-hppa.c (plt_stub): New.
1137 (PLT_STUB_ENTRY): Define.
1138 (elf32_hppa_link_hash_table): Change multi_subspace to packed
1139 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1140 (elf32_hppa_link_hash_table_create): Init to suit.
1141 (elf32_hppa_check_relocs): Set has_12bit_branch and
1142 has_17bit_branch as appropriate.
1143 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1144 non-local functions.
1145 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1146 Add space for plt_stub as needed.
1147 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1148 functions at plt_stub.
1149 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1150 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1152 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1153 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
1154 of fixed size, and if negative, disable handling of input sections
1155 before stub section. Set up default stub group size depending
1156 on detected branch relocs.
1157 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1158 ensure different offsets from sym_value aren't rounded to
1159 different 2k blocks. Use lrsel and rrsel for other stubs too for
1160 consistency rather than necessity.
1161 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1162 (final_link_relocate): Likewise.
1163 (elf32_hppa_relocate_section): Likewise.
1165 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1166 (_bfd_elf_hppa_gen_reloc_type): Generate them.
1167 (elf_hppa_final_link_relocate): Handle them.
1168 (elf_hppa_relocate_insn): Likewise.
1169 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1171 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
1173 * elfcode.h (elf_object_p): Preserve and clear abfd section
1174 information. Restore at error.
1176 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1178 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1179 is empty, make sure that its rva also 0. NT loader dislikes
1182 2000-09-26 Steve Ellcey <sje@cup.hp.com>
1184 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1187 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1189 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1190 currently unused RELATIVE_DYNAMIC_RELOCS code.
1191 (hppa_discard_copies): Likewise.
1192 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1193 comments. Don't check non-code output sections for stub grouping.
1195 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1197 * section.c (bfd_get_unique_section_name): Return NULL if
1200 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1202 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1203 instruction sequence to actually work.
1204 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1207 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
1209 * elf32-sh.c (sh_elf_relocate_section): Use
1210 _bfd_final_link_relocate to apply the relocation against a section
1211 symbol, when doing relocatable links.
1213 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1215 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1217 (stub_hash_newfunc): Here too.
1218 (hppa_add_stub): And here.
1219 (elf32_hppa_link_hash_table): Remove stub_section_created,
1220 reloc_section_created, first_init_sec and first_fini_sec. Add
1222 (elf32_hppa_link_hash_table_create): Init to suit.
1223 (hppa_get_stub_entry): Add support for grouping stub sections.
1224 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
1225 section code. Index stub vars by section->id.
1226 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
1227 exit paths. Zap allocation of above removed vars. Refine
1230 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1231 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1232 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1233 rather than pointer to bfd_link_info.
1234 (hppa_add_stub): Likewise.
1235 (final_link_relocate): Likewise.
1237 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
1239 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1242 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
1244 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1245 ld/emulparams/shelf.sh.
1247 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1249 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1250 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1251 * bfd-in2.h: Regenerate.
1253 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
1255 * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1256 LITUSE relocations incorrectly if -relax is specified on the ld
1257 command line and the displacement field of the load or store
1258 instruction is non-zero. (Patch by paul.winalski@compaq.com)
1260 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1262 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1263 first_fini_sec here.
1264 (elf32_hppa_size_stubs): Instead correctly find the first .init
1265 and .fini section here.
1267 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
1269 * elf32-hppa.c (clobber_millicode_symbols): New function.
1270 (elf32_hppa_size_dynamic_sections): Call it.
1272 2000-09-14 Alan Modra <alan@linuxcare.com.au>
1274 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1275 packed. Add plabel, plt_abs packed booleans.
1276 (hppa_link_hash_newfunc): Init new fields.
1277 (PLABEL_PLT_ENTRY_SIZE): Define.
1278 (hppa_stub_name): Use size_t len vars.
1279 (hppa_add_stub): Likewise.
1280 (elf32_hppa_build_stubs): Likewise.
1281 (hppa_build_one_stub): Kill some compiler warnings.
1282 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1283 if dynamic linking. Munge the local plt offsets into
1284 local_got_refcounts. Set h->plabel for all global PLABELs. Use
1285 size_t len vars. Add assert for plabel addend.
1286 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1287 (elf32_hppa_hide_symbol): New function.
1288 (elf_backend_hide_symbol): Define.
1289 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1290 with h->plabel set. Don't make plt entries to have dynamic syms
1291 when they have been forced local. If plt entry is used by a
1292 plabel, make it PLABEL_PLT_ENTRY_SIZE.
1293 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1294 Set up .plt offsets for local syms.
1295 (elf32_hppa_relocate_section): Initialise plt entries for local
1296 syms. Leave weak undefined plabels zero. Make global plabel
1297 relocs against function symbol, and leave the addend zero.
1298 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1299 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1300 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
1301 relocs instead of SEGREL32 for dynamic got relocs.
1302 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1303 (elf_backend_got_header_size): Adjust.
1304 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
1306 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1307 (hppa_type_of_stub): Use it instead of #if 0
1308 (hppa_discard_copies): Use it here too.
1309 (elf32_hppa_size_dynamic_sections): And here.
1311 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1312 (elf32_hppa_link_hash_table_create): And here.
1313 (hppa_build_one_stub): And here. Instead keep track of stub
1314 offset using _raw_size.
1315 (elf32_hppa_size_stubs): Likewise.
1316 (elf32_hppa_build_stubs): Likewise.
1317 (hppa_size_one_stub): Likewise. Resize reloc section too.
1319 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
1320 first_fini_sec handling. Don't search for reloc section or set
1321 hplink->reloc_section_created here.
1322 (elf32_hppa_size_stubs): Instead search for reloc sections, and
1323 set reloc_section_created here.
1324 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
1325 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
1327 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
1329 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
1330 with `hplink->root.'.
1331 (elf32_hppa_check_relocs): Likewise.
1332 (elf32_hppa_gc_sweep_hook): Likewise.
1333 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1334 (hppa_handle_PIC_calls): Likewise.
1335 (elf32_hppa_size_dynamic_sections): Likewise.
1336 (elf32_hppa_set_gp): Likewise.
1337 (elf32_hppa_relocate_section): Likewise.
1338 (elf32_hppa_finish_dynamic_symbol): Likewise.
1339 (elf32_hppa_finish_dynamic_sections): Likewise.
1341 From David Huggins-Daines <dhd@linuxcare.com>
1342 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
1343 defined weak symbols in shared links.
1344 (final_link_relocate): Calls to defined weak symbols in shared
1345 objects must go via import stubs, as the target might not be known
1348 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1350 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
1351 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
1352 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
1353 the original entries with EMPTY_HOWTOs, and added new ones to fill
1355 (sh_elf_info_to_howto): Make sure the new gap isn't used.
1356 (sh_elf_relocate_section): Likewise.
1358 2000-09-13 Anders Norlander <anorland@acc.umu.se>
1360 * cpu-mips.c (arch_info_struct): Add mips:4K
1361 * bfd-in2.h (bfd_mach_mips4K): New define.
1362 * archures.c: Add bfd_mach_mips4K to comment.
1363 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
1364 E_MIPS_ARCH_2 for bfd_mach_mips4K.
1366 2000-09-13 Marco Franzen <marcof@thyron.com>
1368 * som.c (som_write_symbol_strings): Do not used fixed buffers,
1369 use size_t as a counter.
1370 (som_write_space_strings): Similarly.
1372 2000-09-12 Jason Eckhardt <jle@cygnus.com>
1374 * elf32-i860.c (elf32_i860_relocate_pc26): New function
1376 (elf32_i860_relocate_section): Invoke new function from here.
1378 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1380 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
1383 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1385 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
1386 target section name instead of dumping core when the target symbol is
1389 2000-09-09 Kazu Hirata <kazu@hxi.com>
1391 * riscix.c: Remove DEFUN.
1393 2000-09-08 Nick Clifton <nickc@redhat.com>
1395 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
1396 initialise flags in output bfd if the input bfd is the default
1397 architecture with the default flags.
1399 2000-09-08 Kazu Hirata <kazu@hxi.com>
1401 * archive.c: Fix formatting.
1402 * coff-arm.c: Likewise.
1403 * doc/chew.c: Likewise.
1405 2000-09-08 Alan Modra <alan@linuxcare.com.au>
1407 * section.c (bfd_get_unique_section_name): Put a dot before the
1410 2000-09-07 Kazu Hirata <kazu@hxi.com>
1412 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
1413 * elf.c: Fix formatting.
1415 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
1417 * config.bfd (sh-*-linux*): Added.
1418 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
1419 * targets.c: Declare them.
1420 * elf32-sh-lin.c: New file.
1421 * Makefile.am: Compile it.
1422 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
1423 * configure, Makefile.in: Rebuilt.
1425 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
1427 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
1428 pseduo-section when determining where the TOC ends.
1430 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
1431 output x_tvndx as it is only two bytes wide.
1433 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
1434 reloc is 26 or 32 bits wide.
1436 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
1437 for relocs that don't change anything. Also look at the full
1440 2000-09-06 Philip Blundell <philb@gnu.org>
1442 * config.bfd (arm*-*-uclinux*): New target.
1444 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1446 * configure: Rebuilt with new libtool.m4.
1448 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1450 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
1451 word for variable name.
1452 * bfd-in2.h: Regenerate.
1454 2000-09-05 Nick Clifton <nickc@redhat.com>
1456 * config.in: Regenerate.
1457 * libbfd.h: Regenerate.
1458 * po/bfd.pot: Regenerate.
1459 * doc/bfdint.texi: Remove CVS date string - it foils compares with
1462 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
1464 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
1466 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1468 Shared library and PIC support.
1469 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
1470 (GOT_ENTRY_SIZE): New.
1471 (ELF_DYNAMIC_INTERPRETER): New.
1472 (STUB_SUFFIX): Define.
1473 (LONG_BRANCH_PIC_IN_SHLIB): Define.
1474 (RELATIVE_DYNAMIC_RELOCS): Define.
1475 (enum elf32_hppa_stub_type): New.
1476 (struct elf32_hppa_stub_hash_entry): Rename offset to
1477 stub_offset. Add a number of new fields.
1478 (struct elf32_hppa_link_hash_entry): New.
1479 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
1481 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
1482 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
1483 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
1485 (hppa_link_hash_newfunc): New function.
1486 (elf32_hppa_link_hash_table_create): Use above function. Init new
1488 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
1489 instead of addend, and remove sym_name from args. Don't use
1490 symbol name for local syms, instead use sym index.
1491 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
1492 stub type rather than size. Pass in hash and handle import stub
1493 case. Also pass in reloc instead of offset so we can calculate
1494 PCREL22F and PCREL12F branches properly.
1495 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
1496 import and export stubs too.
1497 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
1498 import and export stub sizing.
1499 (elf32_hppa_check_relocs): New function.
1500 (elf32_hppa_adjust_dynamic_symbol): New function.
1501 (hppa_discard_copies): New function.
1502 (elf32_hppa_size_dynamic_sections): New function.
1503 (elf_backend_size_dynamic_sections): Define.
1504 (elf32_hppa_finish_dynamic_symbol): New function.
1505 (elf_backend_finish_dynamic_symbol): Define.
1506 (elf32_hppa_size_stubs): Stash params in link hash table, and move
1507 some local vars into the link hash table too. For shared links,
1508 trundle over function syms, generating export stubs. Handle
1509 PCREL22F branches. Break out stub creation code from here..
1510 (hppa_add_stub): .. to here. New function.
1511 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
1512 call the bfd linker. Use elf_gp to record global pointer.
1513 Calculate a value from sections if $global$ is missing.
1514 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
1515 (elf32_hppa_gc_mark_hook): New function.
1516 (elf_backend_gc_mark_hook): Define.
1517 (elf32_hppa_gc_sweep_hook): New function.
1518 (elf_backend_gc_sweep_hook): Define.
1519 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
1520 Add rel to args, and remove howto, input_bfd, offset, addend,
1521 sym_name as we can recalculate these locally. Handle calls to
1522 dynamic objects, extra PIC relocs, PCREL22F branches. Change
1523 handling of undefined weak syms. Check that stubs are in range.
1524 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
1525 message on hitting a DPREL21L reloc that needs fixing. Subtract
1526 off PC for PCREL14F. Break out code that does a stub lookup from
1528 (hppa_get_stub_entry): ..to here. New function.
1529 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
1530 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
1532 (elf32_hppa_finish_dynamic_sections): New function.
1533 (elf_backend_finish_dynamic_sections): Define.
1534 (elf_backend_final_write_processing) Define.
1535 (hppa_handle_PIC_calls): New function.
1536 (elf32_hppa_build_stubs): Call it. Pass link_info to
1537 hppa_build_one_stub.
1538 (elf32_hppa_create_dynamic_sections): New function
1539 to create .plt and .got then set .plt flags correctly.
1540 (elf_backend_create_dynamic_sections): Define.
1541 (elf32_hppa_object_p): New function.
1542 (elf_backend_object_p): Define.
1543 (elf32_hppa_elf_get_symbol_type): New function.
1544 (elf_backend_get_symbol_type): Define.
1545 (elf_backend_can_gc_sections): Define.
1546 (elf_backend_want_got_plt): Define.
1547 (elf_backend_plt_alignment): Set to 2.
1548 (elf_backend_plt_readonly): Define.
1549 (elf_backend_want_plt_sym): Define.
1550 (elf_backend_got_header_size): Reserve one entry.
1552 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
1553 (elf32_hppa_size_stubs): Pass in multi_subspace.
1554 (elf32_hppa_set_gp): Declare.
1556 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
1557 (bfd_get_unique_section_name): New function.
1558 * bfd_in2.h: Regenerate.
1560 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
1561 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
1564 From David Huggins-Daines <dhd@linuxcare.com>
1565 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
1566 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
1567 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
1568 been updated in finish_dynamic_symbol before modifying function
1571 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
1572 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
1573 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
1574 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
1575 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
1576 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
1577 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
1578 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
1580 From David Huggins-Daines <dhd@linuxcare.com>
1581 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
1582 style of local labels as well.
1584 2000-09-03 Philip Blundell <philb@gnu.org>
1586 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
1587 references to undefined symbols in debugging sections.
1589 2000-09-02 H.J. Lu <hjl@gnu.org>
1591 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1592 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
1593 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
1596 2000-09-02 Jason Eckhardt <jle@cygnus.com>
1598 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
1599 (elf32_i860_is_local_label_name): New function and prototype.
1601 2000-09-02 Nick Clifton <nickc@redhat.com>
1603 * configure.in: Increase version number to 2.10.91.
1604 * configure: Regenerate.
1605 * aclocal.m4: Regenerate.
1606 * config.in: Regenerate.
1607 * po/bfd.pot: Regenerate.
1609 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1611 * elf.c (_bfd_elf_make_section_from_shdr): Add
1612 .gnu.linkobce.wi. to the list of debug section names.
1614 2000-09-02 Nick Clifton <nickc@redhat.com>
1616 * dwarf2.c (find_debug_info): New function: Locate a section
1617 containing dwarf2 debug information.
1618 (bfd_dwarf2_find_nearest_line): Find all sections containing
1619 debug information and include them in the stash.
1621 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1623 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
1624 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
1625 (sh_reloc_map): Add new relocs.
1626 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
1627 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
1628 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
1629 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
1631 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
1632 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1633 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
1634 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
1635 New array constants.
1636 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
1638 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1639 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
1640 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
1641 elf_sh_plt_reloc_offset): Define.
1642 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
1643 elf_sh_link_hash_table): New structs.
1644 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
1645 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
1647 (elf_backend_create_dynamic_sections,
1648 bfd_elf32_bfd_link_hash_table_create,
1649 elf_backend_adjust_dynamic_symbol,
1650 elf_backend_size_dynamic_sections,
1651 elf_backend_finish_dynamic_symbol,
1652 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1653 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1654 elf_backend_got_header_size, elf_backend_plt_header_size):
1656 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1657 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
1659 * bfd-in2.h, libbfd.h: Rebuilt.
1661 2000-09-01 Alan Modra <alan@linuxcare.com.au>
1663 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
1666 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
1668 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
1669 not initialized, set them to indicate the SH1 instruction set.
1671 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1673 * acinclude.m4: Include libtool and gettext macros from the
1675 * aclocal.m4, configure: Rebuilt.
1677 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
1679 * elf.c: Eliminate references to __sparcv9 macro; replace with
1680 autoconf variables HAVE_PSINFO32_T etc.
1681 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
1682 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
1684 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
1685 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
1686 * aclocal.m4: Ditto.
1687 * configure: Regenerate.
1689 2000-08-27 Alan Modra <alan@linuxcare.com.au>
1691 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
1692 for any shared link, not just shared -Bsymbolic.
1693 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
1694 any shared link, and pass link info to it.
1695 (elf_i386_size_dynamic_sections): Update comment.
1696 (elf_i386_discard_copies): Modify to discard relocs for symbols
1697 that have been forced local.
1698 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
1699 that have been forced local.
1701 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
1703 * elflink.h (elf_link_add_object_symbols): Allow common
1704 symbols to have an alignment of 1 if explicitly requested, and
1705 not overridden by other definitions.
1707 2000-08-22 Doug Kwan <dkwan@transmeta.com>
1709 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
1710 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
1712 2000-08-22 H.J. Lu <hjl@gnu.org>
1714 * elf-bfd.h (elf_link_hash_table): Add runpath.
1716 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
1717 * bfd-in2.h: Rebuilt.
1719 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
1720 "runpath" field to NULL.
1721 (bfd_elf_get_runpath_list): New function.
1723 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
1726 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
1728 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
1729 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
1730 explicitly. Improve validation of r_type.
1732 2000-08-21 H.J. Lu <hjl@gnu.org>
1734 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
1735 dynamic allocated content space. Add a comment to remind us that
1736 one day this ought to be fixed.
1737 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1738 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
1739 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1741 2000-08-21 Jason Eckhardt <jle@cygnus.com>
1743 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
1744 field with the newly relocated value instead of adding it to the
1745 existing immediate field.
1746 (elf32_i860_relocate_splitn): Likewise.
1747 (elf32_i860_relocate_highadj): Likewise.
1749 2000-08-16 Jason Eckhardt <jle@cygnus.com>
1751 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
1752 was previously just a stub).
1754 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
1756 * elflink.c (_bfd_elf_create_got_section): Don't abort().
1758 (_bfd_elf_create_dynamic_sections): Likewise.
1760 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
1762 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
1763 for undefined symbols to be the beginning of the section.
1765 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
1766 four extra entries at the beginning of the .rela.plt section.
1767 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
1768 section to account for the four reserved entries in the .plt section.
1770 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
1772 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
1773 to the list of NOPs we recognize after a branch-and-link.
1774 Use the ori NOP when one is needed.
1776 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
1779 2000-08-14 Jim Wilson <wilson@cygnus.com>
1781 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
1782 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
1783 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
1786 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
1788 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
1790 2000-08-10 Jason Eckhardt <jle@cygnus.com>
1792 * elf32-i860.c (elf32_i860_relocate_section): New function.
1793 (i860_final_link_relocate): New function.
1794 (elf32_i860_relocate_splitn): New function.
1795 (elf32_i860_relocate_pc16): New function.
1796 (elf32_i860_relocate_highadj): New function.
1797 (elf32_i860_howto): Minor adjustments to some relocations.
1798 (elf_info_to_howto_rel): Define.
1799 (elf_backend_relocate_section): Define.
1801 2000-08-10 Nick Clifton <nickc@cygnus.com>
1803 * elf32-arm.h: Fix formatting.
1805 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
1807 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
1809 2000-08-08 Jason Eckhardt <jle@cygnus.com>
1811 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
1813 2000-08-07 Kazu Hirata <kazu@hxi.com>
1815 * ieee.c (ieee_write_debug_part): Rewrite a comment.
1816 * elf64-ia64.c: Fix a typo.
1818 2000-08-05 Jason Eckhardt <jle@cygnus.com>
1820 * elf32-i860 (elf32_i860_howto_table): New structure.
1821 (lookup_howto): New function.
1822 (elf32_i860_reloc_type_lookup): New function.
1823 (elf32_i860_info_to_howto_rela): New function.
1824 (elf_code_to_howto_index): New structure.
1825 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
1826 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
1827 elf32_i860_reloc_type_lookup.
1829 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
1831 * som.c (struct fixup_format): Constify `format'.
1832 (som_hppa_howto_table): Use SOM_HOWTO macro.
1833 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
1834 (som_bfd_reloc_type_lookup): Likewise.
1835 (compare_subspaces): Remove unused `count1', `count2'.
1836 (som_begin_writing): Remove unused `total_reloc_size'.
1837 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
1838 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
1839 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
1840 (som_find_nearest_line): Decorate unused parameter(s).
1841 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
1842 (som_bfd_link_split_section): Likewise.
1844 2000-08-03 Nick Clifton <nickc@cygnus.com>
1846 * section.c: Restore backed out code.
1847 * elf.c: Restore backed out code.
1848 (copy_private_bfd_data): Fix bug preventing stipped dynamic
1849 binaries from working.
1850 * bfd-in2.h: Regenerate.
1852 2000-08-03 H.J. Lu <hjl@gnu.org>
1854 * section.c: Back out the change made by Nick Clifton
1855 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
1857 * bfd-in2.h: Likewise.
1860 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
1862 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
1864 2000-07-31 Jason Eckhardt <jle@cygnus.com>
1866 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
1867 * bfd-in2.h, libbfd.h: Regenerate.
1869 2000-07-31 Nick Clifton <nickc@cygnus.com>
1871 * section.c (struct sec): Add new boolean field 'segment_mark'.
1872 (STD_SECTION): Initialise new field to zero.
1874 * bfd-in2.h: Regenerate.
1876 * elf.c (copy_private_bfd_data): Reorganise section to segment
1877 mapping to cope with moved sections requiring new segments,
1878 and overlapping segments.
1879 (SEGMENT_END): New macro: Return the end address of a segment.
1880 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
1881 contains a section by comparing their VMA addresses.
1882 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
1883 contains a section by comparing their LMA addresses.
1884 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
1885 section should be included in a segment.
1886 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
1887 follows another in memory.
1888 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
1891 2000-07-22 Jason Eckhardt <jle@cygnus.com>
1893 * cpu-i860.c: Added comments.
1895 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
1896 bfd_elf32_i860_little_vec.
1897 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
1898 (ELF_MAXPAGESIZE): Changed to 4096.
1900 * targets.c (bfd_elf32_i860_little_vec): Declaration of
1902 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
1904 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
1905 config for little endian elf32 i860.
1906 (targ_defvec): Define for the new config above
1907 as "bfd_elf32_i860_little_vec".
1908 (targ_selvecs): Define for the new config above
1909 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
1911 * configure.in (bfd_elf32_i860_little_vec): Added recognition
1914 * configure: Regenerated.
1916 2000-07-27 H.J. Lu <hjl@gnu.org>
1918 * elflink.h (elf_merge_symbol): Take one more argument,
1919 dt_needed, to indicate if the symbol comes from a DT_NEEDED
1920 entry. Don't overide the existing weak definition if dt_needed
1922 (elf_link_add_object_symbols): Pass dt_needed to
1923 elf_merge_symbol ().
1925 2000-07-27 Nick Clifton <nickc@cygnus.com>
1927 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
1930 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
1932 * configure.host (*-*-aix*): AIX has 'long long' always.
1934 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
1935 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
1936 (xcoff_write_archive_contents_big): Don't update the offset
1937 of the symbol table, xcoff_write_armap will do it.
1939 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
1941 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
1942 of dynobj for SGI_COMPAT checks.
1944 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1946 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
1947 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
1948 * bfd-in2.h: Regenerate.
1950 2000-07-21 Nick Clifton <nickc@cygnus.com>
1952 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
1953 range symbol indices in relocs and issue an error message.
1955 2000-07-20 H.J. Lu <hjl@gnu.org>
1957 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
1958 info->new_dtags when setting DT_FLAGS_1. It will only be set
1959 by the new linker options. It shouldn't break anything.
1961 2000-07-20 H.J. Lu <hjl@gnu.org>
1963 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
1964 only if info->new_dtags is true.
1966 2000-07-20 H.J. Lu <hjl@gnu.org>
1968 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
1969 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
1971 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
1973 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
1974 (ALL_MACHINES_CFILES): Add cpu-cris.c.
1975 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
1976 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
1977 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
1978 * Makefile.in: Rebuild.
1979 * aclocal.m4: Rebuild.
1980 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
1981 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
1982 (bfd_cris_arch): Declare.
1983 (bfd_archures_list): Add bfd_cris_arch.
1984 * bfd-in2.h: Rebuild.
1985 * config.bfd: (cris-*-*): New target.
1986 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
1987 * configure: Rebuild.
1988 * elf.c (prep_headers): Add bfd_arch_cris.
1989 * libbfd.h: Rebuild.
1990 * libaout.h (enum machine_type): Add M_CRIS.
1991 * reloc.c: Add CRIS relocations.
1992 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
1993 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
1994 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
1995 * po/POTFILES.in, po/bfd.pot: Regenerate.
1997 2000-07-19 H.J. Lu <hjl@gnu.org>
1999 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2000 DF_TEXTREL if DT_TEXTREL is set.
2001 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2002 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2003 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2004 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2005 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2006 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2007 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2008 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2009 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2010 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2012 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2013 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2015 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2017 2000-07-19 H.J. Lu <hjl@gnu.org>
2019 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2020 * bfd-in2.h: Rebuild.
2022 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2023 (elf_dt_soname): New.
2025 * elf.c (bfd_elf_set_dt_needed_soname): New.
2027 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2028 entry if the shared object loaded by DT_NEEDED is used to
2029 resolve the reference in a regular object.
2031 2000-07-19 H.J. Lu <hjl@gnu.org>
2033 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2034 DT_DEPAUDIT and DT_AUDIT as strings.
2036 2000-07-19 Nick Clifton <nickc@cygnus.com>
2038 * format.c: Fix formatting.
2040 2000-07-19 H.J. Lu <hjl@gnu.org>
2042 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2044 2000-07-19 H.J. Lu <hjl@gnu.org>
2046 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2047 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2048 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2049 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2050 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2051 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2052 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2054 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
2056 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2057 renamed functions from here...
2058 (assign_section_numbers): Use renamed functions.
2059 (prep_headers): Use renamed functions.
2061 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2062 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2063 * bfd-in2.h: Regenerate.
2065 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
2067 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2068 parenthesis in if statement.
2070 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
2072 Enable the support for Traditional MIPS.
2073 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2074 return ict_none appropriately for traditional mips targets.
2075 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2076 (STUB_MOVE): Conditionalize for traditonal mips.
2077 (STUB_LI16): Likewise.
2078 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2079 room for RTPROC header.
2080 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2081 the permission for the PT_DYNAMIC as read, write and execute.
2082 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2083 for traditonal mips.
2084 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2085 _DYNAMIC_LINKING for traditonal mips.
2086 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2087 in case of traditonal mips.
2088 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2089 entry is required. For a function if PLT is not required then set the
2090 corresponding hash table entry to 0.
2091 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2093 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2094 shared object set the value to 0.
2095 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2096 _DYNAMIC_LINKING for traditonal mips.
2097 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2098 for traditonal mips.
2100 2000-07-15 H.J. Lu <hjl@gnu.org>
2102 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2104 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2106 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2107 out a structure that is BFD_IN_MEMORY.
2109 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2111 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2112 bfd pointer. Print section id instead of bfd pointer for local
2113 syms. Prefix addend with `+' for global syms as well as local.
2114 Correct calculation of name component lengths.
2115 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2117 From David Huggins-Daines <dhd@linuxcare.com>
2118 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2119 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2120 (elf64_hppa_modify_segment_map): Likewise.
2122 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2124 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2125 addresses to be "naturally" sign extended. Return -1 if unknown.
2126 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2127 * bfd-in2.h: Regenerate.
2129 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2131 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2132 and ECOF_SIGNED_64 to list ways to extract an offset.
2133 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2134 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2136 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2137 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2139 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2141 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2142 bfd_get_start_address.
2143 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2144 (elf_swap_ehdr_out): Ditto.
2146 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
2148 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2149 compatibility with older binutils.
2151 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2153 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2154 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2156 From Ryan Bradetich <rbradetich@uswest.net>
2157 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2158 (parse_line_table): Ditto.
2159 (_bfd_dwarf1_find_nearest_line): Ditto.
2160 * syms.c (cmpindexentry): Remove extra `*' from params.
2162 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
2164 * elf32-mips.c (sort_dynamic_relocs): New Function.
2165 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2166 via qsort to sort the dynamic relocations in increasing r_symndx
2169 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2171 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2172 ATTRIBUTE_UNUSED to unused args.
2173 (get_opd): Likewise.
2174 (get_plt): Likewise.
2175 (get_dlt): Likewise.
2176 (get_stub): Likewise.
2177 (elf64_hppa_adjust_dynamic_symbol): Likewise.
2178 (elf64_hppa_link_output_symbol_hook): Likewise.
2179 (elf64_hppa_check_relocs): Delete unused var.
2180 (elf64_hppa_size_dynamic_sections): Likewise.
2181 (elf64_hppa_finalize_opd): Likewise.
2182 (elf64_hppa_finalize_dynreloc): Likewise.
2183 (elf64_hppa_modify_segment_map): Likewise.
2184 (elf64_hppa_finish_dynamic_sections): Likewise.
2186 * elf-hppa.h (elf_hppa_final_write_processing): Add
2187 ATTRIBUTE_UNUSED to unused args.
2188 (elf_hppa_final_link_relocate): Likewise.
2189 (elf_hppa_record_segment_addrs): Add paretheses.
2190 (elf_hppa_relocate_section): Constify dyn_name.
2192 From David Huggins-Daines <dhd@linuxcare.com>
2193 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2194 rearrange case statement so that it gets preferred to 32-bit ones.
2196 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2197 asection->id instead of address of asection structure.
2198 (elf32_hppa_size_stubs): Likewise.
2200 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2201 for .init* and .fini*.
2203 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2204 and addends used in stub names to 32 bits.
2205 (elf32_hppa_size_stubs): Likewise.
2207 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2208 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
2209 not bfd_put_64. Fix minor comment typo and formatting.
2211 Changes to create multiple linker stubs, positioned immediately
2212 before the section where they are required.
2213 * elf32-hppa.c: Don't include hppa_stubs.h.
2214 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2215 (elf32_hppa_stub_hash_table): Delete.
2216 (elf32_hppa_link_hash_entry): Delete.
2217 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2218 stub_hash_table, and store the struct here rather than a pointer.
2219 Delete output_symbol_count. Add offset array. Change
2220 global_value to a bfd_vma.
2221 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2222 (elf32_hppa_stub_hash_traverse): Delete.
2223 (elf32_hppa_name_of_stub): Delete.
2224 (elf32_hppa_link_hash_lookup): Delete.
2225 (elf32_hppa_link_hash_traverse): Delete.
2226 (elf32_hppa_stub_hash_table_init): Delete.
2227 (elf32_hppa_size_of_stub): Pass input section and offset rather
2228 than location and calculate location here. Don't pass name as all
2229 stubs are now the same size.
2230 (elf32_hppa_stub_hash_newfunc): Init new fields.
2231 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2233 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2234 comparing against ints. Rewrite stub handling code.
2235 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2236 Case enums to int before comparing against ints. Remove
2237 bfd_reloc_dangerous case.
2238 (elf32_hppa_build_one_stub): Rewrite.
2239 (elf32_hppa_size_one_stub): New function.
2240 (elf32_hppa_build_stubs): Rewrite.
2241 (elf32_hppa_size_stubs): Pass in linker call-back functions.
2242 Rewrite stub-handling specific code.
2244 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2246 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2248 * hppa_stubs.h: Delete.
2249 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2250 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2251 * Makefile.in: Regenerate.
2253 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2256 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2258 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2259 and section name for bfd_reloc_notsupported error message.
2260 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2261 bfd_reloc_notsupported.
2262 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2264 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2265 undefined weak symbols for all relocs.
2266 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2267 offsets are relative to one past the delay slot.
2268 (elf32_hppa_size_stubs): Account for reloc addend when calculating
2269 branch destination. Put addend into stub name too.
2270 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2271 adjust by 8 when deciding whether a linker stub is needed. Put
2272 addend into stub name as for above.
2274 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2275 various args and vars.
2276 (elf32_hppa_bfd_final_link_relocate): Here too.
2277 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
2278 inner block var to avoid shadowing.
2280 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
2282 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2283 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2284 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
2286 * libhppa.h: Change practically all unsigned ints to plain ints.
2287 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
2290 From Ryan Bradetich <rbradetich@uswest.net>
2291 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
2292 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2294 From David Huggins-Daines <dhd@linuxcare.com>
2295 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2296 to the new OP_* ones.
2298 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2299 error exit. Bail out earlier on plabel relocs that we aren't
2300 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
2301 string, and then don't free our copy.
2302 (elf32_hppa_build_one_stub): Make insn unsigned int.
2304 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2305 available with BL, not BE and BLE.
2307 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2308 code for elf arg relocs.
2309 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2310 argument with elf_link_hash_entry h. Handle undefined weak
2311 symbols. Move $global$ lookup from here...
2312 (elf32_hppa_relocate_section): ...to here. Return correct error
2313 message for non-handled relocs.
2314 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
2315 wrong test was -0x3ffff to +0x40000.
2317 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2318 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
2319 Handle them as such.
2320 (elf_hppa_relocate_insn): Fix a typo.
2322 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
2323 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2324 assemble_17, assemble_21): Delete.
2325 Supply defines for all 64 possible opcodes.
2326 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
2327 formats. Handle COMICLR.
2328 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
2331 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
2332 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
2333 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
2335 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
2336 the local syms - did this code get deleted accidentally? Ignore
2337 undefined and undefweak syms.
2339 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
2340 block. Use it instead of elf64_hppa_hash_table (info).
2341 (elf_hppa_final_link_relocate): Use hppa_info instead of
2342 elf64_hppa_hash_table (info).
2344 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2345 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2346 (hppa_rebuild_insn): Mask immediate bits here instead.
2347 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2349 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2351 * section.c (struct sec): Add id field. Tidy comment formatting.
2352 (bfd_make_section_anyway): Set id.
2353 (STD_SECTION): Init id too.
2354 Change CONST to const throughout.
2355 * archures.c (bfd_arch_info): Tidy comment.
2356 (bfd_arch_list): Change a CONST to const.
2357 * libbfd-in.h: Tidy comments and replace CONST with const.
2358 * elf-bfd.h: Likewise.
2359 * libbfd.h: Regenerate.
2360 * bfd-in2.h: Regenerate.
2361 * libcoff.h: Regenerate.
2363 2000-07-07 DJ Delorie <dj@redhat.com>
2365 * archive.c (_bfd_write_archive_contents): Add an informative
2368 2000-07-06 Kazu Hirata <kazu@hxi.com>
2370 * srec.c: Fix formatting.
2372 2000-06-05 DJ Delorie <dj@redhat.com>
2376 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
2378 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
2379 value of PC-relative offsets.
2381 2000-07-03 Jim Wilson <wilson@cygnus.com>
2383 * elf64-alpha.c (alpha_elf_size_info): New.
2384 (elf_backend_size_info): Define to alpha_elf_size_info.
2385 * elfcode.h (elf_size_info): Change hash bucket size to 4.
2387 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
2389 * elf32-mips.c: Include elf32-target.h again for the traditional
2392 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
2394 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
2395 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
2396 (avr_info_to_howto_rela): Likewise.
2397 (elf32_avr_gc_mark_hook): Likewise.
2398 (elf32_avr_gc_sweep_hook): Likewise.
2399 (elf32_avr_relocate_section): Likewise.
2401 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
2403 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
2404 an external symbol for a non-shared, non-relocatable link.
2406 2000-07-03 Nick Clifton <nickc@redhat.com>
2408 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2409 is an external symbol.
2410 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2413 2000-07-03 Kazu Hirata <kazu@hxi.com>
2415 * reloc16.c: Fix formatting.
2417 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2419 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
2420 to add a new target for traditional mips i.e
2421 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
2422 * configure.in: Likewise.
2423 * configure: Rebuild.
2424 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
2426 (bfd_elf32_tradlittlemips_vec): Likewise.
2427 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
2428 to see that elfNN_bed does not get redefined even if the target file
2429 is included twice for a chip. See elf32-mips.c.
2431 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2433 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2434 (CLEANFILES): Add DEPA.
2435 * Makefile.in: Regenerate.
2437 2000-06-30 DJ Delorie <dj@cygnus.com>
2439 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
2440 can't assume the PE header is at 0x80.
2442 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2444 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2446 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
2448 * go32stub.h: Update stub.
2450 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2452 * archures.c (bfd_mach_avr5): Define.
2453 * bfd-in2.h (bfd_mach_avr5): Define.
2454 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
2455 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
2456 (compatible): Update comment. Add missing test.
2457 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
2458 for avr2 and avr4. Simplify 8K wrap code.
2459 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
2460 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2462 2000-06-26 Kazu Hirata <kazu@hxi.com>
2464 * coff-h8300.c: Fix formatting.
2465 * cpu-h8300.c: Likewise.
2467 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
2469 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
2470 for local symbols whose names are unknown.
2472 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2474 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2476 * Makefile.in: Regenerate.
2477 * doc/Makefile.in: Regenerate.
2479 2000-06-20 H.J. Lu <hjl@gnu.org>
2481 * Makefile.am: Rebuild dependency.
2482 * Makefile.in: Rebuild.
2484 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2486 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
2487 (elf_backend_copy_indirect_symbol): Map to the new function.
2489 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2491 * archive.c (normalize): Correct pointer comparison when checking
2493 (bfd_bsd_truncate_arname): Likewise.
2494 (bfd_gnu_truncate_arname): Likewise.
2496 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
2498 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
2499 sections elf_{text,data}_{section,symbol}.
2500 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
2501 (_bfd_mips_elf_hide_symbol): New function.
2502 (elf_backend_hide_symbol): Map to the new function.
2503 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
2504 definitions of mips_elf_{text,data}_{section,symbol}.
2505 (mips_elf_local_relocation_p): Try to find the direct symbol
2506 based on new check_forced argument.
2507 (mips_elf_calculate_relocation): Use new version of
2508 mips_elf_local_relocation_p.
2509 (mips_elf_relocate_section): Likewise.
2510 (_bfd_mips_elf_relocate_section): Likewise.
2511 (mips_elf_sort_hash_table): Only assert that have enough GOT
2513 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
2514 entry if the relocation based on the new external argument.
2515 (mips_elf_create_dynamic_relocation): Assert that we have a
2516 section contents allocated where we can swap out the dynamic
2518 (mips_elf_calculate_relocation): Find the real hash-table entry
2519 correctly by using h->root.root.type. Only create a dynamic
2520 relocation entry if the symbol is defined in a shared library.
2521 Create an external GOT entry for the GOT16 relocation if the
2522 symbol was forced local.
2523 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
2524 dynamic index if the symbol was forced local.
2526 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2528 * elf32-mips.c: Fix typos in comments.
2530 2000-06-19 Mark Kettenis <kettenis@gnu.org>
2532 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2535 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2537 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
2538 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
2539 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
2540 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
2541 (bfd_elf32_m68hc11_vec): Likewise.
2542 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
2543 Supports 68hc11 & 68hc12 at the same time.
2544 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
2546 (bfd_elf32_m68hc11_vec): Likewise.
2547 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
2548 * archures.c (bfd_m68hc12_arch): Define and register in global list
2549 (bfd_m68hc11_arch): Likewise.
2550 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
2551 BFD_RELOC_M68HC11_3B): Define.
2552 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
2553 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2555 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
2557 * elf_bfd.h (struct elf_backend_data): Add info argument to
2558 elf_backend_hide_symbol.
2559 (_bfd_elf_link_hash_hide_symbol): Likewise.
2560 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
2561 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
2562 * elflink.h (elf_link_add_object_symbols): Likewise.
2563 (elf_link_assign_sym_version): Likewise.
2565 2000-06-18 H.J. Lu <hjl@gnu.org>
2567 * coff-i386.c (coff_i386_reloc): Don't return in case of
2568 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
2569 Compensate PE relocations when linking with non-PE object
2570 files to generate a non-PE executable.
2572 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
2574 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
2575 GOT entries if we're doing a static link or -Bsymbolic link.
2577 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
2579 * elflink.h (elf_link_adjust_relocs): Check for and call backend
2580 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
2582 (elf_link_output_relocs): Likewise.
2583 (elf_reloc_link_order): Likewise.
2585 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2587 * archures.c (enum bfd_architecture): #define constants for
2588 PowerPc and RS6000 machine numbers.
2589 * bfd-in2.h: Regenerate.
2590 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
2591 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
2592 and RS6000 machine numbers using #defined constants from
2594 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
2595 machine numbers using #defined constants from archures.c. Add
2596 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
2597 64-bit words in 620 entry.
2598 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
2600 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
2602 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
2604 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
2605 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
2606 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
2608 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2610 * bfd-in.h (bfd_family_coff): Define.
2611 * bfd-in2.h: Regenerate.
2612 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
2613 coff_find_nearest_line): Check COFFness using bfd_family_coff()
2614 instead of bfd_target_coff_flavour.
2615 * cofflink.c (_bfd_coff_final_link): Likewise.
2616 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
2617 exclude XCOFF files.
2618 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
2620 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
2621 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
2622 * xcofflink.c (XCOFF_XVECP): Delete.
2623 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
2624 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
2625 bfd_xcoff_record_link_assignment,
2626 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
2627 check for bfd_target_xcoff_flavour.
2629 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2631 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
2633 (read_hdr): New function.
2634 (rs6000coff_core_p): Store mstsave or __context64 struct instead
2635 of trying to extract individual registers. Set abfd->arch_info
2636 to match the architecture that created the core file.
2637 (rs6000coff_get_section_contents): Delete.
2638 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
2640 2000-06-14 H.J. Lu <hjl@gnu.org>
2642 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
2645 2000-06-13 H.J. Lu <hjl@gnu.org>
2647 * configure: Regenerate.
2649 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
2651 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
2654 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2656 * configure.in (VERSION): Update to show this is the CVS mainline.
2658 2000-06-07 Alan Modra <alan@linuxcare.com.au>
2660 * elf32-d10v.c: Include elf/d10v.h
2661 (enum reloc_type): Delete.
2662 * elf32-d30v.c: Include elf/d30v.h
2663 (enum reloc_type): Delete.
2665 * Makefile.am: Run "make dep-am" to regenerate dependencies.
2666 * Makefile.in: Regenerate.
2668 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
2669 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
2670 move HOWTOs into elf_howto_table.
2671 (R_386_standard, R_386_ext_offset): Define.
2672 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
2673 (elf_i386_reloc_type_lookup): Modify calculation of index into
2674 elf_howto_table since we've removed the padding.
2675 (elf_i386_info_to_howto_rel): Likewise.
2676 (elf_i386_relocate_section): Likewise.
2678 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
2680 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
2682 2000-06-05 H.J. Lu <hjl@gnu.org>
2684 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
2685 an error when seeing an undefined symbol with hidden/internal
2686 attribute. It is handled in *_relocate_section ().
2688 2000-06-05 H.J. Lu <hjl@gnu.org>
2690 * elflink.h (elf_fix_symbol_flags): Follow the link for the
2691 indirect symbol for the ELF_LINK_NON_ELF bit.
2692 (elf_link_output_extsym): Don't output the indirect symbol even
2693 if the ELF_LINK_NON_ELF bit is set.
2695 2000-06-01 J.T. Conklin <jtc@redback.com>
2697 * config.bfd (i[3456]86-*-netbsdelf*): New target.
2698 (i[3456]86-*-netbsdaout*): New target.
2699 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
2700 (i[3456]86-*-openbsd*): Likewise.
2702 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
2704 * trad-core.c: From hpux-core.c, include <dirent.h> or
2705 <sys/ndir.h> when possible.
2707 2000-05-31 Nick Clifton <nickc@cygnus.com>
2709 * opintl.h (_(String)): Explain why dgettext is used instead
2712 2000-05-31 Ulrich Drepper <drepper@redhat.com>
2714 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
2715 definitions. We must not assume they are sorted in the file
2716 according to their index numbers.
2718 2000-05-31 Alan Modra <alan@linuxcare.com.au>
2720 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
2721 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
2722 R_PARISC_DIR17F are for absolute branches; Handle them as such.
2724 2000-05-30 Nick Clifton <nickc@cygnus.com>
2726 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
2727 80960CA, 80960MC as valid machine names.
2729 2000-05-30 H.J. Lu <hjl@gnu.org>
2731 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
2732 visibility bits if the symbol is undefined. Correctly handle
2733 weak undefined symbols with hidden and internal attributes.
2735 * elflink.h (elf_link_add_object_symbols): Always turn the
2736 symbol into local if it has the hidden or internal attribute.
2738 2000-05-29 Philip Blundell <philb@gnu.org>
2740 * ppcboot.c: Add packed attribute if compiling with GCC.
2742 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
2744 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
2746 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
2748 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
2749 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
2750 corefile on a 64-bit (Sparc Solaris) host. Also clean up
2753 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2755 * Makefile.am: Update dependencies with "make dep-am"
2756 * Makefile.in: Regenerate.
2758 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
2759 bindtextdomain): Replace defines with those from intl/libgettext.h
2760 to quieten gcc warnings.
2762 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2764 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
2766 * archive.c (normalize, bfd_bsd_truncate_arname,
2767 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
2768 file names with backslashes.
2770 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
2773 * sysdep.h: Include filenames.h.
2775 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2777 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
2779 2000-05-26 Jakub Jelinek <jakub@redhat.com>
2781 * elf64-sparc.c (sparc64_elf_relax_section): New.
2782 (sparc64_elf_relocate_section): Optimize tail call into branch always
2784 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2785 (elf32_sparc_relax_section): New.
2787 2000-05-26 Jakub Jelinek <jakub@redhat.com>
2789 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
2790 Remove unusued variables.
2791 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
2792 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
2793 previous fix, so that shared libs really don't influence targets
2794 extension mask and memory model.
2796 2000-05-23 H.J. Lu <hjl@gnu.org>
2798 * elf64-alpha.c (elf64_alpha_relocate_section): Check
2799 h->root.other not h->other.
2800 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2802 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
2804 2000-05-23 H.J. Lu <hjl@gnu.org>
2806 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
2807 undefined symbol with the non-default visibility attributes.
2808 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
2809 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
2810 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2811 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2812 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
2813 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2814 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2815 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2816 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
2817 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
2818 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2820 2000-05-22 Richard Henderson <rth@cygnus.com>
2822 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
2823 PCREL22, PCREL64I. Zero size of special relocs.
2824 (elf64_ia64_reloc_type_lookup): Likewise.
2825 (USE_BRL, oor_brl, oor_ip): New.
2826 (elf64_ia64_relax_section): New.
2827 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
2828 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
2829 (elf64_ia64_relocate_section): Likewise.
2830 (bfd_elf64_bfd_relax_section): New.
2831 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
2832 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
2833 * bfd-in2.h, libbfd.h: Regenerate.
2835 2000-05-22 Nick Clifton <nickc@cygnus.com>
2837 * configure.in : Add peigen.lo to MIPS PE targets.
2838 * configure: Regenerate.
2840 2000-05-22 Momchil Velikov <velco@fadata.bg>
2842 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
2843 only if it is known for both input and output bfds. Separate
2844 error message strings as in some languages, it may be necessary
2845 to change more than one place in the string to change between
2848 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
2849 endianess checks, call _bfd_generic_verify_endian_match() instead.
2851 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
2853 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
2855 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
2856 endianess before checking bfd flavours.
2858 2000-05-22 H.J. Lu <hjl@gnu.org>
2860 * elflink.h (elf_link_output_extsym): Clear the visibility
2861 field for symbols not defined locally.
2863 2000-05-18 Alan Modra <alan@linuxcare.com.au>
2865 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2866 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2867 (hppa_rebuild_insn): Mask immediate bits here instead.
2868 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2870 2000-05-18 Momchil Velikov <velco@fadata.bg>
2872 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
2873 relocs for an executable, ensure that they are virtual addresses.
2875 2000-05-18 Jeffrey A Law (law@cygnus.com)
2877 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
2879 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
2880 Rick Gorton <gorton@scrugs.lkg.dec.com>
2882 * elflink.h: Add emitrelocations support: when enabled, relocation
2883 information and relocation sections are put into final output
2884 executables. If the emitrelocations flag is set, do the following:
2885 (elf_bfd_final_link): Emit relocation sections.
2886 (elf_link_input_bfd): Compute relocation section contents.
2887 (elf_gc_sections): Don't clean relocation sections.
2889 2000-05-16 Catherine Moore <clm@cygnus.com>
2891 * som.c (som_decode_symclass): Recognize weak symbols.
2893 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
2895 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
2896 read idata section only from dataoff.
2897 (pe_print_edata): Correctly check for valid eat_member.
2899 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
2901 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
2903 2000-05-14 Philip Blundell <philb@gnu.org>
2905 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
2907 2000-05-12 Alan Modra <alan@linuxcare.com.au>
2909 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
2911 * peigen.c (pe_print_idata): Look for .idata section and print
2912 info even if data directory has zero entries. Read idata section
2913 starting from dataoff, and adjust all data offsets to suit. Cast
2914 all bfd_vma vars to unsigned long before passing to fprintf.
2915 * peigen.c (pe_print_edata): Similarly, look for .edata section
2916 and print info even if data directory has zero entries. Cast
2917 all bfd_vma vars to unsigned long before passing to fprintf.
2919 From Szabolcs Szakacsits <szaka@F-Secure.com>
2920 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
2921 directory size which may be bogus.
2922 * peigen.c (pe_print_edata): Similarly.
2924 2000-05-09 Alan Modra <alan@linuxcare.com.au>
2926 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
2928 (copy_private_bfd_data): Allow for space possibly taken up by elf
2929 headers when calculating segment physical address from lma.
2931 2000-05-08 Alan Modra <alan@linuxcare.com.au>
2933 * versados.c (versados_scan): Init stringlen and pass_2_done.
2935 * trad-core.c (trad_unix_core_file_p): Return
2936 bfd_error_wrong_format rather than bfd_error_file_truncated.
2938 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
2939 add_data_entry. DataDirectory virtual address is relative.
2940 (pe_print_idata): Account for relative DataDirectory virtual
2941 addresses. Don't trash datasize inside POWERPC_LE_PE code.
2942 (pe_print_edata): Similarly.
2944 From Szabolcs Szakacsits <szaka@F-Secure.com>
2945 * peigen.c (dir_names): Add Delay Import Directory.
2946 (pe_print_idata): Always search for bfd section containing
2947 idata address rather than looking up section name. Print this
2948 section name rather than .idata.
2949 (pe_print_edata): Similarly. Also print some fields as %08lx.
2950 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
2953 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
2955 * xcoff.h: Rename to xcoff-target.h
2956 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
2957 * coff-rs6000.c: Ditto.
2958 * coff64-rs6000.c: Ditto.
2959 * coff-pmac.c: Ditto.
2960 * Makefile.in: Regenerate.
2962 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
2964 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
2965 Change U802TOC64MAGIC to U803XTOCMAGIC.
2967 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
2969 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
2970 * bfd-in.h: Prototype bfd_elf_get_arch_size.
2971 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
2973 2000-05-04 Alan Modra <alan@linuxcare.com.au>
2975 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
2977 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
2979 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
2980 hidden and internal symbols.
2981 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
2983 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
2984 assign a PLT or GOT entry to symbols with hidden and
2985 internal visibility.
2987 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
2989 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
2991 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2993 2000-05-02 H.J. Lu <hjl@gnu.org>
2995 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
2998 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3000 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3001 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3003 * Makefile.in: Regenerate.
3005 2000-05-01 Jim Wilson <wilson@cygnus.com>
3007 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3008 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3009 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3010 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3011 * Makefile.in: Rebuild.
3013 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3015 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3016 doesn't work very well.
3018 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3019 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3020 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3021 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3022 (elf_hppa_info_to_howto): Likewise.
3023 (elf_hppa_info_to_howto_rel): Likewise.
3024 (elf_hppa_reloc_type_lookup): Likewise.
3025 (elf_hppa_is_local_label_name): Likewise.
3026 (elf_hppa_fake_sections): Likewise.
3027 (elf_hppa_final_write_processing): Likewise.
3028 (elf_hppa_howto_table): Fully initialise all entries.
3029 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3030 (elf_hppa_info_to_howto): Likewise.
3031 (elf_hppa_info_to_howto_rel): Likewise.
3032 (elf_hppa_reloc_type_lookup): Likewise.
3033 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3034 elf_hppa_unmark_useless_dynamic_symbols,
3035 elf_hppa_remark_useless_dynamic_symbols,
3036 elf_hppa_record_segment_addrs, elf_hppa_final_link,
3037 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3038 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3039 elf32-hppa.c mess is cleaned up.
3040 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3041 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
3042 r_field then call hppa_field_adjust inline func with variable
3043 r_field arg, instead call hppa_field_adjust with fixed arg.
3044 In case R_PARISC_PCREL22F, don't set r_field.
3045 (elf_hppa_relocate_insn): Change args and return type to unsigned
3046 int. Call re_assemble_* funcs to do the work.
3048 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3051 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3053 (sign_extend): Mask first before sign extending.
3054 (low_sign_extend): Rewrite without condition expression.
3055 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3056 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3057 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3058 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3059 result as function return value rather than through pointer arg.
3060 Accept unsigned int args, and return unsigned int.
3061 (re_assemble_3): New. Combines function of dis_assemble_3 with
3062 re-assembly of opcode and immediate.
3063 (re_assemble_12): Likewise.
3064 (re_assemble_16): Likewise.
3065 (re_assemble_17): Likewise.
3066 (re_assemble_21): Likewise.
3067 (re_assemble_22): Likewise.
3068 (hppa_field_adjust): Rewrite and document, paying attention to
3069 size of types and signed/unsigned issues.
3070 (get_opcode): Shift before masking.
3071 (FDLW): Rename to FLDW.
3072 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
3073 (hppa_rebuild_insn): Change args and return value to unsigned
3074 int. Make use of re_assemble_*. Correct case 11.
3076 * dep-in.sed: Handle ../opcodes/.
3077 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3078 elf64-hppa.h, hppa_stubs.h, xcoff.h.
3079 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3080 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3081 elfarm-nabi.lo dependencies outside of auto-dependency area.
3082 Regenerate dependencies.
3083 * Makefile.in: Regenerate.
3085 * configure.in (TRAD_HEADER): Test non-null before
3087 * configure: Regenerate.
3089 * reloc.c: Fix mis-spelling in comment.
3091 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3093 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3094 * vms.c (vms_openr_next_archived_file): Return NULL.
3096 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3098 * coffcode.h Copy changes mistakenly done to libcoff.h in
3101 2000-04-29 Andreas Jaeger <aj@suse.de>
3103 * libbfd-in.h: Correctly check GCC version.
3104 * bfd-in.h: Likewise.
3105 * libhppa.h: Likewise.
3106 * libbfd.h: Regenerate.
3107 * bfd-in2.h: Regenerate.
3109 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3111 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3112 coffdu-rs6000.{lo,c}.
3113 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3115 * Makefile.in: Regenerate.
3116 * xcoff.h: New file.
3117 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3118 * coff-rs6000.c: Move all declarations and defines that are
3119 common to the xcoff backends into xcoff.h
3120 * coff64-rs6000.c: Ditto,
3122 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3124 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3125 _bfd_coff_force_symnames in strings and
3126 _bfd_coff_debug_string_prefix_length to their default values.
3127 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3129 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3131 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3132 _bfd_coff_force_symnames in strings and
3133 _bfd_coff_debug_string_prefix_length to their default values.
3135 2000-04-27 Alan Modra <alan@linuxcare.com.au>
3137 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
3138 Check local_got_refcounts before dereferencing.
3140 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3141 before deciding we don't need R_PPC_PLT32 relocation.
3142 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3145 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3147 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3149 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3150 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3151 (elf_i386_relocate_section): Allow for .plt to go missing.
3152 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3153 can use a relative reloc for got as elf_i386_relocate_section.
3154 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3156 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3158 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3160 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3162 * Makefile.am (coff64-rs6000.lo): New rule.
3163 * Makefile.in: Regenerate.
3164 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3165 xcoff_is_local_label_name, xcoff_rtype2howto,
3166 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3167 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3168 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3169 (NO_COFF_SYMBOLS): Define.
3170 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3171 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3173 (MINUS_ONE): New macro.
3174 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3176 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3177 coff_SWAP_aux_out): Map to the new functions.
3178 * coff64-rs6000.c: New file.
3179 * libcoff.h (bfd_coff_backend_data): Add new fields
3180 _bfd_coff_force_symnames_in_strings and
3181 _bfd_coff_debug_string_prefix_length.
3182 (bfd_coff_force_symnames_in_strings,
3183 bfd_coff_debug_string_prefix_length): New macros for above fields.
3184 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3185 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
3186 of using coff_swap_sym_in directly.
3187 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3188 (coff_set_flags) Set magic for XCOFF64.
3189 (coff_compute_section_file_positions): Add symbol name length to
3190 string section length if bfd_coff_debug_string_prefix_length is
3192 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3193 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3194 using coff_swap_lineno_in directly.
3195 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3196 and _bfd_coff_debug_string_prefix_length fields.
3197 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3198 symbol names into strings table when
3199 bfd_coff_force_symnames_in_strings is true.
3200 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3201 SET_RELOC_VADDR): New macros.
3202 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3203 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3205 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3206 changes within RS6000COFF_C specific code.
3207 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3208 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3209 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3210 Extend existing hack on target name.
3211 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3213 * coff-tic54x.c (ticof): Keep up to date with new fields
3214 in bfd_coff_backend_data.
3215 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3216 targ_selvecs to include rs6000coff64_vec for rs6000.
3217 * configure.in: Add rs6000coff64_vec case.
3218 * cpu-powerpc.c: New bfd_arch_info_type.
3220 2000-04-24 Jeffrey A Law (law@cygnus.com)
3222 * config.bfd: Only disable elf32-hppa vectors, not all of the
3223 BSD and OSF configuration support. Provide (disabled) clauses
3225 * configure.in: Add clause for PA64 support.
3226 * configure: Rebuilt.
3228 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3229 (bfd_elf64_hppa_vec): Declare.
3231 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3232 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3233 (elf64-hppa.lo): Add dependencies.
3234 * Makefile.in: Rebuilt.
3236 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3238 2000-04-24 Jason Eckhardt <jle@cygnus.com>
3240 * libhppa.h (dis_assemble_16): New function.
3241 (pa_arch): Added pa20w element.
3243 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
3245 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3246 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3247 bfd_elf64_slurp_reloc_table.
3249 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3250 definitions to get external names.
3251 (elf_write_relocs): Renamed from write_relocs and make global.
3252 (elf_slurp_reloc_table): Make global.
3253 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3255 * archive.c (hpux_uid_gid_encode): New function.
3256 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3257 defined and the ID is greater than 99999.
3258 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3259 special uid/gid fields into 32 bit values.
3261 2000-04-21 Matthew Green <mrg@cygnus.com>
3263 * config.bfd: Add NetBSD/sparc64 support.
3265 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3266 David Mosberger <davidm@hpl.hp.com>
3267 Timothy Wall <twall@cygnus.com>
3268 Jim Wilson <wilson@cygnus.com>
3270 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3271 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3272 (BFD64_BACKENDS): Add elf64-ia64.lo.
3273 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3274 (cpu-ia64.lo, elf64-ia64.lo): New rules.
3275 * Makefile.in: Rebuild.
3276 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3277 (bfd_ia64_arch): Declare.
3278 (bfd_archures_list): Add bfd_ia64_arch.
3279 * bfd-in2.h: Rebuild.
3280 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3281 * configure: Rebuild.
3282 * configure.host: (ia64-*-linux*): New host.
3283 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3284 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3285 * elf.c (prep_headers): Add bfd_arch_ia64.
3286 * libbfd.h: Rebuild.
3287 * reloc.c: Add IA-64 relocations.
3288 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3290 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3291 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3293 2000-04-21 Richard Henderson <rth@cygnus.com>
3295 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3296 contents when performing a partial link.
3297 (bfd_elf_d30v_reloc_21): Likewise.
3299 2000-04-20 H.J. Lu <hjl@gnu.org>
3301 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3302 patch to symbols defined by a shared object.
3303 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3305 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3308 * dwarf2.c (concat_filename): Avoid string literal concatenation.
3309 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
3311 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
3313 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3314 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3315 (coff-ia64.lo): Add dependency.
3316 * Makefile.in: Regenerate.
3317 * coff-ia64.c: New file.
3318 * efi-app-ia32.c: Ditto.
3319 * efi-app-ia64.c: Ditto.
3320 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
3321 (coff_set_flags): Ditto.
3322 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
3323 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
3324 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
3325 * configure: Regenerate.
3326 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
3327 (PUT_OPTHDR_IMAGE_BASE): Ditto.
3328 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3329 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3330 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3331 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3332 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3333 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3334 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3335 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3336 (GET_PDATA_ENTRY): Ditto.
3337 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
3338 data_start. Use above macros to read fields that are 64 bit wide for
3339 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
3340 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
3341 FileAlignment and SectionAlignment to minimum alignment if they
3343 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
3344 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
3345 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
3346 Use above macros to write fields that are 64 bit wide for
3348 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
3349 5*4 otherwise. This should be right for IA-32 and IA-64, but may
3350 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
3351 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
3352 begin address, end address, and unwind info address only. Use
3353 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
3355 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
3356 HIGH3ADJ relocation names.
3357 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
3358 * targets.c: Declare bfd_efi_app_ia32_vec and
3359 bfd_efi_app_ia64_vec.
3360 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
3361 bfd_efi_app_ia64_vec.
3363 2000-04-17 Timothy Wall <twall@cygnus.com>
3365 * bfd-in2.h: Add prototypes for tic54x load page access.
3366 * bfd-in.h: Regenerate.
3367 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
3368 in customized _set_arch_mach function.
3369 * coffcode.h (coff_set_alignment_hook): Set section load page if
3370 the appropriate macro is defined.
3371 (write_object_contents): Read section load page.
3373 2000-04-13 Alan Modra <alan@linuxcare.com.au>
3375 * elf32-hppa.h: Update copyright date.
3377 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
3378 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
3380 * elf32-d30v.c (MAX32): Don't use LL suffix.
3381 (MIN32): Define in terms of MAX32.
3382 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
3384 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
3387 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
3389 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3391 * dep-in.sed: Match space before file name, not after.
3392 * Makefile.am: Regenerate dependencies.
3393 * Makefile.in: Regenerate.
3395 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
3396 case, allow address wrap-around stupidly removed 2000-03-17. Sign
3397 extend without an if statement.
3399 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3401 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
3403 * elf32-mips.c (gprel16_with_gp): Likewise.
3404 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
3405 here using -0x40000, not (int)0xfffc0000.
3406 (elf32_hppa_size_of_stub): Likewise.
3408 2000-04-11 Timothy Wall <twall@cygnus.com>
3410 * coff-tic54x.c: Now builds with all targets.
3411 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
3412 * Makefile.in: Regenerate.
3413 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
3414 unitialized variable.
3416 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3418 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3419 --enable-build-warnings option.
3420 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3421 * Makefile.in, configure: Re-generate.
3423 2000-04-07 Nick Clifton <nickc@cygnus.com>
3425 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
3426 BFD_RELOC_THUMB_PCREL_BLX.
3428 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3429 R_ARM_XPC25 and R_ARM_THM_PC22.
3431 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
3432 R_ARM_XPC25 and R_ARM_THM_XPC22.
3433 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
3434 R_ARM_[XPC25|THM_XPC22].
3436 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
3437 elf/arm-oabi.h to elf/arm.h
3439 * Makefile.am: Fix dependency for elfarm-oabi.c
3440 * Makefile.in: Regenerate.
3442 * bfd-in2.h: Regenerate.
3443 * libbfd.h: Regenerate.
3445 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3447 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
3448 and restore it on failure. Release newly allocated tdata on
3451 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
3453 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
3454 (decode_line_info): Set it. Report error if unit->line_offset is
3455 equal to or larger than it.
3457 2000-04-07 Timothy Wall <twall@cygnus.com>
3459 * targets.c: Added vecs for tic54x.
3460 * reloc.c: Added relocs for tic54x.
3461 * libbfd.h: Regenerated.
3462 * configure: Add TI COFF vecs for tic54x.
3463 * configure.in: Ditto.
3464 * config.bfd (targ_cpu): Recognize new tic54x target.
3465 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
3466 * bfd-in2.h: Add tic54x target and relocations.
3467 * Makefile.am, Makefile.in: Add tic54x target.
3468 * archures.c (bfd_archures_list): Add tic54x target.
3469 * coff-tic54x.c: New.
3470 * cpu-tic54x.c: New.
3472 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3474 * elfcore.h (elf_core_file_p): call backend_object_p which
3475 thereby gets an opportunity to update the arch/machine type.
3477 2000-04-06 Timothy Wall <twall@cygnus.com>
3479 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
3480 class. Handle SEC_CLINK and SEC_BLOCK flags.
3481 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
3482 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
3484 2000-04-06 Nick Clifton <nickc@cygnus.com>
3486 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
3487 EF_INTERWORK if this is an unknown EABI.
3488 (elf32_arm_merge_private_bfd_data): Check EABI version
3489 numbers. Only check EF_xxx flags if the EABI version number
3491 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
3492 if the EABI version number is unknown.
3493 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
3494 if the EABI version number is unknown.
3496 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3498 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
3499 BFD_RELOC_SH_LOOP_END.
3500 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
3501 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
3502 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
3503 (sh_elf_reloc_loop): New function.
3504 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
3506 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
3507 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
3508 * bfd-in2.h, libbfd.h: Regenerate.
3510 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3512 * po/bfd.pot: Regenerate.
3514 * Makefile.am: Remove extraneous mkdep comment.
3515 (MKDEP): Use gcc -MM rather than mkdep.
3516 (DEP): Quote when passing vars to sub-make. Add warning
3518 (DEP1): Rewrite for "gcc -MM".
3519 (CLEANFILES): Add DEP2.
3520 Update dependencies.
3521 * Makefile.in: Regenerate.
3523 2000-04-03 Kevin Buettner <kevinb@redhat.com>
3525 * configure.in: Added corefile support for AIX 4.3. In particular,
3526 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
3527 compiling rs6000-core.c.
3528 * configure: Regenerated.
3530 2000-04-03 H.J. Lu <hjl@gnu.org>
3532 * cache.c (bfd_open_file): Unlink the output file only if
3533 it has non-zero size.
3535 2000-04-01 Ken Block USG <block@zk3.dec.com>
3537 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
3538 relative relocations for non-loaded sections in shared objects.
3539 (elf64_alpha_check_relocs): Similarly.
3541 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
3543 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
3544 BFD_RELOC_16 to switch for extended relocs.
3545 (MY_swap_ext_reloc_in): New.
3546 (MY_swap_ext_reloc_out): New.
3547 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
3548 than NAME(aout,swap_ext_reloc_in) for extended relocs.
3549 (NAME(aout,squirt_out_relocs)): Similarly use
3550 MY_swap_ext_reloc_out.
3551 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
3553 2000-04-03 Kazu Hirata <kazu@hxi.com>
3555 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
3556 the R_PCRWORD_B case.
3558 2000-03-31 Thomas de Lellis <tdel@wrs.com>
3560 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
3564 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
3566 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
3567 HOWTO references to bfd_elf_generic_reloc, that have
3568 partial_inplace == true, now use the new function. The function
3569 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
3570 extends its fixes to the R_M32R_{16,24,32} relocs.
3571 The new logic in m32r_elf_lo16_reloc() has been removed, and
3572 it instead calls the new routine to obtain that functionality.
3574 2000-03-27 Alan Modra <alan@linuxcare.com.au>
3576 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
3577 elf32_avr_check_relocs, avr_final_link_relocate,
3578 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
3579 elf32_avr_object_p): Add prototypes.
3580 (elf32_avr_gc_mark_hook): Add default for h->root.type.
3581 (bfd_elf_avr_final_write_processing): Make static.
3583 2000-03-27 Denis Chertykov <denisc@overta.ru>
3585 * cpu-avr.c: New file. BFD support routines for AVR architecture.
3586 * archures.c (bfd_architecture): Add AVR architecture.
3587 (bfd_archures_list): Add reference to AVR architecture info.
3588 * elf.c (prep_headers): Handle bfd_arch_avr.
3589 * reloc.c: Add various AVR relocation enums.
3590 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
3592 * Makefile.am: Add support for AVR elf.
3593 * configure.in: Likewise.
3594 * config.bfd: Likewise.
3595 * Makefile.in: Regenerate.
3596 * configure: This too.
3597 * bfd-in2.h: And this.
3598 * libbfd.h: And this.
3600 2000-03-24 H.J. Lu <hjl@gnu.org>
3602 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
3603 (elf64_alpha_find_reloc_at_ofs): Likewise.
3605 2000-03-17 Alan Modra <alan@linuxcare.com.au>
3607 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
3608 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
3609 allowable range used to be -2**(n-1) to 2**n-1.
3610 * reloc.c (_bfd_relocate_contents): Same here. Also replace
3611 "boolean overflow" with "bfd_reloc_status_type flag".
3613 2000-03-14 Doug Evans <dje@casey.transmeta.com>
3615 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
3617 2000-03-14 Kazu Hirata <kazu@hxi.com>
3619 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
3620 of shrinks properly, including the last reloc.
3622 2000-03-13 Kazu Hirata <kazu@hxi.com>
3624 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
3627 2000-03-11 Alan Modra <alan@linuxcare.com.au>
3629 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
3630 a format mismatch rather than an "error" from bfd_read such as
3631 bfd_error_file_truncated.
3633 2000-03-10 Geoff Keating <geoffk@cygnus.com>
3635 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
3636 sign-extension and big-endian compensation for
3637 R_MIPS_64 even in ld -r.
3639 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
3641 * elf32-mips.c (mips_elf_next_relocation): Rename from
3642 mips_elf_next_lo16_relocation, and generalize to look
3643 for any relocation type.
3644 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
3645 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
3646 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
3647 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
3648 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
3649 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
3650 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
3651 (mips_rtype_to_howto): Likewise.
3652 (mips_elf_calculate_relocation): Handle new relocs.
3653 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
3654 are paired. The addend for R_MIPS_GNU_REL16_S2
3655 is shifted right two bits.
3657 2000-03-10 Alan Modra <alan@linuxcare.com.au>
3659 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
3660 comment, and ensure it doesn't happen again.
3661 (bfd_install_relocation): Same here.
3662 (_bfd_relocate_contents): Don't bother assigning unused signmask
3663 shift result. Fix typos in comments.
3664 Remove trailing whitespace throughout file.
3666 2000-03-07 Doug Evans <dje@casey.transmeta.com>
3668 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
3669 * bfd-in2.h: Rebuild.
3671 2000-03-06 Nick Clifton <nickc@cygnus.com>
3673 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
3675 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
3676 (SIZEOF_ILF_STRINGS): Redefine.
3677 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
3678 relative reloc, as opposed to a section relative reloc.
3679 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
3681 Add length of symbol's prefix to string pointer.
3682 Store a pointer to the symbol in the symbol pointer table.
3683 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
3684 Initialise the symbol pointer table.
3685 Store the hint in the Hint/Name table.
3686 Make the jump reloc be symbol realtive, not section relative.
3687 Create an import symbol for imported code.
3689 2000-03-06 Catherine Moore <clm@cygnus.com>
3691 * elf.c (swap_out_syms): Check for null type_ptr.
3693 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
3695 * aout-target.h (MY(write_object_contents)): Remove unused
3696 and unusable "#if CHOOSE_RELOC_SIZE".
3697 * pc532-mach.c (MY(write_object_contents)): Ditto.
3698 * netbsd.h (MY(write_object_contents)): Ditto.
3699 * hp300hpux.c (MY(write_object_contents)): Ditto.
3700 * freebsd.h (MY(write_object_contents)): Ditto.
3701 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
3703 2000-02-29 H.J. Lu <hjl@gnu.org>
3705 * peicode.h (jtab): Make it static.
3707 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
3708 defined and COFF_IMAGE_WITH_PE is not defined.
3709 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
3710 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
3712 2000-03-01 Nick Clifton <nickc@cygnus.com>
3714 * coff-arm.c (bfd_arm_process_before_allocation): Make
3715 'symndx' signed to prevent compile time warning.
3717 * coff-mcore.c: Remove unused prototype for pe_object_p.
3719 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
3720 functions that are not used when COFF_IMAGE_WITH_PE is
3722 (struct sh_opcode): Change type of 'flags' field to unsigned
3723 long so that it can hold the USESAS flag.
3725 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
3727 * elf-m10300.c (mn10300_elf_relax_section): Initialise
3730 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
3732 Remove unusued variables and code.
3733 (elf_backend_add_symbol_hook): Fix prototype.
3735 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
3738 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
3741 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
3743 Remove unusued variables and code.
3744 (elf_backend_add_symbol_hook): Fix prototype.
3746 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
3748 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
3749 to unused function parameter.
3751 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
3753 Use EMPTY_HOWTO to initialise empty howto slots.
3754 Remove unused variables.
3756 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
3758 2000-03-01 H.J. Lu <hjl@gnu.org>
3760 * aoutx.h (aout_link_input_section_std): Pass "true" to
3761 the undefined_symbol callback.
3762 (aout_link_input_section_ext): Likewise.
3763 * bout.c (get_value): Likewise.
3764 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
3765 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
3767 (alpha_relocate_section): Likewise.
3768 * coff-arm.c (coff_arm_relocate_section): Likewise.
3769 * coff-i960.c (coff_i960_relocate_section): Likewise.
3770 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
3771 * coff-mips.c (mips_relocate_section): Likewise.
3772 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
3773 * coff-sh.c (sh_relocate_section): Likewise.
3774 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
3775 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
3776 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
3777 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
3778 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
3779 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
3780 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
3781 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3782 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
3783 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3784 * elf32-sh.c (sh_elf_relocate_section): Likewise.
3785 * elf32-v850.c (v850_elf_relocate_section): Likewise.
3786 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
3787 * elflink.h (elf_link_output_extsym): Likewise.
3788 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
3789 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
3790 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
3792 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
3793 undefined_symbol callback when building shared library with
3794 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
3796 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3797 * elf32-i386.c (elf_i386_relocate_section): Likewise.
3798 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3799 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3800 (elf32_mips_get_relocated_section_content): Likewise.
3801 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3802 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3803 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3804 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3806 2000-02-28 Nick Clifton <nickc@cygnus.com>
3808 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
3809 * Makefile.in: Regenerate.
3811 * configure.in: Add support for mips and sh pe vectors.
3812 * configure: regenerate.
3814 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
3817 * targets.c: Add mips and sh pe vectors.
3819 * libpei.h (coff_final_link_postscript): Only define if not
3822 * coffcode.h: Add support for WinCE magic numbers.
3824 * peigen.c (pe_print_reloc): Update comment and rearrange
3825 appending of newline character.
3827 * peicode.h: Add support for Image Library Format.
3828 (pe_ILF_vars): Structure containing data used by ILF code.
3829 (pe_ILF_make_a_section): New function. Create a section based
3831 (pe_ILF_make_a_reloc): New function. Create a reloc based on
3833 (pe_ILF_make_a_symbol): New function. Create a symbol based
3835 (pe_ILF_save_relocs): New function. Store the relocs created
3836 by pe_ILF_make_a_reloc in a section.
3837 (pe_ILF_build_a_bfd): New function. Create a BFD describing
3839 (pe_ILF_object_p): New function. Return a bfd_target pointer
3841 (pe_bfd_object_p): If an ILF object is detected call
3842 pe_ILF_object_p on it.
3844 * coff-arm.c: Add support for WinCE relocs which are different
3845 from normal ARM COFF relocs.
3846 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
3848 * coff-sh.c: Add support for sh-pe target.
3849 * pe-sh.c: New file. Support code for sh-pe target.
3850 * pei-sh.c: New file. Support code for sh-pe target.
3852 * pe-mips.c: New file. Support code for mips-pe target.
3853 * pei-mips.c: New file. Support code for mips-pe target.
3855 2000-02-27 Jakub Jelinek <jakub@redhat.com>
3857 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
3858 architecture if the object causing the bump is dynamic.
3859 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
3860 and also don't it for memory ordering.
3861 (sparc64_elf_write_relocs): Take src_rela out of the loop.
3863 2000-02-27 Ian Lance Taylor <ian@zembu.com>
3865 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
3866 calling bfd_get_section_size_before_reloc.
3867 (decode_line_info): Likewise.
3868 (_bfd_dwarf2_find_nearest_line): Likewise.
3870 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
3872 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
3873 name of the libtool directory.
3874 * Makefile.in: Rebuild.
3876 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
3878 * som.c (SOM_HOWTO): Define.
3879 (som_hppa_howto_table): Use it.
3881 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3883 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
3885 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
3887 2000-02-24 Catherine Moore <clm@cygnus.com>
3889 * som.c (som_misc_symbol_info): Add field
3891 (som_bfd_derive_misc_symbol_info): Initialize
3893 (som_build_and_write_symbol_table): Keep track
3894 of secondary_def field.
3895 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
3896 if secondary_def field is set.
3897 (som_bfd_ar_write_symbol_stuff): Initialize
3900 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
3902 * dwarf2.c (read_address): Read 16-bits addresses.
3903 (parse_comp_unit): Accept addr_size == 2.
3905 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3907 * bfd-in.h: Update copyright date.
3909 2000-02-23 Linas Vepstas <linas@linas.org>
3911 * cpu-i370.c: New file.
3912 * elf32-i370.c: New file.
3913 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
3914 (bfd_i370_arch): New.
3915 (bfd_archures_list): Add bfd_i370_arch.
3916 * elf.c (prep_headers): Add bfd_arch_i370.
3917 * Makefile.am: Add support for IBM 370 elf.
3918 * config.bfd: Likewise.
3919 * configure.in: Likewise.
3920 * libbfd.h (bfd_reloc_code_real_names): Likewise.
3921 * reloc.c (bfd_reloc_code_type): Likewise.
3922 * targets.c: Likewise.
3924 * Makefile.in: Regenerate.
3925 * configure: Regenerate.
3926 * bfd-in2.h: Regenerate.
3928 2000-02-22 Ian Lance Taylor <ian@zembu.com>
3930 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
3931 invalid relocation types, and change them to R_386_NONE.
3933 2000-02-22 H.J. Lu <hjl@gnu.org>
3935 * elflink.h (elf_link_add_object_symbols): If a version symbol is
3936 not defined, don't add a second ELF_VER_CHR.
3938 * elflink.h (elf_bfd_final_link): Call output_extsym for global
3939 symbols converted to local symbols even when stripping all
3941 (elf_link_output_extsym): Process global symbols converted to
3942 local symbols even if they are being stripped.
3944 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3946 * archures.c (bfd_octets_per_byte): Return unsigned int.
3947 (bfd_arch_mach_octets_per_byte): Ditto.
3948 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
3950 * section.c (bfd_get_section_size_before_reloc): Quell signed
3951 vs. unsigned comparison warning.
3952 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
3953 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
3954 change. What was I thinking?
3955 * bfd-in2.h: Regenerate.
3957 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
3958 (elf_gc_sections): Same here.
3959 (elf_gc_common_finalize_got_offsets): And here.
3961 2000-02-21 Ian Lance Taylor <ian@zembu.com>
3963 ELF HPPA doesn't work at present; remove it until it does.
3964 * config.bfd: Comment out setting targ_defvec to
3966 * Makefile.am: Rebuild dependencies.
3967 (BFD32_BACKENDS): Remove elf32-hppa.lo.
3968 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
3969 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
3970 * Makefile.in: Rebuild.
3971 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
3973 2000-02-18 Geoff Keating <geoffk@cygnus.com>
3975 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
3976 is no bfd_free(). Revert bfd_free part of previous change.
3978 2000-02-18 Geoff Keating <geoffk@cygnus.com>
3980 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
3982 (coff_compute_section_file_positions): Use bfd_free to pair
3984 (coff_write_object_contents): Likewise.
3986 * coff-rs6000.c (xcoff_howto_table_16): New variable.
3987 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
3989 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
3991 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
3992 (xcoff_ar_file_hdr_big): New structure.
3993 (SIZEOF_AR_FILE_HDR_BIG): New macro.
3994 (xcoff_ar_hdr_big): New structure.
3995 (SIZEOF_AR_HDR_BIG): New macro.
3996 (xcoff_big_format_p): New macro.
3997 (xcoff_ardata_big): New macro.
3998 (arch_xhdr_big): New macro.
3999 (xcoff_slurp_armap): Handle large archives.
4000 (xcoff_archive_p): Detect large archives.
4001 (xcoff_read_ar_hdr): Handle large archives.
4002 (xcoff_openr_next_archived_file): Handle large archives.
4003 (xcoff_generic_stat_arch_elt): Handle large archives.
4004 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4005 (xcoff_write_armap_big): New function.
4006 (xcoff_write_armap): New function, dispatch to _old or _big.
4007 (xcoff_write_archive_contents_old): Rename from
4008 xcoff_write_archive_contents.
4009 (xcoff_write_archive_contents_big): New function.
4010 (xcoff_write_archive_contents): New function, dispatch to _old or
4013 2000-02-18 Richard Henderson <rth@cygnus.com>
4015 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4016 and hide_symbol members.
4017 (elf_link_hash_copy_indirect): Remove.
4018 (elf_link_hash_hide_symbol): Remove.
4019 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4020 and elf_backend_hide_symbol.
4021 (_bfd_elf_link_hash_copy_indirect): Declare.
4022 (_bfd_elf_link_hash_hide_symbol): Declare.
4023 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4024 (_bfd_elf_link_hash_hide_symbol): Likewise.
4025 (_bfd_elf_link_hash_table_init): Don't init killed members.
4026 * elflink.h (elf_link_add_object_symbols): Use the bed function
4027 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4028 (elf_link_assign_sym_version): Likewise.
4029 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4030 (elf_backend_hide_symbol): Likewise.
4031 (elfNN_bed): Update for new members.
4033 2000-02-17 Kevin Buettner <kevinb@redhat.com>
4035 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4036 STACK_END_ADDR): Define for new core file format.
4037 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4038 for handling the vagaries of the various core file structures used
4039 by AIX over the years.
4040 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4041 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4042 core_dumpx structure.
4044 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4046 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4047 (bfd_mach_sh3_dsp): Likewise.
4048 (bfd_mach_sh4): Reinstate.
4049 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4050 * bfd-in2.h: Regenerate.
4051 * coff-sh.c (struct sh_opcode): flags is no longer short.
4052 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4053 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4054 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4055 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4056 (sh_opcodes): No longer const.
4057 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4058 (sh_insn_uses_reg): Check for USESAS and USESR8.
4059 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4060 (_bfd_sh_align_load_span): Return early for SH4.
4061 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4062 Take into account that field b of a parallel processing insn
4063 could be mistaken for a separate insn.
4064 * cpu-sh.c (arch_info_struct): New array elements for
4065 sh2, sh-dsp and sh3-dsp.
4066 Reinstate element for sh4.
4067 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4068 (SH4_NEXT): Reinstate.
4069 (SH3_NEXT, SH3E_NEXT): Adjust.
4070 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4071 * elf32-sh.c (sh_elf_set_private_flags): New function.
4072 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4073 (sh_elf_merge_private_data): New function.
4074 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4075 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4076 (bfd_elf32_bfd_merge_private_bfd_data): Change to
4077 sh_elf_merge_private_data.
4079 2000-02-13 Richard Henderson <rth@cygnus.com>
4081 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4082 hide_symbol members.
4083 (elf_link_hash_copy_indirect): New.
4084 (elf_link_hash_hide_symbol): New.
4085 * elflink.h (elf_link_add_object_symbols): Break out copy from
4086 indirect new new symbol to elf.c.
4087 (elf_link_assign_sym_version): Break out privatization of
4088 non-exported symbol to elf.c.
4089 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4090 (_bfd_elf_link_hash_hide_symbol): New.
4091 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4093 2000-02-13 Ian Lance Taylor <ian@zembu.com>
4095 * section.c (_bfd_strip_section_from_output): Add info parameter.
4096 If it passed as non-NULL, use it to check whether any input BFD
4097 has an input section which uses this output section. Change all
4099 * bfd-in2.h: Rebuild.
4101 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4102 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4104 * bfd-in2.h: Rebuild.
4106 2000-02-10 Timothy Wall <twall@cygnus.com>
4108 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4109 allow final modifications of swapped-in symbol.
4110 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4111 * coffcode.h (coff_write_relocs): Use macro
4112 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4113 symbol index should be set to -1.
4115 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4117 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4118 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4119 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4120 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4121 sh_insns_uses_or_sets_freg): New functions.
4122 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4123 * (sh_insns_conflict): Use new functions and new macros to
4124 detect conflicts when two instructions both set same integer registers,
4125 both set same fp register, and both set special register.
4127 2000-02-09 Timothy Wall <twall@cygnus.com>
4129 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4130 swapping in sections, so that the swapping routines have access to
4133 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4135 * coff-go32.c: Update comment. Update copyright.
4137 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4139 * syms.c (bfd_decode_symclass)
4140 Two new class characters were added - 'V' and 'v'. The
4141 meaning of 'W' is now restricted to just weak non-object
4142 symbols. This allows differentiation between, for example,
4143 weak functions vs weak objects. nm for example now dumps:
4145 'w' = weak unresolved
4146 'V' = weak global object
4147 'v' = weak unresolved object
4149 (bfd_is_undefined_symclass): New function. Return true if the
4150 given symbol class represents and undefined/unresolved symbol.
4152 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4155 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4157 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4158 STT_ARM_16BIT flag set, but it is not attached to a data object
4159 return STT_ARM_16BIT so that it will be treated as code by the
4162 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4164 * coff-i386.c (i3coff_object_p): Remove prototype.
4167 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4168 to name. Update copyright.
4170 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4171 assignment to avoid warning. Update copyright.
4173 2000-01-24 Robert Lipe (robertl@sco.com)
4175 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4176 instead of using GNU C extension.
4178 2000-01-21 Nick Clifton <nickc@cygnus.com>
4180 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4181 amount from a bfd_in_memory structure.
4182 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4185 2000-01-14 Nick Clifton <nickc@cygnus.com>
4187 * linker.c (default_indirect_link_order): oops - fix incorrectly
4188 applied patch from Tim Wall.
4190 2000-01-13 Timothy Wall (twall@tiac.net>
4192 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4193 = scnhsz, filhsz, relsz, aoutsz, etc)
4195 * coffswap.h: Ditto.
4197 2000-01-13 Nick Clifton <nickc@cygnus.com>
4199 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4200 interwork thumb to arm stub.
4202 2000-01-13 Timothy Wall (twall@tiac.net>
4204 * archures.c (bfd_octets_per_byte): New function: Return
4206 (bfd_arch_mach_octets_per_byte): New function: Return target
4209 * section.c: Distinguish between octets and bytes for usage of
4210 _cooked_size, _raw_size, and output_offset. Clarify
4211 description of bfd_set_section_contents.
4213 * bfd-in2.h: Regenerate.
4215 * coffgen.c: Indicate that the offset parameter is in bytes, not
4218 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4219 where appropriate to get the octet offset when calling
4220 bfd_set_section_contents.
4221 (bfd_coff_reloc_link_order): Ditto.
4223 * linker.c (bfd_generic_reloc_link_order): Ditto.
4224 (_bfd_default_link_order): Ditto.
4226 * reloc.c (bfd_perform_relocation): Distinguish between octets
4227 and bytes. Use octets when indexing into octet data; use bytes
4228 when calculating target addresses.
4229 (bfd_install_relocation): Ditto.
4231 * srec.c (srec_write_section): Ditto.
4233 2000-01-13 Nick Clifton <nickc@cygnus.com>
4235 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4236 3 to 2. This allows 4 byte sized sections, which is necessary for
4237 dlltool to build functioning DLLs.
4239 2000-01-10 Philip Blundell <pb@futuretv.com>
4241 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4242 (arm*-*-conix*): New target.
4244 2000-01-10 Egor Duda <deo@logos-m.ru>
4246 * config.bfd: Include elf32_i386 vector to target list for cygwin
4249 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4250 * configure.in: Test for structure win32_pstatus_t in
4252 * configure: Regenerate.
4254 * elf.c (elfcore_grok_win32pstatus): New function: process
4255 win32_pstatus_t notes in elf core file.
4256 (elfcore_grok_note): Detect win32_pstatus notes.
4258 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4260 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4262 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4263 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4265 For older changes see ChangeLog-9899
4271 version-control: never