1 2001-02-09 Nick Clifton <nickc@redhat.com>
3 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
4 ImageBase. This has already been done by coff_swap_hdr_in.
6 2001-02-09 Jakub Jelinek <jakub@redhat.com>
8 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
10 2001-02-09 Jakub Jelinek <jakub@redhat.com>
12 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
13 (sparc64_elf_relocate_section): Likewise.
15 2001-02-09 Mark Kettenis <kettenis@gnu.org>
17 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
18 similar to R_SPARC_32.
19 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
21 2001-02-08 H.J. Lu <hjl@gnu.org>
23 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
24 relocation entries for weak definitions when building DSO with
27 2001-02-08 Richard Henderson <rth@redhat.com>
29 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
30 before visibility. Locally defined protected symbols are not
33 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
35 * config.bfd: Enable coff64 for rs6000-*. Patch from
36 <hzoli@austin.ibm.com>.
38 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
40 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
41 found, do not attempt to find dwarf2 info before returning.
43 2001-02-07 Jakub Jelinek <jakub@redhat.com>
45 * elflink.h (is_global_symbol_definition): Rename to
46 is_global_data_symbol_definition and have it reject function
48 (elf_link_is_defined_archive_symbol): Use renamed function.
50 2001-02-07 Todd Vierling <tv@wasabisystems.com>
52 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
53 * libbfd.h (bfd_target_vector): Likewise.
54 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
55 make static; create pointer reference named bfd_target_vector.
56 (_bfd_target_vector_entries): Calculate this based on the array
57 typed _bfd_target_vector.
59 2001-02-06 H.J. Lu <hjl@gnu.org>
61 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
62 internal symbols are not dynamic.
63 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
65 2001-02-06 Nick Clifton <nickc@redhat.com>
67 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
68 that it will not be pulled into the list of files that make up
70 * Makefile.in: Regenerate.
71 * po/bfd.pot: Regenerate.
73 2001-02-06 H.J. Lu <hjl@gnu.org>
75 * bfd/peicode.h (coff_swap_filehdr_in): Remove the e_magic
77 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
78 external_PEI_IMAGE_hdr.
80 2001-02-06 Kazu Hirata <kazu@hxi.com>
82 * elf-m10200.c: Fix formatting.
84 2001-02-04 Nick Clifton <nickc@redhat.com>
86 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
87 rel, it will be handled later on.
89 2001-02-02 Fred Fish <fnf@ninemoons.com>
91 * Makefile.in: Fix typo.
93 2001-02-01 Kazu Hirata <kazu@hxi.com>
95 * elf-m10300.c: Fix formatting.
97 2001-01-30 Alan Modra <alan@linuxcare.com.au>
99 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
100 (elf_backend_get_symbol_type): Define.
101 (elf64_hppa_object_p): Set architecture and machine from elf
104 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
106 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
109 2001-01-26 Richard Henderson <rth@redhat.com>
111 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
112 for non-default visibility.
113 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
114 delete ugly macro and replace with pretty function.
116 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
118 * coff-go32.c: Update copyright.
119 * coff-stgo32.c: Likewise.
120 * coff-go32.c (COFF_LONG_FILENAMES): Define.
121 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
122 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
123 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
125 2001-01-25 Kazu Hirata <kazu@hxi.com>
127 * bfd-in2.h: Rebuild.
128 * libbfd.h: Likewise.
130 2001-01-23 H.J. Lu <hjl@gnu.org>
132 * bfd-in2.h: Rebuild.
134 2001-01-23 H.J. Lu <hjl@gnu.org>
136 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
137 is NULL or PRIV(vms_rec) is outside of the buffer.
139 2001-01-23 Kazu Hirata <kazu@hxi.com>
141 * coff64-rs6000.c: Fix formatting.
142 * coff-arm.c: Likewise.
143 * coffgen.c: Likewise.
144 * cofflink.c: Likewise.
145 * coff-mcore.c: Likewise.
146 * coff-mips.c: Likewise.
147 * coff-pmac.c: Likewise.
148 * coff-ppc.c: Likewise.
149 * coff-rs6000.c: Likewise.
151 * elf32-fr30.c: Likewise.
152 * elf32-i370.c: Likewise.
153 * elf32-i860.c: Likewise.
154 * elf32-m32r.c: Likewise.
155 * elf32-m68k.c: Likewise.
156 * elf32-mcore.c: Likewise.
157 * elf32-ppc.c: Likewise.
158 * elf32-sh.c: Likewise.
159 * elf32-v850.c: Likewise.
160 * elf64-alpha.c: Likewise.
161 * elf64-sparc.c: Likewise.
162 * elflink.c: Likewise.
163 * elflink.h: Likewise.
164 * elf-m10200.c: Likewise.
165 * elf-m10300.c: Likewise.
166 * elfxx-ia64.c: Likewise.
168 * aoutx.h: Fix formatting.
170 * bfd-in2.h: Likewise.
171 * bfd-in.h: Likewise.
172 * cpu-i386.c: Likewise.
173 * cpu-m68hc11.c: Likewise.
174 * dwarf2.c: Likewise.
175 * elf64-x86-64.c: Likewise.
176 * format.c: Likewise.
177 * freebsd.h: Likewise.
179 * hp300hpux.c: Likewise.
180 * hppabsd-core.c: Likewise.
181 * hpux-core.c: Likewise.
183 2001-01-22 Bo Thorsen <bo@suse.de>
185 * elf64-x86-64.c: Added PIC support for X86-64.
186 (elf64_x86_64_link_hash_newfunc): Function added.
187 (elf64_x86_64_link_hash_table_create): Likewise.
188 (elf64_x86_64_check_relocs): Likewise.
189 (elf64_x86_64_gc_mark_hook): Likewise.
190 (elf64_x86_64_gc_sweep_hook): Likewise.
191 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
192 (elf64_x86_64_size_dynamic_sections): Likewise.
193 (elf64_x86_64_discard_copies): Likewise.
194 (elf64_x86_64_finish_dynamic_symbol): Likewise.
195 (elf64_x86_64_finish_dynamic_sections): Likewise.
196 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
198 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
200 * Makefile.am (install-data-local): Make use of $(DESTDIR).
201 * Makefile.in: Regenerate.
203 2001-01-21 Kazu Hirata <kazu@hxi.com>
205 * coff-a29k.c: Fix formatting.
207 2001-01-19 H.J. Lu <hjl@gnu.org>
209 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
210 relocation section names.
211 (elf_i386_relocate_section): Report files with bad relocation
212 section names and return false.
214 2001-01-17 Bo Thorsen <bo@suse.de>
216 * targets.c: Alphabetize list of xvecs.
218 2001-01-14 Alan Modra <alan@linuxcare.com.au>
220 * config.bfd: Add linux target variant for elfxx-hppa.
221 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
222 bfd_elf64_hppa_linux_vec.
223 * configure: Regenerate.
224 * elf64-hppa.c: Include elf64-target.h again to support linux
226 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
227 * elf32-hppa.c: Include elf32-target.h again to support linux
229 (elf32_hppa_post_process_headers): New function.
230 (elf_backend_post_process_headers): Define.
231 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
232 bfd_elf32_hppa_linux_vec.
234 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
235 and data_segment_base fields.
236 (elf32_hppa_link_hash_table_create ): Init them.
237 (elf32_hppa_check_relocs): Update comments.
238 (hppa_record_segment_addr): New function.
239 (elf32_hppa_relocate_section): Call it.
240 (final_link_relocate): Handle R_PARISC_SEGREL32.
241 (elf32_hppa_final_link): New function.
242 (bfd_elf32_bfd_final_link): Define to call it.
243 (hppa_unwind_entry_compare): New function.
244 * cache.c (bfd_open_file): Create files in write+read mode.
246 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
247 SEGREL32 and numerous other relocs. Change duplicate
248 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
250 * opncls.c (bfd_fdopenr): Add parens like the comment says around
253 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
254 .plt entries for DT_INIT and DT_FINI.
255 (elf32_hppa_finish_dynamic_sections): Remove special handling of
258 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
259 offsets for stub .plt access if wide mode. Check offset in range.
261 2001-01-13 Nick Clifton <nickc@redhat.com>
263 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
266 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
269 2001-01-12 Alan Modra <alan@linuxcare.com.au>
271 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
272 * configure: Regenerate.
274 2001-01-11 Peter Targett <peter.targett@arccores.com>
276 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
277 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
278 * cpu-arc.c (arch_info_struct): Add entries for variants.
279 (bfd_arc_arch) Set default to bfd_mach_arc_5.
280 (arc_get_mach) Don't assume machine names prefixed arc- before
282 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
284 (arc_elf_final_write_processing) Likewise.
285 (ELF_MACHINE_CODE) Use EM_ARC.
287 2001-01-10 Nick Clifton <nickc@redhat.com>
289 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
291 2001-01-07 Philip Blundell <philb@gnu.org>
293 * README: Replace `bug-gnu-utils@gnu.org' with
294 `bug-binutils@gnu.org'.
296 2001-01-04 Kazu Hirata <kazu@hxi.com>
298 * som.c: Fix formatting.
300 2001-01-03 Kazu Hirata <kazu@hxi.com>
302 * ecoffswap.h: Fix formatting.
303 * elf-bfd.h: Likewise.
304 * elfarm-nabi.c: Likewise.
305 * elfarm-oabi.c: Likewise.
306 * elfcode.h: Likewise.
307 * elfcore.h: Likewise.
308 * elflink.c: Likewise.
309 * elflink.h: Likewise.
310 * elfxx-ia64.c: Likewise.
311 * elfxx-target.h: Likewise.
313 * linker.c: Likewise.
314 * lynx-core.c: Likewise.
316 2001-01-02 Kazu Hirata <kazu@hxi.com>
318 * pc532-mach.c: Fix formatting.
319 * pe-arm.c: Likewise.
320 * pe-i386.c: Likewise.
321 * pe-mips.c: Likewise.
322 * pe-ppc.c: Likewise.
324 * pei-mips.c: Likewise.
325 * pei-sh.c: Likewise.
326 * peicode.h: Likewise.
327 * ppcboot.c: Likewise.
328 * ptrace-core.c: Likewise.
330 2001-01-01 Kazu Hirata <kazu@hxi.com>
332 * reloc.c: Fix formatting.
333 * riscix.c: Likewise.
334 * rs6000-core.c: Likewise.
335 * xcoff-target.h: Likewise.
337 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
339 * elfcode.h (elf_object_p): Also restore the bfd mach field on
340 error, by calling bfd_default_set_arch_mach with incoming
343 2000-12-26 Kazu Hirata <kazu@hxi.com>
345 * vaxnetbsd.c: Fix formatting.
346 * versados.c: Likewise.
347 * vms-gsd.c: Likewise.
348 * vms-hdr.c: Likewise.
349 * vms-misc.c: Likewise.
351 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
353 * archive.c (coff_write_armap): Don't write more than symbol_count
354 `archive_member_file_ptr's.
356 2000-12-25 Kazu Hirata <kazu@hxi.com>
358 * vms-tir.c: Fix formatting.
360 2000-12-23 Kazu Hirata <kazu@hxi.com>
362 * vms.c: Fix formatting.
365 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
367 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
369 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
371 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
374 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
376 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
378 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
380 * libbfd.c (bfd_get_bits): Added
381 (bfd_put_bits): Likewise
382 * bfd-in.h: Declared the above.
383 * bfd-in2.h: Regenerated.
385 2000-12-20 Kazu Hirata <kazu@hxi.com>
387 * targets.c: Fix formatting.
388 * tekhex.c: Likewise.
389 * trad-core.c: Likewise.
391 2000-12-19 Kazu Hirata <kazu@hxi.com>
393 * sco5-core.c: Fix formatting.
394 * section.c: Likewise.
395 * sparclinux.c: Likewise.
396 * sparclynx.c: Likewise.
397 * sparcnetbsd.c: Likewise.
400 * stab-syms.c: Likewise.
403 * sysdep.h: Likewise.
405 2000-12-18 Nick Clifton <nickc@redhat.com>
407 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
409 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
410 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
412 2000-12-18 Nick Clifton <nickc@redhat.com>
414 * vms-misc.c (_bfd_vms_get_record): Add default case to
417 2000-12-15 Miloslav Trmac <mitr@volny.cz>
419 * elfcore.h (elf_core_file_p): Move to the start of the program
420 headers before attempting to read them.
422 2000-12-14 Kazu Hirata <kazu@hxi.com>
424 * peigen.c: Fix formatting.
428 2000-12-13 Kazu Hirata <kazu@hxi.com>
430 * peigen.c: Fix formatting.
432 2000-12-12 Jim Wilson <wilson@redhat.com>
434 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
436 2000-12-08 Mark Salter <msalter@redhat.com>
438 * binary.c (binary_set_section_contents): Ignore sections
441 2000-12-12 Kazu Hirata <kazu@hxi.com>
443 * m68klinux.c: Fix formatting.
444 * m68knetbsd.c: Likewise.
445 * mipsbsd.c: Likewise.
446 * netbsd-core.c: Likewise.
447 * netbsd.h: Likewise.
448 * newsos3.c: Likewise.
449 * nlm32-alpha.c: Likewise.
450 * nlm32-i386.c: Likewise.
451 * nlm32-ppc.c: Likewise.
452 * nlm32-sparc.c: Likewise.
453 * nlmcode.h: Likewise.
454 * nlmswap.h: Likewise.
455 * nlm-target.h: Likewise.
456 * ns32knetbsd.c: Likewise.
458 2000-12-10 Fred Fish <fnf@be.com>
460 * elflink.h (elf_link_output_extsym): Don't complain about undefined
461 symbols in shared objects if allow_shlib_undefined is true.
463 2000-12-12 Nick Clifton <nickc@redhat.com>
465 * cpu-sh.c: Fix formattng.
466 * elf.c: Fix formattng.
467 * elf32-mips.c: Fix formattng.
468 * elf32-sh.c: Fix formattng.
469 * elf64-alpha.c: Fix formattng.
471 2000-12-09 Nick Clifton <nickc@redhat.com>
473 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
474 dwarf2_find_line_info as last parameter to invocation of
475 _bfd_dwarf2_find_nearest_line.
476 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
477 dwarf2_find_line_info as last parameter to invocation of
478 _bfd_dwarf2_find_nearest_line.
480 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
482 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
483 (BFD_LIBS): ...to here.
484 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
485 (BFD_LIBS_CFILES): ...to here.
486 * Makefile.in: Regenerate.
487 * configure.in: Remove dwarf.lo from the elf shell variable.
488 * configure: Regenerate.
489 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
490 * libcoff.h: Regenerate.
491 * coffgen.c (coff_find_nearest_line): Call
492 _bfd_dwarf2_find_nearest_line.
493 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
495 (read_abbrevs): Likewise
496 (decode_line_info): Likewise.
497 (parse_comp_unit): Likewise.
498 (comp_unit_find_nearest_line): Likewise.
499 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
500 * libbfd.h: Regenerate.
501 * elf.c (_bfd_elf_find_nearest_line): Update call.
502 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
503 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
504 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
505 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
506 (styp_to_sec_flags): Handle DWARF2 sections.
507 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
508 to _bfd_find_nearest_line.
509 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
510 call to _bfd_find_nearest_line.
512 2000-12-08 Kazu Hirata <kazu@hxi.com>
514 * coffgen.c: Fix formatting.
515 * elf-m10300.c: Likewise.
516 * elf32-i386.c: Likewise.
517 * elf32-i960.c: Likewise.
518 * elf32-m68k.c: Likewise.
519 * elf32-mcore.c: Likewise.
520 * elf32-ppc.c: Likewise.
521 * elf32-sh.c: Likewise.
522 * elf32-sparc.c: Likewise.
523 * elf32-v850.c: Likewise.
524 * elf64-alpha.c: Likewise.
525 * elf64-hppa.c: Likewise.
526 * elf64-mips.c: Likewise.
527 * elf64-sparc.c: Likewise.
529 2000-12-07 Kazu Hirata <kazu@hxi.com>
531 * elf32-ppc.c: Fix formatting.
532 * elf64-x86-64.c: Likewise.
534 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
536 From Ralf Baechle <ralf@gnu.org>
538 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
539 BFDs containing no sections or empty .text, .data or .bss sections
540 to be merged, regardless of their flags.
542 2000-12-06 Kazu Hirata <kazu@hxi.com>
544 * elf32-m32r.c: Fix formatting.
545 * elf32-m68hc11.c: Likewise.
546 * elf32-m68hc12.c: Likewise.
547 * elf32-m68k.c: Likewise.
548 * elf32-mcore.c: Likewise.
549 * elf32-pj.c: Likewise.
550 * elf32-ppc.c: Likewise.
552 2000-12-05 Kazu Hirata <kazu@hxi.com>
554 * elf32-fr30.c: Fix formatting.
555 * elf32-hppa.c: Likewise.
556 * elf32-i370.c: Likewise.
557 * elf32-i386.c: Likewise.
558 * elf32-i860.c: Likewise.
559 * elf32-i960.c: Likewise.
561 2000-12-03 Kazu Hirata <kazu@hxi.com>
563 * elf32-arm.h: Fix formatting.
564 * elf32-avr.c: Likewise.
565 * elf32-cris.c: Likewise.
566 * elf32-d10v.c: Likewise.
567 * elf32-d30v.c: Likewise.
568 * elf-hppa.h: Likewise.
569 * elf-m10200.c: Likewise.
570 * elf-m10300.c: Likewise.
572 2000-12-01 Chris Demetriou <cgd@sibyte.com>
574 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
575 bfd_mach_mips32_4k. Update FIXME comment.
576 * archures.c (bfd_mach_mips32): New constant.
577 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
578 the latter, renumber it.
579 * bfd-in2.h (bfd_mach_mips32): New constant.
580 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
581 the latter, renumber it.
582 * cpu-mips.c (I_mips32): New constant.
583 (I_mips4K, I_mips32_4k): Rename the former to the latter.
584 (arch_info_struct): Add bfd_mach_mips32 entry, replace
585 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
586 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
587 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
588 with E_MIPS_MACH_MIPS32_4K.
589 (_bfd_mips_elf_final_write_processing): Replace
590 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
591 bfd_mach_mips32 case.
592 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
593 comparison with support for MIPS32.
594 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
597 * aoutx.h (NAME(aout,machine_type)): Add cases for
598 bfd_mach_mips5 and bfd_mach_mips64.
599 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
600 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
601 * cpu_mips.c (I_mips5, I_mips64): New definitions.
602 (arch_info_struct): Add entries for bfd_mach_mips5 and
604 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
605 _bfd_mips_elf_print_private_bfd_data): Add cases for
606 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
607 (_bfd_mips_elf_final_write_processing): Add cases for
608 bfd_mach_mips5 and bfd_mach_mips64.
610 * bfd/aoutx.h (NAME(aout,machine_type)): Add a
611 bfd_mach_mips_sb1 case.
612 * bfd/archures.c (bfd_mach_mips_sb1): New constant.
613 * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
614 * bfd/cpu-mips.c (I_sb1): New constant.
615 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
616 * bfd/elf32-mips.c (elf_mips_mach): Add case for
618 (_bfd_mips_elf_final_write_processing): Add case for
621 2000-12-01 Joel Sherrill <joel@OARcorp.com>
623 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
624 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
625 (sparc*-*-rtems*): Switched from a.out to ELF.
627 2000-11-30 Jan Hubicka <jh@suse.cz>
629 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
630 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
631 (elf64-x86-64.lo): Add dependencies.
632 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
633 bfd_mach_x86_64_intel_syntax.
634 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
635 * config.bfd (x86_64): Add.
636 * configure.in: Add support for bfd_elf64_x86_64_vec.
637 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
638 (bfd_i386_arch, i8086_ar): Link in.
639 * elf64-x86-64.c: New file.
640 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
641 * targets.c (bfd_elf64_x86_64_vec): Add.
642 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
644 2000-11-30 Kazu Hirata <kazu@hxi.com>
646 * xcofflink.c: Fix formatting.
648 2000-11-28 Kazu Hirata <kazu@hxi.com>
650 * aoutx.h: Fix formatting.
651 * bfd-in.h: Likewise.
652 * bfd-in2.h: Likewise.
654 * cisco-core.c: Likewise.
655 * coff64-rs6000.c: Likewise.
656 * coffcode.h: Likewise.
657 * coffswap.h: Likewise.
658 * corefile.c: Likewise.
659 * elf32-mips.c: Likewise.
661 2000-11-27 Kazu Hirata <kazu@hxi.com>
663 * aout-adobe.c: Fix formatting.
664 * coff64-rs6000.c: Likewise.
665 * coffgen.c: Likewise.
666 * cofflink.c: Likewise.
668 2000-11-27 Philip Blundell <pb@futuretv.com>
670 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
671 (obj_coff_strings_written): New accessor macro for above.
672 * libcoff.h: Regenerate.
673 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
675 * coffcode.h (coff_write_object_contents): No need to write out
676 the string table if it's already been done.
678 2000-11-22 Philip Blundell <pb@futuretv.com>
680 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
681 weak undefined symbols.
683 2000-11-24 Nick Clifton <nickc@redhat.com>
685 * archures.c (bfd_mach_arm_5TE): Define.
686 (bfd_mach_arm+XScale): Define.
687 * bfd-in2.h: Regenerate.
689 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
690 BFD_RELOC_ARM_PCREL_BLX.
692 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
693 XScale machine numbers.
695 * config.bfd (xscale-elf): Add target.
696 (xscale-coff): Add target.
698 * cpu-arm.c: Add xscale machine name.
699 Add v5t, v5te and XScale machine numbers.
701 2000-11-23 Kazu Hirata <kazu@hxi.com>
703 * aix386-core.c: Fix formatting.
705 2000-11-22 Jim Wilson <wilson@redhat.com>
707 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
708 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
709 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
710 (ins_imms_scaled): Initialize sign_bit at function entry.
711 (elf64_ia64_operands): Add missing initializers.
712 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
713 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
714 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
715 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
716 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
718 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
719 and free_extsyms at function entry.
720 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
721 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
722 (get_got): Delete unused local srel.
723 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
724 (elfNN_ia64_relocate_section): Delete unused local dynindx.
726 2000-11-21 Kazu Hirata <kazu@hxi.com>
728 * coff-a29k.c: Fix formatting.
729 * coff-h8500.c: Likewise.
730 * coff-i960.c: Likewise.
731 * coff-ppc.c: Likewise.
732 * coff-rs6000.c: Likewise.
733 * coff-stgo32.c: Likewise.
734 * coff-tic54x.c: Likewise.
735 * coff-w65.c: Likewise.
736 * cpu-h8500.c: Likewise.
737 * cpu-hppa.c: Likewise.
738 * cpu-ns32k.c: Likewise.
740 * ecofflink.c: Likewise.
742 2000-11-21 Nick Clifton <nickc@redhat.com>
744 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
745 remove possibility of infinite loop.
747 2000-11-20 Kazu Hirata <kazu@hxi.com>
749 * aix386-core.c: Fix formatting.
750 * aout-adobe.c: Likewise.
751 * aout-arm.c: Likewise.
752 * aout-encap.c: Likewise.
753 * aout-ns32k.c: Likewise.
754 * aout-target.h: Likewise.
755 * aout-tic30.c: Likewise.
756 * aoutf1.h: Likewise.
758 * archive.c: Likewise.
759 * bfd-in.h: Likewise.
760 * bfd-in2.h: Likewise.
764 2000-11-17 H.J. Lu <hjl@gnu.org>
766 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
767 pltoff entries for DT_INIT and DT_FINI.
768 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
769 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
772 2000-11-16 Richard Henderson <rth@redhat.com>
774 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
775 (allocate_dynrel_entries): Likewise.
776 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
777 (set_pltoff_entry): Likewise.
778 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
779 (elfNN_ia64_reloc_type_lookup): Likewise.
780 (elfNN_ia64_install_value): Likewise.
781 (elfNN_ia64_relocate_section): Likewise.
782 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
783 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
785 2000-11-16 Kazu Hirata <kazu@hxi.com>
787 * cpu-a29k.c: Fix formatting.
788 * cpu-alpha.c: Likewise.
789 * cpu-arm.c: Likewise.
790 * cpu-avr.c: Likewise.
791 * cpu-d10v.c: Likewise.
792 * cpu-h8500.c: Likewise.
793 * cpu-hppa.c: Likewise.
794 * cpu-i370.c: Likewise.
795 * cpu-i386.c: Likewise.
796 * cpu-i960.c: Likewise.
797 * cpu-ia64-opc.c: Likewise.
798 * cpu-ia64.c: Likewise.
799 * cpu-m32r.c: Likewise.
800 * cpu-m68hc11.c: Likewise.
801 * cpu-m68hc12.c: Likewise.
802 * cpu-m68k.c: Likewise.
803 * cpu-m88k.c: Likewise.
804 * cpu-mips.c: Likewise.
805 * cpu-ns32k.c: Likewise.
806 * cpu-pj.c: Likewise.
807 * cpu-powerpc.c: Likewise.
808 * cpu-sh.c: Likewise.
809 * cpu-sparc.c: Likewise.
810 * cpu-tic54x.c: Likewise.
811 * cpu-v850.c: Likewise.
812 * cpu-vax.c: Likewise.
813 * cpu-w65.c: Likewise.
814 * cpu-we32k.c: Likewise.
815 * cpu-z8k.c: Likewise.
816 * dwarf1.c: Likewise.
817 * dwarf2.c: Likewise.
819 2000-11-15 Kazu Hirata <kazu@hxi.com>
821 * coff-arm.c: Fix formatting.
822 * coff-ppc.c: Likewise.
823 * coff-rs6000.c: Likewise.
824 * coff-sh.c: Likewise.
825 * coff-sparc.c: Likewise.
826 * coff-tic30.c: Likewise.
827 * coff-tic54x.c: Likewise.
828 * coff-tic80.c: Likewise.
829 * coff-w65.c: Likewise.
830 * coff-we32k.c: Likewise.
831 * coff-z8k.c: Likewise.
833 2000-11-15 Richard Henderson <rth@redhat.com>
835 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
836 section with the same ALLOC|LOAD flags as the source section.
838 2000-11-14 Jakub Jelinek <jakub@redhat.com>
840 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
841 by STO_ALPHA constants.
843 2000-11-14 Kazu Hirata <kazu@hxi.com>
845 * coff-pmac.c: Fix formatting.
846 * coff-ppc.c: Likewise.
848 2000-11-13 H.J. Lu <hjl@gnu.org>
850 * elflink.h (elf_link_add_object_symbols): Also add indirect
851 symbols for common symbols with the default version.
853 2000-11-09 Philip Blundell <pb@futuretv.com>
855 * section.c (STD_SECTION): Set gc_mark flag.
857 2000-11-11 Kazu Hirata <kazu@hxi.com>
859 * coff-i960.c: Likewise.
860 * coff-m68k.c: Likewise.
861 * coff-m88k.c: Likewise.
862 * coff-mcore.c: Likewise.
863 * coff-mips.c: Likewise.
865 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
867 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
869 2000-11-10 Kazu Hirata <kazu@hxi.com>
871 * coff-h8300.c: Fix formatting.
872 * coff-h8500.c: Likewise.
873 * coff-i386.c: Likewise.
874 * coff-i860.c: Likewise.
875 * coff-i960.c: Likewise.
876 * coff-ia64.c: Likewise.
878 2000-11-09 Kazu Hirata <kazu@hxi.com>
880 * archive.c: Fix formatting.
881 * archures.c: Likewise.
883 2000-11-07 Richard Henderson <rth@redhat.com>
885 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
886 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
887 * section.c (bfd_set_section_contents): Call memcpy if
888 section->contents set and location not equal to contents plus offset.
890 2000-11-08 Kazu Hirata <kazu@hxi.com>
892 * bfd-in.h: Fix formatting.
893 * bfd-in2.h: Likewise.
895 * binary.c: Likewise.
897 * coff-a29k.c: Likewise.
898 * coff-alpha.c: Likewise.
899 * coff-apollo.c: Likewise.
900 * coff-aux.c: Likewise.
902 2000-11-07 Kazu Hirata <kazu@hxi.com>
904 * aix386-core.c: Fix formatting.
905 * aoutf1.h: Likewise.
907 * archures.c: Likewise.
908 * armnetbsd.c: Likewise.
910 2000-11-07 Alan Modra <alan@linuxcare.com.au>
912 * coff-h8300.c (special): Adjust reloc address.
914 2000-11-06 Steve Ellcey <sje@cup.hp.com>
916 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
917 to differentiate elf32 and elf64 on ia64.
918 * bfd-in2.h: Regenerate.
919 * config.bfd: Add target for "ia64*-*-hpux*".
920 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
921 * configure: Regenerate.
922 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
923 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
925 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
926 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
927 * Makefile.in: Regnerate.
928 * elf64-ia64.c: Deleted.
929 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
931 2000-11-06 Kazu Hirata <kazu@hxi.com>
933 * aout-adobe.c: Fix formatting.
934 * aout-arm.c: Likewise.
935 * aout-cris.c: Likewise.
936 * aout-encap.c: Likewise.
937 * aout-ns32k.c: Likewise.
938 * aout-target.h: Likewise.
939 * aout-tic30.c: Likewise.
941 2000-11-05 Philip Blundell <philb@gnu.org>
943 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
944 BFDs containing no sections to be merged, regardless of their flags.
946 2000-11-04 Philip Blundell <philb@gnu.org>
948 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
949 if a relocation for an undefined symbol also results in an
952 2000-11-06 Christopher Faylor <cgf@cygnus.com>
954 * config.bfd: Add support for Sun Chorus.
956 2000-11-05 David O'Brien <obrien@FreeBSD.org>
958 * configure.in: Recognize alpha-*-freebsd*.
959 * configure: Regenerate.
961 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
963 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
964 (Chunk): New global variable set by a parameter in objcopy.c.
965 (S3Forced): New global variable set by a parameter in
967 (srec_set_section_contents): If S3Forced is true, always generate
969 (srec_write_section): Use 'Chunk' to limit maximum length of S
972 2000-11-02 Per Lundberg <plundis@chaosdev.org>
974 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
975 * Makefile.in: Regenerate.
976 * bfd-in2.h: Regenerate.
977 * po/bfd.pot: Regenerate.
979 2000-10-31 Philip Blundell <philb@gnu.org>
981 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
982 EF_SOFT_FLOAT if it is defined.
984 2000-10-27 Philip Blundell <philb@gnu.org>
986 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
987 attempts to mix PIC code with non-PIC, just mark the output as
988 being position dependent.
989 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
990 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
991 all mismatches, not just the first one.
993 2000-10-25 Chris Demetriou <cgd@sibyte.com>
995 * ieee.c (ieee_archive_p): Plug one of many possible
996 memory leaks in error handling.
998 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1000 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1001 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1003 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1004 sparc64_elf_object_p): Support v9b.
1005 * archures.c: Declare v8plusb and v9b machines.
1007 * cpu-sparc.c: Ditto.
1009 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1011 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1014 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1015 (SYMBOL_CALLS_LOCAL): New macro.
1016 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1017 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1018 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1019 (ppc_elf_relocate_section): Use flag variable to determine
1020 whether the relocation refers to a local symbol.
1021 Test whether a PLTREL24 reloc will produce a reloc by looking
1022 to see whether a PLT entry was made.
1024 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1026 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1027 entries that could serve as a definition for a weak symbol.
1029 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1031 From Ralf Baechle <ralf@gnu.org>
1033 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1034 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1035 against local symbols.
1036 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1038 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1040 * section.c (struct sec): Add kept_section.
1041 (struct bfd_comdat_info): Remove sec, we can use above.
1042 (STD_SECTION): Add initializer.
1043 (bfd_make_section_anyway): Init here too.
1045 * bfd-in2.h: Regenerate.
1047 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1049 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1050 fudge values for discarded link-once section symbols.
1052 * elf64-hppa.c: Include alloca-conf.h
1054 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1056 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1058 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1060 2000-10-10 Alan Modra <alan@linuxcare.com.au>
1062 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1064 2000-10-10 Tom Rix <trix@redhat.com>
1066 * section.c (bfd_make_section_anyway): Release newsect ptr when
1067 newsect->symbol fails to alloc. Use bfd_release instead of free.
1069 2000-10-09 Richard Henderson <rth@cygnus.com
1071 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1072 (elf64_ia64_unwind_entry_compare): New.
1073 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1075 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1077 * elflink.h (size_dynamic_sections): Don't create various tags if
1078 .dynstr is excluded from the link. Don't set first dynsym entry
1079 if dynsymcount is zero.
1080 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1081 .dynsym excluded from the link. Don't try to write any dynamic
1082 sections excluded from the link.
1084 * elf.c (swap_out_syms): Handle global section symbols.
1086 2000-10-05 DJ Delorie <dj@redhat.com>
1088 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1089 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1090 (coff_write_relocs): write extended reloc count
1091 (coff_write_object_contents): account for extended relocs
1093 2000-10-05 Jim Wilson <wilson@cygnus.com>
1095 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1097 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1098 elf_backend_section_flags function.
1099 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1101 (elf64_ia64_section_flags): New function containing flag conversion
1103 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1104 * elfxx-target.h (elf_backend_section_flags): Define.
1105 (elfNN_bed): Initialize elf_backend_section_flags field.
1107 2000-10-02 Alan Modra <alan@linuxcare.com.au>
1109 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1110 _bfd_elf32_gc_record_vtable. Correct a comment.
1112 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1114 From Ralf Baechle <ralf@gnu.org>
1116 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1117 produces binaries with got[1] = 0x80000001 to differenciate them
1118 for the dynamic linker from the broken binaries produced by old
1121 2000-09-30 Petr Sorfa <petrs@sco.com>
1123 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1124 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1125 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1126 * configure: Regenerate.
1128 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
1130 Define two bfd_targets for absence and presence of leading
1131 underscore on symbols. Make sure to only link same kind.
1132 * elf32-cris.c (cris_elf_object_p,
1133 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1134 cris_elf_merge_private_bfd_data): New.
1135 (elf_backend_object_p, elf_backend_final_write_processing,
1136 bfd_elf32_bfd_print_private_bfd_data,
1137 bfd_elf32_bfd_merge_private_bfd_data): Define.
1138 <Target vector definition>: Include elf32-target.h twice with
1139 different macro settings:
1140 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1141 bfd_elf32_us_cris_vec.
1142 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1143 (elf_symbol_leading_char): First as 0, then '_'.
1144 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1145 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1146 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1147 * configure: Regenerate.
1148 * targets.c: Declare bfd_elf32_us_cris_vec.
1149 * po/bfd.pot: Regenerate.
1151 2000-09-29 Momchil Velikov <velco@fadata.bg>
1153 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1154 R_ARM_THM_PC22 relocations.
1156 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1158 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1160 2000-09-29 Momchil Velikov <velco@fadata.bg>
1162 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1163 is has the SEC_HAS_CONTENTS flag set.
1165 2000-09-28 Örjan Friberg <orjanf@axis.com>
1166 Hans-Peter Nilsson <hp@axis.com>
1168 * aout-cris.c (N_TXTADDR): Define.
1170 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1172 * som.c: Include alloca-conf.h.
1173 * Makefile.am: "make dep-am"
1174 * Makefile.in: Regenerate.
1176 2000-09-27 Alan Modra <alan@linuxcare.com.au>
1178 * elf32-hppa.c (plt_stub): New.
1179 (PLT_STUB_ENTRY): Define.
1180 (elf32_hppa_link_hash_table): Change multi_subspace to packed
1181 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1182 (elf32_hppa_link_hash_table_create): Init to suit.
1183 (elf32_hppa_check_relocs): Set has_12bit_branch and
1184 has_17bit_branch as appropriate.
1185 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1186 non-local functions.
1187 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1188 Add space for plt_stub as needed.
1189 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1190 functions at plt_stub.
1191 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1192 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1194 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1195 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
1196 of fixed size, and if negative, disable handling of input sections
1197 before stub section. Set up default stub group size depending
1198 on detected branch relocs.
1199 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1200 ensure different offsets from sym_value aren't rounded to
1201 different 2k blocks. Use lrsel and rrsel for other stubs too for
1202 consistency rather than necessity.
1203 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1204 (final_link_relocate): Likewise.
1205 (elf32_hppa_relocate_section): Likewise.
1207 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1208 (_bfd_elf_hppa_gen_reloc_type): Generate them.
1209 (elf_hppa_final_link_relocate): Handle them.
1210 (elf_hppa_relocate_insn): Likewise.
1211 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1213 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
1215 * elfcode.h (elf_object_p): Preserve and clear abfd section
1216 information. Restore at error.
1218 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1220 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1221 is empty, make sure that its rva also 0. NT loader dislikes
1224 2000-09-26 Steve Ellcey <sje@cup.hp.com>
1226 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1229 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1231 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1232 currently unused RELATIVE_DYNAMIC_RELOCS code.
1233 (hppa_discard_copies): Likewise.
1234 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1235 comments. Don't check non-code output sections for stub grouping.
1237 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1239 * section.c (bfd_get_unique_section_name): Return NULL if
1242 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1244 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1245 instruction sequence to actually work.
1246 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1249 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
1251 * elf32-sh.c (sh_elf_relocate_section): Use
1252 _bfd_final_link_relocate to apply the relocation against a section
1253 symbol, when doing relocatable links.
1255 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1257 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1259 (stub_hash_newfunc): Here too.
1260 (hppa_add_stub): And here.
1261 (elf32_hppa_link_hash_table): Remove stub_section_created,
1262 reloc_section_created, first_init_sec and first_fini_sec. Add
1264 (elf32_hppa_link_hash_table_create): Init to suit.
1265 (hppa_get_stub_entry): Add support for grouping stub sections.
1266 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
1267 section code. Index stub vars by section->id.
1268 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
1269 exit paths. Zap allocation of above removed vars. Refine
1272 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1273 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1274 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1275 rather than pointer to bfd_link_info.
1276 (hppa_add_stub): Likewise.
1277 (final_link_relocate): Likewise.
1279 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
1281 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1284 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
1286 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1287 ld/emulparams/shelf.sh.
1289 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1291 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1292 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1293 * bfd-in2.h: Regenerate.
1295 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
1297 * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1298 LITUSE relocations incorrectly if -relax is specified on the ld
1299 command line and the displacement field of the load or store
1300 instruction is non-zero. (Patch by paul.winalski@compaq.com)
1302 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1304 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1305 first_fini_sec here.
1306 (elf32_hppa_size_stubs): Instead correctly find the first .init
1307 and .fini section here.
1309 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
1311 * elf32-hppa.c (clobber_millicode_symbols): New function.
1312 (elf32_hppa_size_dynamic_sections): Call it.
1314 2000-09-14 Alan Modra <alan@linuxcare.com.au>
1316 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1317 packed. Add plabel, plt_abs packed booleans.
1318 (hppa_link_hash_newfunc): Init new fields.
1319 (PLABEL_PLT_ENTRY_SIZE): Define.
1320 (hppa_stub_name): Use size_t len vars.
1321 (hppa_add_stub): Likewise.
1322 (elf32_hppa_build_stubs): Likewise.
1323 (hppa_build_one_stub): Kill some compiler warnings.
1324 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1325 if dynamic linking. Munge the local plt offsets into
1326 local_got_refcounts. Set h->plabel for all global PLABELs. Use
1327 size_t len vars. Add assert for plabel addend.
1328 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1329 (elf32_hppa_hide_symbol): New function.
1330 (elf_backend_hide_symbol): Define.
1331 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1332 with h->plabel set. Don't make plt entries to have dynamic syms
1333 when they have been forced local. If plt entry is used by a
1334 plabel, make it PLABEL_PLT_ENTRY_SIZE.
1335 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1336 Set up .plt offsets for local syms.
1337 (elf32_hppa_relocate_section): Initialise plt entries for local
1338 syms. Leave weak undefined plabels zero. Make global plabel
1339 relocs against function symbol, and leave the addend zero.
1340 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1341 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1342 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
1343 relocs instead of SEGREL32 for dynamic got relocs.
1344 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1345 (elf_backend_got_header_size): Adjust.
1346 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
1348 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1349 (hppa_type_of_stub): Use it instead of #if 0
1350 (hppa_discard_copies): Use it here too.
1351 (elf32_hppa_size_dynamic_sections): And here.
1353 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1354 (elf32_hppa_link_hash_table_create): And here.
1355 (hppa_build_one_stub): And here. Instead keep track of stub
1356 offset using _raw_size.
1357 (elf32_hppa_size_stubs): Likewise.
1358 (elf32_hppa_build_stubs): Likewise.
1359 (hppa_size_one_stub): Likewise. Resize reloc section too.
1361 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
1362 first_fini_sec handling. Don't search for reloc section or set
1363 hplink->reloc_section_created here.
1364 (elf32_hppa_size_stubs): Instead search for reloc sections, and
1365 set reloc_section_created here.
1366 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
1367 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
1369 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
1371 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
1372 with `hplink->root.'.
1373 (elf32_hppa_check_relocs): Likewise.
1374 (elf32_hppa_gc_sweep_hook): Likewise.
1375 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1376 (hppa_handle_PIC_calls): Likewise.
1377 (elf32_hppa_size_dynamic_sections): Likewise.
1378 (elf32_hppa_set_gp): Likewise.
1379 (elf32_hppa_relocate_section): Likewise.
1380 (elf32_hppa_finish_dynamic_symbol): Likewise.
1381 (elf32_hppa_finish_dynamic_sections): Likewise.
1383 From David Huggins-Daines <dhd@linuxcare.com>
1384 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
1385 defined weak symbols in shared links.
1386 (final_link_relocate): Calls to defined weak symbols in shared
1387 objects must go via import stubs, as the target might not be known
1390 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1392 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
1393 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
1394 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
1395 the original entries with EMPTY_HOWTOs, and added new ones to fill
1397 (sh_elf_info_to_howto): Make sure the new gap isn't used.
1398 (sh_elf_relocate_section): Likewise.
1400 2000-09-13 Anders Norlander <anorland@acc.umu.se>
1402 * cpu-mips.c (arch_info_struct): Add mips:4K
1403 * bfd-in2.h (bfd_mach_mips4K): New define.
1404 * archures.c: Add bfd_mach_mips4K to comment.
1405 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
1406 E_MIPS_ARCH_2 for bfd_mach_mips4K.
1408 2000-09-13 Marco Franzen <marcof@thyron.com>
1410 * som.c (som_write_symbol_strings): Do not used fixed buffers,
1411 use size_t as a counter.
1412 (som_write_space_strings): Similarly.
1414 2000-09-12 Jason Eckhardt <jle@cygnus.com>
1416 * elf32-i860.c (elf32_i860_relocate_pc26): New function
1418 (elf32_i860_relocate_section): Invoke new function from here.
1420 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1422 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
1425 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1427 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
1428 target section name instead of dumping core when the target symbol is
1431 2000-09-09 Kazu Hirata <kazu@hxi.com>
1433 * riscix.c: Remove DEFUN.
1435 2000-09-08 Nick Clifton <nickc@redhat.com>
1437 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
1438 initialise flags in output bfd if the input bfd is the default
1439 architecture with the default flags.
1441 2000-09-08 Kazu Hirata <kazu@hxi.com>
1443 * archive.c: Fix formatting.
1444 * coff-arm.c: Likewise.
1445 * doc/chew.c: Likewise.
1447 2000-09-08 Alan Modra <alan@linuxcare.com.au>
1449 * section.c (bfd_get_unique_section_name): Put a dot before the
1452 2000-09-07 Kazu Hirata <kazu@hxi.com>
1454 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
1455 * elf.c: Fix formatting.
1457 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
1459 * config.bfd (sh-*-linux*): Added.
1460 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
1461 * targets.c: Declare them.
1462 * elf32-sh-lin.c: New file.
1463 * Makefile.am: Compile it.
1464 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
1465 * configure, Makefile.in: Rebuilt.
1467 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
1469 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
1470 pseduo-section when determining where the TOC ends.
1472 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
1473 output x_tvndx as it is only two bytes wide.
1475 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
1476 reloc is 26 or 32 bits wide.
1478 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
1479 for relocs that don't change anything. Also look at the full
1482 2000-09-06 Philip Blundell <philb@gnu.org>
1484 * config.bfd (arm*-*-uclinux*): New target.
1486 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1488 * configure: Rebuilt with new libtool.m4.
1490 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1492 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
1493 word for variable name.
1494 * bfd-in2.h: Regenerate.
1496 2000-09-05 Nick Clifton <nickc@redhat.com>
1498 * config.in: Regenerate.
1499 * libbfd.h: Regenerate.
1500 * po/bfd.pot: Regenerate.
1501 * doc/bfdint.texi: Remove CVS date string - it foils compares with
1504 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
1506 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
1508 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1510 Shared library and PIC support.
1511 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
1512 (GOT_ENTRY_SIZE): New.
1513 (ELF_DYNAMIC_INTERPRETER): New.
1514 (STUB_SUFFIX): Define.
1515 (LONG_BRANCH_PIC_IN_SHLIB): Define.
1516 (RELATIVE_DYNAMIC_RELOCS): Define.
1517 (enum elf32_hppa_stub_type): New.
1518 (struct elf32_hppa_stub_hash_entry): Rename offset to
1519 stub_offset. Add a number of new fields.
1520 (struct elf32_hppa_link_hash_entry): New.
1521 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
1523 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
1524 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
1525 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
1527 (hppa_link_hash_newfunc): New function.
1528 (elf32_hppa_link_hash_table_create): Use above function. Init new
1530 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
1531 instead of addend, and remove sym_name from args. Don't use
1532 symbol name for local syms, instead use sym index.
1533 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
1534 stub type rather than size. Pass in hash and handle import stub
1535 case. Also pass in reloc instead of offset so we can calculate
1536 PCREL22F and PCREL12F branches properly.
1537 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
1538 import and export stubs too.
1539 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
1540 import and export stub sizing.
1541 (elf32_hppa_check_relocs): New function.
1542 (elf32_hppa_adjust_dynamic_symbol): New function.
1543 (hppa_discard_copies): New function.
1544 (elf32_hppa_size_dynamic_sections): New function.
1545 (elf_backend_size_dynamic_sections): Define.
1546 (elf32_hppa_finish_dynamic_symbol): New function.
1547 (elf_backend_finish_dynamic_symbol): Define.
1548 (elf32_hppa_size_stubs): Stash params in link hash table, and move
1549 some local vars into the link hash table too. For shared links,
1550 trundle over function syms, generating export stubs. Handle
1551 PCREL22F branches. Break out stub creation code from here..
1552 (hppa_add_stub): .. to here. New function.
1553 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
1554 call the bfd linker. Use elf_gp to record global pointer.
1555 Calculate a value from sections if $global$ is missing.
1556 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
1557 (elf32_hppa_gc_mark_hook): New function.
1558 (elf_backend_gc_mark_hook): Define.
1559 (elf32_hppa_gc_sweep_hook): New function.
1560 (elf_backend_gc_sweep_hook): Define.
1561 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
1562 Add rel to args, and remove howto, input_bfd, offset, addend,
1563 sym_name as we can recalculate these locally. Handle calls to
1564 dynamic objects, extra PIC relocs, PCREL22F branches. Change
1565 handling of undefined weak syms. Check that stubs are in range.
1566 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
1567 message on hitting a DPREL21L reloc that needs fixing. Subtract
1568 off PC for PCREL14F. Break out code that does a stub lookup from
1570 (hppa_get_stub_entry): ..to here. New function.
1571 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
1572 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
1574 (elf32_hppa_finish_dynamic_sections): New function.
1575 (elf_backend_finish_dynamic_sections): Define.
1576 (elf_backend_final_write_processing) Define.
1577 (hppa_handle_PIC_calls): New function.
1578 (elf32_hppa_build_stubs): Call it. Pass link_info to
1579 hppa_build_one_stub.
1580 (elf32_hppa_create_dynamic_sections): New function
1581 to create .plt and .got then set .plt flags correctly.
1582 (elf_backend_create_dynamic_sections): Define.
1583 (elf32_hppa_object_p): New function.
1584 (elf_backend_object_p): Define.
1585 (elf32_hppa_elf_get_symbol_type): New function.
1586 (elf_backend_get_symbol_type): Define.
1587 (elf_backend_can_gc_sections): Define.
1588 (elf_backend_want_got_plt): Define.
1589 (elf_backend_plt_alignment): Set to 2.
1590 (elf_backend_plt_readonly): Define.
1591 (elf_backend_want_plt_sym): Define.
1592 (elf_backend_got_header_size): Reserve one entry.
1594 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
1595 (elf32_hppa_size_stubs): Pass in multi_subspace.
1596 (elf32_hppa_set_gp): Declare.
1598 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
1599 (bfd_get_unique_section_name): New function.
1600 * bfd_in2.h: Regenerate.
1602 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
1603 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
1606 From David Huggins-Daines <dhd@linuxcare.com>
1607 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
1608 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
1609 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
1610 been updated in finish_dynamic_symbol before modifying function
1613 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
1614 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
1615 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
1616 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
1617 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
1618 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
1619 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
1620 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
1622 From David Huggins-Daines <dhd@linuxcare.com>
1623 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
1624 style of local labels as well.
1626 2000-09-03 Philip Blundell <philb@gnu.org>
1628 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
1629 references to undefined symbols in debugging sections.
1631 2000-09-02 H.J. Lu <hjl@gnu.org>
1633 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1634 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
1635 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
1638 2000-09-02 Jason Eckhardt <jle@cygnus.com>
1640 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
1641 (elf32_i860_is_local_label_name): New function and prototype.
1643 2000-09-02 Nick Clifton <nickc@redhat.com>
1645 * configure.in: Increase version number to 2.10.91.
1646 * configure: Regenerate.
1647 * aclocal.m4: Regenerate.
1648 * config.in: Regenerate.
1649 * po/bfd.pot: Regenerate.
1651 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1653 * elf.c (_bfd_elf_make_section_from_shdr): Add
1654 .gnu.linkobce.wi. to the list of debug section names.
1656 2000-09-02 Nick Clifton <nickc@redhat.com>
1658 * dwarf2.c (find_debug_info): New function: Locate a section
1659 containing dwarf2 debug information.
1660 (bfd_dwarf2_find_nearest_line): Find all sections containing
1661 debug information and include them in the stash.
1663 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1665 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
1666 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
1667 (sh_reloc_map): Add new relocs.
1668 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
1669 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
1670 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
1671 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
1673 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
1674 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1675 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
1676 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
1677 New array constants.
1678 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
1680 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1681 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
1682 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
1683 elf_sh_plt_reloc_offset): Define.
1684 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
1685 elf_sh_link_hash_table): New structs.
1686 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
1687 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
1689 (elf_backend_create_dynamic_sections,
1690 bfd_elf32_bfd_link_hash_table_create,
1691 elf_backend_adjust_dynamic_symbol,
1692 elf_backend_size_dynamic_sections,
1693 elf_backend_finish_dynamic_symbol,
1694 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1695 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1696 elf_backend_got_header_size, elf_backend_plt_header_size):
1698 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1699 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
1701 * bfd-in2.h, libbfd.h: Rebuilt.
1703 2000-09-01 Alan Modra <alan@linuxcare.com.au>
1705 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
1708 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
1710 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
1711 not initialized, set them to indicate the SH1 instruction set.
1713 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1715 * acinclude.m4: Include libtool and gettext macros from the
1717 * aclocal.m4, configure: Rebuilt.
1719 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
1721 * elf.c: Eliminate references to __sparcv9 macro; replace with
1722 autoconf variables HAVE_PSINFO32_T etc.
1723 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
1724 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
1726 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
1727 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
1728 * aclocal.m4: Ditto.
1729 * configure: Regenerate.
1731 2000-08-27 Alan Modra <alan@linuxcare.com.au>
1733 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
1734 for any shared link, not just shared -Bsymbolic.
1735 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
1736 any shared link, and pass link info to it.
1737 (elf_i386_size_dynamic_sections): Update comment.
1738 (elf_i386_discard_copies): Modify to discard relocs for symbols
1739 that have been forced local.
1740 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
1741 that have been forced local.
1743 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
1745 * elflink.h (elf_link_add_object_symbols): Allow common
1746 symbols to have an alignment of 1 if explicitly requested, and
1747 not overridden by other definitions.
1749 2000-08-22 Doug Kwan <dkwan@transmeta.com>
1751 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
1752 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
1754 2000-08-22 H.J. Lu <hjl@gnu.org>
1756 * elf-bfd.h (elf_link_hash_table): Add runpath.
1758 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
1759 * bfd-in2.h: Rebuilt.
1761 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
1762 "runpath" field to NULL.
1763 (bfd_elf_get_runpath_list): New function.
1765 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
1768 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
1770 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
1771 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
1772 explicitly. Improve validation of r_type.
1774 2000-08-21 H.J. Lu <hjl@gnu.org>
1776 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
1777 dynamic allocated content space. Add a comment to remind us that
1778 one day this ought to be fixed.
1779 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1780 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
1781 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1783 2000-08-21 Jason Eckhardt <jle@cygnus.com>
1785 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
1786 field with the newly relocated value instead of adding it to the
1787 existing immediate field.
1788 (elf32_i860_relocate_splitn): Likewise.
1789 (elf32_i860_relocate_highadj): Likewise.
1791 2000-08-16 Jason Eckhardt <jle@cygnus.com>
1793 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
1794 was previously just a stub).
1796 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
1798 * elflink.c (_bfd_elf_create_got_section): Don't abort().
1800 (_bfd_elf_create_dynamic_sections): Likewise.
1802 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
1804 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
1805 for undefined symbols to be the beginning of the section.
1807 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
1808 four extra entries at the beginning of the .rela.plt section.
1809 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
1810 section to account for the four reserved entries in the .plt section.
1812 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
1814 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
1815 to the list of NOPs we recognize after a branch-and-link.
1816 Use the ori NOP when one is needed.
1818 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
1821 2000-08-14 Jim Wilson <wilson@cygnus.com>
1823 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
1824 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
1825 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
1828 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
1830 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
1832 2000-08-10 Jason Eckhardt <jle@cygnus.com>
1834 * elf32-i860.c (elf32_i860_relocate_section): New function.
1835 (i860_final_link_relocate): New function.
1836 (elf32_i860_relocate_splitn): New function.
1837 (elf32_i860_relocate_pc16): New function.
1838 (elf32_i860_relocate_highadj): New function.
1839 (elf32_i860_howto): Minor adjustments to some relocations.
1840 (elf_info_to_howto_rel): Define.
1841 (elf_backend_relocate_section): Define.
1843 2000-08-10 Nick Clifton <nickc@cygnus.com>
1845 * elf32-arm.h: Fix formatting.
1847 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
1849 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
1851 2000-08-08 Jason Eckhardt <jle@cygnus.com>
1853 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
1855 2000-08-07 Kazu Hirata <kazu@hxi.com>
1857 * ieee.c (ieee_write_debug_part): Rewrite a comment.
1858 * elf64-ia64.c: Fix a typo.
1860 2000-08-05 Jason Eckhardt <jle@cygnus.com>
1862 * elf32-i860 (elf32_i860_howto_table): New structure.
1863 (lookup_howto): New function.
1864 (elf32_i860_reloc_type_lookup): New function.
1865 (elf32_i860_info_to_howto_rela): New function.
1866 (elf_code_to_howto_index): New structure.
1867 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
1868 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
1869 elf32_i860_reloc_type_lookup.
1871 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
1873 * som.c (struct fixup_format): Constify `format'.
1874 (som_hppa_howto_table): Use SOM_HOWTO macro.
1875 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
1876 (som_bfd_reloc_type_lookup): Likewise.
1877 (compare_subspaces): Remove unused `count1', `count2'.
1878 (som_begin_writing): Remove unused `total_reloc_size'.
1879 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
1880 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
1881 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
1882 (som_find_nearest_line): Decorate unused parameter(s).
1883 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
1884 (som_bfd_link_split_section): Likewise.
1886 2000-08-03 Nick Clifton <nickc@cygnus.com>
1888 * section.c: Restore backed out code.
1889 * elf.c: Restore backed out code.
1890 (copy_private_bfd_data): Fix bug preventing stipped dynamic
1891 binaries from working.
1892 * bfd-in2.h: Regenerate.
1894 2000-08-03 H.J. Lu <hjl@gnu.org>
1896 * section.c: Back out the change made by Nick Clifton
1897 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
1899 * bfd-in2.h: Likewise.
1902 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
1904 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
1906 2000-07-31 Jason Eckhardt <jle@cygnus.com>
1908 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
1909 * bfd-in2.h, libbfd.h: Regenerate.
1911 2000-07-31 Nick Clifton <nickc@cygnus.com>
1913 * section.c (struct sec): Add new boolean field 'segment_mark'.
1914 (STD_SECTION): Initialise new field to zero.
1916 * bfd-in2.h: Regenerate.
1918 * elf.c (copy_private_bfd_data): Reorganise section to segment
1919 mapping to cope with moved sections requiring new segments,
1920 and overlapping segments.
1921 (SEGMENT_END): New macro: Return the end address of a segment.
1922 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
1923 contains a section by comparing their VMA addresses.
1924 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
1925 contains a section by comparing their LMA addresses.
1926 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
1927 section should be included in a segment.
1928 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
1929 follows another in memory.
1930 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
1933 2000-07-22 Jason Eckhardt <jle@cygnus.com>
1935 * cpu-i860.c: Added comments.
1937 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
1938 bfd_elf32_i860_little_vec.
1939 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
1940 (ELF_MAXPAGESIZE): Changed to 4096.
1942 * targets.c (bfd_elf32_i860_little_vec): Declaration of
1944 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
1946 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
1947 config for little endian elf32 i860.
1948 (targ_defvec): Define for the new config above
1949 as "bfd_elf32_i860_little_vec".
1950 (targ_selvecs): Define for the new config above
1951 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
1953 * configure.in (bfd_elf32_i860_little_vec): Added recognition
1956 * configure: Regenerated.
1958 2000-07-27 H.J. Lu <hjl@gnu.org>
1960 * elflink.h (elf_merge_symbol): Take one more argument,
1961 dt_needed, to indicate if the symbol comes from a DT_NEEDED
1962 entry. Don't overide the existing weak definition if dt_needed
1964 (elf_link_add_object_symbols): Pass dt_needed to
1965 elf_merge_symbol ().
1967 2000-07-27 Nick Clifton <nickc@cygnus.com>
1969 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
1972 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
1974 * configure.host (*-*-aix*): AIX has 'long long' always.
1976 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
1977 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
1978 (xcoff_write_archive_contents_big): Don't update the offset
1979 of the symbol table, xcoff_write_armap will do it.
1981 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
1983 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
1984 of dynobj for SGI_COMPAT checks.
1986 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1988 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
1989 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
1990 * bfd-in2.h: Regenerate.
1992 2000-07-21 Nick Clifton <nickc@cygnus.com>
1994 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
1995 range symbol indices in relocs and issue an error message.
1997 2000-07-20 H.J. Lu <hjl@gnu.org>
1999 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2000 info->new_dtags when setting DT_FLAGS_1. It will only be set
2001 by the new linker options. It shouldn't break anything.
2003 2000-07-20 H.J. Lu <hjl@gnu.org>
2005 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2006 only if info->new_dtags is true.
2008 2000-07-20 H.J. Lu <hjl@gnu.org>
2010 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2011 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2013 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2015 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2016 (ALL_MACHINES_CFILES): Add cpu-cris.c.
2017 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2018 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2019 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2020 * Makefile.in: Rebuild.
2021 * aclocal.m4: Rebuild.
2022 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2023 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2024 (bfd_cris_arch): Declare.
2025 (bfd_archures_list): Add bfd_cris_arch.
2026 * bfd-in2.h: Rebuild.
2027 * config.bfd: (cris-*-*): New target.
2028 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2029 * configure: Rebuild.
2030 * elf.c (prep_headers): Add bfd_arch_cris.
2031 * libbfd.h: Rebuild.
2032 * libaout.h (enum machine_type): Add M_CRIS.
2033 * reloc.c: Add CRIS relocations.
2034 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2035 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2036 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2037 * po/POTFILES.in, po/bfd.pot: Regenerate.
2039 2000-07-19 H.J. Lu <hjl@gnu.org>
2041 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2042 DF_TEXTREL if DT_TEXTREL is set.
2043 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2044 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2045 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2046 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2047 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2048 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2049 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2050 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2051 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2052 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2054 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2055 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2057 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2059 2000-07-19 H.J. Lu <hjl@gnu.org>
2061 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2062 * bfd-in2.h: Rebuild.
2064 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2065 (elf_dt_soname): New.
2067 * elf.c (bfd_elf_set_dt_needed_soname): New.
2069 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2070 entry if the shared object loaded by DT_NEEDED is used to
2071 resolve the reference in a regular object.
2073 2000-07-19 H.J. Lu <hjl@gnu.org>
2075 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2076 DT_DEPAUDIT and DT_AUDIT as strings.
2078 2000-07-19 Nick Clifton <nickc@cygnus.com>
2080 * format.c: Fix formatting.
2082 2000-07-19 H.J. Lu <hjl@gnu.org>
2084 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2086 2000-07-19 H.J. Lu <hjl@gnu.org>
2088 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2089 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2090 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2091 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2092 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2093 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2094 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2096 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
2098 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2099 renamed functions from here...
2100 (assign_section_numbers): Use renamed functions.
2101 (prep_headers): Use renamed functions.
2103 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2104 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2105 * bfd-in2.h: Regenerate.
2107 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
2109 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2110 parenthesis in if statement.
2112 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
2114 Enable the support for Traditional MIPS.
2115 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2116 return ict_none appropriately for traditional mips targets.
2117 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2118 (STUB_MOVE): Conditionalize for traditonal mips.
2119 (STUB_LI16): Likewise.
2120 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2121 room for RTPROC header.
2122 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2123 the permission for the PT_DYNAMIC as read, write and execute.
2124 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2125 for traditonal mips.
2126 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2127 _DYNAMIC_LINKING for traditonal mips.
2128 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2129 in case of traditonal mips.
2130 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2131 entry is required. For a function if PLT is not required then set the
2132 corresponding hash table entry to 0.
2133 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2135 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2136 shared object set the value to 0.
2137 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2138 _DYNAMIC_LINKING for traditonal mips.
2139 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2140 for traditonal mips.
2142 2000-07-15 H.J. Lu <hjl@gnu.org>
2144 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2146 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2148 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2149 out a structure that is BFD_IN_MEMORY.
2151 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2153 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2154 bfd pointer. Print section id instead of bfd pointer for local
2155 syms. Prefix addend with `+' for global syms as well as local.
2156 Correct calculation of name component lengths.
2157 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2159 From David Huggins-Daines <dhd@linuxcare.com>
2160 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2161 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2162 (elf64_hppa_modify_segment_map): Likewise.
2164 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2166 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2167 addresses to be "naturally" sign extended. Return -1 if unknown.
2168 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2169 * bfd-in2.h: Regenerate.
2171 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2173 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2174 and ECOF_SIGNED_64 to list ways to extract an offset.
2175 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2176 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2178 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2179 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2181 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2183 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2184 bfd_get_start_address.
2185 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2186 (elf_swap_ehdr_out): Ditto.
2188 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
2190 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2191 compatibility with older binutils.
2193 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2195 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2196 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2198 From Ryan Bradetich <rbradetich@uswest.net>
2199 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2200 (parse_line_table): Ditto.
2201 (_bfd_dwarf1_find_nearest_line): Ditto.
2202 * syms.c (cmpindexentry): Remove extra `*' from params.
2204 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
2206 * elf32-mips.c (sort_dynamic_relocs): New Function.
2207 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2208 via qsort to sort the dynamic relocations in increasing r_symndx
2211 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2213 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2214 ATTRIBUTE_UNUSED to unused args.
2215 (get_opd): Likewise.
2216 (get_plt): Likewise.
2217 (get_dlt): Likewise.
2218 (get_stub): Likewise.
2219 (elf64_hppa_adjust_dynamic_symbol): Likewise.
2220 (elf64_hppa_link_output_symbol_hook): Likewise.
2221 (elf64_hppa_check_relocs): Delete unused var.
2222 (elf64_hppa_size_dynamic_sections): Likewise.
2223 (elf64_hppa_finalize_opd): Likewise.
2224 (elf64_hppa_finalize_dynreloc): Likewise.
2225 (elf64_hppa_modify_segment_map): Likewise.
2226 (elf64_hppa_finish_dynamic_sections): Likewise.
2228 * elf-hppa.h (elf_hppa_final_write_processing): Add
2229 ATTRIBUTE_UNUSED to unused args.
2230 (elf_hppa_final_link_relocate): Likewise.
2231 (elf_hppa_record_segment_addrs): Add paretheses.
2232 (elf_hppa_relocate_section): Constify dyn_name.
2234 From David Huggins-Daines <dhd@linuxcare.com>
2235 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2236 rearrange case statement so that it gets preferred to 32-bit ones.
2238 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2239 asection->id instead of address of asection structure.
2240 (elf32_hppa_size_stubs): Likewise.
2242 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2243 for .init* and .fini*.
2245 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2246 and addends used in stub names to 32 bits.
2247 (elf32_hppa_size_stubs): Likewise.
2249 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2250 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
2251 not bfd_put_64. Fix minor comment typo and formatting.
2253 Changes to create multiple linker stubs, positioned immediately
2254 before the section where they are required.
2255 * elf32-hppa.c: Don't include hppa_stubs.h.
2256 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2257 (elf32_hppa_stub_hash_table): Delete.
2258 (elf32_hppa_link_hash_entry): Delete.
2259 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2260 stub_hash_table, and store the struct here rather than a pointer.
2261 Delete output_symbol_count. Add offset array. Change
2262 global_value to a bfd_vma.
2263 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2264 (elf32_hppa_stub_hash_traverse): Delete.
2265 (elf32_hppa_name_of_stub): Delete.
2266 (elf32_hppa_link_hash_lookup): Delete.
2267 (elf32_hppa_link_hash_traverse): Delete.
2268 (elf32_hppa_stub_hash_table_init): Delete.
2269 (elf32_hppa_size_of_stub): Pass input section and offset rather
2270 than location and calculate location here. Don't pass name as all
2271 stubs are now the same size.
2272 (elf32_hppa_stub_hash_newfunc): Init new fields.
2273 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2275 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2276 comparing against ints. Rewrite stub handling code.
2277 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2278 Case enums to int before comparing against ints. Remove
2279 bfd_reloc_dangerous case.
2280 (elf32_hppa_build_one_stub): Rewrite.
2281 (elf32_hppa_size_one_stub): New function.
2282 (elf32_hppa_build_stubs): Rewrite.
2283 (elf32_hppa_size_stubs): Pass in linker call-back functions.
2284 Rewrite stub-handling specific code.
2286 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2288 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2290 * hppa_stubs.h: Delete.
2291 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2292 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2293 * Makefile.in: Regenerate.
2295 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2298 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2300 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2301 and section name for bfd_reloc_notsupported error message.
2302 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2303 bfd_reloc_notsupported.
2304 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2306 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2307 undefined weak symbols for all relocs.
2308 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2309 offsets are relative to one past the delay slot.
2310 (elf32_hppa_size_stubs): Account for reloc addend when calculating
2311 branch destination. Put addend into stub name too.
2312 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2313 adjust by 8 when deciding whether a linker stub is needed. Put
2314 addend into stub name as for above.
2316 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2317 various args and vars.
2318 (elf32_hppa_bfd_final_link_relocate): Here too.
2319 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
2320 inner block var to avoid shadowing.
2322 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
2324 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2325 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2326 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
2328 * libhppa.h: Change practically all unsigned ints to plain ints.
2329 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
2332 From Ryan Bradetich <rbradetich@uswest.net>
2333 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
2334 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2336 From David Huggins-Daines <dhd@linuxcare.com>
2337 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2338 to the new OP_* ones.
2340 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2341 error exit. Bail out earlier on plabel relocs that we aren't
2342 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
2343 string, and then don't free our copy.
2344 (elf32_hppa_build_one_stub): Make insn unsigned int.
2346 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2347 available with BL, not BE and BLE.
2349 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2350 code for elf arg relocs.
2351 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2352 argument with elf_link_hash_entry h. Handle undefined weak
2353 symbols. Move $global$ lookup from here...
2354 (elf32_hppa_relocate_section): ...to here. Return correct error
2355 message for non-handled relocs.
2356 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
2357 wrong test was -0x3ffff to +0x40000.
2359 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2360 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
2361 Handle them as such.
2362 (elf_hppa_relocate_insn): Fix a typo.
2364 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
2365 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2366 assemble_17, assemble_21): Delete.
2367 Supply defines for all 64 possible opcodes.
2368 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
2369 formats. Handle COMICLR.
2370 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
2373 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
2374 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
2375 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
2377 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
2378 the local syms - did this code get deleted accidentally? Ignore
2379 undefined and undefweak syms.
2381 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
2382 block. Use it instead of elf64_hppa_hash_table (info).
2383 (elf_hppa_final_link_relocate): Use hppa_info instead of
2384 elf64_hppa_hash_table (info).
2386 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2387 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2388 (hppa_rebuild_insn): Mask immediate bits here instead.
2389 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2391 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2393 * section.c (struct sec): Add id field. Tidy comment formatting.
2394 (bfd_make_section_anyway): Set id.
2395 (STD_SECTION): Init id too.
2396 Change CONST to const throughout.
2397 * archures.c (bfd_arch_info): Tidy comment.
2398 (bfd_arch_list): Change a CONST to const.
2399 * libbfd-in.h: Tidy comments and replace CONST with const.
2400 * elf-bfd.h: Likewise.
2401 * libbfd.h: Regenerate.
2402 * bfd-in2.h: Regenerate.
2403 * libcoff.h: Regenerate.
2405 2000-07-07 DJ Delorie <dj@redhat.com>
2407 * archive.c (_bfd_write_archive_contents): Add an informative
2410 2000-07-06 Kazu Hirata <kazu@hxi.com>
2412 * srec.c: Fix formatting.
2414 2000-06-05 DJ Delorie <dj@redhat.com>
2418 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
2420 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
2421 value of PC-relative offsets.
2423 2000-07-03 Jim Wilson <wilson@cygnus.com>
2425 * elf64-alpha.c (alpha_elf_size_info): New.
2426 (elf_backend_size_info): Define to alpha_elf_size_info.
2427 * elfcode.h (elf_size_info): Change hash bucket size to 4.
2429 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
2431 * elf32-mips.c: Include elf32-target.h again for the traditional
2434 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
2436 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
2437 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
2438 (avr_info_to_howto_rela): Likewise.
2439 (elf32_avr_gc_mark_hook): Likewise.
2440 (elf32_avr_gc_sweep_hook): Likewise.
2441 (elf32_avr_relocate_section): Likewise.
2443 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
2445 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
2446 an external symbol for a non-shared, non-relocatable link.
2448 2000-07-03 Nick Clifton <nickc@redhat.com>
2450 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2451 is an external symbol.
2452 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2455 2000-07-03 Kazu Hirata <kazu@hxi.com>
2457 * reloc16.c: Fix formatting.
2459 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2461 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
2462 to add a new target for traditional mips i.e
2463 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
2464 * configure.in: Likewise.
2465 * configure: Rebuild.
2466 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
2468 (bfd_elf32_tradlittlemips_vec): Likewise.
2469 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
2470 to see that elfNN_bed does not get redefined even if the target file
2471 is included twice for a chip. See elf32-mips.c.
2473 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2475 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2476 (CLEANFILES): Add DEPA.
2477 * Makefile.in: Regenerate.
2479 2000-06-30 DJ Delorie <dj@cygnus.com>
2481 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
2482 can't assume the PE header is at 0x80.
2484 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2486 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2488 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
2490 * go32stub.h: Update stub.
2492 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2494 * archures.c (bfd_mach_avr5): Define.
2495 * bfd-in2.h (bfd_mach_avr5): Define.
2496 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
2497 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
2498 (compatible): Update comment. Add missing test.
2499 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
2500 for avr2 and avr4. Simplify 8K wrap code.
2501 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
2502 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2504 2000-06-26 Kazu Hirata <kazu@hxi.com>
2506 * coff-h8300.c: Fix formatting.
2507 * cpu-h8300.c: Likewise.
2509 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
2511 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
2512 for local symbols whose names are unknown.
2514 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2516 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2518 * Makefile.in: Regenerate.
2519 * doc/Makefile.in: Regenerate.
2521 2000-06-20 H.J. Lu <hjl@gnu.org>
2523 * Makefile.am: Rebuild dependency.
2524 * Makefile.in: Rebuild.
2526 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2528 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
2529 (elf_backend_copy_indirect_symbol): Map to the new function.
2531 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2533 * archive.c (normalize): Correct pointer comparison when checking
2535 (bfd_bsd_truncate_arname): Likewise.
2536 (bfd_gnu_truncate_arname): Likewise.
2538 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
2540 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
2541 sections elf_{text,data}_{section,symbol}.
2542 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
2543 (_bfd_mips_elf_hide_symbol): New function.
2544 (elf_backend_hide_symbol): Map to the new function.
2545 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
2546 definitions of mips_elf_{text,data}_{section,symbol}.
2547 (mips_elf_local_relocation_p): Try to find the direct symbol
2548 based on new check_forced argument.
2549 (mips_elf_calculate_relocation): Use new version of
2550 mips_elf_local_relocation_p.
2551 (mips_elf_relocate_section): Likewise.
2552 (_bfd_mips_elf_relocate_section): Likewise.
2553 (mips_elf_sort_hash_table): Only assert that have enough GOT
2555 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
2556 entry if the relocation based on the new external argument.
2557 (mips_elf_create_dynamic_relocation): Assert that we have a
2558 section contents allocated where we can swap out the dynamic
2560 (mips_elf_calculate_relocation): Find the real hash-table entry
2561 correctly by using h->root.root.type. Only create a dynamic
2562 relocation entry if the symbol is defined in a shared library.
2563 Create an external GOT entry for the GOT16 relocation if the
2564 symbol was forced local.
2565 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
2566 dynamic index if the symbol was forced local.
2568 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2570 * elf32-mips.c: Fix typos in comments.
2572 2000-06-19 Mark Kettenis <kettenis@gnu.org>
2574 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2577 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2579 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
2580 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
2581 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
2582 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
2583 (bfd_elf32_m68hc11_vec): Likewise.
2584 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
2585 Supports 68hc11 & 68hc12 at the same time.
2586 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
2588 (bfd_elf32_m68hc11_vec): Likewise.
2589 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
2590 * archures.c (bfd_m68hc12_arch): Define and register in global list
2591 (bfd_m68hc11_arch): Likewise.
2592 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
2593 BFD_RELOC_M68HC11_3B): Define.
2594 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
2595 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2597 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
2599 * elf_bfd.h (struct elf_backend_data): Add info argument to
2600 elf_backend_hide_symbol.
2601 (_bfd_elf_link_hash_hide_symbol): Likewise.
2602 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
2603 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
2604 * elflink.h (elf_link_add_object_symbols): Likewise.
2605 (elf_link_assign_sym_version): Likewise.
2607 2000-06-18 H.J. Lu <hjl@gnu.org>
2609 * coff-i386.c (coff_i386_reloc): Don't return in case of
2610 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
2611 Compensate PE relocations when linking with non-PE object
2612 files to generate a non-PE executable.
2614 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
2616 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
2617 GOT entries if we're doing a static link or -Bsymbolic link.
2619 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
2621 * elflink.h (elf_link_adjust_relocs): Check for and call backend
2622 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
2624 (elf_link_output_relocs): Likewise.
2625 (elf_reloc_link_order): Likewise.
2627 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2629 * archures.c (enum bfd_architecture): #define constants for
2630 PowerPc and RS6000 machine numbers.
2631 * bfd-in2.h: Regenerate.
2632 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
2633 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
2634 and RS6000 machine numbers using #defined constants from
2636 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
2637 machine numbers using #defined constants from archures.c. Add
2638 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
2639 64-bit words in 620 entry.
2640 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
2642 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
2644 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
2646 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
2647 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
2648 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
2650 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2652 * bfd-in.h (bfd_family_coff): Define.
2653 * bfd-in2.h: Regenerate.
2654 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
2655 coff_find_nearest_line): Check COFFness using bfd_family_coff()
2656 instead of bfd_target_coff_flavour.
2657 * cofflink.c (_bfd_coff_final_link): Likewise.
2658 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
2659 exclude XCOFF files.
2660 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
2662 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
2663 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
2664 * xcofflink.c (XCOFF_XVECP): Delete.
2665 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
2666 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
2667 bfd_xcoff_record_link_assignment,
2668 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
2669 check for bfd_target_xcoff_flavour.
2671 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2673 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
2675 (read_hdr): New function.
2676 (rs6000coff_core_p): Store mstsave or __context64 struct instead
2677 of trying to extract individual registers. Set abfd->arch_info
2678 to match the architecture that created the core file.
2679 (rs6000coff_get_section_contents): Delete.
2680 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
2682 2000-06-14 H.J. Lu <hjl@gnu.org>
2684 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
2687 2000-06-13 H.J. Lu <hjl@gnu.org>
2689 * configure: Regenerate.
2691 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
2693 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
2696 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2698 * configure.in (VERSION): Update to show this is the CVS mainline.
2700 2000-06-07 Alan Modra <alan@linuxcare.com.au>
2702 * elf32-d10v.c: Include elf/d10v.h
2703 (enum reloc_type): Delete.
2704 * elf32-d30v.c: Include elf/d30v.h
2705 (enum reloc_type): Delete.
2707 * Makefile.am: Run "make dep-am" to regenerate dependencies.
2708 * Makefile.in: Regenerate.
2710 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
2711 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
2712 move HOWTOs into elf_howto_table.
2713 (R_386_standard, R_386_ext_offset): Define.
2714 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
2715 (elf_i386_reloc_type_lookup): Modify calculation of index into
2716 elf_howto_table since we've removed the padding.
2717 (elf_i386_info_to_howto_rel): Likewise.
2718 (elf_i386_relocate_section): Likewise.
2720 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
2722 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
2724 2000-06-05 H.J. Lu <hjl@gnu.org>
2726 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
2727 an error when seeing an undefined symbol with hidden/internal
2728 attribute. It is handled in *_relocate_section ().
2730 2000-06-05 H.J. Lu <hjl@gnu.org>
2732 * elflink.h (elf_fix_symbol_flags): Follow the link for the
2733 indirect symbol for the ELF_LINK_NON_ELF bit.
2734 (elf_link_output_extsym): Don't output the indirect symbol even
2735 if the ELF_LINK_NON_ELF bit is set.
2737 2000-06-01 J.T. Conklin <jtc@redback.com>
2739 * config.bfd (i[3456]86-*-netbsdelf*): New target.
2740 (i[3456]86-*-netbsdaout*): New target.
2741 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
2742 (i[3456]86-*-openbsd*): Likewise.
2744 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
2746 * trad-core.c: From hpux-core.c, include <dirent.h> or
2747 <sys/ndir.h> when possible.
2749 2000-05-31 Nick Clifton <nickc@cygnus.com>
2751 * opintl.h (_(String)): Explain why dgettext is used instead
2754 2000-05-31 Ulrich Drepper <drepper@redhat.com>
2756 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
2757 definitions. We must not assume they are sorted in the file
2758 according to their index numbers.
2760 2000-05-31 Alan Modra <alan@linuxcare.com.au>
2762 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
2763 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
2764 R_PARISC_DIR17F are for absolute branches; Handle them as such.
2766 2000-05-30 Nick Clifton <nickc@cygnus.com>
2768 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
2769 80960CA, 80960MC as valid machine names.
2771 2000-05-30 H.J. Lu <hjl@gnu.org>
2773 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
2774 visibility bits if the symbol is undefined. Correctly handle
2775 weak undefined symbols with hidden and internal attributes.
2777 * elflink.h (elf_link_add_object_symbols): Always turn the
2778 symbol into local if it has the hidden or internal attribute.
2780 2000-05-29 Philip Blundell <philb@gnu.org>
2782 * ppcboot.c: Add packed attribute if compiling with GCC.
2784 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
2786 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
2788 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
2790 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
2791 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
2792 corefile on a 64-bit (Sparc Solaris) host. Also clean up
2795 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2797 * Makefile.am: Update dependencies with "make dep-am"
2798 * Makefile.in: Regenerate.
2800 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
2801 bindtextdomain): Replace defines with those from intl/libgettext.h
2802 to quieten gcc warnings.
2804 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2806 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
2808 * archive.c (normalize, bfd_bsd_truncate_arname,
2809 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
2810 file names with backslashes.
2812 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
2815 * sysdep.h: Include filenames.h.
2817 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2819 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
2821 2000-05-26 Jakub Jelinek <jakub@redhat.com>
2823 * elf64-sparc.c (sparc64_elf_relax_section): New.
2824 (sparc64_elf_relocate_section): Optimize tail call into branch always
2826 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2827 (elf32_sparc_relax_section): New.
2829 2000-05-26 Jakub Jelinek <jakub@redhat.com>
2831 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
2832 Remove unusued variables.
2833 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
2834 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
2835 previous fix, so that shared libs really don't influence targets
2836 extension mask and memory model.
2838 2000-05-23 H.J. Lu <hjl@gnu.org>
2840 * elf64-alpha.c (elf64_alpha_relocate_section): Check
2841 h->root.other not h->other.
2842 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2844 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
2846 2000-05-23 H.J. Lu <hjl@gnu.org>
2848 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
2849 undefined symbol with the non-default visibility attributes.
2850 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
2851 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
2852 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2853 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2854 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
2855 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2856 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2857 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2858 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
2859 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
2860 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2862 2000-05-22 Richard Henderson <rth@cygnus.com>
2864 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
2865 PCREL22, PCREL64I. Zero size of special relocs.
2866 (elf64_ia64_reloc_type_lookup): Likewise.
2867 (USE_BRL, oor_brl, oor_ip): New.
2868 (elf64_ia64_relax_section): New.
2869 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
2870 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
2871 (elf64_ia64_relocate_section): Likewise.
2872 (bfd_elf64_bfd_relax_section): New.
2873 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
2874 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
2875 * bfd-in2.h, libbfd.h: Regenerate.
2877 2000-05-22 Nick Clifton <nickc@cygnus.com>
2879 * configure.in : Add peigen.lo to MIPS PE targets.
2880 * configure: Regenerate.
2882 2000-05-22 Momchil Velikov <velco@fadata.bg>
2884 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
2885 only if it is known for both input and output bfds. Separate
2886 error message strings as in some languages, it may be necessary
2887 to change more than one place in the string to change between
2890 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
2891 endianess checks, call _bfd_generic_verify_endian_match() instead.
2893 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
2895 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
2897 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
2898 endianess before checking bfd flavours.
2900 2000-05-22 H.J. Lu <hjl@gnu.org>
2902 * elflink.h (elf_link_output_extsym): Clear the visibility
2903 field for symbols not defined locally.
2905 2000-05-18 Alan Modra <alan@linuxcare.com.au>
2907 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2908 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2909 (hppa_rebuild_insn): Mask immediate bits here instead.
2910 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2912 2000-05-18 Momchil Velikov <velco@fadata.bg>
2914 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
2915 relocs for an executable, ensure that they are virtual addresses.
2917 2000-05-18 Jeffrey A Law (law@cygnus.com)
2919 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
2921 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
2922 Rick Gorton <gorton@scrugs.lkg.dec.com>
2924 * elflink.h: Add emitrelocations support: when enabled, relocation
2925 information and relocation sections are put into final output
2926 executables. If the emitrelocations flag is set, do the following:
2927 (elf_bfd_final_link): Emit relocation sections.
2928 (elf_link_input_bfd): Compute relocation section contents.
2929 (elf_gc_sections): Don't clean relocation sections.
2931 2000-05-16 Catherine Moore <clm@cygnus.com>
2933 * som.c (som_decode_symclass): Recognize weak symbols.
2935 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
2937 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
2938 read idata section only from dataoff.
2939 (pe_print_edata): Correctly check for valid eat_member.
2941 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
2943 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
2945 2000-05-14 Philip Blundell <philb@gnu.org>
2947 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
2949 2000-05-12 Alan Modra <alan@linuxcare.com.au>
2951 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
2953 * peigen.c (pe_print_idata): Look for .idata section and print
2954 info even if data directory has zero entries. Read idata section
2955 starting from dataoff, and adjust all data offsets to suit. Cast
2956 all bfd_vma vars to unsigned long before passing to fprintf.
2957 * peigen.c (pe_print_edata): Similarly, look for .edata section
2958 and print info even if data directory has zero entries. Cast
2959 all bfd_vma vars to unsigned long before passing to fprintf.
2961 From Szabolcs Szakacsits <szaka@F-Secure.com>
2962 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
2963 directory size which may be bogus.
2964 * peigen.c (pe_print_edata): Similarly.
2966 2000-05-09 Alan Modra <alan@linuxcare.com.au>
2968 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
2970 (copy_private_bfd_data): Allow for space possibly taken up by elf
2971 headers when calculating segment physical address from lma.
2973 2000-05-08 Alan Modra <alan@linuxcare.com.au>
2975 * versados.c (versados_scan): Init stringlen and pass_2_done.
2977 * trad-core.c (trad_unix_core_file_p): Return
2978 bfd_error_wrong_format rather than bfd_error_file_truncated.
2980 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
2981 add_data_entry. DataDirectory virtual address is relative.
2982 (pe_print_idata): Account for relative DataDirectory virtual
2983 addresses. Don't trash datasize inside POWERPC_LE_PE code.
2984 (pe_print_edata): Similarly.
2986 From Szabolcs Szakacsits <szaka@F-Secure.com>
2987 * peigen.c (dir_names): Add Delay Import Directory.
2988 (pe_print_idata): Always search for bfd section containing
2989 idata address rather than looking up section name. Print this
2990 section name rather than .idata.
2991 (pe_print_edata): Similarly. Also print some fields as %08lx.
2992 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
2995 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
2997 * xcoff.h: Rename to xcoff-target.h
2998 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
2999 * coff-rs6000.c: Ditto.
3000 * coff64-rs6000.c: Ditto.
3001 * coff-pmac.c: Ditto.
3002 * Makefile.in: Regenerate.
3004 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3006 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3007 Change U802TOC64MAGIC to U803XTOCMAGIC.
3009 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
3011 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3012 * bfd-in.h: Prototype bfd_elf_get_arch_size.
3013 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3015 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3017 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3019 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3021 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3022 hidden and internal symbols.
3023 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3025 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3026 assign a PLT or GOT entry to symbols with hidden and
3027 internal visibility.
3029 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3031 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3033 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3035 2000-05-02 H.J. Lu <hjl@gnu.org>
3037 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3040 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3042 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3043 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3045 * Makefile.in: Regenerate.
3047 2000-05-01 Jim Wilson <wilson@cygnus.com>
3049 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3050 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3051 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3052 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3053 * Makefile.in: Rebuild.
3055 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3057 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3058 doesn't work very well.
3060 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3061 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3062 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3063 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3064 (elf_hppa_info_to_howto): Likewise.
3065 (elf_hppa_info_to_howto_rel): Likewise.
3066 (elf_hppa_reloc_type_lookup): Likewise.
3067 (elf_hppa_is_local_label_name): Likewise.
3068 (elf_hppa_fake_sections): Likewise.
3069 (elf_hppa_final_write_processing): Likewise.
3070 (elf_hppa_howto_table): Fully initialise all entries.
3071 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3072 (elf_hppa_info_to_howto): Likewise.
3073 (elf_hppa_info_to_howto_rel): Likewise.
3074 (elf_hppa_reloc_type_lookup): Likewise.
3075 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3076 elf_hppa_unmark_useless_dynamic_symbols,
3077 elf_hppa_remark_useless_dynamic_symbols,
3078 elf_hppa_record_segment_addrs, elf_hppa_final_link,
3079 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3080 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3081 elf32-hppa.c mess is cleaned up.
3082 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3083 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
3084 r_field then call hppa_field_adjust inline func with variable
3085 r_field arg, instead call hppa_field_adjust with fixed arg.
3086 In case R_PARISC_PCREL22F, don't set r_field.
3087 (elf_hppa_relocate_insn): Change args and return type to unsigned
3088 int. Call re_assemble_* funcs to do the work.
3090 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3093 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3095 (sign_extend): Mask first before sign extending.
3096 (low_sign_extend): Rewrite without condition expression.
3097 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3098 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3099 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3100 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3101 result as function return value rather than through pointer arg.
3102 Accept unsigned int args, and return unsigned int.
3103 (re_assemble_3): New. Combines function of dis_assemble_3 with
3104 re-assembly of opcode and immediate.
3105 (re_assemble_12): Likewise.
3106 (re_assemble_16): Likewise.
3107 (re_assemble_17): Likewise.
3108 (re_assemble_21): Likewise.
3109 (re_assemble_22): Likewise.
3110 (hppa_field_adjust): Rewrite and document, paying attention to
3111 size of types and signed/unsigned issues.
3112 (get_opcode): Shift before masking.
3113 (FDLW): Rename to FLDW.
3114 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
3115 (hppa_rebuild_insn): Change args and return value to unsigned
3116 int. Make use of re_assemble_*. Correct case 11.
3118 * dep-in.sed: Handle ../opcodes/.
3119 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3120 elf64-hppa.h, hppa_stubs.h, xcoff.h.
3121 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3122 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3123 elfarm-nabi.lo dependencies outside of auto-dependency area.
3124 Regenerate dependencies.
3125 * Makefile.in: Regenerate.
3127 * configure.in (TRAD_HEADER): Test non-null before
3129 * configure: Regenerate.
3131 * reloc.c: Fix mis-spelling in comment.
3133 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3135 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3136 * vms.c (vms_openr_next_archived_file): Return NULL.
3138 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3140 * coffcode.h Copy changes mistakenly done to libcoff.h in
3143 2000-04-29 Andreas Jaeger <aj@suse.de>
3145 * libbfd-in.h: Correctly check GCC version.
3146 * bfd-in.h: Likewise.
3147 * libhppa.h: Likewise.
3148 * libbfd.h: Regenerate.
3149 * bfd-in2.h: Regenerate.
3151 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3153 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3154 coffdu-rs6000.{lo,c}.
3155 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3157 * Makefile.in: Regenerate.
3158 * xcoff.h: New file.
3159 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3160 * coff-rs6000.c: Move all declarations and defines that are
3161 common to the xcoff backends into xcoff.h
3162 * coff64-rs6000.c: Ditto,
3164 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3166 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3167 _bfd_coff_force_symnames in strings and
3168 _bfd_coff_debug_string_prefix_length to their default values.
3169 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3171 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3173 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3174 _bfd_coff_force_symnames in strings and
3175 _bfd_coff_debug_string_prefix_length to their default values.
3177 2000-04-27 Alan Modra <alan@linuxcare.com.au>
3179 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
3180 Check local_got_refcounts before dereferencing.
3182 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3183 before deciding we don't need R_PPC_PLT32 relocation.
3184 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3187 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3189 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3191 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3192 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3193 (elf_i386_relocate_section): Allow for .plt to go missing.
3194 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3195 can use a relative reloc for got as elf_i386_relocate_section.
3196 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3198 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3200 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3202 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3204 * Makefile.am (coff64-rs6000.lo): New rule.
3205 * Makefile.in: Regenerate.
3206 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3207 xcoff_is_local_label_name, xcoff_rtype2howto,
3208 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3209 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3210 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3211 (NO_COFF_SYMBOLS): Define.
3212 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3213 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3215 (MINUS_ONE): New macro.
3216 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3218 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3219 coff_SWAP_aux_out): Map to the new functions.
3220 * coff64-rs6000.c: New file.
3221 * libcoff.h (bfd_coff_backend_data): Add new fields
3222 _bfd_coff_force_symnames_in_strings and
3223 _bfd_coff_debug_string_prefix_length.
3224 (bfd_coff_force_symnames_in_strings,
3225 bfd_coff_debug_string_prefix_length): New macros for above fields.
3226 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3227 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
3228 of using coff_swap_sym_in directly.
3229 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3230 (coff_set_flags) Set magic for XCOFF64.
3231 (coff_compute_section_file_positions): Add symbol name length to
3232 string section length if bfd_coff_debug_string_prefix_length is
3234 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3235 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3236 using coff_swap_lineno_in directly.
3237 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3238 and _bfd_coff_debug_string_prefix_length fields.
3239 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3240 symbol names into strings table when
3241 bfd_coff_force_symnames_in_strings is true.
3242 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3243 SET_RELOC_VADDR): New macros.
3244 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3245 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3247 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3248 changes within RS6000COFF_C specific code.
3249 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3250 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3251 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3252 Extend existing hack on target name.
3253 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3255 * coff-tic54x.c (ticof): Keep up to date with new fields
3256 in bfd_coff_backend_data.
3257 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3258 targ_selvecs to include rs6000coff64_vec for rs6000.
3259 * configure.in: Add rs6000coff64_vec case.
3260 * cpu-powerpc.c: New bfd_arch_info_type.
3262 2000-04-24 Jeffrey A Law (law@cygnus.com)
3264 * config.bfd: Only disable elf32-hppa vectors, not all of the
3265 BSD and OSF configuration support. Provide (disabled) clauses
3267 * configure.in: Add clause for PA64 support.
3268 * configure: Rebuilt.
3270 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3271 (bfd_elf64_hppa_vec): Declare.
3273 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3274 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3275 (elf64-hppa.lo): Add dependencies.
3276 * Makefile.in: Rebuilt.
3278 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3280 2000-04-24 Jason Eckhardt <jle@cygnus.com>
3282 * libhppa.h (dis_assemble_16): New function.
3283 (pa_arch): Added pa20w element.
3285 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
3287 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3288 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3289 bfd_elf64_slurp_reloc_table.
3291 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3292 definitions to get external names.
3293 (elf_write_relocs): Renamed from write_relocs and make global.
3294 (elf_slurp_reloc_table): Make global.
3295 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3297 * archive.c (hpux_uid_gid_encode): New function.
3298 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3299 defined and the ID is greater than 99999.
3300 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3301 special uid/gid fields into 32 bit values.
3303 2000-04-21 Matthew Green <mrg@cygnus.com>
3305 * config.bfd: Add NetBSD/sparc64 support.
3307 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3308 David Mosberger <davidm@hpl.hp.com>
3309 Timothy Wall <twall@cygnus.com>
3310 Jim Wilson <wilson@cygnus.com>
3312 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3313 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3314 (BFD64_BACKENDS): Add elf64-ia64.lo.
3315 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3316 (cpu-ia64.lo, elf64-ia64.lo): New rules.
3317 * Makefile.in: Rebuild.
3318 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3319 (bfd_ia64_arch): Declare.
3320 (bfd_archures_list): Add bfd_ia64_arch.
3321 * bfd-in2.h: Rebuild.
3322 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3323 * configure: Rebuild.
3324 * configure.host: (ia64-*-linux*): New host.
3325 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3326 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3327 * elf.c (prep_headers): Add bfd_arch_ia64.
3328 * libbfd.h: Rebuild.
3329 * reloc.c: Add IA-64 relocations.
3330 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3332 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3333 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3335 2000-04-21 Richard Henderson <rth@cygnus.com>
3337 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3338 contents when performing a partial link.
3339 (bfd_elf_d30v_reloc_21): Likewise.
3341 2000-04-20 H.J. Lu <hjl@gnu.org>
3343 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3344 patch to symbols defined by a shared object.
3345 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3347 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3350 * dwarf2.c (concat_filename): Avoid string literal concatenation.
3351 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
3353 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
3355 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3356 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3357 (coff-ia64.lo): Add dependency.
3358 * Makefile.in: Regenerate.
3359 * coff-ia64.c: New file.
3360 * efi-app-ia32.c: Ditto.
3361 * efi-app-ia64.c: Ditto.
3362 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
3363 (coff_set_flags): Ditto.
3364 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
3365 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
3366 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
3367 * configure: Regenerate.
3368 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
3369 (PUT_OPTHDR_IMAGE_BASE): Ditto.
3370 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3371 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3372 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3373 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3374 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3375 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3376 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3377 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3378 (GET_PDATA_ENTRY): Ditto.
3379 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
3380 data_start. Use above macros to read fields that are 64 bit wide for
3381 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
3382 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
3383 FileAlignment and SectionAlignment to minimum alignment if they
3385 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
3386 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
3387 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
3388 Use above macros to write fields that are 64 bit wide for
3390 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
3391 5*4 otherwise. This should be right for IA-32 and IA-64, but may
3392 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
3393 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
3394 begin address, end address, and unwind info address only. Use
3395 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
3397 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
3398 HIGH3ADJ relocation names.
3399 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
3400 * targets.c: Declare bfd_efi_app_ia32_vec and
3401 bfd_efi_app_ia64_vec.
3402 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
3403 bfd_efi_app_ia64_vec.
3405 2000-04-17 Timothy Wall <twall@cygnus.com>
3407 * bfd-in2.h: Add prototypes for tic54x load page access.
3408 * bfd-in.h: Regenerate.
3409 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
3410 in customized _set_arch_mach function.
3411 * coffcode.h (coff_set_alignment_hook): Set section load page if
3412 the appropriate macro is defined.
3413 (write_object_contents): Read section load page.
3415 2000-04-13 Alan Modra <alan@linuxcare.com.au>
3417 * elf32-hppa.h: Update copyright date.
3419 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
3420 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
3422 * elf32-d30v.c (MAX32): Don't use LL suffix.
3423 (MIN32): Define in terms of MAX32.
3424 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
3426 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
3429 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
3431 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3433 * dep-in.sed: Match space before file name, not after.
3434 * Makefile.am: Regenerate dependencies.
3435 * Makefile.in: Regenerate.
3437 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
3438 case, allow address wrap-around stupidly removed 2000-03-17. Sign
3439 extend without an if statement.
3441 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3443 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
3445 * elf32-mips.c (gprel16_with_gp): Likewise.
3446 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
3447 here using -0x40000, not (int)0xfffc0000.
3448 (elf32_hppa_size_of_stub): Likewise.
3450 2000-04-11 Timothy Wall <twall@cygnus.com>
3452 * coff-tic54x.c: Now builds with all targets.
3453 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
3454 * Makefile.in: Regenerate.
3455 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
3456 unitialized variable.
3458 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3460 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3461 --enable-build-warnings option.
3462 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3463 * Makefile.in, configure: Re-generate.
3465 2000-04-07 Nick Clifton <nickc@cygnus.com>
3467 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
3468 BFD_RELOC_THUMB_PCREL_BLX.
3470 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3471 R_ARM_XPC25 and R_ARM_THM_PC22.
3473 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
3474 R_ARM_XPC25 and R_ARM_THM_XPC22.
3475 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
3476 R_ARM_[XPC25|THM_XPC22].
3478 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
3479 elf/arm-oabi.h to elf/arm.h
3481 * Makefile.am: Fix dependency for elfarm-oabi.c
3482 * Makefile.in: Regenerate.
3484 * bfd-in2.h: Regenerate.
3485 * libbfd.h: Regenerate.
3487 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3489 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
3490 and restore it on failure. Release newly allocated tdata on
3493 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
3495 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
3496 (decode_line_info): Set it. Report error if unit->line_offset is
3497 equal to or larger than it.
3499 2000-04-07 Timothy Wall <twall@cygnus.com>
3501 * targets.c: Added vecs for tic54x.
3502 * reloc.c: Added relocs for tic54x.
3503 * libbfd.h: Regenerated.
3504 * configure: Add TI COFF vecs for tic54x.
3505 * configure.in: Ditto.
3506 * config.bfd (targ_cpu): Recognize new tic54x target.
3507 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
3508 * bfd-in2.h: Add tic54x target and relocations.
3509 * Makefile.am, Makefile.in: Add tic54x target.
3510 * archures.c (bfd_archures_list): Add tic54x target.
3511 * coff-tic54x.c: New.
3512 * cpu-tic54x.c: New.
3514 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3516 * elfcore.h (elf_core_file_p): call backend_object_p which
3517 thereby gets an opportunity to update the arch/machine type.
3519 2000-04-06 Timothy Wall <twall@cygnus.com>
3521 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
3522 class. Handle SEC_CLINK and SEC_BLOCK flags.
3523 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
3524 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
3526 2000-04-06 Nick Clifton <nickc@cygnus.com>
3528 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
3529 EF_INTERWORK if this is an unknown EABI.
3530 (elf32_arm_merge_private_bfd_data): Check EABI version
3531 numbers. Only check EF_xxx flags if the EABI version number
3533 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
3534 if the EABI version number is unknown.
3535 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
3536 if the EABI version number is unknown.
3538 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3540 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
3541 BFD_RELOC_SH_LOOP_END.
3542 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
3543 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
3544 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
3545 (sh_elf_reloc_loop): New function.
3546 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
3548 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
3549 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
3550 * bfd-in2.h, libbfd.h: Regenerate.
3552 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3554 * po/bfd.pot: Regenerate.
3556 * Makefile.am: Remove extraneous mkdep comment.
3557 (MKDEP): Use gcc -MM rather than mkdep.
3558 (DEP): Quote when passing vars to sub-make. Add warning
3560 (DEP1): Rewrite for "gcc -MM".
3561 (CLEANFILES): Add DEP2.
3562 Update dependencies.
3563 * Makefile.in: Regenerate.
3565 2000-04-03 Kevin Buettner <kevinb@redhat.com>
3567 * configure.in: Added corefile support for AIX 4.3. In particular,
3568 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
3569 compiling rs6000-core.c.
3570 * configure: Regenerated.
3572 2000-04-03 H.J. Lu <hjl@gnu.org>
3574 * cache.c (bfd_open_file): Unlink the output file only if
3575 it has non-zero size.
3577 2000-04-01 Ken Block USG <block@zk3.dec.com>
3579 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
3580 relative relocations for non-loaded sections in shared objects.
3581 (elf64_alpha_check_relocs): Similarly.
3583 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
3585 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
3586 BFD_RELOC_16 to switch for extended relocs.
3587 (MY_swap_ext_reloc_in): New.
3588 (MY_swap_ext_reloc_out): New.
3589 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
3590 than NAME(aout,swap_ext_reloc_in) for extended relocs.
3591 (NAME(aout,squirt_out_relocs)): Similarly use
3592 MY_swap_ext_reloc_out.
3593 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
3595 2000-04-03 Kazu Hirata <kazu@hxi.com>
3597 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
3598 the R_PCRWORD_B case.
3600 2000-03-31 Thomas de Lellis <tdel@wrs.com>
3602 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
3606 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
3608 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
3609 HOWTO references to bfd_elf_generic_reloc, that have
3610 partial_inplace == true, now use the new function. The function
3611 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
3612 extends its fixes to the R_M32R_{16,24,32} relocs.
3613 The new logic in m32r_elf_lo16_reloc() has been removed, and
3614 it instead calls the new routine to obtain that functionality.
3616 2000-03-27 Alan Modra <alan@linuxcare.com.au>
3618 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
3619 elf32_avr_check_relocs, avr_final_link_relocate,
3620 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
3621 elf32_avr_object_p): Add prototypes.
3622 (elf32_avr_gc_mark_hook): Add default for h->root.type.
3623 (bfd_elf_avr_final_write_processing): Make static.
3625 2000-03-27 Denis Chertykov <denisc@overta.ru>
3627 * cpu-avr.c: New file. BFD support routines for AVR architecture.
3628 * archures.c (bfd_architecture): Add AVR architecture.
3629 (bfd_archures_list): Add reference to AVR architecture info.
3630 * elf.c (prep_headers): Handle bfd_arch_avr.
3631 * reloc.c: Add various AVR relocation enums.
3632 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
3634 * Makefile.am: Add support for AVR elf.
3635 * configure.in: Likewise.
3636 * config.bfd: Likewise.
3637 * Makefile.in: Regenerate.
3638 * configure: This too.
3639 * bfd-in2.h: And this.
3640 * libbfd.h: And this.
3642 2000-03-24 H.J. Lu <hjl@gnu.org>
3644 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
3645 (elf64_alpha_find_reloc_at_ofs): Likewise.
3647 2000-03-17 Alan Modra <alan@linuxcare.com.au>
3649 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
3650 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
3651 allowable range used to be -2**(n-1) to 2**n-1.
3652 * reloc.c (_bfd_relocate_contents): Same here. Also replace
3653 "boolean overflow" with "bfd_reloc_status_type flag".
3655 2000-03-14 Doug Evans <dje@casey.transmeta.com>
3657 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
3659 2000-03-14 Kazu Hirata <kazu@hxi.com>
3661 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
3662 of shrinks properly, including the last reloc.
3664 2000-03-13 Kazu Hirata <kazu@hxi.com>
3666 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
3669 2000-03-11 Alan Modra <alan@linuxcare.com.au>
3671 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
3672 a format mismatch rather than an "error" from bfd_read such as
3673 bfd_error_file_truncated.
3675 2000-03-10 Geoff Keating <geoffk@cygnus.com>
3677 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
3678 sign-extension and big-endian compensation for
3679 R_MIPS_64 even in ld -r.
3681 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
3683 * elf32-mips.c (mips_elf_next_relocation): Rename from
3684 mips_elf_next_lo16_relocation, and generalize to look
3685 for any relocation type.
3686 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
3687 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
3688 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
3689 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
3690 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
3691 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
3692 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
3693 (mips_rtype_to_howto): Likewise.
3694 (mips_elf_calculate_relocation): Handle new relocs.
3695 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
3696 are paired. The addend for R_MIPS_GNU_REL16_S2
3697 is shifted right two bits.
3699 2000-03-10 Alan Modra <alan@linuxcare.com.au>
3701 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
3702 comment, and ensure it doesn't happen again.
3703 (bfd_install_relocation): Same here.
3704 (_bfd_relocate_contents): Don't bother assigning unused signmask
3705 shift result. Fix typos in comments.
3706 Remove trailing whitespace throughout file.
3708 2000-03-07 Doug Evans <dje@casey.transmeta.com>
3710 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
3711 * bfd-in2.h: Rebuild.
3713 2000-03-06 Nick Clifton <nickc@cygnus.com>
3715 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
3717 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
3718 (SIZEOF_ILF_STRINGS): Redefine.
3719 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
3720 relative reloc, as opposed to a section relative reloc.
3721 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
3723 Add length of symbol's prefix to string pointer.
3724 Store a pointer to the symbol in the symbol pointer table.
3725 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
3726 Initialise the symbol pointer table.
3727 Store the hint in the Hint/Name table.
3728 Make the jump reloc be symbol realtive, not section relative.
3729 Create an import symbol for imported code.
3731 2000-03-06 Catherine Moore <clm@cygnus.com>
3733 * elf.c (swap_out_syms): Check for null type_ptr.
3735 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
3737 * aout-target.h (MY(write_object_contents)): Remove unused
3738 and unusable "#if CHOOSE_RELOC_SIZE".
3739 * pc532-mach.c (MY(write_object_contents)): Ditto.
3740 * netbsd.h (MY(write_object_contents)): Ditto.
3741 * hp300hpux.c (MY(write_object_contents)): Ditto.
3742 * freebsd.h (MY(write_object_contents)): Ditto.
3743 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
3745 2000-02-29 H.J. Lu <hjl@gnu.org>
3747 * peicode.h (jtab): Make it static.
3749 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
3750 defined and COFF_IMAGE_WITH_PE is not defined.
3751 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
3752 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
3754 2000-03-01 Nick Clifton <nickc@cygnus.com>
3756 * coff-arm.c (bfd_arm_process_before_allocation): Make
3757 'symndx' signed to prevent compile time warning.
3759 * coff-mcore.c: Remove unused prototype for pe_object_p.
3761 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
3762 functions that are not used when COFF_IMAGE_WITH_PE is
3764 (struct sh_opcode): Change type of 'flags' field to unsigned
3765 long so that it can hold the USESAS flag.
3767 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
3769 * elf-m10300.c (mn10300_elf_relax_section): Initialise
3772 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
3774 Remove unusued variables and code.
3775 (elf_backend_add_symbol_hook): Fix prototype.
3777 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
3780 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
3783 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
3785 Remove unusued variables and code.
3786 (elf_backend_add_symbol_hook): Fix prototype.
3788 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
3790 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
3791 to unused function parameter.
3793 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
3795 Use EMPTY_HOWTO to initialise empty howto slots.
3796 Remove unused variables.
3798 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
3800 2000-03-01 H.J. Lu <hjl@gnu.org>
3802 * aoutx.h (aout_link_input_section_std): Pass "true" to
3803 the undefined_symbol callback.
3804 (aout_link_input_section_ext): Likewise.
3805 * bout.c (get_value): Likewise.
3806 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
3807 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
3809 (alpha_relocate_section): Likewise.
3810 * coff-arm.c (coff_arm_relocate_section): Likewise.
3811 * coff-i960.c (coff_i960_relocate_section): Likewise.
3812 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
3813 * coff-mips.c (mips_relocate_section): Likewise.
3814 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
3815 * coff-sh.c (sh_relocate_section): Likewise.
3816 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
3817 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
3818 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
3819 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
3820 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
3821 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
3822 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
3823 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3824 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
3825 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3826 * elf32-sh.c (sh_elf_relocate_section): Likewise.
3827 * elf32-v850.c (v850_elf_relocate_section): Likewise.
3828 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
3829 * elflink.h (elf_link_output_extsym): Likewise.
3830 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
3831 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
3832 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
3834 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
3835 undefined_symbol callback when building shared library with
3836 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
3838 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3839 * elf32-i386.c (elf_i386_relocate_section): Likewise.
3840 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3841 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3842 (elf32_mips_get_relocated_section_content): Likewise.
3843 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3844 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3845 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3846 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3848 2000-02-28 Nick Clifton <nickc@cygnus.com>
3850 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
3851 * Makefile.in: Regenerate.
3853 * configure.in: Add support for mips and sh pe vectors.
3854 * configure: regenerate.
3856 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
3859 * targets.c: Add mips and sh pe vectors.
3861 * libpei.h (coff_final_link_postscript): Only define if not
3864 * coffcode.h: Add support for WinCE magic numbers.
3866 * peigen.c (pe_print_reloc): Update comment and rearrange
3867 appending of newline character.
3869 * peicode.h: Add support for Image Library Format.
3870 (pe_ILF_vars): Structure containing data used by ILF code.
3871 (pe_ILF_make_a_section): New function. Create a section based
3873 (pe_ILF_make_a_reloc): New function. Create a reloc based on
3875 (pe_ILF_make_a_symbol): New function. Create a symbol based
3877 (pe_ILF_save_relocs): New function. Store the relocs created
3878 by pe_ILF_make_a_reloc in a section.
3879 (pe_ILF_build_a_bfd): New function. Create a BFD describing
3881 (pe_ILF_object_p): New function. Return a bfd_target pointer
3883 (pe_bfd_object_p): If an ILF object is detected call
3884 pe_ILF_object_p on it.
3886 * coff-arm.c: Add support for WinCE relocs which are different
3887 from normal ARM COFF relocs.
3888 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
3890 * coff-sh.c: Add support for sh-pe target.
3891 * pe-sh.c: New file. Support code for sh-pe target.
3892 * pei-sh.c: New file. Support code for sh-pe target.
3894 * pe-mips.c: New file. Support code for mips-pe target.
3895 * pei-mips.c: New file. Support code for mips-pe target.
3897 2000-02-27 Jakub Jelinek <jakub@redhat.com>
3899 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
3900 architecture if the object causing the bump is dynamic.
3901 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
3902 and also don't it for memory ordering.
3903 (sparc64_elf_write_relocs): Take src_rela out of the loop.
3905 2000-02-27 Ian Lance Taylor <ian@zembu.com>
3907 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
3908 calling bfd_get_section_size_before_reloc.
3909 (decode_line_info): Likewise.
3910 (_bfd_dwarf2_find_nearest_line): Likewise.
3912 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
3914 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
3915 name of the libtool directory.
3916 * Makefile.in: Rebuild.
3918 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
3920 * som.c (SOM_HOWTO): Define.
3921 (som_hppa_howto_table): Use it.
3923 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3925 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
3927 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
3929 2000-02-24 Catherine Moore <clm@cygnus.com>
3931 * som.c (som_misc_symbol_info): Add field
3933 (som_bfd_derive_misc_symbol_info): Initialize
3935 (som_build_and_write_symbol_table): Keep track
3936 of secondary_def field.
3937 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
3938 if secondary_def field is set.
3939 (som_bfd_ar_write_symbol_stuff): Initialize
3942 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
3944 * dwarf2.c (read_address): Read 16-bits addresses.
3945 (parse_comp_unit): Accept addr_size == 2.
3947 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3949 * bfd-in.h: Update copyright date.
3951 2000-02-23 Linas Vepstas <linas@linas.org>
3953 * cpu-i370.c: New file.
3954 * elf32-i370.c: New file.
3955 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
3956 (bfd_i370_arch): New.
3957 (bfd_archures_list): Add bfd_i370_arch.
3958 * elf.c (prep_headers): Add bfd_arch_i370.
3959 * Makefile.am: Add support for IBM 370 elf.
3960 * config.bfd: Likewise.
3961 * configure.in: Likewise.
3962 * libbfd.h (bfd_reloc_code_real_names): Likewise.
3963 * reloc.c (bfd_reloc_code_type): Likewise.
3964 * targets.c: Likewise.
3966 * Makefile.in: Regenerate.
3967 * configure: Regenerate.
3968 * bfd-in2.h: Regenerate.
3970 2000-02-22 Ian Lance Taylor <ian@zembu.com>
3972 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
3973 invalid relocation types, and change them to R_386_NONE.
3975 2000-02-22 H.J. Lu <hjl@gnu.org>
3977 * elflink.h (elf_link_add_object_symbols): If a version symbol is
3978 not defined, don't add a second ELF_VER_CHR.
3980 * elflink.h (elf_bfd_final_link): Call output_extsym for global
3981 symbols converted to local symbols even when stripping all
3983 (elf_link_output_extsym): Process global symbols converted to
3984 local symbols even if they are being stripped.
3986 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3988 * archures.c (bfd_octets_per_byte): Return unsigned int.
3989 (bfd_arch_mach_octets_per_byte): Ditto.
3990 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
3992 * section.c (bfd_get_section_size_before_reloc): Quell signed
3993 vs. unsigned comparison warning.
3994 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
3995 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
3996 change. What was I thinking?
3997 * bfd-in2.h: Regenerate.
3999 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4000 (elf_gc_sections): Same here.
4001 (elf_gc_common_finalize_got_offsets): And here.
4003 2000-02-21 Ian Lance Taylor <ian@zembu.com>
4005 ELF HPPA doesn't work at present; remove it until it does.
4006 * config.bfd: Comment out setting targ_defvec to
4008 * Makefile.am: Rebuild dependencies.
4009 (BFD32_BACKENDS): Remove elf32-hppa.lo.
4010 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4011 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4012 * Makefile.in: Rebuild.
4013 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4015 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4017 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4018 is no bfd_free(). Revert bfd_free part of previous change.
4020 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4022 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4024 (coff_compute_section_file_positions): Use bfd_free to pair
4026 (coff_write_object_contents): Likewise.
4028 * coff-rs6000.c (xcoff_howto_table_16): New variable.
4029 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4031 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
4033 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4034 (xcoff_ar_file_hdr_big): New structure.
4035 (SIZEOF_AR_FILE_HDR_BIG): New macro.
4036 (xcoff_ar_hdr_big): New structure.
4037 (SIZEOF_AR_HDR_BIG): New macro.
4038 (xcoff_big_format_p): New macro.
4039 (xcoff_ardata_big): New macro.
4040 (arch_xhdr_big): New macro.
4041 (xcoff_slurp_armap): Handle large archives.
4042 (xcoff_archive_p): Detect large archives.
4043 (xcoff_read_ar_hdr): Handle large archives.
4044 (xcoff_openr_next_archived_file): Handle large archives.
4045 (xcoff_generic_stat_arch_elt): Handle large archives.
4046 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4047 (xcoff_write_armap_big): New function.
4048 (xcoff_write_armap): New function, dispatch to _old or _big.
4049 (xcoff_write_archive_contents_old): Rename from
4050 xcoff_write_archive_contents.
4051 (xcoff_write_archive_contents_big): New function.
4052 (xcoff_write_archive_contents): New function, dispatch to _old or
4055 2000-02-18 Richard Henderson <rth@cygnus.com>
4057 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4058 and hide_symbol members.
4059 (elf_link_hash_copy_indirect): Remove.
4060 (elf_link_hash_hide_symbol): Remove.
4061 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4062 and elf_backend_hide_symbol.
4063 (_bfd_elf_link_hash_copy_indirect): Declare.
4064 (_bfd_elf_link_hash_hide_symbol): Declare.
4065 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4066 (_bfd_elf_link_hash_hide_symbol): Likewise.
4067 (_bfd_elf_link_hash_table_init): Don't init killed members.
4068 * elflink.h (elf_link_add_object_symbols): Use the bed function
4069 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4070 (elf_link_assign_sym_version): Likewise.
4071 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4072 (elf_backend_hide_symbol): Likewise.
4073 (elfNN_bed): Update for new members.
4075 2000-02-17 Kevin Buettner <kevinb@redhat.com>
4077 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4078 STACK_END_ADDR): Define for new core file format.
4079 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4080 for handling the vagaries of the various core file structures used
4081 by AIX over the years.
4082 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4083 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4084 core_dumpx structure.
4086 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4088 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4089 (bfd_mach_sh3_dsp): Likewise.
4090 (bfd_mach_sh4): Reinstate.
4091 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4092 * bfd-in2.h: Regenerate.
4093 * coff-sh.c (struct sh_opcode): flags is no longer short.
4094 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4095 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4096 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4097 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4098 (sh_opcodes): No longer const.
4099 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4100 (sh_insn_uses_reg): Check for USESAS and USESR8.
4101 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4102 (_bfd_sh_align_load_span): Return early for SH4.
4103 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4104 Take into account that field b of a parallel processing insn
4105 could be mistaken for a separate insn.
4106 * cpu-sh.c (arch_info_struct): New array elements for
4107 sh2, sh-dsp and sh3-dsp.
4108 Reinstate element for sh4.
4109 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4110 (SH4_NEXT): Reinstate.
4111 (SH3_NEXT, SH3E_NEXT): Adjust.
4112 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4113 * elf32-sh.c (sh_elf_set_private_flags): New function.
4114 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4115 (sh_elf_merge_private_data): New function.
4116 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4117 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4118 (bfd_elf32_bfd_merge_private_bfd_data): Change to
4119 sh_elf_merge_private_data.
4121 2000-02-13 Richard Henderson <rth@cygnus.com>
4123 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4124 hide_symbol members.
4125 (elf_link_hash_copy_indirect): New.
4126 (elf_link_hash_hide_symbol): New.
4127 * elflink.h (elf_link_add_object_symbols): Break out copy from
4128 indirect new new symbol to elf.c.
4129 (elf_link_assign_sym_version): Break out privatization of
4130 non-exported symbol to elf.c.
4131 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4132 (_bfd_elf_link_hash_hide_symbol): New.
4133 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4135 2000-02-13 Ian Lance Taylor <ian@zembu.com>
4137 * section.c (_bfd_strip_section_from_output): Add info parameter.
4138 If it passed as non-NULL, use it to check whether any input BFD
4139 has an input section which uses this output section. Change all
4141 * bfd-in2.h: Rebuild.
4143 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4144 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4146 * bfd-in2.h: Rebuild.
4148 2000-02-10 Timothy Wall <twall@cygnus.com>
4150 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4151 allow final modifications of swapped-in symbol.
4152 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4153 * coffcode.h (coff_write_relocs): Use macro
4154 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4155 symbol index should be set to -1.
4157 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4159 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4160 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4161 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4162 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4163 sh_insns_uses_or_sets_freg): New functions.
4164 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4165 * (sh_insns_conflict): Use new functions and new macros to
4166 detect conflicts when two instructions both set same integer registers,
4167 both set same fp register, and both set special register.
4169 2000-02-09 Timothy Wall <twall@cygnus.com>
4171 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4172 swapping in sections, so that the swapping routines have access to
4175 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4177 * coff-go32.c: Update comment. Update copyright.
4179 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4181 * syms.c (bfd_decode_symclass)
4182 Two new class characters were added - 'V' and 'v'. The
4183 meaning of 'W' is now restricted to just weak non-object
4184 symbols. This allows differentiation between, for example,
4185 weak functions vs weak objects. nm for example now dumps:
4187 'w' = weak unresolved
4188 'V' = weak global object
4189 'v' = weak unresolved object
4191 (bfd_is_undefined_symclass): New function. Return true if the
4192 given symbol class represents and undefined/unresolved symbol.
4194 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4197 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4199 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4200 STT_ARM_16BIT flag set, but it is not attached to a data object
4201 return STT_ARM_16BIT so that it will be treated as code by the
4204 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4206 * coff-i386.c (i3coff_object_p): Remove prototype.
4209 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4210 to name. Update copyright.
4212 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4213 assignment to avoid warning. Update copyright.
4215 2000-01-24 Robert Lipe (robertl@sco.com)
4217 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4218 instead of using GNU C extension.
4220 2000-01-21 Nick Clifton <nickc@cygnus.com>
4222 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4223 amount from a bfd_in_memory structure.
4224 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4227 2000-01-14 Nick Clifton <nickc@cygnus.com>
4229 * linker.c (default_indirect_link_order): oops - fix incorrectly
4230 applied patch from Tim Wall.
4232 2000-01-13 Timothy Wall (twall@tiac.net>
4234 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4235 = scnhsz, filhsz, relsz, aoutsz, etc)
4237 * coffswap.h: Ditto.
4239 2000-01-13 Nick Clifton <nickc@cygnus.com>
4241 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4242 interwork thumb to arm stub.
4244 2000-01-13 Timothy Wall (twall@tiac.net>
4246 * archures.c (bfd_octets_per_byte): New function: Return
4248 (bfd_arch_mach_octets_per_byte): New function: Return target
4251 * section.c: Distinguish between octets and bytes for usage of
4252 _cooked_size, _raw_size, and output_offset. Clarify
4253 description of bfd_set_section_contents.
4255 * bfd-in2.h: Regenerate.
4257 * coffgen.c: Indicate that the offset parameter is in bytes, not
4260 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4261 where appropriate to get the octet offset when calling
4262 bfd_set_section_contents.
4263 (bfd_coff_reloc_link_order): Ditto.
4265 * linker.c (bfd_generic_reloc_link_order): Ditto.
4266 (_bfd_default_link_order): Ditto.
4268 * reloc.c (bfd_perform_relocation): Distinguish between octets
4269 and bytes. Use octets when indexing into octet data; use bytes
4270 when calculating target addresses.
4271 (bfd_install_relocation): Ditto.
4273 * srec.c (srec_write_section): Ditto.
4275 2000-01-13 Nick Clifton <nickc@cygnus.com>
4277 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4278 3 to 2. This allows 4 byte sized sections, which is necessary for
4279 dlltool to build functioning DLLs.
4281 2000-01-10 Philip Blundell <pb@futuretv.com>
4283 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4284 (arm*-*-conix*): New target.
4286 2000-01-10 Egor Duda <deo@logos-m.ru>
4288 * config.bfd: Include elf32_i386 vector to target list for cygwin
4291 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4292 * configure.in: Test for structure win32_pstatus_t in
4294 * configure: Regenerate.
4296 * elf.c (elfcore_grok_win32pstatus): New function: process
4297 win32_pstatus_t notes in elf core file.
4298 (elfcore_grok_note): Detect win32_pstatus notes.
4300 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4302 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4304 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4305 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4307 For older changes see ChangeLog-9899
4313 version-control: never