1 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
4 $global$ referenced but not defined, set its value here.
6 2001-02-09 Bo Thorsen <bo@suse.de>
8 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
10 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
12 (elf64_x86_64_relocate_section): Fix formatting.
13 (elf64_x86_64_relocate_section): Fix addend for relocation of
14 R_X86_64_(8|16|32|PC8|PC16|PC32).
16 Mon Feb 12 17:46:24 CET 2001 Jan Hubicka <jh@suse.cz>
18 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
20 2001-02-11 H.J. Lu <hjl@gnu.org>
22 * elflink.h (elf_bfd_final_link): Use file_align for STMTAB
25 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
27 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
28 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
29 relocations against dynsym symbols.
31 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
32 the R_MIPS_26 relocation.
33 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
34 the R_MIPS_26 relocation.
35 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
37 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
38 the R_MIPS_26 relocation.
39 (mips_elf64_howto_table_rela): Likewise.
41 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
42 member to mark symbols that have non-CALL relocations against
44 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
45 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
47 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
48 non-CALL relocation against it is encountered.
49 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
50 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
51 no_fn_stub is not set.
53 * elf32-mips.c (mips_elf_output_extsym): Get the output section
54 information from the real symbol for indirect ones.
55 Check no_fn_stub to find out if a symbol has a function stub
58 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
60 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
61 * Makefile.in: Regenerate.
63 2001-02-09 David Mosberger <davidm@hpl.hp.com>
65 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
66 true if section name is an unwind table section name.
67 (elfNN_ia64_additional_program_headers): Count each unwind section
69 (elfNN_ia64_modify_segment_map): Install one unwind program header
70 for each unwind separate section. Note: normally the linker
71 script merges the unwind sections that go into a single segment,
72 so this still generates at most one unwind program header per
75 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
76 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
77 (elfNN_ia64_fake_sections): Mark sections with names that start
78 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
81 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
82 Use it to make sh_info in unwind section point to the text section
85 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
87 * Makefile.am: Add linux target for S/390.
88 * archures.c: Likewise.
89 * bfd-in2.h: Likewise.
90 * config.bfd: Likewise.
91 * configure.in: Likewise.
94 * targets.c: Likewise.
95 * cpu-s390.c: New file.
96 * elf32-s390.c: New file.
97 * elf64-s390.c: New file.
99 2001-02-09 Nick Clifton <nickc@redhat.com>
101 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
102 ImageBase. This has already been done by coff_swap_hdr_in.
104 2001-02-09 Jakub Jelinek <jakub@redhat.com>
106 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
108 2001-02-09 Jakub Jelinek <jakub@redhat.com>
110 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
111 (sparc64_elf_relocate_section): Likewise.
113 2001-02-09 Mark Kettenis <kettenis@gnu.org>
115 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
116 similar to R_SPARC_32.
117 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
119 2001-02-08 H.J. Lu <hjl@gnu.org>
121 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
122 relocation entries for weak definitions when building DSO with
125 2001-02-08 Richard Henderson <rth@redhat.com>
127 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
128 before visibility. Locally defined protected symbols are not
131 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
133 * config.bfd: Enable coff64 for rs6000-*. Patch from
134 <hzoli@austin.ibm.com>.
136 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
138 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
139 found, do not attempt to find dwarf2 info before returning.
141 2001-02-07 Jakub Jelinek <jakub@redhat.com>
143 * elflink.h (is_global_symbol_definition): Rename to
144 is_global_data_symbol_definition and have it reject function
146 (elf_link_is_defined_archive_symbol): Use renamed function.
148 2001-02-07 Todd Vierling <tv@wasabisystems.com>
150 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
151 * libbfd.h (bfd_target_vector): Likewise.
152 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
153 make static; create pointer reference named bfd_target_vector.
154 (_bfd_target_vector_entries): Calculate this based on the array
155 typed _bfd_target_vector.
157 2001-02-06 H.J. Lu <hjl@gnu.org>
159 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
160 internal symbols are not dynamic.
161 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
163 2001-02-06 Nick Clifton <nickc@redhat.com>
165 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
166 that it will not be pulled into the list of files that make up
168 * Makefile.in: Regenerate.
169 * po/bfd.pot: Regenerate.
171 2001-02-06 H.J. Lu <hjl@gnu.org>
173 * bfd/peicode.h (coff_swap_filehdr_in): Remove the e_magic
175 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
176 external_PEI_IMAGE_hdr.
178 2001-02-06 Kazu Hirata <kazu@hxi.com>
180 * elf-m10200.c: Fix formatting.
182 2001-02-04 Nick Clifton <nickc@redhat.com>
184 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
185 rel, it will be handled later on.
187 2001-02-02 Fred Fish <fnf@ninemoons.com>
189 * Makefile.in: Fix typo.
191 2001-02-01 Kazu Hirata <kazu@hxi.com>
193 * elf-m10300.c: Fix formatting.
195 2001-01-30 Alan Modra <alan@linuxcare.com.au>
197 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
198 (elf_backend_get_symbol_type): Define.
199 (elf64_hppa_object_p): Set architecture and machine from elf
202 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
204 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
207 2001-01-26 Richard Henderson <rth@redhat.com>
209 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
210 for non-default visibility.
211 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
212 delete ugly macro and replace with pretty function.
214 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
216 * coff-go32.c: Update copyright.
217 * coff-stgo32.c: Likewise.
218 * coff-go32.c (COFF_LONG_FILENAMES): Define.
219 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
220 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
221 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
223 2001-01-25 Kazu Hirata <kazu@hxi.com>
225 * bfd-in2.h: Rebuild.
226 * libbfd.h: Likewise.
228 2001-01-23 H.J. Lu <hjl@gnu.org>
230 * bfd-in2.h: Rebuild.
232 2001-01-23 H.J. Lu <hjl@gnu.org>
234 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
235 is NULL or PRIV(vms_rec) is outside of the buffer.
237 2001-01-23 Kazu Hirata <kazu@hxi.com>
239 * coff64-rs6000.c: Fix formatting.
240 * coff-arm.c: Likewise.
241 * coffgen.c: Likewise.
242 * cofflink.c: Likewise.
243 * coff-mcore.c: Likewise.
244 * coff-mips.c: Likewise.
245 * coff-pmac.c: Likewise.
246 * coff-ppc.c: Likewise.
247 * coff-rs6000.c: Likewise.
249 * elf32-fr30.c: Likewise.
250 * elf32-i370.c: Likewise.
251 * elf32-i860.c: Likewise.
252 * elf32-m32r.c: Likewise.
253 * elf32-m68k.c: Likewise.
254 * elf32-mcore.c: Likewise.
255 * elf32-ppc.c: Likewise.
256 * elf32-sh.c: Likewise.
257 * elf32-v850.c: Likewise.
258 * elf64-alpha.c: Likewise.
259 * elf64-sparc.c: Likewise.
260 * elflink.c: Likewise.
261 * elflink.h: Likewise.
262 * elf-m10200.c: Likewise.
263 * elf-m10300.c: Likewise.
264 * elfxx-ia64.c: Likewise.
266 * aoutx.h: Fix formatting.
268 * bfd-in2.h: Likewise.
269 * bfd-in.h: Likewise.
270 * cpu-i386.c: Likewise.
271 * cpu-m68hc11.c: Likewise.
272 * dwarf2.c: Likewise.
273 * elf64-x86-64.c: Likewise.
274 * format.c: Likewise.
275 * freebsd.h: Likewise.
277 * hp300hpux.c: Likewise.
278 * hppabsd-core.c: Likewise.
279 * hpux-core.c: Likewise.
281 2001-01-22 Bo Thorsen <bo@suse.de>
283 * elf64-x86-64.c: Added PIC support for X86-64.
284 (elf64_x86_64_link_hash_newfunc): Function added.
285 (elf64_x86_64_link_hash_table_create): Likewise.
286 (elf64_x86_64_check_relocs): Likewise.
287 (elf64_x86_64_gc_mark_hook): Likewise.
288 (elf64_x86_64_gc_sweep_hook): Likewise.
289 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
290 (elf64_x86_64_size_dynamic_sections): Likewise.
291 (elf64_x86_64_discard_copies): Likewise.
292 (elf64_x86_64_finish_dynamic_symbol): Likewise.
293 (elf64_x86_64_finish_dynamic_sections): Likewise.
294 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
296 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
298 * Makefile.am (install-data-local): Make use of $(DESTDIR).
299 * Makefile.in: Regenerate.
301 2001-01-21 Kazu Hirata <kazu@hxi.com>
303 * coff-a29k.c: Fix formatting.
305 2001-01-19 H.J. Lu <hjl@gnu.org>
307 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
308 relocation section names.
309 (elf_i386_relocate_section): Report files with bad relocation
310 section names and return false.
312 2001-01-17 Bo Thorsen <bo@suse.de>
314 * targets.c: Alphabetize list of xvecs.
316 2001-01-14 Alan Modra <alan@linuxcare.com.au>
318 * config.bfd: Add linux target variant for elfxx-hppa.
319 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
320 bfd_elf64_hppa_linux_vec.
321 * configure: Regenerate.
322 * elf64-hppa.c: Include elf64-target.h again to support linux
324 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
325 * elf32-hppa.c: Include elf32-target.h again to support linux
327 (elf32_hppa_post_process_headers): New function.
328 (elf_backend_post_process_headers): Define.
329 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
330 bfd_elf32_hppa_linux_vec.
332 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
333 and data_segment_base fields.
334 (elf32_hppa_link_hash_table_create ): Init them.
335 (elf32_hppa_check_relocs): Update comments.
336 (hppa_record_segment_addr): New function.
337 (elf32_hppa_relocate_section): Call it.
338 (final_link_relocate): Handle R_PARISC_SEGREL32.
339 (elf32_hppa_final_link): New function.
340 (bfd_elf32_bfd_final_link): Define to call it.
341 (hppa_unwind_entry_compare): New function.
342 * cache.c (bfd_open_file): Create files in write+read mode.
344 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
345 SEGREL32 and numerous other relocs. Change duplicate
346 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
348 * opncls.c (bfd_fdopenr): Add parens like the comment says around
351 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
352 .plt entries for DT_INIT and DT_FINI.
353 (elf32_hppa_finish_dynamic_sections): Remove special handling of
356 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
357 offsets for stub .plt access if wide mode. Check offset in range.
359 2001-01-13 Nick Clifton <nickc@redhat.com>
361 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
364 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
367 2001-01-12 Alan Modra <alan@linuxcare.com.au>
369 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
370 * configure: Regenerate.
372 2001-01-11 Peter Targett <peter.targett@arccores.com>
374 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
375 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
376 * cpu-arc.c (arch_info_struct): Add entries for variants.
377 (bfd_arc_arch) Set default to bfd_mach_arc_5.
378 (arc_get_mach) Don't assume machine names prefixed arc- before
380 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
382 (arc_elf_final_write_processing) Likewise.
383 (ELF_MACHINE_CODE) Use EM_ARC.
385 2001-01-10 Nick Clifton <nickc@redhat.com>
387 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
389 2001-01-07 Philip Blundell <philb@gnu.org>
391 * README: Replace `bug-gnu-utils@gnu.org' with
392 `bug-binutils@gnu.org'.
394 2001-01-04 Kazu Hirata <kazu@hxi.com>
396 * som.c: Fix formatting.
398 2001-01-03 Kazu Hirata <kazu@hxi.com>
400 * ecoffswap.h: Fix formatting.
401 * elf-bfd.h: Likewise.
402 * elfarm-nabi.c: Likewise.
403 * elfarm-oabi.c: Likewise.
404 * elfcode.h: Likewise.
405 * elfcore.h: Likewise.
406 * elflink.c: Likewise.
407 * elflink.h: Likewise.
408 * elfxx-ia64.c: Likewise.
409 * elfxx-target.h: Likewise.
411 * linker.c: Likewise.
412 * lynx-core.c: Likewise.
414 2001-01-02 Kazu Hirata <kazu@hxi.com>
416 * pc532-mach.c: Fix formatting.
417 * pe-arm.c: Likewise.
418 * pe-i386.c: Likewise.
419 * pe-mips.c: Likewise.
420 * pe-ppc.c: Likewise.
422 * pei-mips.c: Likewise.
423 * pei-sh.c: Likewise.
424 * peicode.h: Likewise.
425 * ppcboot.c: Likewise.
426 * ptrace-core.c: Likewise.
428 2001-01-01 Kazu Hirata <kazu@hxi.com>
430 * reloc.c: Fix formatting.
431 * riscix.c: Likewise.
432 * rs6000-core.c: Likewise.
433 * xcoff-target.h: Likewise.
435 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
437 * elfcode.h (elf_object_p): Also restore the bfd mach field on
438 error, by calling bfd_default_set_arch_mach with incoming
441 2000-12-26 Kazu Hirata <kazu@hxi.com>
443 * vaxnetbsd.c: Fix formatting.
444 * versados.c: Likewise.
445 * vms-gsd.c: Likewise.
446 * vms-hdr.c: Likewise.
447 * vms-misc.c: Likewise.
449 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
451 * archive.c (coff_write_armap): Don't write more than symbol_count
452 `archive_member_file_ptr's.
454 2000-12-25 Kazu Hirata <kazu@hxi.com>
456 * vms-tir.c: Fix formatting.
458 2000-12-23 Kazu Hirata <kazu@hxi.com>
460 * vms.c: Fix formatting.
463 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
465 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
467 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
469 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
472 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
474 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
476 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
478 * libbfd.c (bfd_get_bits): Added
479 (bfd_put_bits): Likewise
480 * bfd-in.h: Declared the above.
481 * bfd-in2.h: Regenerated.
483 2000-12-20 Kazu Hirata <kazu@hxi.com>
485 * targets.c: Fix formatting.
486 * tekhex.c: Likewise.
487 * trad-core.c: Likewise.
489 2000-12-19 Kazu Hirata <kazu@hxi.com>
491 * sco5-core.c: Fix formatting.
492 * section.c: Likewise.
493 * sparclinux.c: Likewise.
494 * sparclynx.c: Likewise.
495 * sparcnetbsd.c: Likewise.
498 * stab-syms.c: Likewise.
501 * sysdep.h: Likewise.
503 2000-12-18 Nick Clifton <nickc@redhat.com>
505 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
507 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
508 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
510 2000-12-18 Nick Clifton <nickc@redhat.com>
512 * vms-misc.c (_bfd_vms_get_record): Add default case to
515 2000-12-15 Miloslav Trmac <mitr@volny.cz>
517 * elfcore.h (elf_core_file_p): Move to the start of the program
518 headers before attempting to read them.
520 2000-12-14 Kazu Hirata <kazu@hxi.com>
522 * peigen.c: Fix formatting.
526 2000-12-13 Kazu Hirata <kazu@hxi.com>
528 * peigen.c: Fix formatting.
530 2000-12-12 Jim Wilson <wilson@redhat.com>
532 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
534 2000-12-08 Mark Salter <msalter@redhat.com>
536 * binary.c (binary_set_section_contents): Ignore sections
539 2000-12-12 Kazu Hirata <kazu@hxi.com>
541 * m68klinux.c: Fix formatting.
542 * m68knetbsd.c: Likewise.
543 * mipsbsd.c: Likewise.
544 * netbsd-core.c: Likewise.
545 * netbsd.h: Likewise.
546 * newsos3.c: Likewise.
547 * nlm32-alpha.c: Likewise.
548 * nlm32-i386.c: Likewise.
549 * nlm32-ppc.c: Likewise.
550 * nlm32-sparc.c: Likewise.
551 * nlmcode.h: Likewise.
552 * nlmswap.h: Likewise.
553 * nlm-target.h: Likewise.
554 * ns32knetbsd.c: Likewise.
556 2000-12-10 Fred Fish <fnf@be.com>
558 * elflink.h (elf_link_output_extsym): Don't complain about undefined
559 symbols in shared objects if allow_shlib_undefined is true.
561 2000-12-12 Nick Clifton <nickc@redhat.com>
563 * cpu-sh.c: Fix formattng.
564 * elf.c: Fix formattng.
565 * elf32-mips.c: Fix formattng.
566 * elf32-sh.c: Fix formattng.
567 * elf64-alpha.c: Fix formattng.
569 2000-12-09 Nick Clifton <nickc@redhat.com>
571 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
572 dwarf2_find_line_info as last parameter to invocation of
573 _bfd_dwarf2_find_nearest_line.
574 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
575 dwarf2_find_line_info as last parameter to invocation of
576 _bfd_dwarf2_find_nearest_line.
578 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
580 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
581 (BFD_LIBS): ...to here.
582 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
583 (BFD_LIBS_CFILES): ...to here.
584 * Makefile.in: Regenerate.
585 * configure.in: Remove dwarf.lo from the elf shell variable.
586 * configure: Regenerate.
587 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
588 * libcoff.h: Regenerate.
589 * coffgen.c (coff_find_nearest_line): Call
590 _bfd_dwarf2_find_nearest_line.
591 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
593 (read_abbrevs): Likewise
594 (decode_line_info): Likewise.
595 (parse_comp_unit): Likewise.
596 (comp_unit_find_nearest_line): Likewise.
597 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
598 * libbfd.h: Regenerate.
599 * elf.c (_bfd_elf_find_nearest_line): Update call.
600 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
601 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
602 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
603 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
604 (styp_to_sec_flags): Handle DWARF2 sections.
605 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
606 to _bfd_find_nearest_line.
607 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
608 call to _bfd_find_nearest_line.
610 2000-12-08 Kazu Hirata <kazu@hxi.com>
612 * coffgen.c: Fix formatting.
613 * elf-m10300.c: Likewise.
614 * elf32-i386.c: Likewise.
615 * elf32-i960.c: Likewise.
616 * elf32-m68k.c: Likewise.
617 * elf32-mcore.c: Likewise.
618 * elf32-ppc.c: Likewise.
619 * elf32-sh.c: Likewise.
620 * elf32-sparc.c: Likewise.
621 * elf32-v850.c: Likewise.
622 * elf64-alpha.c: Likewise.
623 * elf64-hppa.c: Likewise.
624 * elf64-mips.c: Likewise.
625 * elf64-sparc.c: Likewise.
627 2000-12-07 Kazu Hirata <kazu@hxi.com>
629 * elf32-ppc.c: Fix formatting.
630 * elf64-x86-64.c: Likewise.
632 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
634 From Ralf Baechle <ralf@gnu.org>
636 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
637 BFDs containing no sections or empty .text, .data or .bss sections
638 to be merged, regardless of their flags.
640 2000-12-06 Kazu Hirata <kazu@hxi.com>
642 * elf32-m32r.c: Fix formatting.
643 * elf32-m68hc11.c: Likewise.
644 * elf32-m68hc12.c: Likewise.
645 * elf32-m68k.c: Likewise.
646 * elf32-mcore.c: Likewise.
647 * elf32-pj.c: Likewise.
648 * elf32-ppc.c: Likewise.
650 2000-12-05 Kazu Hirata <kazu@hxi.com>
652 * elf32-fr30.c: Fix formatting.
653 * elf32-hppa.c: Likewise.
654 * elf32-i370.c: Likewise.
655 * elf32-i386.c: Likewise.
656 * elf32-i860.c: Likewise.
657 * elf32-i960.c: Likewise.
659 2000-12-03 Kazu Hirata <kazu@hxi.com>
661 * elf32-arm.h: Fix formatting.
662 * elf32-avr.c: Likewise.
663 * elf32-cris.c: Likewise.
664 * elf32-d10v.c: Likewise.
665 * elf32-d30v.c: Likewise.
666 * elf-hppa.h: Likewise.
667 * elf-m10200.c: Likewise.
668 * elf-m10300.c: Likewise.
670 2000-12-01 Chris Demetriou <cgd@sibyte.com>
672 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
673 bfd_mach_mips32_4k. Update FIXME comment.
674 * archures.c (bfd_mach_mips32): New constant.
675 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
676 the latter, renumber it.
677 * bfd-in2.h (bfd_mach_mips32): New constant.
678 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
679 the latter, renumber it.
680 * cpu-mips.c (I_mips32): New constant.
681 (I_mips4K, I_mips32_4k): Rename the former to the latter.
682 (arch_info_struct): Add bfd_mach_mips32 entry, replace
683 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
684 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
685 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
686 with E_MIPS_MACH_MIPS32_4K.
687 (_bfd_mips_elf_final_write_processing): Replace
688 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
689 bfd_mach_mips32 case.
690 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
691 comparison with support for MIPS32.
692 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
695 * aoutx.h (NAME(aout,machine_type)): Add cases for
696 bfd_mach_mips5 and bfd_mach_mips64.
697 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
698 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
699 * cpu_mips.c (I_mips5, I_mips64): New definitions.
700 (arch_info_struct): Add entries for bfd_mach_mips5 and
702 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
703 _bfd_mips_elf_print_private_bfd_data): Add cases for
704 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
705 (_bfd_mips_elf_final_write_processing): Add cases for
706 bfd_mach_mips5 and bfd_mach_mips64.
708 * bfd/aoutx.h (NAME(aout,machine_type)): Add a
709 bfd_mach_mips_sb1 case.
710 * bfd/archures.c (bfd_mach_mips_sb1): New constant.
711 * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
712 * bfd/cpu-mips.c (I_sb1): New constant.
713 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
714 * bfd/elf32-mips.c (elf_mips_mach): Add case for
716 (_bfd_mips_elf_final_write_processing): Add case for
719 2000-12-01 Joel Sherrill <joel@OARcorp.com>
721 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
722 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
723 (sparc*-*-rtems*): Switched from a.out to ELF.
725 2000-11-30 Jan Hubicka <jh@suse.cz>
727 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
728 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
729 (elf64-x86-64.lo): Add dependencies.
730 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
731 bfd_mach_x86_64_intel_syntax.
732 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
733 * config.bfd (x86_64): Add.
734 * configure.in: Add support for bfd_elf64_x86_64_vec.
735 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
736 (bfd_i386_arch, i8086_ar): Link in.
737 * elf64-x86-64.c: New file.
738 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
739 * targets.c (bfd_elf64_x86_64_vec): Add.
740 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
742 2000-11-30 Kazu Hirata <kazu@hxi.com>
744 * xcofflink.c: Fix formatting.
746 2000-11-28 Kazu Hirata <kazu@hxi.com>
748 * aoutx.h: Fix formatting.
749 * bfd-in.h: Likewise.
750 * bfd-in2.h: Likewise.
752 * cisco-core.c: Likewise.
753 * coff64-rs6000.c: Likewise.
754 * coffcode.h: Likewise.
755 * coffswap.h: Likewise.
756 * corefile.c: Likewise.
757 * elf32-mips.c: Likewise.
759 2000-11-27 Kazu Hirata <kazu@hxi.com>
761 * aout-adobe.c: Fix formatting.
762 * coff64-rs6000.c: Likewise.
763 * coffgen.c: Likewise.
764 * cofflink.c: Likewise.
766 2000-11-27 Philip Blundell <pb@futuretv.com>
768 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
769 (obj_coff_strings_written): New accessor macro for above.
770 * libcoff.h: Regenerate.
771 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
773 * coffcode.h (coff_write_object_contents): No need to write out
774 the string table if it's already been done.
776 2000-11-22 Philip Blundell <pb@futuretv.com>
778 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
779 weak undefined symbols.
781 2000-11-24 Nick Clifton <nickc@redhat.com>
783 * archures.c (bfd_mach_arm_5TE): Define.
784 (bfd_mach_arm+XScale): Define.
785 * bfd-in2.h: Regenerate.
787 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
788 BFD_RELOC_ARM_PCREL_BLX.
790 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
791 XScale machine numbers.
793 * config.bfd (xscale-elf): Add target.
794 (xscale-coff): Add target.
796 * cpu-arm.c: Add xscale machine name.
797 Add v5t, v5te and XScale machine numbers.
799 2000-11-23 Kazu Hirata <kazu@hxi.com>
801 * aix386-core.c: Fix formatting.
803 2000-11-22 Jim Wilson <wilson@redhat.com>
805 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
806 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
807 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
808 (ins_imms_scaled): Initialize sign_bit at function entry.
809 (elf64_ia64_operands): Add missing initializers.
810 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
811 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
812 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
813 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
814 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
816 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
817 and free_extsyms at function entry.
818 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
819 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
820 (get_got): Delete unused local srel.
821 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
822 (elfNN_ia64_relocate_section): Delete unused local dynindx.
824 2000-11-21 Kazu Hirata <kazu@hxi.com>
826 * coff-a29k.c: Fix formatting.
827 * coff-h8500.c: Likewise.
828 * coff-i960.c: Likewise.
829 * coff-ppc.c: Likewise.
830 * coff-rs6000.c: Likewise.
831 * coff-stgo32.c: Likewise.
832 * coff-tic54x.c: Likewise.
833 * coff-w65.c: Likewise.
834 * cpu-h8500.c: Likewise.
835 * cpu-hppa.c: Likewise.
836 * cpu-ns32k.c: Likewise.
838 * ecofflink.c: Likewise.
840 2000-11-21 Nick Clifton <nickc@redhat.com>
842 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
843 remove possibility of infinite loop.
845 2000-11-20 Kazu Hirata <kazu@hxi.com>
847 * aix386-core.c: Fix formatting.
848 * aout-adobe.c: Likewise.
849 * aout-arm.c: Likewise.
850 * aout-encap.c: Likewise.
851 * aout-ns32k.c: Likewise.
852 * aout-target.h: Likewise.
853 * aout-tic30.c: Likewise.
854 * aoutf1.h: Likewise.
856 * archive.c: Likewise.
857 * bfd-in.h: Likewise.
858 * bfd-in2.h: Likewise.
862 2000-11-17 H.J. Lu <hjl@gnu.org>
864 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
865 pltoff entries for DT_INIT and DT_FINI.
866 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
867 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
870 2000-11-16 Richard Henderson <rth@redhat.com>
872 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
873 (allocate_dynrel_entries): Likewise.
874 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
875 (set_pltoff_entry): Likewise.
876 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
877 (elfNN_ia64_reloc_type_lookup): Likewise.
878 (elfNN_ia64_install_value): Likewise.
879 (elfNN_ia64_relocate_section): Likewise.
880 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
881 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
883 2000-11-16 Kazu Hirata <kazu@hxi.com>
885 * cpu-a29k.c: Fix formatting.
886 * cpu-alpha.c: Likewise.
887 * cpu-arm.c: Likewise.
888 * cpu-avr.c: Likewise.
889 * cpu-d10v.c: Likewise.
890 * cpu-h8500.c: Likewise.
891 * cpu-hppa.c: Likewise.
892 * cpu-i370.c: Likewise.
893 * cpu-i386.c: Likewise.
894 * cpu-i960.c: Likewise.
895 * cpu-ia64-opc.c: Likewise.
896 * cpu-ia64.c: Likewise.
897 * cpu-m32r.c: Likewise.
898 * cpu-m68hc11.c: Likewise.
899 * cpu-m68hc12.c: Likewise.
900 * cpu-m68k.c: Likewise.
901 * cpu-m88k.c: Likewise.
902 * cpu-mips.c: Likewise.
903 * cpu-ns32k.c: Likewise.
904 * cpu-pj.c: Likewise.
905 * cpu-powerpc.c: Likewise.
906 * cpu-sh.c: Likewise.
907 * cpu-sparc.c: Likewise.
908 * cpu-tic54x.c: Likewise.
909 * cpu-v850.c: Likewise.
910 * cpu-vax.c: Likewise.
911 * cpu-w65.c: Likewise.
912 * cpu-we32k.c: Likewise.
913 * cpu-z8k.c: Likewise.
914 * dwarf1.c: Likewise.
915 * dwarf2.c: Likewise.
917 2000-11-15 Kazu Hirata <kazu@hxi.com>
919 * coff-arm.c: Fix formatting.
920 * coff-ppc.c: Likewise.
921 * coff-rs6000.c: Likewise.
922 * coff-sh.c: Likewise.
923 * coff-sparc.c: Likewise.
924 * coff-tic30.c: Likewise.
925 * coff-tic54x.c: Likewise.
926 * coff-tic80.c: Likewise.
927 * coff-w65.c: Likewise.
928 * coff-we32k.c: Likewise.
929 * coff-z8k.c: Likewise.
931 2000-11-15 Richard Henderson <rth@redhat.com>
933 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
934 section with the same ALLOC|LOAD flags as the source section.
936 2000-11-14 Jakub Jelinek <jakub@redhat.com>
938 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
939 by STO_ALPHA constants.
941 2000-11-14 Kazu Hirata <kazu@hxi.com>
943 * coff-pmac.c: Fix formatting.
944 * coff-ppc.c: Likewise.
946 2000-11-13 H.J. Lu <hjl@gnu.org>
948 * elflink.h (elf_link_add_object_symbols): Also add indirect
949 symbols for common symbols with the default version.
951 2000-11-09 Philip Blundell <pb@futuretv.com>
953 * section.c (STD_SECTION): Set gc_mark flag.
955 2000-11-11 Kazu Hirata <kazu@hxi.com>
957 * coff-i960.c: Likewise.
958 * coff-m68k.c: Likewise.
959 * coff-m88k.c: Likewise.
960 * coff-mcore.c: Likewise.
961 * coff-mips.c: Likewise.
963 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
965 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
967 2000-11-10 Kazu Hirata <kazu@hxi.com>
969 * coff-h8300.c: Fix formatting.
970 * coff-h8500.c: Likewise.
971 * coff-i386.c: Likewise.
972 * coff-i860.c: Likewise.
973 * coff-i960.c: Likewise.
974 * coff-ia64.c: Likewise.
976 2000-11-09 Kazu Hirata <kazu@hxi.com>
978 * archive.c: Fix formatting.
979 * archures.c: Likewise.
981 2000-11-07 Richard Henderson <rth@redhat.com>
983 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
984 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
985 * section.c (bfd_set_section_contents): Call memcpy if
986 section->contents set and location not equal to contents plus offset.
988 2000-11-08 Kazu Hirata <kazu@hxi.com>
990 * bfd-in.h: Fix formatting.
991 * bfd-in2.h: Likewise.
993 * binary.c: Likewise.
995 * coff-a29k.c: Likewise.
996 * coff-alpha.c: Likewise.
997 * coff-apollo.c: Likewise.
998 * coff-aux.c: Likewise.
1000 2000-11-07 Kazu Hirata <kazu@hxi.com>
1002 * aix386-core.c: Fix formatting.
1003 * aoutf1.h: Likewise.
1004 * aoutx.h: Likewise.
1005 * archures.c: Likewise.
1006 * armnetbsd.c: Likewise.
1008 2000-11-07 Alan Modra <alan@linuxcare.com.au>
1010 * coff-h8300.c (special): Adjust reloc address.
1012 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1014 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1015 to differentiate elf32 and elf64 on ia64.
1016 * bfd-in2.h: Regenerate.
1017 * config.bfd: Add target for "ia64*-*-hpux*".
1018 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1019 * configure: Regenerate.
1020 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1021 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1023 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1024 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1025 * Makefile.in: Regnerate.
1026 * elf64-ia64.c: Deleted.
1027 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1029 2000-11-06 Kazu Hirata <kazu@hxi.com>
1031 * aout-adobe.c: Fix formatting.
1032 * aout-arm.c: Likewise.
1033 * aout-cris.c: Likewise.
1034 * aout-encap.c: Likewise.
1035 * aout-ns32k.c: Likewise.
1036 * aout-target.h: Likewise.
1037 * aout-tic30.c: Likewise.
1039 2000-11-05 Philip Blundell <philb@gnu.org>
1041 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1042 BFDs containing no sections to be merged, regardless of their flags.
1044 2000-11-04 Philip Blundell <philb@gnu.org>
1046 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1047 if a relocation for an undefined symbol also results in an
1050 2000-11-06 Christopher Faylor <cgf@cygnus.com>
1052 * config.bfd: Add support for Sun Chorus.
1054 2000-11-05 David O'Brien <obrien@FreeBSD.org>
1056 * configure.in: Recognize alpha-*-freebsd*.
1057 * configure: Regenerate.
1059 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
1061 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1062 (Chunk): New global variable set by a parameter in objcopy.c.
1063 (S3Forced): New global variable set by a parameter in
1065 (srec_set_section_contents): If S3Forced is true, always generate
1067 (srec_write_section): Use 'Chunk' to limit maximum length of S
1070 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1072 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1073 * Makefile.in: Regenerate.
1074 * bfd-in2.h: Regenerate.
1075 * po/bfd.pot: Regenerate.
1077 2000-10-31 Philip Blundell <philb@gnu.org>
1079 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1080 EF_SOFT_FLOAT if it is defined.
1082 2000-10-27 Philip Blundell <philb@gnu.org>
1084 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1085 attempts to mix PIC code with non-PIC, just mark the output as
1086 being position dependent.
1087 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1088 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1089 all mismatches, not just the first one.
1091 2000-10-25 Chris Demetriou <cgd@sibyte.com>
1093 * ieee.c (ieee_archive_p): Plug one of many possible
1094 memory leaks in error handling.
1096 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1098 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1099 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1101 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1102 sparc64_elf_object_p): Support v9b.
1103 * archures.c: Declare v8plusb and v9b machines.
1105 * cpu-sparc.c: Ditto.
1107 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1109 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1112 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1113 (SYMBOL_CALLS_LOCAL): New macro.
1114 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1115 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1116 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1117 (ppc_elf_relocate_section): Use flag variable to determine
1118 whether the relocation refers to a local symbol.
1119 Test whether a PLTREL24 reloc will produce a reloc by looking
1120 to see whether a PLT entry was made.
1122 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1124 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1125 entries that could serve as a definition for a weak symbol.
1127 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1129 From Ralf Baechle <ralf@gnu.org>
1131 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1132 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1133 against local symbols.
1134 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1136 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1138 * section.c (struct sec): Add kept_section.
1139 (struct bfd_comdat_info): Remove sec, we can use above.
1140 (STD_SECTION): Add initializer.
1141 (bfd_make_section_anyway): Init here too.
1143 * bfd-in2.h: Regenerate.
1145 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1147 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1148 fudge values for discarded link-once section symbols.
1150 * elf64-hppa.c: Include alloca-conf.h
1152 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1154 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1156 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1158 2000-10-10 Alan Modra <alan@linuxcare.com.au>
1160 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1162 2000-10-10 Tom Rix <trix@redhat.com>
1164 * section.c (bfd_make_section_anyway): Release newsect ptr when
1165 newsect->symbol fails to alloc. Use bfd_release instead of free.
1167 2000-10-09 Richard Henderson <rth@cygnus.com
1169 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1170 (elf64_ia64_unwind_entry_compare): New.
1171 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1173 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1175 * elflink.h (size_dynamic_sections): Don't create various tags if
1176 .dynstr is excluded from the link. Don't set first dynsym entry
1177 if dynsymcount is zero.
1178 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1179 .dynsym excluded from the link. Don't try to write any dynamic
1180 sections excluded from the link.
1182 * elf.c (swap_out_syms): Handle global section symbols.
1184 2000-10-05 DJ Delorie <dj@redhat.com>
1186 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1187 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1188 (coff_write_relocs): write extended reloc count
1189 (coff_write_object_contents): account for extended relocs
1191 2000-10-05 Jim Wilson <wilson@cygnus.com>
1193 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1195 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1196 elf_backend_section_flags function.
1197 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1199 (elf64_ia64_section_flags): New function containing flag conversion
1201 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1202 * elfxx-target.h (elf_backend_section_flags): Define.
1203 (elfNN_bed): Initialize elf_backend_section_flags field.
1205 2000-10-02 Alan Modra <alan@linuxcare.com.au>
1207 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1208 _bfd_elf32_gc_record_vtable. Correct a comment.
1210 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1212 From Ralf Baechle <ralf@gnu.org>
1214 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1215 produces binaries with got[1] = 0x80000001 to differenciate them
1216 for the dynamic linker from the broken binaries produced by old
1219 2000-09-30 Petr Sorfa <petrs@sco.com>
1221 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1222 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1223 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1224 * configure: Regenerate.
1226 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
1228 Define two bfd_targets for absence and presence of leading
1229 underscore on symbols. Make sure to only link same kind.
1230 * elf32-cris.c (cris_elf_object_p,
1231 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1232 cris_elf_merge_private_bfd_data): New.
1233 (elf_backend_object_p, elf_backend_final_write_processing,
1234 bfd_elf32_bfd_print_private_bfd_data,
1235 bfd_elf32_bfd_merge_private_bfd_data): Define.
1236 <Target vector definition>: Include elf32-target.h twice with
1237 different macro settings:
1238 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1239 bfd_elf32_us_cris_vec.
1240 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1241 (elf_symbol_leading_char): First as 0, then '_'.
1242 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1243 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1244 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1245 * configure: Regenerate.
1246 * targets.c: Declare bfd_elf32_us_cris_vec.
1247 * po/bfd.pot: Regenerate.
1249 2000-09-29 Momchil Velikov <velco@fadata.bg>
1251 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1252 R_ARM_THM_PC22 relocations.
1254 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1256 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1258 2000-09-29 Momchil Velikov <velco@fadata.bg>
1260 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1261 is has the SEC_HAS_CONTENTS flag set.
1263 2000-09-28 Vrjan Friberg <orjanf@axis.com>
1264 Hans-Peter Nilsson <hp@axis.com>
1266 * aout-cris.c (N_TXTADDR): Define.
1268 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1270 * som.c: Include alloca-conf.h.
1271 * Makefile.am: "make dep-am"
1272 * Makefile.in: Regenerate.
1274 2000-09-27 Alan Modra <alan@linuxcare.com.au>
1276 * elf32-hppa.c (plt_stub): New.
1277 (PLT_STUB_ENTRY): Define.
1278 (elf32_hppa_link_hash_table): Change multi_subspace to packed
1279 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1280 (elf32_hppa_link_hash_table_create): Init to suit.
1281 (elf32_hppa_check_relocs): Set has_12bit_branch and
1282 has_17bit_branch as appropriate.
1283 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1284 non-local functions.
1285 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1286 Add space for plt_stub as needed.
1287 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1288 functions at plt_stub.
1289 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1290 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1292 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1293 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
1294 of fixed size, and if negative, disable handling of input sections
1295 before stub section. Set up default stub group size depending
1296 on detected branch relocs.
1297 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1298 ensure different offsets from sym_value aren't rounded to
1299 different 2k blocks. Use lrsel and rrsel for other stubs too for
1300 consistency rather than necessity.
1301 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1302 (final_link_relocate): Likewise.
1303 (elf32_hppa_relocate_section): Likewise.
1305 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1306 (_bfd_elf_hppa_gen_reloc_type): Generate them.
1307 (elf_hppa_final_link_relocate): Handle them.
1308 (elf_hppa_relocate_insn): Likewise.
1309 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1311 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
1313 * elfcode.h (elf_object_p): Preserve and clear abfd section
1314 information. Restore at error.
1316 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1318 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1319 is empty, make sure that its rva also 0. NT loader dislikes
1322 2000-09-26 Steve Ellcey <sje@cup.hp.com>
1324 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1327 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1329 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1330 currently unused RELATIVE_DYNAMIC_RELOCS code.
1331 (hppa_discard_copies): Likewise.
1332 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1333 comments. Don't check non-code output sections for stub grouping.
1335 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1337 * section.c (bfd_get_unique_section_name): Return NULL if
1340 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1342 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1343 instruction sequence to actually work.
1344 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1347 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
1349 * elf32-sh.c (sh_elf_relocate_section): Use
1350 _bfd_final_link_relocate to apply the relocation against a section
1351 symbol, when doing relocatable links.
1353 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1355 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1357 (stub_hash_newfunc): Here too.
1358 (hppa_add_stub): And here.
1359 (elf32_hppa_link_hash_table): Remove stub_section_created,
1360 reloc_section_created, first_init_sec and first_fini_sec. Add
1362 (elf32_hppa_link_hash_table_create): Init to suit.
1363 (hppa_get_stub_entry): Add support for grouping stub sections.
1364 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
1365 section code. Index stub vars by section->id.
1366 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
1367 exit paths. Zap allocation of above removed vars. Refine
1370 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1371 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1372 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1373 rather than pointer to bfd_link_info.
1374 (hppa_add_stub): Likewise.
1375 (final_link_relocate): Likewise.
1377 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
1379 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1382 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
1384 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1385 ld/emulparams/shelf.sh.
1387 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1389 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1390 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1391 * bfd-in2.h: Regenerate.
1393 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
1395 * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1396 LITUSE relocations incorrectly if -relax is specified on the ld
1397 command line and the displacement field of the load or store
1398 instruction is non-zero. (Patch by paul.winalski@compaq.com)
1400 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1402 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1403 first_fini_sec here.
1404 (elf32_hppa_size_stubs): Instead correctly find the first .init
1405 and .fini section here.
1407 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
1409 * elf32-hppa.c (clobber_millicode_symbols): New function.
1410 (elf32_hppa_size_dynamic_sections): Call it.
1412 2000-09-14 Alan Modra <alan@linuxcare.com.au>
1414 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1415 packed. Add plabel, plt_abs packed booleans.
1416 (hppa_link_hash_newfunc): Init new fields.
1417 (PLABEL_PLT_ENTRY_SIZE): Define.
1418 (hppa_stub_name): Use size_t len vars.
1419 (hppa_add_stub): Likewise.
1420 (elf32_hppa_build_stubs): Likewise.
1421 (hppa_build_one_stub): Kill some compiler warnings.
1422 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1423 if dynamic linking. Munge the local plt offsets into
1424 local_got_refcounts. Set h->plabel for all global PLABELs. Use
1425 size_t len vars. Add assert for plabel addend.
1426 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1427 (elf32_hppa_hide_symbol): New function.
1428 (elf_backend_hide_symbol): Define.
1429 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1430 with h->plabel set. Don't make plt entries to have dynamic syms
1431 when they have been forced local. If plt entry is used by a
1432 plabel, make it PLABEL_PLT_ENTRY_SIZE.
1433 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1434 Set up .plt offsets for local syms.
1435 (elf32_hppa_relocate_section): Initialise plt entries for local
1436 syms. Leave weak undefined plabels zero. Make global plabel
1437 relocs against function symbol, and leave the addend zero.
1438 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1439 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1440 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
1441 relocs instead of SEGREL32 for dynamic got relocs.
1442 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1443 (elf_backend_got_header_size): Adjust.
1444 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
1446 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1447 (hppa_type_of_stub): Use it instead of #if 0
1448 (hppa_discard_copies): Use it here too.
1449 (elf32_hppa_size_dynamic_sections): And here.
1451 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1452 (elf32_hppa_link_hash_table_create): And here.
1453 (hppa_build_one_stub): And here. Instead keep track of stub
1454 offset using _raw_size.
1455 (elf32_hppa_size_stubs): Likewise.
1456 (elf32_hppa_build_stubs): Likewise.
1457 (hppa_size_one_stub): Likewise. Resize reloc section too.
1459 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
1460 first_fini_sec handling. Don't search for reloc section or set
1461 hplink->reloc_section_created here.
1462 (elf32_hppa_size_stubs): Instead search for reloc sections, and
1463 set reloc_section_created here.
1464 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
1465 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
1467 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
1469 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
1470 with `hplink->root.'.
1471 (elf32_hppa_check_relocs): Likewise.
1472 (elf32_hppa_gc_sweep_hook): Likewise.
1473 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1474 (hppa_handle_PIC_calls): Likewise.
1475 (elf32_hppa_size_dynamic_sections): Likewise.
1476 (elf32_hppa_set_gp): Likewise.
1477 (elf32_hppa_relocate_section): Likewise.
1478 (elf32_hppa_finish_dynamic_symbol): Likewise.
1479 (elf32_hppa_finish_dynamic_sections): Likewise.
1481 From David Huggins-Daines <dhd@linuxcare.com>
1482 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
1483 defined weak symbols in shared links.
1484 (final_link_relocate): Calls to defined weak symbols in shared
1485 objects must go via import stubs, as the target might not be known
1488 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1490 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
1491 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
1492 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
1493 the original entries with EMPTY_HOWTOs, and added new ones to fill
1495 (sh_elf_info_to_howto): Make sure the new gap isn't used.
1496 (sh_elf_relocate_section): Likewise.
1498 2000-09-13 Anders Norlander <anorland@acc.umu.se>
1500 * cpu-mips.c (arch_info_struct): Add mips:4K
1501 * bfd-in2.h (bfd_mach_mips4K): New define.
1502 * archures.c: Add bfd_mach_mips4K to comment.
1503 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
1504 E_MIPS_ARCH_2 for bfd_mach_mips4K.
1506 2000-09-13 Marco Franzen <marcof@thyron.com>
1508 * som.c (som_write_symbol_strings): Do not used fixed buffers,
1509 use size_t as a counter.
1510 (som_write_space_strings): Similarly.
1512 2000-09-12 Jason Eckhardt <jle@cygnus.com>
1514 * elf32-i860.c (elf32_i860_relocate_pc26): New function
1516 (elf32_i860_relocate_section): Invoke new function from here.
1518 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1520 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
1523 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1525 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
1526 target section name instead of dumping core when the target symbol is
1529 2000-09-09 Kazu Hirata <kazu@hxi.com>
1531 * riscix.c: Remove DEFUN.
1533 2000-09-08 Nick Clifton <nickc@redhat.com>
1535 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
1536 initialise flags in output bfd if the input bfd is the default
1537 architecture with the default flags.
1539 2000-09-08 Kazu Hirata <kazu@hxi.com>
1541 * archive.c: Fix formatting.
1542 * coff-arm.c: Likewise.
1543 * doc/chew.c: Likewise.
1545 2000-09-08 Alan Modra <alan@linuxcare.com.au>
1547 * section.c (bfd_get_unique_section_name): Put a dot before the
1550 2000-09-07 Kazu Hirata <kazu@hxi.com>
1552 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
1553 * elf.c: Fix formatting.
1555 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
1557 * config.bfd (sh-*-linux*): Added.
1558 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
1559 * targets.c: Declare them.
1560 * elf32-sh-lin.c: New file.
1561 * Makefile.am: Compile it.
1562 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
1563 * configure, Makefile.in: Rebuilt.
1565 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
1567 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
1568 pseduo-section when determining where the TOC ends.
1570 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
1571 output x_tvndx as it is only two bytes wide.
1573 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
1574 reloc is 26 or 32 bits wide.
1576 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
1577 for relocs that don't change anything. Also look at the full
1580 2000-09-06 Philip Blundell <philb@gnu.org>
1582 * config.bfd (arm*-*-uclinux*): New target.
1584 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1586 * configure: Rebuilt with new libtool.m4.
1588 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1590 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
1591 word for variable name.
1592 * bfd-in2.h: Regenerate.
1594 2000-09-05 Nick Clifton <nickc@redhat.com>
1596 * config.in: Regenerate.
1597 * libbfd.h: Regenerate.
1598 * po/bfd.pot: Regenerate.
1599 * doc/bfdint.texi: Remove CVS date string - it foils compares with
1602 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
1604 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
1606 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1608 Shared library and PIC support.
1609 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
1610 (GOT_ENTRY_SIZE): New.
1611 (ELF_DYNAMIC_INTERPRETER): New.
1612 (STUB_SUFFIX): Define.
1613 (LONG_BRANCH_PIC_IN_SHLIB): Define.
1614 (RELATIVE_DYNAMIC_RELOCS): Define.
1615 (enum elf32_hppa_stub_type): New.
1616 (struct elf32_hppa_stub_hash_entry): Rename offset to
1617 stub_offset. Add a number of new fields.
1618 (struct elf32_hppa_link_hash_entry): New.
1619 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
1621 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
1622 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
1623 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
1625 (hppa_link_hash_newfunc): New function.
1626 (elf32_hppa_link_hash_table_create): Use above function. Init new
1628 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
1629 instead of addend, and remove sym_name from args. Don't use
1630 symbol name for local syms, instead use sym index.
1631 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
1632 stub type rather than size. Pass in hash and handle import stub
1633 case. Also pass in reloc instead of offset so we can calculate
1634 PCREL22F and PCREL12F branches properly.
1635 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
1636 import and export stubs too.
1637 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
1638 import and export stub sizing.
1639 (elf32_hppa_check_relocs): New function.
1640 (elf32_hppa_adjust_dynamic_symbol): New function.
1641 (hppa_discard_copies): New function.
1642 (elf32_hppa_size_dynamic_sections): New function.
1643 (elf_backend_size_dynamic_sections): Define.
1644 (elf32_hppa_finish_dynamic_symbol): New function.
1645 (elf_backend_finish_dynamic_symbol): Define.
1646 (elf32_hppa_size_stubs): Stash params in link hash table, and move
1647 some local vars into the link hash table too. For shared links,
1648 trundle over function syms, generating export stubs. Handle
1649 PCREL22F branches. Break out stub creation code from here..
1650 (hppa_add_stub): .. to here. New function.
1651 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
1652 call the bfd linker. Use elf_gp to record global pointer.
1653 Calculate a value from sections if $global$ is missing.
1654 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
1655 (elf32_hppa_gc_mark_hook): New function.
1656 (elf_backend_gc_mark_hook): Define.
1657 (elf32_hppa_gc_sweep_hook): New function.
1658 (elf_backend_gc_sweep_hook): Define.
1659 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
1660 Add rel to args, and remove howto, input_bfd, offset, addend,
1661 sym_name as we can recalculate these locally. Handle calls to
1662 dynamic objects, extra PIC relocs, PCREL22F branches. Change
1663 handling of undefined weak syms. Check that stubs are in range.
1664 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
1665 message on hitting a DPREL21L reloc that needs fixing. Subtract
1666 off PC for PCREL14F. Break out code that does a stub lookup from
1668 (hppa_get_stub_entry): ..to here. New function.
1669 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
1670 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
1672 (elf32_hppa_finish_dynamic_sections): New function.
1673 (elf_backend_finish_dynamic_sections): Define.
1674 (elf_backend_final_write_processing) Define.
1675 (hppa_handle_PIC_calls): New function.
1676 (elf32_hppa_build_stubs): Call it. Pass link_info to
1677 hppa_build_one_stub.
1678 (elf32_hppa_create_dynamic_sections): New function
1679 to create .plt and .got then set .plt flags correctly.
1680 (elf_backend_create_dynamic_sections): Define.
1681 (elf32_hppa_object_p): New function.
1682 (elf_backend_object_p): Define.
1683 (elf32_hppa_elf_get_symbol_type): New function.
1684 (elf_backend_get_symbol_type): Define.
1685 (elf_backend_can_gc_sections): Define.
1686 (elf_backend_want_got_plt): Define.
1687 (elf_backend_plt_alignment): Set to 2.
1688 (elf_backend_plt_readonly): Define.
1689 (elf_backend_want_plt_sym): Define.
1690 (elf_backend_got_header_size): Reserve one entry.
1692 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
1693 (elf32_hppa_size_stubs): Pass in multi_subspace.
1694 (elf32_hppa_set_gp): Declare.
1696 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
1697 (bfd_get_unique_section_name): New function.
1698 * bfd_in2.h: Regenerate.
1700 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
1701 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
1704 From David Huggins-Daines <dhd@linuxcare.com>
1705 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
1706 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
1707 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
1708 been updated in finish_dynamic_symbol before modifying function
1711 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
1712 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
1713 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
1714 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
1715 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
1716 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
1717 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
1718 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
1720 From David Huggins-Daines <dhd@linuxcare.com>
1721 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
1722 style of local labels as well.
1724 2000-09-03 Philip Blundell <philb@gnu.org>
1726 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
1727 references to undefined symbols in debugging sections.
1729 2000-09-02 H.J. Lu <hjl@gnu.org>
1731 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1732 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
1733 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
1736 2000-09-02 Jason Eckhardt <jle@cygnus.com>
1738 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
1739 (elf32_i860_is_local_label_name): New function and prototype.
1741 2000-09-02 Nick Clifton <nickc@redhat.com>
1743 * configure.in: Increase version number to 2.10.91.
1744 * configure: Regenerate.
1745 * aclocal.m4: Regenerate.
1746 * config.in: Regenerate.
1747 * po/bfd.pot: Regenerate.
1749 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1751 * elf.c (_bfd_elf_make_section_from_shdr): Add
1752 .gnu.linkobce.wi. to the list of debug section names.
1754 2000-09-02 Nick Clifton <nickc@redhat.com>
1756 * dwarf2.c (find_debug_info): New function: Locate a section
1757 containing dwarf2 debug information.
1758 (bfd_dwarf2_find_nearest_line): Find all sections containing
1759 debug information and include them in the stash.
1761 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1763 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
1764 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
1765 (sh_reloc_map): Add new relocs.
1766 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
1767 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
1768 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
1769 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
1771 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
1772 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1773 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
1774 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
1775 New array constants.
1776 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
1778 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1779 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
1780 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
1781 elf_sh_plt_reloc_offset): Define.
1782 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
1783 elf_sh_link_hash_table): New structs.
1784 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
1785 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
1787 (elf_backend_create_dynamic_sections,
1788 bfd_elf32_bfd_link_hash_table_create,
1789 elf_backend_adjust_dynamic_symbol,
1790 elf_backend_size_dynamic_sections,
1791 elf_backend_finish_dynamic_symbol,
1792 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1793 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1794 elf_backend_got_header_size, elf_backend_plt_header_size):
1796 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1797 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
1799 * bfd-in2.h, libbfd.h: Rebuilt.
1801 2000-09-01 Alan Modra <alan@linuxcare.com.au>
1803 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
1806 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
1808 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
1809 not initialized, set them to indicate the SH1 instruction set.
1811 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1813 * acinclude.m4: Include libtool and gettext macros from the
1815 * aclocal.m4, configure: Rebuilt.
1817 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
1819 * elf.c: Eliminate references to __sparcv9 macro; replace with
1820 autoconf variables HAVE_PSINFO32_T etc.
1821 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
1822 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
1824 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
1825 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
1826 * aclocal.m4: Ditto.
1827 * configure: Regenerate.
1829 2000-08-27 Alan Modra <alan@linuxcare.com.au>
1831 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
1832 for any shared link, not just shared -Bsymbolic.
1833 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
1834 any shared link, and pass link info to it.
1835 (elf_i386_size_dynamic_sections): Update comment.
1836 (elf_i386_discard_copies): Modify to discard relocs for symbols
1837 that have been forced local.
1838 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
1839 that have been forced local.
1841 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
1843 * elflink.h (elf_link_add_object_symbols): Allow common
1844 symbols to have an alignment of 1 if explicitly requested, and
1845 not overridden by other definitions.
1847 2000-08-22 Doug Kwan <dkwan@transmeta.com>
1849 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
1850 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
1852 2000-08-22 H.J. Lu <hjl@gnu.org>
1854 * elf-bfd.h (elf_link_hash_table): Add runpath.
1856 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
1857 * bfd-in2.h: Rebuilt.
1859 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
1860 "runpath" field to NULL.
1861 (bfd_elf_get_runpath_list): New function.
1863 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
1866 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
1868 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
1869 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
1870 explicitly. Improve validation of r_type.
1872 2000-08-21 H.J. Lu <hjl@gnu.org>
1874 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
1875 dynamic allocated content space. Add a comment to remind us that
1876 one day this ought to be fixed.
1877 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1878 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
1879 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1881 2000-08-21 Jason Eckhardt <jle@cygnus.com>
1883 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
1884 field with the newly relocated value instead of adding it to the
1885 existing immediate field.
1886 (elf32_i860_relocate_splitn): Likewise.
1887 (elf32_i860_relocate_highadj): Likewise.
1889 2000-08-16 Jason Eckhardt <jle@cygnus.com>
1891 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
1892 was previously just a stub).
1894 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
1896 * elflink.c (_bfd_elf_create_got_section): Don't abort().
1898 (_bfd_elf_create_dynamic_sections): Likewise.
1900 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
1902 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
1903 for undefined symbols to be the beginning of the section.
1905 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
1906 four extra entries at the beginning of the .rela.plt section.
1907 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
1908 section to account for the four reserved entries in the .plt section.
1910 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
1912 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
1913 to the list of NOPs we recognize after a branch-and-link.
1914 Use the ori NOP when one is needed.
1916 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
1919 2000-08-14 Jim Wilson <wilson@cygnus.com>
1921 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
1922 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
1923 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
1926 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
1928 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
1930 2000-08-10 Jason Eckhardt <jle@cygnus.com>
1932 * elf32-i860.c (elf32_i860_relocate_section): New function.
1933 (i860_final_link_relocate): New function.
1934 (elf32_i860_relocate_splitn): New function.
1935 (elf32_i860_relocate_pc16): New function.
1936 (elf32_i860_relocate_highadj): New function.
1937 (elf32_i860_howto): Minor adjustments to some relocations.
1938 (elf_info_to_howto_rel): Define.
1939 (elf_backend_relocate_section): Define.
1941 2000-08-10 Nick Clifton <nickc@cygnus.com>
1943 * elf32-arm.h: Fix formatting.
1945 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
1947 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
1949 2000-08-08 Jason Eckhardt <jle@cygnus.com>
1951 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
1953 2000-08-07 Kazu Hirata <kazu@hxi.com>
1955 * ieee.c (ieee_write_debug_part): Rewrite a comment.
1956 * elf64-ia64.c: Fix a typo.
1958 2000-08-05 Jason Eckhardt <jle@cygnus.com>
1960 * elf32-i860 (elf32_i860_howto_table): New structure.
1961 (lookup_howto): New function.
1962 (elf32_i860_reloc_type_lookup): New function.
1963 (elf32_i860_info_to_howto_rela): New function.
1964 (elf_code_to_howto_index): New structure.
1965 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
1966 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
1967 elf32_i860_reloc_type_lookup.
1969 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
1971 * som.c (struct fixup_format): Constify `format'.
1972 (som_hppa_howto_table): Use SOM_HOWTO macro.
1973 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
1974 (som_bfd_reloc_type_lookup): Likewise.
1975 (compare_subspaces): Remove unused `count1', `count2'.
1976 (som_begin_writing): Remove unused `total_reloc_size'.
1977 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
1978 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
1979 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
1980 (som_find_nearest_line): Decorate unused parameter(s).
1981 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
1982 (som_bfd_link_split_section): Likewise.
1984 2000-08-03 Nick Clifton <nickc@cygnus.com>
1986 * section.c: Restore backed out code.
1987 * elf.c: Restore backed out code.
1988 (copy_private_bfd_data): Fix bug preventing stipped dynamic
1989 binaries from working.
1990 * bfd-in2.h: Regenerate.
1992 2000-08-03 H.J. Lu <hjl@gnu.org>
1994 * section.c: Back out the change made by Nick Clifton
1995 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
1997 * bfd-in2.h: Likewise.
2000 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
2002 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2004 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2006 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2007 * bfd-in2.h, libbfd.h: Regenerate.
2009 2000-07-31 Nick Clifton <nickc@cygnus.com>
2011 * section.c (struct sec): Add new boolean field 'segment_mark'.
2012 (STD_SECTION): Initialise new field to zero.
2014 * bfd-in2.h: Regenerate.
2016 * elf.c (copy_private_bfd_data): Reorganise section to segment
2017 mapping to cope with moved sections requiring new segments,
2018 and overlapping segments.
2019 (SEGMENT_END): New macro: Return the end address of a segment.
2020 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2021 contains a section by comparing their VMA addresses.
2022 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2023 contains a section by comparing their LMA addresses.
2024 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2025 section should be included in a segment.
2026 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2027 follows another in memory.
2028 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2031 2000-07-22 Jason Eckhardt <jle@cygnus.com>
2033 * cpu-i860.c: Added comments.
2035 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2036 bfd_elf32_i860_little_vec.
2037 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2038 (ELF_MAXPAGESIZE): Changed to 4096.
2040 * targets.c (bfd_elf32_i860_little_vec): Declaration of
2042 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
2044 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2045 config for little endian elf32 i860.
2046 (targ_defvec): Define for the new config above
2047 as "bfd_elf32_i860_little_vec".
2048 (targ_selvecs): Define for the new config above
2049 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2051 * configure.in (bfd_elf32_i860_little_vec): Added recognition
2054 * configure: Regenerated.
2056 2000-07-27 H.J. Lu <hjl@gnu.org>
2058 * elflink.h (elf_merge_symbol): Take one more argument,
2059 dt_needed, to indicate if the symbol comes from a DT_NEEDED
2060 entry. Don't overide the existing weak definition if dt_needed
2062 (elf_link_add_object_symbols): Pass dt_needed to
2063 elf_merge_symbol ().
2065 2000-07-27 Nick Clifton <nickc@cygnus.com>
2067 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2070 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
2072 * configure.host (*-*-aix*): AIX has 'long long' always.
2074 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2075 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2076 (xcoff_write_archive_contents_big): Don't update the offset
2077 of the symbol table, xcoff_write_armap will do it.
2079 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
2081 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2082 of dynobj for SGI_COMPAT checks.
2084 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2086 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2087 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2088 * bfd-in2.h: Regenerate.
2090 2000-07-21 Nick Clifton <nickc@cygnus.com>
2092 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2093 range symbol indices in relocs and issue an error message.
2095 2000-07-20 H.J. Lu <hjl@gnu.org>
2097 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2098 info->new_dtags when setting DT_FLAGS_1. It will only be set
2099 by the new linker options. It shouldn't break anything.
2101 2000-07-20 H.J. Lu <hjl@gnu.org>
2103 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2104 only if info->new_dtags is true.
2106 2000-07-20 H.J. Lu <hjl@gnu.org>
2108 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2109 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2111 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2113 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2114 (ALL_MACHINES_CFILES): Add cpu-cris.c.
2115 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2116 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2117 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2118 * Makefile.in: Rebuild.
2119 * aclocal.m4: Rebuild.
2120 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2121 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2122 (bfd_cris_arch): Declare.
2123 (bfd_archures_list): Add bfd_cris_arch.
2124 * bfd-in2.h: Rebuild.
2125 * config.bfd: (cris-*-*): New target.
2126 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2127 * configure: Rebuild.
2128 * elf.c (prep_headers): Add bfd_arch_cris.
2129 * libbfd.h: Rebuild.
2130 * libaout.h (enum machine_type): Add M_CRIS.
2131 * reloc.c: Add CRIS relocations.
2132 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2133 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2134 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2135 * po/POTFILES.in, po/bfd.pot: Regenerate.
2137 2000-07-19 H.J. Lu <hjl@gnu.org>
2139 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2140 DF_TEXTREL if DT_TEXTREL is set.
2141 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2142 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2143 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2144 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2145 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2146 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2147 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2148 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2149 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2150 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2152 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2153 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2155 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2157 2000-07-19 H.J. Lu <hjl@gnu.org>
2159 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2160 * bfd-in2.h: Rebuild.
2162 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2163 (elf_dt_soname): New.
2165 * elf.c (bfd_elf_set_dt_needed_soname): New.
2167 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2168 entry if the shared object loaded by DT_NEEDED is used to
2169 resolve the reference in a regular object.
2171 2000-07-19 H.J. Lu <hjl@gnu.org>
2173 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2174 DT_DEPAUDIT and DT_AUDIT as strings.
2176 2000-07-19 Nick Clifton <nickc@cygnus.com>
2178 * format.c: Fix formatting.
2180 2000-07-19 H.J. Lu <hjl@gnu.org>
2182 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2184 2000-07-19 H.J. Lu <hjl@gnu.org>
2186 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2187 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2188 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2189 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2190 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2191 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2192 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2194 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
2196 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2197 renamed functions from here...
2198 (assign_section_numbers): Use renamed functions.
2199 (prep_headers): Use renamed functions.
2201 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2202 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2203 * bfd-in2.h: Regenerate.
2205 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
2207 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2208 parenthesis in if statement.
2210 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
2212 Enable the support for Traditional MIPS.
2213 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2214 return ict_none appropriately for traditional mips targets.
2215 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2216 (STUB_MOVE): Conditionalize for traditonal mips.
2217 (STUB_LI16): Likewise.
2218 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2219 room for RTPROC header.
2220 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2221 the permission for the PT_DYNAMIC as read, write and execute.
2222 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2223 for traditonal mips.
2224 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2225 _DYNAMIC_LINKING for traditonal mips.
2226 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2227 in case of traditonal mips.
2228 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2229 entry is required. For a function if PLT is not required then set the
2230 corresponding hash table entry to 0.
2231 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2233 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2234 shared object set the value to 0.
2235 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2236 _DYNAMIC_LINKING for traditonal mips.
2237 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2238 for traditonal mips.
2240 2000-07-15 H.J. Lu <hjl@gnu.org>
2242 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2244 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2246 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2247 out a structure that is BFD_IN_MEMORY.
2249 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2251 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2252 bfd pointer. Print section id instead of bfd pointer for local
2253 syms. Prefix addend with `+' for global syms as well as local.
2254 Correct calculation of name component lengths.
2255 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2257 From David Huggins-Daines <dhd@linuxcare.com>
2258 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2259 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2260 (elf64_hppa_modify_segment_map): Likewise.
2262 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2264 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2265 addresses to be "naturally" sign extended. Return -1 if unknown.
2266 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2267 * bfd-in2.h: Regenerate.
2269 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2271 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2272 and ECOF_SIGNED_64 to list ways to extract an offset.
2273 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2274 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2276 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2277 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2279 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2281 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2282 bfd_get_start_address.
2283 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2284 (elf_swap_ehdr_out): Ditto.
2286 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
2288 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2289 compatibility with older binutils.
2291 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2293 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2294 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2296 From Ryan Bradetich <rbradetich@uswest.net>
2297 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2298 (parse_line_table): Ditto.
2299 (_bfd_dwarf1_find_nearest_line): Ditto.
2300 * syms.c (cmpindexentry): Remove extra `*' from params.
2302 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
2304 * elf32-mips.c (sort_dynamic_relocs): New Function.
2305 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2306 via qsort to sort the dynamic relocations in increasing r_symndx
2309 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2311 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2312 ATTRIBUTE_UNUSED to unused args.
2313 (get_opd): Likewise.
2314 (get_plt): Likewise.
2315 (get_dlt): Likewise.
2316 (get_stub): Likewise.
2317 (elf64_hppa_adjust_dynamic_symbol): Likewise.
2318 (elf64_hppa_link_output_symbol_hook): Likewise.
2319 (elf64_hppa_check_relocs): Delete unused var.
2320 (elf64_hppa_size_dynamic_sections): Likewise.
2321 (elf64_hppa_finalize_opd): Likewise.
2322 (elf64_hppa_finalize_dynreloc): Likewise.
2323 (elf64_hppa_modify_segment_map): Likewise.
2324 (elf64_hppa_finish_dynamic_sections): Likewise.
2326 * elf-hppa.h (elf_hppa_final_write_processing): Add
2327 ATTRIBUTE_UNUSED to unused args.
2328 (elf_hppa_final_link_relocate): Likewise.
2329 (elf_hppa_record_segment_addrs): Add paretheses.
2330 (elf_hppa_relocate_section): Constify dyn_name.
2332 From David Huggins-Daines <dhd@linuxcare.com>
2333 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2334 rearrange case statement so that it gets preferred to 32-bit ones.
2336 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2337 asection->id instead of address of asection structure.
2338 (elf32_hppa_size_stubs): Likewise.
2340 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2341 for .init* and .fini*.
2343 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2344 and addends used in stub names to 32 bits.
2345 (elf32_hppa_size_stubs): Likewise.
2347 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2348 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
2349 not bfd_put_64. Fix minor comment typo and formatting.
2351 Changes to create multiple linker stubs, positioned immediately
2352 before the section where they are required.
2353 * elf32-hppa.c: Don't include hppa_stubs.h.
2354 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2355 (elf32_hppa_stub_hash_table): Delete.
2356 (elf32_hppa_link_hash_entry): Delete.
2357 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2358 stub_hash_table, and store the struct here rather than a pointer.
2359 Delete output_symbol_count. Add offset array. Change
2360 global_value to a bfd_vma.
2361 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2362 (elf32_hppa_stub_hash_traverse): Delete.
2363 (elf32_hppa_name_of_stub): Delete.
2364 (elf32_hppa_link_hash_lookup): Delete.
2365 (elf32_hppa_link_hash_traverse): Delete.
2366 (elf32_hppa_stub_hash_table_init): Delete.
2367 (elf32_hppa_size_of_stub): Pass input section and offset rather
2368 than location and calculate location here. Don't pass name as all
2369 stubs are now the same size.
2370 (elf32_hppa_stub_hash_newfunc): Init new fields.
2371 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2373 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2374 comparing against ints. Rewrite stub handling code.
2375 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2376 Case enums to int before comparing against ints. Remove
2377 bfd_reloc_dangerous case.
2378 (elf32_hppa_build_one_stub): Rewrite.
2379 (elf32_hppa_size_one_stub): New function.
2380 (elf32_hppa_build_stubs): Rewrite.
2381 (elf32_hppa_size_stubs): Pass in linker call-back functions.
2382 Rewrite stub-handling specific code.
2384 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2386 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2388 * hppa_stubs.h: Delete.
2389 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2390 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2391 * Makefile.in: Regenerate.
2393 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2396 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2398 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2399 and section name for bfd_reloc_notsupported error message.
2400 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2401 bfd_reloc_notsupported.
2402 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2404 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2405 undefined weak symbols for all relocs.
2406 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2407 offsets are relative to one past the delay slot.
2408 (elf32_hppa_size_stubs): Account for reloc addend when calculating
2409 branch destination. Put addend into stub name too.
2410 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2411 adjust by 8 when deciding whether a linker stub is needed. Put
2412 addend into stub name as for above.
2414 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2415 various args and vars.
2416 (elf32_hppa_bfd_final_link_relocate): Here too.
2417 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
2418 inner block var to avoid shadowing.
2420 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
2422 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2423 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2424 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
2426 * libhppa.h: Change practically all unsigned ints to plain ints.
2427 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
2430 From Ryan Bradetich <rbradetich@uswest.net>
2431 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
2432 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2434 From David Huggins-Daines <dhd@linuxcare.com>
2435 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2436 to the new OP_* ones.
2438 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2439 error exit. Bail out earlier on plabel relocs that we aren't
2440 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
2441 string, and then don't free our copy.
2442 (elf32_hppa_build_one_stub): Make insn unsigned int.
2444 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2445 available with BL, not BE and BLE.
2447 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2448 code for elf arg relocs.
2449 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2450 argument with elf_link_hash_entry h. Handle undefined weak
2451 symbols. Move $global$ lookup from here...
2452 (elf32_hppa_relocate_section): ...to here. Return correct error
2453 message for non-handled relocs.
2454 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
2455 wrong test was -0x3ffff to +0x40000.
2457 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2458 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
2459 Handle them as such.
2460 (elf_hppa_relocate_insn): Fix a typo.
2462 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
2463 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2464 assemble_17, assemble_21): Delete.
2465 Supply defines for all 64 possible opcodes.
2466 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
2467 formats. Handle COMICLR.
2468 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
2471 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
2472 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
2473 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
2475 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
2476 the local syms - did this code get deleted accidentally? Ignore
2477 undefined and undefweak syms.
2479 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
2480 block. Use it instead of elf64_hppa_hash_table (info).
2481 (elf_hppa_final_link_relocate): Use hppa_info instead of
2482 elf64_hppa_hash_table (info).
2484 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2485 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2486 (hppa_rebuild_insn): Mask immediate bits here instead.
2487 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2489 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2491 * section.c (struct sec): Add id field. Tidy comment formatting.
2492 (bfd_make_section_anyway): Set id.
2493 (STD_SECTION): Init id too.
2494 Change CONST to const throughout.
2495 * archures.c (bfd_arch_info): Tidy comment.
2496 (bfd_arch_list): Change a CONST to const.
2497 * libbfd-in.h: Tidy comments and replace CONST with const.
2498 * elf-bfd.h: Likewise.
2499 * libbfd.h: Regenerate.
2500 * bfd-in2.h: Regenerate.
2501 * libcoff.h: Regenerate.
2503 2000-07-07 DJ Delorie <dj@redhat.com>
2505 * archive.c (_bfd_write_archive_contents): Add an informative
2508 2000-07-06 Kazu Hirata <kazu@hxi.com>
2510 * srec.c: Fix formatting.
2512 2000-06-05 DJ Delorie <dj@redhat.com>
2516 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
2518 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
2519 value of PC-relative offsets.
2521 2000-07-03 Jim Wilson <wilson@cygnus.com>
2523 * elf64-alpha.c (alpha_elf_size_info): New.
2524 (elf_backend_size_info): Define to alpha_elf_size_info.
2525 * elfcode.h (elf_size_info): Change hash bucket size to 4.
2527 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
2529 * elf32-mips.c: Include elf32-target.h again for the traditional
2532 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
2534 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
2535 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
2536 (avr_info_to_howto_rela): Likewise.
2537 (elf32_avr_gc_mark_hook): Likewise.
2538 (elf32_avr_gc_sweep_hook): Likewise.
2539 (elf32_avr_relocate_section): Likewise.
2541 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
2543 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
2544 an external symbol for a non-shared, non-relocatable link.
2546 2000-07-03 Nick Clifton <nickc@redhat.com>
2548 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2549 is an external symbol.
2550 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2553 2000-07-03 Kazu Hirata <kazu@hxi.com>
2555 * reloc16.c: Fix formatting.
2557 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2559 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
2560 to add a new target for traditional mips i.e
2561 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
2562 * configure.in: Likewise.
2563 * configure: Rebuild.
2564 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
2566 (bfd_elf32_tradlittlemips_vec): Likewise.
2567 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
2568 to see that elfNN_bed does not get redefined even if the target file
2569 is included twice for a chip. See elf32-mips.c.
2571 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2573 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2574 (CLEANFILES): Add DEPA.
2575 * Makefile.in: Regenerate.
2577 2000-06-30 DJ Delorie <dj@cygnus.com>
2579 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
2580 can't assume the PE header is at 0x80.
2582 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2584 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2586 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
2588 * go32stub.h: Update stub.
2590 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2592 * archures.c (bfd_mach_avr5): Define.
2593 * bfd-in2.h (bfd_mach_avr5): Define.
2594 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
2595 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
2596 (compatible): Update comment. Add missing test.
2597 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
2598 for avr2 and avr4. Simplify 8K wrap code.
2599 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
2600 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2602 2000-06-26 Kazu Hirata <kazu@hxi.com>
2604 * coff-h8300.c: Fix formatting.
2605 * cpu-h8300.c: Likewise.
2607 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
2609 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
2610 for local symbols whose names are unknown.
2612 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2614 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2616 * Makefile.in: Regenerate.
2617 * doc/Makefile.in: Regenerate.
2619 2000-06-20 H.J. Lu <hjl@gnu.org>
2621 * Makefile.am: Rebuild dependency.
2622 * Makefile.in: Rebuild.
2624 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2626 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
2627 (elf_backend_copy_indirect_symbol): Map to the new function.
2629 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2631 * archive.c (normalize): Correct pointer comparison when checking
2633 (bfd_bsd_truncate_arname): Likewise.
2634 (bfd_gnu_truncate_arname): Likewise.
2636 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
2638 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
2639 sections elf_{text,data}_{section,symbol}.
2640 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
2641 (_bfd_mips_elf_hide_symbol): New function.
2642 (elf_backend_hide_symbol): Map to the new function.
2643 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
2644 definitions of mips_elf_{text,data}_{section,symbol}.
2645 (mips_elf_local_relocation_p): Try to find the direct symbol
2646 based on new check_forced argument.
2647 (mips_elf_calculate_relocation): Use new version of
2648 mips_elf_local_relocation_p.
2649 (mips_elf_relocate_section): Likewise.
2650 (_bfd_mips_elf_relocate_section): Likewise.
2651 (mips_elf_sort_hash_table): Only assert that have enough GOT
2653 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
2654 entry if the relocation based on the new external argument.
2655 (mips_elf_create_dynamic_relocation): Assert that we have a
2656 section contents allocated where we can swap out the dynamic
2658 (mips_elf_calculate_relocation): Find the real hash-table entry
2659 correctly by using h->root.root.type. Only create a dynamic
2660 relocation entry if the symbol is defined in a shared library.
2661 Create an external GOT entry for the GOT16 relocation if the
2662 symbol was forced local.
2663 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
2664 dynamic index if the symbol was forced local.
2666 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2668 * elf32-mips.c: Fix typos in comments.
2670 2000-06-19 Mark Kettenis <kettenis@gnu.org>
2672 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2675 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2677 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
2678 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
2679 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
2680 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
2681 (bfd_elf32_m68hc11_vec): Likewise.
2682 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
2683 Supports 68hc11 & 68hc12 at the same time.
2684 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
2686 (bfd_elf32_m68hc11_vec): Likewise.
2687 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
2688 * archures.c (bfd_m68hc12_arch): Define and register in global list
2689 (bfd_m68hc11_arch): Likewise.
2690 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
2691 BFD_RELOC_M68HC11_3B): Define.
2692 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
2693 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2695 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
2697 * elf_bfd.h (struct elf_backend_data): Add info argument to
2698 elf_backend_hide_symbol.
2699 (_bfd_elf_link_hash_hide_symbol): Likewise.
2700 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
2701 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
2702 * elflink.h (elf_link_add_object_symbols): Likewise.
2703 (elf_link_assign_sym_version): Likewise.
2705 2000-06-18 H.J. Lu <hjl@gnu.org>
2707 * coff-i386.c (coff_i386_reloc): Don't return in case of
2708 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
2709 Compensate PE relocations when linking with non-PE object
2710 files to generate a non-PE executable.
2712 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
2714 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
2715 GOT entries if we're doing a static link or -Bsymbolic link.
2717 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
2719 * elflink.h (elf_link_adjust_relocs): Check for and call backend
2720 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
2722 (elf_link_output_relocs): Likewise.
2723 (elf_reloc_link_order): Likewise.
2725 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2727 * archures.c (enum bfd_architecture): #define constants for
2728 PowerPc and RS6000 machine numbers.
2729 * bfd-in2.h: Regenerate.
2730 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
2731 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
2732 and RS6000 machine numbers using #defined constants from
2734 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
2735 machine numbers using #defined constants from archures.c. Add
2736 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
2737 64-bit words in 620 entry.
2738 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
2740 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
2742 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
2744 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
2745 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
2746 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
2748 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2750 * bfd-in.h (bfd_family_coff): Define.
2751 * bfd-in2.h: Regenerate.
2752 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
2753 coff_find_nearest_line): Check COFFness using bfd_family_coff()
2754 instead of bfd_target_coff_flavour.
2755 * cofflink.c (_bfd_coff_final_link): Likewise.
2756 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
2757 exclude XCOFF files.
2758 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
2760 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
2761 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
2762 * xcofflink.c (XCOFF_XVECP): Delete.
2763 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
2764 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
2765 bfd_xcoff_record_link_assignment,
2766 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
2767 check for bfd_target_xcoff_flavour.
2769 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2771 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
2773 (read_hdr): New function.
2774 (rs6000coff_core_p): Store mstsave or __context64 struct instead
2775 of trying to extract individual registers. Set abfd->arch_info
2776 to match the architecture that created the core file.
2777 (rs6000coff_get_section_contents): Delete.
2778 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
2780 2000-06-14 H.J. Lu <hjl@gnu.org>
2782 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
2785 2000-06-13 H.J. Lu <hjl@gnu.org>
2787 * configure: Regenerate.
2789 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
2791 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
2794 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2796 * configure.in (VERSION): Update to show this is the CVS mainline.
2798 2000-06-07 Alan Modra <alan@linuxcare.com.au>
2800 * elf32-d10v.c: Include elf/d10v.h
2801 (enum reloc_type): Delete.
2802 * elf32-d30v.c: Include elf/d30v.h
2803 (enum reloc_type): Delete.
2805 * Makefile.am: Run "make dep-am" to regenerate dependencies.
2806 * Makefile.in: Regenerate.
2808 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
2809 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
2810 move HOWTOs into elf_howto_table.
2811 (R_386_standard, R_386_ext_offset): Define.
2812 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
2813 (elf_i386_reloc_type_lookup): Modify calculation of index into
2814 elf_howto_table since we've removed the padding.
2815 (elf_i386_info_to_howto_rel): Likewise.
2816 (elf_i386_relocate_section): Likewise.
2818 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
2820 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
2822 2000-06-05 H.J. Lu <hjl@gnu.org>
2824 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
2825 an error when seeing an undefined symbol with hidden/internal
2826 attribute. It is handled in *_relocate_section ().
2828 2000-06-05 H.J. Lu <hjl@gnu.org>
2830 * elflink.h (elf_fix_symbol_flags): Follow the link for the
2831 indirect symbol for the ELF_LINK_NON_ELF bit.
2832 (elf_link_output_extsym): Don't output the indirect symbol even
2833 if the ELF_LINK_NON_ELF bit is set.
2835 2000-06-01 J.T. Conklin <jtc@redback.com>
2837 * config.bfd (i[3456]86-*-netbsdelf*): New target.
2838 (i[3456]86-*-netbsdaout*): New target.
2839 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
2840 (i[3456]86-*-openbsd*): Likewise.
2842 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
2844 * trad-core.c: From hpux-core.c, include <dirent.h> or
2845 <sys/ndir.h> when possible.
2847 2000-05-31 Nick Clifton <nickc@cygnus.com>
2849 * opintl.h (_(String)): Explain why dgettext is used instead
2852 2000-05-31 Ulrich Drepper <drepper@redhat.com>
2854 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
2855 definitions. We must not assume they are sorted in the file
2856 according to their index numbers.
2858 2000-05-31 Alan Modra <alan@linuxcare.com.au>
2860 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
2861 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
2862 R_PARISC_DIR17F are for absolute branches; Handle them as such.
2864 2000-05-30 Nick Clifton <nickc@cygnus.com>
2866 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
2867 80960CA, 80960MC as valid machine names.
2869 2000-05-30 H.J. Lu <hjl@gnu.org>
2871 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
2872 visibility bits if the symbol is undefined. Correctly handle
2873 weak undefined symbols with hidden and internal attributes.
2875 * elflink.h (elf_link_add_object_symbols): Always turn the
2876 symbol into local if it has the hidden or internal attribute.
2878 2000-05-29 Philip Blundell <philb@gnu.org>
2880 * ppcboot.c: Add packed attribute if compiling with GCC.
2882 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
2884 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
2886 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
2888 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
2889 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
2890 corefile on a 64-bit (Sparc Solaris) host. Also clean up
2893 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2895 * Makefile.am: Update dependencies with "make dep-am"
2896 * Makefile.in: Regenerate.
2898 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
2899 bindtextdomain): Replace defines with those from intl/libgettext.h
2900 to quieten gcc warnings.
2902 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2904 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
2906 * archive.c (normalize, bfd_bsd_truncate_arname,
2907 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
2908 file names with backslashes.
2910 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
2913 * sysdep.h: Include filenames.h.
2915 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2917 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
2919 2000-05-26 Jakub Jelinek <jakub@redhat.com>
2921 * elf64-sparc.c (sparc64_elf_relax_section): New.
2922 (sparc64_elf_relocate_section): Optimize tail call into branch always
2924 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2925 (elf32_sparc_relax_section): New.
2927 2000-05-26 Jakub Jelinek <jakub@redhat.com>
2929 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
2930 Remove unusued variables.
2931 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
2932 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
2933 previous fix, so that shared libs really don't influence targets
2934 extension mask and memory model.
2936 2000-05-23 H.J. Lu <hjl@gnu.org>
2938 * elf64-alpha.c (elf64_alpha_relocate_section): Check
2939 h->root.other not h->other.
2940 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2942 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
2944 2000-05-23 H.J. Lu <hjl@gnu.org>
2946 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
2947 undefined symbol with the non-default visibility attributes.
2948 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
2949 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
2950 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2951 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2952 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
2953 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2954 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2955 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2956 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
2957 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
2958 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2960 2000-05-22 Richard Henderson <rth@cygnus.com>
2962 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
2963 PCREL22, PCREL64I. Zero size of special relocs.
2964 (elf64_ia64_reloc_type_lookup): Likewise.
2965 (USE_BRL, oor_brl, oor_ip): New.
2966 (elf64_ia64_relax_section): New.
2967 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
2968 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
2969 (elf64_ia64_relocate_section): Likewise.
2970 (bfd_elf64_bfd_relax_section): New.
2971 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
2972 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
2973 * bfd-in2.h, libbfd.h: Regenerate.
2975 2000-05-22 Nick Clifton <nickc@cygnus.com>
2977 * configure.in : Add peigen.lo to MIPS PE targets.
2978 * configure: Regenerate.
2980 2000-05-22 Momchil Velikov <velco@fadata.bg>
2982 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
2983 only if it is known for both input and output bfds. Separate
2984 error message strings as in some languages, it may be necessary
2985 to change more than one place in the string to change between
2988 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
2989 endianess checks, call _bfd_generic_verify_endian_match() instead.
2991 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
2993 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
2995 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
2996 endianess before checking bfd flavours.
2998 2000-05-22 H.J. Lu <hjl@gnu.org>
3000 * elflink.h (elf_link_output_extsym): Clear the visibility
3001 field for symbols not defined locally.
3003 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3005 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3006 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3007 (hppa_rebuild_insn): Mask immediate bits here instead.
3008 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3010 2000-05-18 Momchil Velikov <velco@fadata.bg>
3012 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3013 relocs for an executable, ensure that they are virtual addresses.
3015 2000-05-18 Jeffrey A Law (law@cygnus.com)
3017 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3019 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3020 Rick Gorton <gorton@scrugs.lkg.dec.com>
3022 * elflink.h: Add emitrelocations support: when enabled, relocation
3023 information and relocation sections are put into final output
3024 executables. If the emitrelocations flag is set, do the following:
3025 (elf_bfd_final_link): Emit relocation sections.
3026 (elf_link_input_bfd): Compute relocation section contents.
3027 (elf_gc_sections): Don't clean relocation sections.
3029 2000-05-16 Catherine Moore <clm@cygnus.com>
3031 * som.c (som_decode_symclass): Recognize weak symbols.
3033 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
3035 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3036 read idata section only from dataoff.
3037 (pe_print_edata): Correctly check for valid eat_member.
3039 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
3041 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3043 2000-05-14 Philip Blundell <philb@gnu.org>
3045 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3047 2000-05-12 Alan Modra <alan@linuxcare.com.au>
3049 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3051 * peigen.c (pe_print_idata): Look for .idata section and print
3052 info even if data directory has zero entries. Read idata section
3053 starting from dataoff, and adjust all data offsets to suit. Cast
3054 all bfd_vma vars to unsigned long before passing to fprintf.
3055 * peigen.c (pe_print_edata): Similarly, look for .edata section
3056 and print info even if data directory has zero entries. Cast
3057 all bfd_vma vars to unsigned long before passing to fprintf.
3059 From Szabolcs Szakacsits <szaka@F-Secure.com>
3060 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
3061 directory size which may be bogus.
3062 * peigen.c (pe_print_edata): Similarly.
3064 2000-05-09 Alan Modra <alan@linuxcare.com.au>
3066 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3068 (copy_private_bfd_data): Allow for space possibly taken up by elf
3069 headers when calculating segment physical address from lma.
3071 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3073 * versados.c (versados_scan): Init stringlen and pass_2_done.
3075 * trad-core.c (trad_unix_core_file_p): Return
3076 bfd_error_wrong_format rather than bfd_error_file_truncated.
3078 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3079 add_data_entry. DataDirectory virtual address is relative.
3080 (pe_print_idata): Account for relative DataDirectory virtual
3081 addresses. Don't trash datasize inside POWERPC_LE_PE code.
3082 (pe_print_edata): Similarly.
3084 From Szabolcs Szakacsits <szaka@F-Secure.com>
3085 * peigen.c (dir_names): Add Delay Import Directory.
3086 (pe_print_idata): Always search for bfd section containing
3087 idata address rather than looking up section name. Print this
3088 section name rather than .idata.
3089 (pe_print_edata): Similarly. Also print some fields as %08lx.
3090 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3093 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3095 * xcoff.h: Rename to xcoff-target.h
3096 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3097 * coff-rs6000.c: Ditto.
3098 * coff64-rs6000.c: Ditto.
3099 * coff-pmac.c: Ditto.
3100 * Makefile.in: Regenerate.
3102 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3104 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3105 Change U802TOC64MAGIC to U803XTOCMAGIC.
3107 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
3109 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3110 * bfd-in.h: Prototype bfd_elf_get_arch_size.
3111 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3113 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3115 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3117 2000-05-03 Martin v. Lvwis <loewis@informatik.hu-berlin.de>
3119 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3120 hidden and internal symbols.
3121 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3123 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3124 assign a PLT or GOT entry to symbols with hidden and
3125 internal visibility.
3127 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3129 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3131 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3133 2000-05-02 H.J. Lu <hjl@gnu.org>
3135 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3138 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3140 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3141 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3143 * Makefile.in: Regenerate.
3145 2000-05-01 Jim Wilson <wilson@cygnus.com>
3147 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3148 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3149 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3150 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3151 * Makefile.in: Rebuild.
3153 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3155 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3156 doesn't work very well.
3158 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3159 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3160 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3161 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3162 (elf_hppa_info_to_howto): Likewise.
3163 (elf_hppa_info_to_howto_rel): Likewise.
3164 (elf_hppa_reloc_type_lookup): Likewise.
3165 (elf_hppa_is_local_label_name): Likewise.
3166 (elf_hppa_fake_sections): Likewise.
3167 (elf_hppa_final_write_processing): Likewise.
3168 (elf_hppa_howto_table): Fully initialise all entries.
3169 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3170 (elf_hppa_info_to_howto): Likewise.
3171 (elf_hppa_info_to_howto_rel): Likewise.
3172 (elf_hppa_reloc_type_lookup): Likewise.
3173 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3174 elf_hppa_unmark_useless_dynamic_symbols,
3175 elf_hppa_remark_useless_dynamic_symbols,
3176 elf_hppa_record_segment_addrs, elf_hppa_final_link,
3177 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3178 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3179 elf32-hppa.c mess is cleaned up.
3180 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3181 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
3182 r_field then call hppa_field_adjust inline func with variable
3183 r_field arg, instead call hppa_field_adjust with fixed arg.
3184 In case R_PARISC_PCREL22F, don't set r_field.
3185 (elf_hppa_relocate_insn): Change args and return type to unsigned
3186 int. Call re_assemble_* funcs to do the work.
3188 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3191 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3193 (sign_extend): Mask first before sign extending.
3194 (low_sign_extend): Rewrite without condition expression.
3195 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3196 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3197 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3198 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3199 result as function return value rather than through pointer arg.
3200 Accept unsigned int args, and return unsigned int.
3201 (re_assemble_3): New. Combines function of dis_assemble_3 with
3202 re-assembly of opcode and immediate.
3203 (re_assemble_12): Likewise.
3204 (re_assemble_16): Likewise.
3205 (re_assemble_17): Likewise.
3206 (re_assemble_21): Likewise.
3207 (re_assemble_22): Likewise.
3208 (hppa_field_adjust): Rewrite and document, paying attention to
3209 size of types and signed/unsigned issues.
3210 (get_opcode): Shift before masking.
3211 (FDLW): Rename to FLDW.
3212 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
3213 (hppa_rebuild_insn): Change args and return value to unsigned
3214 int. Make use of re_assemble_*. Correct case 11.
3216 * dep-in.sed: Handle ../opcodes/.
3217 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3218 elf64-hppa.h, hppa_stubs.h, xcoff.h.
3219 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3220 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3221 elfarm-nabi.lo dependencies outside of auto-dependency area.
3222 Regenerate dependencies.
3223 * Makefile.in: Regenerate.
3225 * configure.in (TRAD_HEADER): Test non-null before
3227 * configure: Regenerate.
3229 * reloc.c: Fix mis-spelling in comment.
3231 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3233 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3234 * vms.c (vms_openr_next_archived_file): Return NULL.
3236 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3238 * coffcode.h Copy changes mistakenly done to libcoff.h in
3241 2000-04-29 Andreas Jaeger <aj@suse.de>
3243 * libbfd-in.h: Correctly check GCC version.
3244 * bfd-in.h: Likewise.
3245 * libhppa.h: Likewise.
3246 * libbfd.h: Regenerate.
3247 * bfd-in2.h: Regenerate.
3249 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3251 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3252 coffdu-rs6000.{lo,c}.
3253 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3255 * Makefile.in: Regenerate.
3256 * xcoff.h: New file.
3257 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3258 * coff-rs6000.c: Move all declarations and defines that are
3259 common to the xcoff backends into xcoff.h
3260 * coff64-rs6000.c: Ditto,
3262 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3264 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3265 _bfd_coff_force_symnames in strings and
3266 _bfd_coff_debug_string_prefix_length to their default values.
3267 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3269 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3271 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3272 _bfd_coff_force_symnames in strings and
3273 _bfd_coff_debug_string_prefix_length to their default values.
3275 2000-04-27 Alan Modra <alan@linuxcare.com.au>
3277 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
3278 Check local_got_refcounts before dereferencing.
3280 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3281 before deciding we don't need R_PPC_PLT32 relocation.
3282 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3285 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3287 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3289 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3290 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3291 (elf_i386_relocate_section): Allow for .plt to go missing.
3292 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3293 can use a relative reloc for got as elf_i386_relocate_section.
3294 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3296 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3298 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3300 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3302 * Makefile.am (coff64-rs6000.lo): New rule.
3303 * Makefile.in: Regenerate.
3304 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3305 xcoff_is_local_label_name, xcoff_rtype2howto,
3306 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3307 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3308 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3309 (NO_COFF_SYMBOLS): Define.
3310 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3311 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3313 (MINUS_ONE): New macro.
3314 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3316 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3317 coff_SWAP_aux_out): Map to the new functions.
3318 * coff64-rs6000.c: New file.
3319 * libcoff.h (bfd_coff_backend_data): Add new fields
3320 _bfd_coff_force_symnames_in_strings and
3321 _bfd_coff_debug_string_prefix_length.
3322 (bfd_coff_force_symnames_in_strings,
3323 bfd_coff_debug_string_prefix_length): New macros for above fields.
3324 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3325 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
3326 of using coff_swap_sym_in directly.
3327 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3328 (coff_set_flags) Set magic for XCOFF64.
3329 (coff_compute_section_file_positions): Add symbol name length to
3330 string section length if bfd_coff_debug_string_prefix_length is
3332 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3333 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3334 using coff_swap_lineno_in directly.
3335 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3336 and _bfd_coff_debug_string_prefix_length fields.
3337 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3338 symbol names into strings table when
3339 bfd_coff_force_symnames_in_strings is true.
3340 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3341 SET_RELOC_VADDR): New macros.
3342 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3343 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3345 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3346 changes within RS6000COFF_C specific code.
3347 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3348 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3349 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3350 Extend existing hack on target name.
3351 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3353 * coff-tic54x.c (ticof): Keep up to date with new fields
3354 in bfd_coff_backend_data.
3355 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3356 targ_selvecs to include rs6000coff64_vec for rs6000.
3357 * configure.in: Add rs6000coff64_vec case.
3358 * cpu-powerpc.c: New bfd_arch_info_type.
3360 2000-04-24 Jeffrey A Law (law@cygnus.com)
3362 * config.bfd: Only disable elf32-hppa vectors, not all of the
3363 BSD and OSF configuration support. Provide (disabled) clauses
3365 * configure.in: Add clause for PA64 support.
3366 * configure: Rebuilt.
3368 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3369 (bfd_elf64_hppa_vec): Declare.
3371 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3372 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3373 (elf64-hppa.lo): Add dependencies.
3374 * Makefile.in: Rebuilt.
3376 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3378 2000-04-24 Jason Eckhardt <jle@cygnus.com>
3380 * libhppa.h (dis_assemble_16): New function.
3381 (pa_arch): Added pa20w element.
3383 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
3385 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3386 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3387 bfd_elf64_slurp_reloc_table.
3389 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3390 definitions to get external names.
3391 (elf_write_relocs): Renamed from write_relocs and make global.
3392 (elf_slurp_reloc_table): Make global.
3393 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3395 * archive.c (hpux_uid_gid_encode): New function.
3396 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3397 defined and the ID is greater than 99999.
3398 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3399 special uid/gid fields into 32 bit values.
3401 2000-04-21 Matthew Green <mrg@cygnus.com>
3403 * config.bfd: Add NetBSD/sparc64 support.
3405 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3406 David Mosberger <davidm@hpl.hp.com>
3407 Timothy Wall <twall@cygnus.com>
3408 Jim Wilson <wilson@cygnus.com>
3410 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3411 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3412 (BFD64_BACKENDS): Add elf64-ia64.lo.
3413 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3414 (cpu-ia64.lo, elf64-ia64.lo): New rules.
3415 * Makefile.in: Rebuild.
3416 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3417 (bfd_ia64_arch): Declare.
3418 (bfd_archures_list): Add bfd_ia64_arch.
3419 * bfd-in2.h: Rebuild.
3420 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3421 * configure: Rebuild.
3422 * configure.host: (ia64-*-linux*): New host.
3423 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3424 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3425 * elf.c (prep_headers): Add bfd_arch_ia64.
3426 * libbfd.h: Rebuild.
3427 * reloc.c: Add IA-64 relocations.
3428 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3430 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3431 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3433 2000-04-21 Richard Henderson <rth@cygnus.com>
3435 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3436 contents when performing a partial link.
3437 (bfd_elf_d30v_reloc_21): Likewise.
3439 2000-04-20 H.J. Lu <hjl@gnu.org>
3441 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3442 patch to symbols defined by a shared object.
3443 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3445 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3448 * dwarf2.c (concat_filename): Avoid string literal concatenation.
3449 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
3451 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
3453 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3454 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3455 (coff-ia64.lo): Add dependency.
3456 * Makefile.in: Regenerate.
3457 * coff-ia64.c: New file.
3458 * efi-app-ia32.c: Ditto.
3459 * efi-app-ia64.c: Ditto.
3460 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
3461 (coff_set_flags): Ditto.
3462 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
3463 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
3464 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
3465 * configure: Regenerate.
3466 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
3467 (PUT_OPTHDR_IMAGE_BASE): Ditto.
3468 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3469 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3470 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3471 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3472 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3473 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3474 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3475 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3476 (GET_PDATA_ENTRY): Ditto.
3477 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
3478 data_start. Use above macros to read fields that are 64 bit wide for
3479 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
3480 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
3481 FileAlignment and SectionAlignment to minimum alignment if they
3483 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
3484 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
3485 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
3486 Use above macros to write fields that are 64 bit wide for
3488 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
3489 5*4 otherwise. This should be right for IA-32 and IA-64, but may
3490 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
3491 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
3492 begin address, end address, and unwind info address only. Use
3493 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
3495 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
3496 HIGH3ADJ relocation names.
3497 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
3498 * targets.c: Declare bfd_efi_app_ia32_vec and
3499 bfd_efi_app_ia64_vec.
3500 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
3501 bfd_efi_app_ia64_vec.
3503 2000-04-17 Timothy Wall <twall@cygnus.com>
3505 * bfd-in2.h: Add prototypes for tic54x load page access.
3506 * bfd-in.h: Regenerate.
3507 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
3508 in customized _set_arch_mach function.
3509 * coffcode.h (coff_set_alignment_hook): Set section load page if
3510 the appropriate macro is defined.
3511 (write_object_contents): Read section load page.
3513 2000-04-13 Alan Modra <alan@linuxcare.com.au>
3515 * elf32-hppa.h: Update copyright date.
3517 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
3518 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
3520 * elf32-d30v.c (MAX32): Don't use LL suffix.
3521 (MIN32): Define in terms of MAX32.
3522 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
3524 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
3527 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
3529 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3531 * dep-in.sed: Match space before file name, not after.
3532 * Makefile.am: Regenerate dependencies.
3533 * Makefile.in: Regenerate.
3535 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
3536 case, allow address wrap-around stupidly removed 2000-03-17. Sign
3537 extend without an if statement.
3539 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3541 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
3543 * elf32-mips.c (gprel16_with_gp): Likewise.
3544 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
3545 here using -0x40000, not (int)0xfffc0000.
3546 (elf32_hppa_size_of_stub): Likewise.
3548 2000-04-11 Timothy Wall <twall@cygnus.com>
3550 * coff-tic54x.c: Now builds with all targets.
3551 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
3552 * Makefile.in: Regenerate.
3553 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
3554 unitialized variable.
3556 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3558 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3559 --enable-build-warnings option.
3560 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3561 * Makefile.in, configure: Re-generate.
3563 2000-04-07 Nick Clifton <nickc@cygnus.com>
3565 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
3566 BFD_RELOC_THUMB_PCREL_BLX.
3568 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3569 R_ARM_XPC25 and R_ARM_THM_PC22.
3571 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
3572 R_ARM_XPC25 and R_ARM_THM_XPC22.
3573 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
3574 R_ARM_[XPC25|THM_XPC22].
3576 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
3577 elf/arm-oabi.h to elf/arm.h
3579 * Makefile.am: Fix dependency for elfarm-oabi.c
3580 * Makefile.in: Regenerate.
3582 * bfd-in2.h: Regenerate.
3583 * libbfd.h: Regenerate.
3585 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3587 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
3588 and restore it on failure. Release newly allocated tdata on
3591 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
3593 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
3594 (decode_line_info): Set it. Report error if unit->line_offset is
3595 equal to or larger than it.
3597 2000-04-07 Timothy Wall <twall@cygnus.com>
3599 * targets.c: Added vecs for tic54x.
3600 * reloc.c: Added relocs for tic54x.
3601 * libbfd.h: Regenerated.
3602 * configure: Add TI COFF vecs for tic54x.
3603 * configure.in: Ditto.
3604 * config.bfd (targ_cpu): Recognize new tic54x target.
3605 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
3606 * bfd-in2.h: Add tic54x target and relocations.
3607 * Makefile.am, Makefile.in: Add tic54x target.
3608 * archures.c (bfd_archures_list): Add tic54x target.
3609 * coff-tic54x.c: New.
3610 * cpu-tic54x.c: New.
3612 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3614 * elfcore.h (elf_core_file_p): call backend_object_p which
3615 thereby gets an opportunity to update the arch/machine type.
3617 2000-04-06 Timothy Wall <twall@cygnus.com>
3619 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
3620 class. Handle SEC_CLINK and SEC_BLOCK flags.
3621 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
3622 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
3624 2000-04-06 Nick Clifton <nickc@cygnus.com>
3626 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
3627 EF_INTERWORK if this is an unknown EABI.
3628 (elf32_arm_merge_private_bfd_data): Check EABI version
3629 numbers. Only check EF_xxx flags if the EABI version number
3631 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
3632 if the EABI version number is unknown.
3633 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
3634 if the EABI version number is unknown.
3636 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3638 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
3639 BFD_RELOC_SH_LOOP_END.
3640 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
3641 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
3642 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
3643 (sh_elf_reloc_loop): New function.
3644 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
3646 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
3647 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
3648 * bfd-in2.h, libbfd.h: Regenerate.
3650 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3652 * po/bfd.pot: Regenerate.
3654 * Makefile.am: Remove extraneous mkdep comment.
3655 (MKDEP): Use gcc -MM rather than mkdep.
3656 (DEP): Quote when passing vars to sub-make. Add warning
3658 (DEP1): Rewrite for "gcc -MM".
3659 (CLEANFILES): Add DEP2.
3660 Update dependencies.
3661 * Makefile.in: Regenerate.
3663 2000-04-03 Kevin Buettner <kevinb@redhat.com>
3665 * configure.in: Added corefile support for AIX 4.3. In particular,
3666 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
3667 compiling rs6000-core.c.
3668 * configure: Regenerated.
3670 2000-04-03 H.J. Lu <hjl@gnu.org>
3672 * cache.c (bfd_open_file): Unlink the output file only if
3673 it has non-zero size.
3675 2000-04-01 Ken Block USG <block@zk3.dec.com>
3677 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
3678 relative relocations for non-loaded sections in shared objects.
3679 (elf64_alpha_check_relocs): Similarly.
3681 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
3683 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
3684 BFD_RELOC_16 to switch for extended relocs.
3685 (MY_swap_ext_reloc_in): New.
3686 (MY_swap_ext_reloc_out): New.
3687 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
3688 than NAME(aout,swap_ext_reloc_in) for extended relocs.
3689 (NAME(aout,squirt_out_relocs)): Similarly use
3690 MY_swap_ext_reloc_out.
3691 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
3693 2000-04-03 Kazu Hirata <kazu@hxi.com>
3695 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
3696 the R_PCRWORD_B case.
3698 2000-03-31 Thomas de Lellis <tdel@wrs.com>
3700 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
3704 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
3706 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
3707 HOWTO references to bfd_elf_generic_reloc, that have
3708 partial_inplace == true, now use the new function. The function
3709 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
3710 extends its fixes to the R_M32R_{16,24,32} relocs.
3711 The new logic in m32r_elf_lo16_reloc() has been removed, and
3712 it instead calls the new routine to obtain that functionality.
3714 2000-03-27 Alan Modra <alan@linuxcare.com.au>
3716 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
3717 elf32_avr_check_relocs, avr_final_link_relocate,
3718 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
3719 elf32_avr_object_p): Add prototypes.
3720 (elf32_avr_gc_mark_hook): Add default for h->root.type.
3721 (bfd_elf_avr_final_write_processing): Make static.
3723 2000-03-27 Denis Chertykov <denisc@overta.ru>
3725 * cpu-avr.c: New file. BFD support routines for AVR architecture.
3726 * archures.c (bfd_architecture): Add AVR architecture.
3727 (bfd_archures_list): Add reference to AVR architecture info.
3728 * elf.c (prep_headers): Handle bfd_arch_avr.
3729 * reloc.c: Add various AVR relocation enums.
3730 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
3732 * Makefile.am: Add support for AVR elf.
3733 * configure.in: Likewise.
3734 * config.bfd: Likewise.
3735 * Makefile.in: Regenerate.
3736 * configure: This too.
3737 * bfd-in2.h: And this.
3738 * libbfd.h: And this.
3740 2000-03-24 H.J. Lu <hjl@gnu.org>
3742 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
3743 (elf64_alpha_find_reloc_at_ofs): Likewise.
3745 2000-03-17 Alan Modra <alan@linuxcare.com.au>
3747 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
3748 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
3749 allowable range used to be -2**(n-1) to 2**n-1.
3750 * reloc.c (_bfd_relocate_contents): Same here. Also replace
3751 "boolean overflow" with "bfd_reloc_status_type flag".
3753 2000-03-14 Doug Evans <dje@casey.transmeta.com>
3755 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
3757 2000-03-14 Kazu Hirata <kazu@hxi.com>
3759 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
3760 of shrinks properly, including the last reloc.
3762 2000-03-13 Kazu Hirata <kazu@hxi.com>
3764 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
3767 2000-03-11 Alan Modra <alan@linuxcare.com.au>
3769 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
3770 a format mismatch rather than an "error" from bfd_read such as
3771 bfd_error_file_truncated.
3773 2000-03-10 Geoff Keating <geoffk@cygnus.com>
3775 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
3776 sign-extension and big-endian compensation for
3777 R_MIPS_64 even in ld -r.
3779 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
3781 * elf32-mips.c (mips_elf_next_relocation): Rename from
3782 mips_elf_next_lo16_relocation, and generalize to look
3783 for any relocation type.
3784 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
3785 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
3786 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
3787 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
3788 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
3789 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
3790 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
3791 (mips_rtype_to_howto): Likewise.
3792 (mips_elf_calculate_relocation): Handle new relocs.
3793 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
3794 are paired. The addend for R_MIPS_GNU_REL16_S2
3795 is shifted right two bits.
3797 2000-03-10 Alan Modra <alan@linuxcare.com.au>
3799 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
3800 comment, and ensure it doesn't happen again.
3801 (bfd_install_relocation): Same here.
3802 (_bfd_relocate_contents): Don't bother assigning unused signmask
3803 shift result. Fix typos in comments.
3804 Remove trailing whitespace throughout file.
3806 2000-03-07 Doug Evans <dje@casey.transmeta.com>
3808 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
3809 * bfd-in2.h: Rebuild.
3811 2000-03-06 Nick Clifton <nickc@cygnus.com>
3813 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
3815 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
3816 (SIZEOF_ILF_STRINGS): Redefine.
3817 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
3818 relative reloc, as opposed to a section relative reloc.
3819 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
3821 Add length of symbol's prefix to string pointer.
3822 Store a pointer to the symbol in the symbol pointer table.
3823 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
3824 Initialise the symbol pointer table.
3825 Store the hint in the Hint/Name table.
3826 Make the jump reloc be symbol realtive, not section relative.
3827 Create an import symbol for imported code.
3829 2000-03-06 Catherine Moore <clm@cygnus.com>
3831 * elf.c (swap_out_syms): Check for null type_ptr.
3833 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
3835 * aout-target.h (MY(write_object_contents)): Remove unused
3836 and unusable "#if CHOOSE_RELOC_SIZE".
3837 * pc532-mach.c (MY(write_object_contents)): Ditto.
3838 * netbsd.h (MY(write_object_contents)): Ditto.
3839 * hp300hpux.c (MY(write_object_contents)): Ditto.
3840 * freebsd.h (MY(write_object_contents)): Ditto.
3841 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
3843 2000-02-29 H.J. Lu <hjl@gnu.org>
3845 * peicode.h (jtab): Make it static.
3847 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
3848 defined and COFF_IMAGE_WITH_PE is not defined.
3849 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
3850 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
3852 2000-03-01 Nick Clifton <nickc@cygnus.com>
3854 * coff-arm.c (bfd_arm_process_before_allocation): Make
3855 'symndx' signed to prevent compile time warning.
3857 * coff-mcore.c: Remove unused prototype for pe_object_p.
3859 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
3860 functions that are not used when COFF_IMAGE_WITH_PE is
3862 (struct sh_opcode): Change type of 'flags' field to unsigned
3863 long so that it can hold the USESAS flag.
3865 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
3867 * elf-m10300.c (mn10300_elf_relax_section): Initialise
3870 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
3872 Remove unusued variables and code.
3873 (elf_backend_add_symbol_hook): Fix prototype.
3875 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
3878 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
3881 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
3883 Remove unusued variables and code.
3884 (elf_backend_add_symbol_hook): Fix prototype.
3886 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
3888 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
3889 to unused function parameter.
3891 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
3893 Use EMPTY_HOWTO to initialise empty howto slots.
3894 Remove unused variables.
3896 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
3898 2000-03-01 H.J. Lu <hjl@gnu.org>
3900 * aoutx.h (aout_link_input_section_std): Pass "true" to
3901 the undefined_symbol callback.
3902 (aout_link_input_section_ext): Likewise.
3903 * bout.c (get_value): Likewise.
3904 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
3905 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
3907 (alpha_relocate_section): Likewise.
3908 * coff-arm.c (coff_arm_relocate_section): Likewise.
3909 * coff-i960.c (coff_i960_relocate_section): Likewise.
3910 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
3911 * coff-mips.c (mips_relocate_section): Likewise.
3912 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
3913 * coff-sh.c (sh_relocate_section): Likewise.
3914 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
3915 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
3916 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
3917 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
3918 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
3919 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
3920 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
3921 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3922 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
3923 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3924 * elf32-sh.c (sh_elf_relocate_section): Likewise.
3925 * elf32-v850.c (v850_elf_relocate_section): Likewise.
3926 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
3927 * elflink.h (elf_link_output_extsym): Likewise.
3928 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
3929 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
3930 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
3932 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
3933 undefined_symbol callback when building shared library with
3934 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
3936 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3937 * elf32-i386.c (elf_i386_relocate_section): Likewise.
3938 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3939 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3940 (elf32_mips_get_relocated_section_content): Likewise.
3941 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3942 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3943 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3944 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3946 2000-02-28 Nick Clifton <nickc@cygnus.com>
3948 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
3949 * Makefile.in: Regenerate.
3951 * configure.in: Add support for mips and sh pe vectors.
3952 * configure: regenerate.
3954 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
3957 * targets.c: Add mips and sh pe vectors.
3959 * libpei.h (coff_final_link_postscript): Only define if not
3962 * coffcode.h: Add support for WinCE magic numbers.
3964 * peigen.c (pe_print_reloc): Update comment and rearrange
3965 appending of newline character.
3967 * peicode.h: Add support for Image Library Format.
3968 (pe_ILF_vars): Structure containing data used by ILF code.
3969 (pe_ILF_make_a_section): New function. Create a section based
3971 (pe_ILF_make_a_reloc): New function. Create a reloc based on
3973 (pe_ILF_make_a_symbol): New function. Create a symbol based
3975 (pe_ILF_save_relocs): New function. Store the relocs created
3976 by pe_ILF_make_a_reloc in a section.
3977 (pe_ILF_build_a_bfd): New function. Create a BFD describing
3979 (pe_ILF_object_p): New function. Return a bfd_target pointer
3981 (pe_bfd_object_p): If an ILF object is detected call
3982 pe_ILF_object_p on it.
3984 * coff-arm.c: Add support for WinCE relocs which are different
3985 from normal ARM COFF relocs.
3986 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
3988 * coff-sh.c: Add support for sh-pe target.
3989 * pe-sh.c: New file. Support code for sh-pe target.
3990 * pei-sh.c: New file. Support code for sh-pe target.
3992 * pe-mips.c: New file. Support code for mips-pe target.
3993 * pei-mips.c: New file. Support code for mips-pe target.
3995 2000-02-27 Jakub Jelinek <jakub@redhat.com>
3997 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
3998 architecture if the object causing the bump is dynamic.
3999 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4000 and also don't it for memory ordering.
4001 (sparc64_elf_write_relocs): Take src_rela out of the loop.
4003 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4005 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4006 calling bfd_get_section_size_before_reloc.
4007 (decode_line_info): Likewise.
4008 (_bfd_dwarf2_find_nearest_line): Likewise.
4010 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
4012 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4013 name of the libtool directory.
4014 * Makefile.in: Rebuild.
4016 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
4018 * som.c (SOM_HOWTO): Define.
4019 (som_hppa_howto_table): Use it.
4021 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4023 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4025 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4027 2000-02-24 Catherine Moore <clm@cygnus.com>
4029 * som.c (som_misc_symbol_info): Add field
4031 (som_bfd_derive_misc_symbol_info): Initialize
4033 (som_build_and_write_symbol_table): Keep track
4034 of secondary_def field.
4035 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4036 if secondary_def field is set.
4037 (som_bfd_ar_write_symbol_stuff): Initialize
4040 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
4042 * dwarf2.c (read_address): Read 16-bits addresses.
4043 (parse_comp_unit): Accept addr_size == 2.
4045 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4047 * bfd-in.h: Update copyright date.
4049 2000-02-23 Linas Vepstas <linas@linas.org>
4051 * cpu-i370.c: New file.
4052 * elf32-i370.c: New file.
4053 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
4054 (bfd_i370_arch): New.
4055 (bfd_archures_list): Add bfd_i370_arch.
4056 * elf.c (prep_headers): Add bfd_arch_i370.
4057 * Makefile.am: Add support for IBM 370 elf.
4058 * config.bfd: Likewise.
4059 * configure.in: Likewise.
4060 * libbfd.h (bfd_reloc_code_real_names): Likewise.
4061 * reloc.c (bfd_reloc_code_type): Likewise.
4062 * targets.c: Likewise.
4064 * Makefile.in: Regenerate.
4065 * configure: Regenerate.
4066 * bfd-in2.h: Regenerate.
4068 2000-02-22 Ian Lance Taylor <ian@zembu.com>
4070 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4071 invalid relocation types, and change them to R_386_NONE.
4073 2000-02-22 H.J. Lu <hjl@gnu.org>
4075 * elflink.h (elf_link_add_object_symbols): If a version symbol is
4076 not defined, don't add a second ELF_VER_CHR.
4078 * elflink.h (elf_bfd_final_link): Call output_extsym for global
4079 symbols converted to local symbols even when stripping all
4081 (elf_link_output_extsym): Process global symbols converted to
4082 local symbols even if they are being stripped.
4084 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4086 * archures.c (bfd_octets_per_byte): Return unsigned int.
4087 (bfd_arch_mach_octets_per_byte): Ditto.
4088 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4090 * section.c (bfd_get_section_size_before_reloc): Quell signed
4091 vs. unsigned comparison warning.
4092 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
4093 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4094 change. What was I thinking?
4095 * bfd-in2.h: Regenerate.
4097 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4098 (elf_gc_sections): Same here.
4099 (elf_gc_common_finalize_got_offsets): And here.
4101 2000-02-21 Ian Lance Taylor <ian@zembu.com>
4103 ELF HPPA doesn't work at present; remove it until it does.
4104 * config.bfd: Comment out setting targ_defvec to
4106 * Makefile.am: Rebuild dependencies.
4107 (BFD32_BACKENDS): Remove elf32-hppa.lo.
4108 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4109 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4110 * Makefile.in: Rebuild.
4111 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4113 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4115 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4116 is no bfd_free(). Revert bfd_free part of previous change.
4118 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4120 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4122 (coff_compute_section_file_positions): Use bfd_free to pair
4124 (coff_write_object_contents): Likewise.
4126 * coff-rs6000.c (xcoff_howto_table_16): New variable.
4127 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4129 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
4131 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4132 (xcoff_ar_file_hdr_big): New structure.
4133 (SIZEOF_AR_FILE_HDR_BIG): New macro.
4134 (xcoff_ar_hdr_big): New structure.
4135 (SIZEOF_AR_HDR_BIG): New macro.
4136 (xcoff_big_format_p): New macro.
4137 (xcoff_ardata_big): New macro.
4138 (arch_xhdr_big): New macro.
4139 (xcoff_slurp_armap): Handle large archives.
4140 (xcoff_archive_p): Detect large archives.
4141 (xcoff_read_ar_hdr): Handle large archives.
4142 (xcoff_openr_next_archived_file): Handle large archives.
4143 (xcoff_generic_stat_arch_elt): Handle large archives.
4144 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4145 (xcoff_write_armap_big): New function.
4146 (xcoff_write_armap): New function, dispatch to _old or _big.
4147 (xcoff_write_archive_contents_old): Rename from
4148 xcoff_write_archive_contents.
4149 (xcoff_write_archive_contents_big): New function.
4150 (xcoff_write_archive_contents): New function, dispatch to _old or
4153 2000-02-18 Richard Henderson <rth@cygnus.com>
4155 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4156 and hide_symbol members.
4157 (elf_link_hash_copy_indirect): Remove.
4158 (elf_link_hash_hide_symbol): Remove.
4159 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4160 and elf_backend_hide_symbol.
4161 (_bfd_elf_link_hash_copy_indirect): Declare.
4162 (_bfd_elf_link_hash_hide_symbol): Declare.
4163 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4164 (_bfd_elf_link_hash_hide_symbol): Likewise.
4165 (_bfd_elf_link_hash_table_init): Don't init killed members.
4166 * elflink.h (elf_link_add_object_symbols): Use the bed function
4167 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4168 (elf_link_assign_sym_version): Likewise.
4169 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4170 (elf_backend_hide_symbol): Likewise.
4171 (elfNN_bed): Update for new members.
4173 2000-02-17 Kevin Buettner <kevinb@redhat.com>
4175 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4176 STACK_END_ADDR): Define for new core file format.
4177 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4178 for handling the vagaries of the various core file structures used
4179 by AIX over the years.
4180 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4181 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4182 core_dumpx structure.
4184 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4186 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4187 (bfd_mach_sh3_dsp): Likewise.
4188 (bfd_mach_sh4): Reinstate.
4189 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4190 * bfd-in2.h: Regenerate.
4191 * coff-sh.c (struct sh_opcode): flags is no longer short.
4192 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4193 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4194 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4195 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4196 (sh_opcodes): No longer const.
4197 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4198 (sh_insn_uses_reg): Check for USESAS and USESR8.
4199 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4200 (_bfd_sh_align_load_span): Return early for SH4.
4201 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4202 Take into account that field b of a parallel processing insn
4203 could be mistaken for a separate insn.
4204 * cpu-sh.c (arch_info_struct): New array elements for
4205 sh2, sh-dsp and sh3-dsp.
4206 Reinstate element for sh4.
4207 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4208 (SH4_NEXT): Reinstate.
4209 (SH3_NEXT, SH3E_NEXT): Adjust.
4210 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4211 * elf32-sh.c (sh_elf_set_private_flags): New function.
4212 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4213 (sh_elf_merge_private_data): New function.
4214 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4215 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4216 (bfd_elf32_bfd_merge_private_bfd_data): Change to
4217 sh_elf_merge_private_data.
4219 2000-02-13 Richard Henderson <rth@cygnus.com>
4221 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4222 hide_symbol members.
4223 (elf_link_hash_copy_indirect): New.
4224 (elf_link_hash_hide_symbol): New.
4225 * elflink.h (elf_link_add_object_symbols): Break out copy from
4226 indirect new new symbol to elf.c.
4227 (elf_link_assign_sym_version): Break out privatization of
4228 non-exported symbol to elf.c.
4229 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4230 (_bfd_elf_link_hash_hide_symbol): New.
4231 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4233 2000-02-13 Ian Lance Taylor <ian@zembu.com>
4235 * section.c (_bfd_strip_section_from_output): Add info parameter.
4236 If it passed as non-NULL, use it to check whether any input BFD
4237 has an input section which uses this output section. Change all
4239 * bfd-in2.h: Rebuild.
4241 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4242 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4244 * bfd-in2.h: Rebuild.
4246 2000-02-10 Timothy Wall <twall@cygnus.com>
4248 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4249 allow final modifications of swapped-in symbol.
4250 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4251 * coffcode.h (coff_write_relocs): Use macro
4252 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4253 symbol index should be set to -1.
4255 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4257 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4258 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4259 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4260 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4261 sh_insns_uses_or_sets_freg): New functions.
4262 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4263 * (sh_insns_conflict): Use new functions and new macros to
4264 detect conflicts when two instructions both set same integer registers,
4265 both set same fp register, and both set special register.
4267 2000-02-09 Timothy Wall <twall@cygnus.com>
4269 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4270 swapping in sections, so that the swapping routines have access to
4273 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4275 * coff-go32.c: Update comment. Update copyright.
4277 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4279 * syms.c (bfd_decode_symclass)
4280 Two new class characters were added - 'V' and 'v'. The
4281 meaning of 'W' is now restricted to just weak non-object
4282 symbols. This allows differentiation between, for example,
4283 weak functions vs weak objects. nm for example now dumps:
4285 'w' = weak unresolved
4286 'V' = weak global object
4287 'v' = weak unresolved object
4289 (bfd_is_undefined_symclass): New function. Return true if the
4290 given symbol class represents and undefined/unresolved symbol.
4292 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4295 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4297 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4298 STT_ARM_16BIT flag set, but it is not attached to a data object
4299 return STT_ARM_16BIT so that it will be treated as code by the
4302 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4304 * coff-i386.c (i3coff_object_p): Remove prototype.
4307 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4308 to name. Update copyright.
4310 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4311 assignment to avoid warning. Update copyright.
4313 2000-01-24 Robert Lipe (robertl@sco.com)
4315 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4316 instead of using GNU C extension.
4318 2000-01-21 Nick Clifton <nickc@cygnus.com>
4320 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4321 amount from a bfd_in_memory structure.
4322 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4325 2000-01-14 Nick Clifton <nickc@cygnus.com>
4327 * linker.c (default_indirect_link_order): oops - fix incorrectly
4328 applied patch from Tim Wall.
4330 2000-01-13 Timothy Wall (twall@tiac.net>
4332 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4333 = scnhsz, filhsz, relsz, aoutsz, etc)
4335 * coffswap.h: Ditto.
4337 2000-01-13 Nick Clifton <nickc@cygnus.com>
4339 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4340 interwork thumb to arm stub.
4342 2000-01-13 Timothy Wall (twall@tiac.net>
4344 * archures.c (bfd_octets_per_byte): New function: Return
4346 (bfd_arch_mach_octets_per_byte): New function: Return target
4349 * section.c: Distinguish between octets and bytes for usage of
4350 _cooked_size, _raw_size, and output_offset. Clarify
4351 description of bfd_set_section_contents.
4353 * bfd-in2.h: Regenerate.
4355 * coffgen.c: Indicate that the offset parameter is in bytes, not
4358 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4359 where appropriate to get the octet offset when calling
4360 bfd_set_section_contents.
4361 (bfd_coff_reloc_link_order): Ditto.
4363 * linker.c (bfd_generic_reloc_link_order): Ditto.
4364 (_bfd_default_link_order): Ditto.
4366 * reloc.c (bfd_perform_relocation): Distinguish between octets
4367 and bytes. Use octets when indexing into octet data; use bytes
4368 when calculating target addresses.
4369 (bfd_install_relocation): Ditto.
4371 * srec.c (srec_write_section): Ditto.
4373 2000-01-13 Nick Clifton <nickc@cygnus.com>
4375 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4376 3 to 2. This allows 4 byte sized sections, which is necessary for
4377 dlltool to build functioning DLLs.
4379 2000-01-10 Philip Blundell <pb@futuretv.com>
4381 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4382 (arm*-*-conix*): New target.
4384 2000-01-10 Egor Duda <deo@logos-m.ru>
4386 * config.bfd: Include elf32_i386 vector to target list for cygwin
4389 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4390 * configure.in: Test for structure win32_pstatus_t in
4392 * configure: Regenerate.
4394 * elf.c (elfcore_grok_win32pstatus): New function: process
4395 win32_pstatus_t notes in elf core file.
4396 (elfcore_grok_note): Detect win32_pstatus notes.
4398 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4400 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4402 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4403 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4405 For older changes see ChangeLog-9899
4411 version-control: never