1 2001-02-18 Kazu Hirata <kazu@hxi.com>
3 * vms-misc.c: Fix formatting.
5 2001-02-16 Kazu Hirata <kazu@hxi.com>
7 * vms.c: Fix formatting.
9 2001-02-14 H.J. Lu <hjl@gnu.org>
11 * elf.c (elf_find_function): New function.
12 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
13 the file name and function name.
15 2001-02-14 Nick Clifton <nickc@redhat.com>
17 * ecoff.c (bfd_debug_section): Update to initialise new fields in
20 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
21 (BFD64_BACKENDS): Add pepigen.c
22 Add rules to create peigen.c and pepigen.c from peXXigen.c.
24 * Makefile.in: Regenerate.
25 * configure: Regenerate.
26 * po/POTFILES.in: Regenerate.
27 * po/bfd.pot: Regenerate.
29 2001-02-14 H.J. Lu <hjl@gnu.org>
31 * libcoff-in.h (pe_tdata): Add members target_subsystem and
32 force_minimum_alignment.
34 2001-02-14 Bo Thorsen <bo@suse.de>
36 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
37 (elf64_86_64_size_info): Struct added to fix a problem
38 with the hashtable string entries.
39 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
40 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
41 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
42 remove the FIXME for this.
43 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
44 section. Also removed the FIXME for it.
45 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
46 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
47 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
49 2001-02-13 Richard Henderson <rth@redhat.com>
51 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
52 and not user provided.
54 2001-02-13 Kazu Hirata <kazu@hxi.com>
56 * vms.c (vms_print_symbol): Remove unreachable code.
58 * rs6000-core.c: Fix formatting.
60 2001-02-13 David Mosberger <davidm@hpl.hp.com>
62 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
63 as _bfd_XXi_only_swap_filehdr_out.
64 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
65 pe->force_minimum_alignment to TRUE.
66 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
68 (pe_print_private_bfd_data): Call
69 _bfd_XX_print_private_bfd_data_common() instead of
70 _bfd_pe_print_private_bfd_data_common().
71 (pe_bfd_copy_private_bfd_data): Call
72 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
73 _bfd_pe_bfd_copy_private_bfd_data_common().
74 (coff_bfd_copy_private_section_data): Define as
75 _bfd_XX_bfd_copy_private_section_data instead of
76 _bfd_pe_bfd_copy_private_section_data.
77 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
78 of a _bfd_pe_get_symbol_info.
82 * peXXigen.c: Renamed from peigen.c.
83 (COFF_WITH_XX): Define this macro (will get expanded into
84 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
85 compiled as peigen.c or pepigen.c.
86 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
87 define the canonical PEP structures and definitions.
88 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
89 effect, enforce minimum file and section alignments. If
90 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
91 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
92 so, by default, this is a no-op).
94 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
95 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
96 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
97 _bfd_pefoo if it's not defined. Use these macros to define
100 * libcoff.h (pe_tdata): Add members target_subsystem and
101 force_minimum_alignment.
103 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
105 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
107 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
110 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
111 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
114 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
115 (BFD64_BACKENDS_CFILES): Mention pepigen.c
116 (peigen.c): Add rule to generate from peXXigen.c.
118 (pepigen.lo): List dependencies for pepigen.lo.
120 2001-02-13 Alan Modra <alan@linuxcare.com.au>
122 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
123 $global$ referenced but not defined, set its value here.
125 2001-02-09 Bo Thorsen <bo@suse.de>
127 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
129 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
131 (elf64_x86_64_relocate_section): Fix formatting.
132 (elf64_x86_64_relocate_section): Fix addend for relocation of
133 R_X86_64_(8|16|32|PC8|PC16|PC32).
135 2001-02-12 Jan Hubicka <jh@suse.cz>
137 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
139 2001-02-11 H.J. Lu <hjl@gnu.org>
141 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
144 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
146 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
147 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
148 relocations against dynsym symbols.
150 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
151 the R_MIPS_26 relocation.
152 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
153 the R_MIPS_26 relocation.
154 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
156 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
157 the R_MIPS_26 relocation.
158 (mips_elf64_howto_table_rela): Likewise.
160 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
161 member to mark symbols that have non-CALL relocations against
163 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
164 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
166 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
167 non-CALL relocation against it is encountered.
168 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
169 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
170 no_fn_stub is not set.
172 * elf32-mips.c (mips_elf_output_extsym): Get the output section
173 information from the real symbol for indirect ones.
174 Check no_fn_stub to find out if a symbol has a function stub
177 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
179 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
180 * Makefile.in: Regenerate.
182 2001-02-09 David Mosberger <davidm@hpl.hp.com>
184 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
185 true if section name is an unwind table section name.
186 (elfNN_ia64_additional_program_headers): Count each unwind section
188 (elfNN_ia64_modify_segment_map): Install one unwind program header
189 for each unwind separate section. Note: normally the linker
190 script merges the unwind sections that go into a single segment,
191 so this still generates at most one unwind program header per
194 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
195 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
196 (elfNN_ia64_fake_sections): Mark sections with names that start
197 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
200 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
201 Use it to make sh_info in unwind section point to the text section
204 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
206 * Makefile.am: Add linux target for S/390.
207 * archures.c: Likewise.
208 * bfd-in2.h: Likewise.
209 * config.bfd: Likewise.
210 * configure.in: Likewise.
212 * libbfd.h: Likewise.
213 * targets.c: Likewise.
214 * cpu-s390.c: New file.
215 * elf32-s390.c: New file.
216 * elf64-s390.c: New file.
218 2001-02-09 Nick Clifton <nickc@redhat.com>
220 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
221 ImageBase. This has already been done by coff_swap_hdr_in.
223 2001-02-09 Jakub Jelinek <jakub@redhat.com>
225 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
227 2001-02-09 Jakub Jelinek <jakub@redhat.com>
229 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
230 (sparc64_elf_relocate_section): Likewise.
232 2001-02-09 Mark Kettenis <kettenis@gnu.org>
234 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
235 similar to R_SPARC_32.
236 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
238 2001-02-08 H.J. Lu <hjl@gnu.org>
240 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
241 relocation entries for weak definitions when building DSO with
244 2001-02-08 Richard Henderson <rth@redhat.com>
246 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
247 before visibility. Locally defined protected symbols are not
250 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
252 * config.bfd: Enable coff64 for rs6000-*. Patch from
253 <hzoli@austin.ibm.com>.
255 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
257 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
258 found, do not attempt to find dwarf2 info before returning.
260 2001-02-07 Jakub Jelinek <jakub@redhat.com>
262 * elflink.h (is_global_symbol_definition): Rename to
263 is_global_data_symbol_definition and have it reject function
265 (elf_link_is_defined_archive_symbol): Use renamed function.
267 2001-02-07 Todd Vierling <tv@wasabisystems.com>
269 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
270 * libbfd.h (bfd_target_vector): Likewise.
271 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
272 make static; create pointer reference named bfd_target_vector.
273 (_bfd_target_vector_entries): Calculate this based on the array
274 typed _bfd_target_vector.
276 2001-02-06 H.J. Lu <hjl@gnu.org>
278 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
279 internal symbols are not dynamic.
280 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
282 2001-02-06 Nick Clifton <nickc@redhat.com>
284 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
285 that it will not be pulled into the list of files that make up
287 * Makefile.in: Regenerate.
288 * po/bfd.pot: Regenerate.
290 2001-02-06 H.J. Lu <hjl@gnu.org>
292 * bfd/peicode.h (coff_swap_filehdr_in): Remove the e_magic
294 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
295 external_PEI_IMAGE_hdr.
297 2001-02-06 Kazu Hirata <kazu@hxi.com>
299 * elf-m10200.c: Fix formatting.
301 2001-02-04 Nick Clifton <nickc@redhat.com>
303 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
304 rel, it will be handled later on.
306 2001-02-02 Fred Fish <fnf@ninemoons.com>
308 * Makefile.in: Fix typo.
310 2001-02-01 Kazu Hirata <kazu@hxi.com>
312 * elf-m10300.c: Fix formatting.
314 2001-01-30 Alan Modra <alan@linuxcare.com.au>
316 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
317 (elf_backend_get_symbol_type): Define.
318 (elf64_hppa_object_p): Set architecture and machine from elf
321 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
323 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
326 2001-01-26 Richard Henderson <rth@redhat.com>
328 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
329 for non-default visibility.
330 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
331 delete ugly macro and replace with pretty function.
333 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
335 * coff-go32.c: Update copyright.
336 * coff-stgo32.c: Likewise.
337 * coff-go32.c (COFF_LONG_FILENAMES): Define.
338 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
339 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
340 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
342 2001-01-25 Kazu Hirata <kazu@hxi.com>
344 * bfd-in2.h: Rebuild.
345 * libbfd.h: Likewise.
347 2001-01-23 H.J. Lu <hjl@gnu.org>
349 * bfd-in2.h: Rebuild.
351 2001-01-23 H.J. Lu <hjl@gnu.org>
353 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
354 is NULL or PRIV(vms_rec) is outside of the buffer.
356 2001-01-23 Kazu Hirata <kazu@hxi.com>
358 * coff64-rs6000.c: Fix formatting.
359 * coff-arm.c: Likewise.
360 * coffgen.c: Likewise.
361 * cofflink.c: Likewise.
362 * coff-mcore.c: Likewise.
363 * coff-mips.c: Likewise.
364 * coff-pmac.c: Likewise.
365 * coff-ppc.c: Likewise.
366 * coff-rs6000.c: Likewise.
368 * elf32-fr30.c: Likewise.
369 * elf32-i370.c: Likewise.
370 * elf32-i860.c: Likewise.
371 * elf32-m32r.c: Likewise.
372 * elf32-m68k.c: Likewise.
373 * elf32-mcore.c: Likewise.
374 * elf32-ppc.c: Likewise.
375 * elf32-sh.c: Likewise.
376 * elf32-v850.c: Likewise.
377 * elf64-alpha.c: Likewise.
378 * elf64-sparc.c: Likewise.
379 * elflink.c: Likewise.
380 * elflink.h: Likewise.
381 * elf-m10200.c: Likewise.
382 * elf-m10300.c: Likewise.
383 * elfxx-ia64.c: Likewise.
385 * aoutx.h: Fix formatting.
387 * bfd-in2.h: Likewise.
388 * bfd-in.h: Likewise.
389 * cpu-i386.c: Likewise.
390 * cpu-m68hc11.c: Likewise.
391 * dwarf2.c: Likewise.
392 * elf64-x86-64.c: Likewise.
393 * format.c: Likewise.
394 * freebsd.h: Likewise.
396 * hp300hpux.c: Likewise.
397 * hppabsd-core.c: Likewise.
398 * hpux-core.c: Likewise.
400 2001-01-22 Bo Thorsen <bo@suse.de>
402 * elf64-x86-64.c: Added PIC support for X86-64.
403 (elf64_x86_64_link_hash_newfunc): Function added.
404 (elf64_x86_64_link_hash_table_create): Likewise.
405 (elf64_x86_64_check_relocs): Likewise.
406 (elf64_x86_64_gc_mark_hook): Likewise.
407 (elf64_x86_64_gc_sweep_hook): Likewise.
408 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
409 (elf64_x86_64_size_dynamic_sections): Likewise.
410 (elf64_x86_64_discard_copies): Likewise.
411 (elf64_x86_64_finish_dynamic_symbol): Likewise.
412 (elf64_x86_64_finish_dynamic_sections): Likewise.
413 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
415 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
417 * Makefile.am (install-data-local): Make use of $(DESTDIR).
418 * Makefile.in: Regenerate.
420 2001-01-21 Kazu Hirata <kazu@hxi.com>
422 * coff-a29k.c: Fix formatting.
424 2001-01-19 H.J. Lu <hjl@gnu.org>
426 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
427 relocation section names.
428 (elf_i386_relocate_section): Report files with bad relocation
429 section names and return false.
431 2001-01-17 Bo Thorsen <bo@suse.de>
433 * targets.c: Alphabetize list of xvecs.
435 2001-01-14 Alan Modra <alan@linuxcare.com.au>
437 * config.bfd: Add linux target variant for elfxx-hppa.
438 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
439 bfd_elf64_hppa_linux_vec.
440 * configure: Regenerate.
441 * elf64-hppa.c: Include elf64-target.h again to support linux
443 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
444 * elf32-hppa.c: Include elf32-target.h again to support linux
446 (elf32_hppa_post_process_headers): New function.
447 (elf_backend_post_process_headers): Define.
448 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
449 bfd_elf32_hppa_linux_vec.
451 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
452 and data_segment_base fields.
453 (elf32_hppa_link_hash_table_create ): Init them.
454 (elf32_hppa_check_relocs): Update comments.
455 (hppa_record_segment_addr): New function.
456 (elf32_hppa_relocate_section): Call it.
457 (final_link_relocate): Handle R_PARISC_SEGREL32.
458 (elf32_hppa_final_link): New function.
459 (bfd_elf32_bfd_final_link): Define to call it.
460 (hppa_unwind_entry_compare): New function.
461 * cache.c (bfd_open_file): Create files in write+read mode.
463 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
464 SEGREL32 and numerous other relocs. Change duplicate
465 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
467 * opncls.c (bfd_fdopenr): Add parens like the comment says around
470 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
471 .plt entries for DT_INIT and DT_FINI.
472 (elf32_hppa_finish_dynamic_sections): Remove special handling of
475 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
476 offsets for stub .plt access if wide mode. Check offset in range.
478 2001-01-13 Nick Clifton <nickc@redhat.com>
480 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
483 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
486 2001-01-12 Alan Modra <alan@linuxcare.com.au>
488 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
489 * configure: Regenerate.
491 2001-01-11 Peter Targett <peter.targett@arccores.com>
493 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
494 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
495 * cpu-arc.c (arch_info_struct): Add entries for variants.
496 (bfd_arc_arch) Set default to bfd_mach_arc_5.
497 (arc_get_mach) Don't assume machine names prefixed arc- before
499 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
501 (arc_elf_final_write_processing) Likewise.
502 (ELF_MACHINE_CODE) Use EM_ARC.
504 2001-01-10 Nick Clifton <nickc@redhat.com>
506 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
508 2001-01-07 Philip Blundell <philb@gnu.org>
510 * README: Replace `bug-gnu-utils@gnu.org' with
511 `bug-binutils@gnu.org'.
513 2001-01-04 Kazu Hirata <kazu@hxi.com>
515 * som.c: Fix formatting.
517 2001-01-03 Kazu Hirata <kazu@hxi.com>
519 * ecoffswap.h: Fix formatting.
520 * elf-bfd.h: Likewise.
521 * elfarm-nabi.c: Likewise.
522 * elfarm-oabi.c: Likewise.
523 * elfcode.h: Likewise.
524 * elfcore.h: Likewise.
525 * elflink.c: Likewise.
526 * elflink.h: Likewise.
527 * elfxx-ia64.c: Likewise.
528 * elfxx-target.h: Likewise.
530 * linker.c: Likewise.
531 * lynx-core.c: Likewise.
533 2001-01-02 Kazu Hirata <kazu@hxi.com>
535 * pc532-mach.c: Fix formatting.
536 * pe-arm.c: Likewise.
537 * pe-i386.c: Likewise.
538 * pe-mips.c: Likewise.
539 * pe-ppc.c: Likewise.
541 * pei-mips.c: Likewise.
542 * pei-sh.c: Likewise.
543 * peicode.h: Likewise.
544 * ppcboot.c: Likewise.
545 * ptrace-core.c: Likewise.
547 2001-01-01 Kazu Hirata <kazu@hxi.com>
549 * reloc.c: Fix formatting.
550 * riscix.c: Likewise.
551 * rs6000-core.c: Likewise.
552 * xcoff-target.h: Likewise.
554 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
556 * elfcode.h (elf_object_p): Also restore the bfd mach field on
557 error, by calling bfd_default_set_arch_mach with incoming
560 2000-12-26 Kazu Hirata <kazu@hxi.com>
562 * vaxnetbsd.c: Fix formatting.
563 * versados.c: Likewise.
564 * vms-gsd.c: Likewise.
565 * vms-hdr.c: Likewise.
566 * vms-misc.c: Likewise.
568 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
570 * archive.c (coff_write_armap): Don't write more than symbol_count
571 `archive_member_file_ptr's.
573 2000-12-25 Kazu Hirata <kazu@hxi.com>
575 * vms-tir.c: Fix formatting.
577 2000-12-23 Kazu Hirata <kazu@hxi.com>
579 * vms.c: Fix formatting.
582 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
584 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
586 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
588 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
591 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
593 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
595 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
597 * libbfd.c (bfd_get_bits): Added
598 (bfd_put_bits): Likewise
599 * bfd-in.h: Declared the above.
600 * bfd-in2.h: Regenerated.
602 2000-12-20 Kazu Hirata <kazu@hxi.com>
604 * targets.c: Fix formatting.
605 * tekhex.c: Likewise.
606 * trad-core.c: Likewise.
608 2000-12-19 Kazu Hirata <kazu@hxi.com>
610 * sco5-core.c: Fix formatting.
611 * section.c: Likewise.
612 * sparclinux.c: Likewise.
613 * sparclynx.c: Likewise.
614 * sparcnetbsd.c: Likewise.
617 * stab-syms.c: Likewise.
620 * sysdep.h: Likewise.
622 2000-12-18 Nick Clifton <nickc@redhat.com>
624 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
626 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
627 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
629 2000-12-18 Nick Clifton <nickc@redhat.com>
631 * vms-misc.c (_bfd_vms_get_record): Add default case to
634 2000-12-15 Miloslav Trmac <mitr@volny.cz>
636 * elfcore.h (elf_core_file_p): Move to the start of the program
637 headers before attempting to read them.
639 2000-12-14 Kazu Hirata <kazu@hxi.com>
641 * peigen.c: Fix formatting.
645 2000-12-13 Kazu Hirata <kazu@hxi.com>
647 * peigen.c: Fix formatting.
649 2000-12-12 Jim Wilson <wilson@redhat.com>
651 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
653 2000-12-08 Mark Salter <msalter@redhat.com>
655 * binary.c (binary_set_section_contents): Ignore sections
658 2000-12-12 Kazu Hirata <kazu@hxi.com>
660 * m68klinux.c: Fix formatting.
661 * m68knetbsd.c: Likewise.
662 * mipsbsd.c: Likewise.
663 * netbsd-core.c: Likewise.
664 * netbsd.h: Likewise.
665 * newsos3.c: Likewise.
666 * nlm32-alpha.c: Likewise.
667 * nlm32-i386.c: Likewise.
668 * nlm32-ppc.c: Likewise.
669 * nlm32-sparc.c: Likewise.
670 * nlmcode.h: Likewise.
671 * nlmswap.h: Likewise.
672 * nlm-target.h: Likewise.
673 * ns32knetbsd.c: Likewise.
675 2000-12-10 Fred Fish <fnf@be.com>
677 * elflink.h (elf_link_output_extsym): Don't complain about undefined
678 symbols in shared objects if allow_shlib_undefined is true.
680 2000-12-12 Nick Clifton <nickc@redhat.com>
682 * cpu-sh.c: Fix formattng.
683 * elf.c: Fix formattng.
684 * elf32-mips.c: Fix formattng.
685 * elf32-sh.c: Fix formattng.
686 * elf64-alpha.c: Fix formattng.
688 2000-12-09 Nick Clifton <nickc@redhat.com>
690 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
691 dwarf2_find_line_info as last parameter to invocation of
692 _bfd_dwarf2_find_nearest_line.
693 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
694 dwarf2_find_line_info as last parameter to invocation of
695 _bfd_dwarf2_find_nearest_line.
697 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
699 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
700 (BFD_LIBS): ...to here.
701 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
702 (BFD_LIBS_CFILES): ...to here.
703 * Makefile.in: Regenerate.
704 * configure.in: Remove dwarf.lo from the elf shell variable.
705 * configure: Regenerate.
706 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
707 * libcoff.h: Regenerate.
708 * coffgen.c (coff_find_nearest_line): Call
709 _bfd_dwarf2_find_nearest_line.
710 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
712 (read_abbrevs): Likewise
713 (decode_line_info): Likewise.
714 (parse_comp_unit): Likewise.
715 (comp_unit_find_nearest_line): Likewise.
716 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
717 * libbfd.h: Regenerate.
718 * elf.c (_bfd_elf_find_nearest_line): Update call.
719 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
720 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
721 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
722 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
723 (styp_to_sec_flags): Handle DWARF2 sections.
724 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
725 to _bfd_find_nearest_line.
726 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
727 call to _bfd_find_nearest_line.
729 2000-12-08 Kazu Hirata <kazu@hxi.com>
731 * coffgen.c: Fix formatting.
732 * elf-m10300.c: Likewise.
733 * elf32-i386.c: Likewise.
734 * elf32-i960.c: Likewise.
735 * elf32-m68k.c: Likewise.
736 * elf32-mcore.c: Likewise.
737 * elf32-ppc.c: Likewise.
738 * elf32-sh.c: Likewise.
739 * elf32-sparc.c: Likewise.
740 * elf32-v850.c: Likewise.
741 * elf64-alpha.c: Likewise.
742 * elf64-hppa.c: Likewise.
743 * elf64-mips.c: Likewise.
744 * elf64-sparc.c: Likewise.
746 2000-12-07 Kazu Hirata <kazu@hxi.com>
748 * elf32-ppc.c: Fix formatting.
749 * elf64-x86-64.c: Likewise.
751 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
753 From Ralf Baechle <ralf@gnu.org>
755 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
756 BFDs containing no sections or empty .text, .data or .bss sections
757 to be merged, regardless of their flags.
759 2000-12-06 Kazu Hirata <kazu@hxi.com>
761 * elf32-m32r.c: Fix formatting.
762 * elf32-m68hc11.c: Likewise.
763 * elf32-m68hc12.c: Likewise.
764 * elf32-m68k.c: Likewise.
765 * elf32-mcore.c: Likewise.
766 * elf32-pj.c: Likewise.
767 * elf32-ppc.c: Likewise.
769 2000-12-05 Kazu Hirata <kazu@hxi.com>
771 * elf32-fr30.c: Fix formatting.
772 * elf32-hppa.c: Likewise.
773 * elf32-i370.c: Likewise.
774 * elf32-i386.c: Likewise.
775 * elf32-i860.c: Likewise.
776 * elf32-i960.c: Likewise.
778 2000-12-03 Kazu Hirata <kazu@hxi.com>
780 * elf32-arm.h: Fix formatting.
781 * elf32-avr.c: Likewise.
782 * elf32-cris.c: Likewise.
783 * elf32-d10v.c: Likewise.
784 * elf32-d30v.c: Likewise.
785 * elf-hppa.h: Likewise.
786 * elf-m10200.c: Likewise.
787 * elf-m10300.c: Likewise.
789 2000-12-01 Chris Demetriou <cgd@sibyte.com>
791 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
792 bfd_mach_mips32_4k. Update FIXME comment.
793 * archures.c (bfd_mach_mips32): New constant.
794 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
795 the latter, renumber it.
796 * bfd-in2.h (bfd_mach_mips32): New constant.
797 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
798 the latter, renumber it.
799 * cpu-mips.c (I_mips32): New constant.
800 (I_mips4K, I_mips32_4k): Rename the former to the latter.
801 (arch_info_struct): Add bfd_mach_mips32 entry, replace
802 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
803 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
804 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
805 with E_MIPS_MACH_MIPS32_4K.
806 (_bfd_mips_elf_final_write_processing): Replace
807 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
808 bfd_mach_mips32 case.
809 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
810 comparison with support for MIPS32.
811 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
814 * aoutx.h (NAME(aout,machine_type)): Add cases for
815 bfd_mach_mips5 and bfd_mach_mips64.
816 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
817 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
818 * cpu_mips.c (I_mips5, I_mips64): New definitions.
819 (arch_info_struct): Add entries for bfd_mach_mips5 and
821 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
822 _bfd_mips_elf_print_private_bfd_data): Add cases for
823 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
824 (_bfd_mips_elf_final_write_processing): Add cases for
825 bfd_mach_mips5 and bfd_mach_mips64.
827 * bfd/aoutx.h (NAME(aout,machine_type)): Add a
828 bfd_mach_mips_sb1 case.
829 * bfd/archures.c (bfd_mach_mips_sb1): New constant.
830 * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
831 * bfd/cpu-mips.c (I_sb1): New constant.
832 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
833 * bfd/elf32-mips.c (elf_mips_mach): Add case for
835 (_bfd_mips_elf_final_write_processing): Add case for
838 2000-12-01 Joel Sherrill <joel@OARcorp.com>
840 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
841 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
842 (sparc*-*-rtems*): Switched from a.out to ELF.
844 2000-11-30 Jan Hubicka <jh@suse.cz>
846 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
847 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
848 (elf64-x86-64.lo): Add dependencies.
849 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
850 bfd_mach_x86_64_intel_syntax.
851 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
852 * config.bfd (x86_64): Add.
853 * configure.in: Add support for bfd_elf64_x86_64_vec.
854 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
855 (bfd_i386_arch, i8086_ar): Link in.
856 * elf64-x86-64.c: New file.
857 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
858 * targets.c (bfd_elf64_x86_64_vec): Add.
859 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
861 2000-11-30 Kazu Hirata <kazu@hxi.com>
863 * xcofflink.c: Fix formatting.
865 2000-11-28 Kazu Hirata <kazu@hxi.com>
867 * aoutx.h: Fix formatting.
868 * bfd-in.h: Likewise.
869 * bfd-in2.h: Likewise.
871 * cisco-core.c: Likewise.
872 * coff64-rs6000.c: Likewise.
873 * coffcode.h: Likewise.
874 * coffswap.h: Likewise.
875 * corefile.c: Likewise.
876 * elf32-mips.c: Likewise.
878 2000-11-27 Kazu Hirata <kazu@hxi.com>
880 * aout-adobe.c: Fix formatting.
881 * coff64-rs6000.c: Likewise.
882 * coffgen.c: Likewise.
883 * cofflink.c: Likewise.
885 2000-11-27 Philip Blundell <pb@futuretv.com>
887 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
888 (obj_coff_strings_written): New accessor macro for above.
889 * libcoff.h: Regenerate.
890 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
892 * coffcode.h (coff_write_object_contents): No need to write out
893 the string table if it's already been done.
895 2000-11-22 Philip Blundell <pb@futuretv.com>
897 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
898 weak undefined symbols.
900 2000-11-24 Nick Clifton <nickc@redhat.com>
902 * archures.c (bfd_mach_arm_5TE): Define.
903 (bfd_mach_arm+XScale): Define.
904 * bfd-in2.h: Regenerate.
906 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
907 BFD_RELOC_ARM_PCREL_BLX.
909 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
910 XScale machine numbers.
912 * config.bfd (xscale-elf): Add target.
913 (xscale-coff): Add target.
915 * cpu-arm.c: Add xscale machine name.
916 Add v5t, v5te and XScale machine numbers.
918 2000-11-23 Kazu Hirata <kazu@hxi.com>
920 * aix386-core.c: Fix formatting.
922 2000-11-22 Jim Wilson <wilson@redhat.com>
924 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
925 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
926 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
927 (ins_imms_scaled): Initialize sign_bit at function entry.
928 (elf64_ia64_operands): Add missing initializers.
929 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
930 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
931 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
932 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
933 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
935 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
936 and free_extsyms at function entry.
937 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
938 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
939 (get_got): Delete unused local srel.
940 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
941 (elfNN_ia64_relocate_section): Delete unused local dynindx.
943 2000-11-21 Kazu Hirata <kazu@hxi.com>
945 * coff-a29k.c: Fix formatting.
946 * coff-h8500.c: Likewise.
947 * coff-i960.c: Likewise.
948 * coff-ppc.c: Likewise.
949 * coff-rs6000.c: Likewise.
950 * coff-stgo32.c: Likewise.
951 * coff-tic54x.c: Likewise.
952 * coff-w65.c: Likewise.
953 * cpu-h8500.c: Likewise.
954 * cpu-hppa.c: Likewise.
955 * cpu-ns32k.c: Likewise.
957 * ecofflink.c: Likewise.
959 2000-11-21 Nick Clifton <nickc@redhat.com>
961 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
962 remove possibility of infinite loop.
964 2000-11-20 Kazu Hirata <kazu@hxi.com>
966 * aix386-core.c: Fix formatting.
967 * aout-adobe.c: Likewise.
968 * aout-arm.c: Likewise.
969 * aout-encap.c: Likewise.
970 * aout-ns32k.c: Likewise.
971 * aout-target.h: Likewise.
972 * aout-tic30.c: Likewise.
973 * aoutf1.h: Likewise.
975 * archive.c: Likewise.
976 * bfd-in.h: Likewise.
977 * bfd-in2.h: Likewise.
981 2000-11-17 H.J. Lu <hjl@gnu.org>
983 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
984 pltoff entries for DT_INIT and DT_FINI.
985 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
986 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
989 2000-11-16 Richard Henderson <rth@redhat.com>
991 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
992 (allocate_dynrel_entries): Likewise.
993 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
994 (set_pltoff_entry): Likewise.
995 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
996 (elfNN_ia64_reloc_type_lookup): Likewise.
997 (elfNN_ia64_install_value): Likewise.
998 (elfNN_ia64_relocate_section): Likewise.
999 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1000 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1002 2000-11-16 Kazu Hirata <kazu@hxi.com>
1004 * cpu-a29k.c: Fix formatting.
1005 * cpu-alpha.c: Likewise.
1006 * cpu-arm.c: Likewise.
1007 * cpu-avr.c: Likewise.
1008 * cpu-d10v.c: Likewise.
1009 * cpu-h8500.c: Likewise.
1010 * cpu-hppa.c: Likewise.
1011 * cpu-i370.c: Likewise.
1012 * cpu-i386.c: Likewise.
1013 * cpu-i960.c: Likewise.
1014 * cpu-ia64-opc.c: Likewise.
1015 * cpu-ia64.c: Likewise.
1016 * cpu-m32r.c: Likewise.
1017 * cpu-m68hc11.c: Likewise.
1018 * cpu-m68hc12.c: Likewise.
1019 * cpu-m68k.c: Likewise.
1020 * cpu-m88k.c: Likewise.
1021 * cpu-mips.c: Likewise.
1022 * cpu-ns32k.c: Likewise.
1023 * cpu-pj.c: Likewise.
1024 * cpu-powerpc.c: Likewise.
1025 * cpu-sh.c: Likewise.
1026 * cpu-sparc.c: Likewise.
1027 * cpu-tic54x.c: Likewise.
1028 * cpu-v850.c: Likewise.
1029 * cpu-vax.c: Likewise.
1030 * cpu-w65.c: Likewise.
1031 * cpu-we32k.c: Likewise.
1032 * cpu-z8k.c: Likewise.
1033 * dwarf1.c: Likewise.
1034 * dwarf2.c: Likewise.
1036 2000-11-15 Kazu Hirata <kazu@hxi.com>
1038 * coff-arm.c: Fix formatting.
1039 * coff-ppc.c: Likewise.
1040 * coff-rs6000.c: Likewise.
1041 * coff-sh.c: Likewise.
1042 * coff-sparc.c: Likewise.
1043 * coff-tic30.c: Likewise.
1044 * coff-tic54x.c: Likewise.
1045 * coff-tic80.c: Likewise.
1046 * coff-w65.c: Likewise.
1047 * coff-we32k.c: Likewise.
1048 * coff-z8k.c: Likewise.
1050 2000-11-15 Richard Henderson <rth@redhat.com>
1052 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1053 section with the same ALLOC|LOAD flags as the source section.
1055 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1057 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1058 by STO_ALPHA constants.
1060 2000-11-14 Kazu Hirata <kazu@hxi.com>
1062 * coff-pmac.c: Fix formatting.
1063 * coff-ppc.c: Likewise.
1065 2000-11-13 H.J. Lu <hjl@gnu.org>
1067 * elflink.h (elf_link_add_object_symbols): Also add indirect
1068 symbols for common symbols with the default version.
1070 2000-11-09 Philip Blundell <pb@futuretv.com>
1072 * section.c (STD_SECTION): Set gc_mark flag.
1074 2000-11-11 Kazu Hirata <kazu@hxi.com>
1076 * coff-i960.c: Likewise.
1077 * coff-m68k.c: Likewise.
1078 * coff-m88k.c: Likewise.
1079 * coff-mcore.c: Likewise.
1080 * coff-mips.c: Likewise.
1082 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1084 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1086 2000-11-10 Kazu Hirata <kazu@hxi.com>
1088 * coff-h8300.c: Fix formatting.
1089 * coff-h8500.c: Likewise.
1090 * coff-i386.c: Likewise.
1091 * coff-i860.c: Likewise.
1092 * coff-i960.c: Likewise.
1093 * coff-ia64.c: Likewise.
1095 2000-11-09 Kazu Hirata <kazu@hxi.com>
1097 * archive.c: Fix formatting.
1098 * archures.c: Likewise.
1100 2000-11-07 Richard Henderson <rth@redhat.com>
1102 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1103 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1104 * section.c (bfd_set_section_contents): Call memcpy if
1105 section->contents set and location not equal to contents plus offset.
1107 2000-11-08 Kazu Hirata <kazu@hxi.com>
1109 * bfd-in.h: Fix formatting.
1110 * bfd-in2.h: Likewise.
1112 * binary.c: Likewise.
1114 * coff-a29k.c: Likewise.
1115 * coff-alpha.c: Likewise.
1116 * coff-apollo.c: Likewise.
1117 * coff-aux.c: Likewise.
1119 2000-11-07 Kazu Hirata <kazu@hxi.com>
1121 * aix386-core.c: Fix formatting.
1122 * aoutf1.h: Likewise.
1123 * aoutx.h: Likewise.
1124 * archures.c: Likewise.
1125 * armnetbsd.c: Likewise.
1127 2000-11-07 Alan Modra <alan@linuxcare.com.au>
1129 * coff-h8300.c (special): Adjust reloc address.
1131 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1133 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1134 to differentiate elf32 and elf64 on ia64.
1135 * bfd-in2.h: Regenerate.
1136 * config.bfd: Add target for "ia64*-*-hpux*".
1137 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1138 * configure: Regenerate.
1139 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1140 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1142 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1143 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1144 * Makefile.in: Regnerate.
1145 * elf64-ia64.c: Deleted.
1146 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1148 2000-11-06 Kazu Hirata <kazu@hxi.com>
1150 * aout-adobe.c: Fix formatting.
1151 * aout-arm.c: Likewise.
1152 * aout-cris.c: Likewise.
1153 * aout-encap.c: Likewise.
1154 * aout-ns32k.c: Likewise.
1155 * aout-target.h: Likewise.
1156 * aout-tic30.c: Likewise.
1158 2000-11-05 Philip Blundell <philb@gnu.org>
1160 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1161 BFDs containing no sections to be merged, regardless of their flags.
1163 2000-11-04 Philip Blundell <philb@gnu.org>
1165 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1166 if a relocation for an undefined symbol also results in an
1169 2000-11-06 Christopher Faylor <cgf@cygnus.com>
1171 * config.bfd: Add support for Sun Chorus.
1173 2000-11-05 David O'Brien <obrien@FreeBSD.org>
1175 * configure.in: Recognize alpha-*-freebsd*.
1176 * configure: Regenerate.
1178 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
1180 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1181 (Chunk): New global variable set by a parameter in objcopy.c.
1182 (S3Forced): New global variable set by a parameter in
1184 (srec_set_section_contents): If S3Forced is true, always generate
1186 (srec_write_section): Use 'Chunk' to limit maximum length of S
1189 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1191 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1192 * Makefile.in: Regenerate.
1193 * bfd-in2.h: Regenerate.
1194 * po/bfd.pot: Regenerate.
1196 2000-10-31 Philip Blundell <philb@gnu.org>
1198 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1199 EF_SOFT_FLOAT if it is defined.
1201 2000-10-27 Philip Blundell <philb@gnu.org>
1203 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1204 attempts to mix PIC code with non-PIC, just mark the output as
1205 being position dependent.
1206 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1207 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1208 all mismatches, not just the first one.
1210 2000-10-25 Chris Demetriou <cgd@sibyte.com>
1212 * ieee.c (ieee_archive_p): Plug one of many possible
1213 memory leaks in error handling.
1215 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1217 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1218 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1220 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1221 sparc64_elf_object_p): Support v9b.
1222 * archures.c: Declare v8plusb and v9b machines.
1224 * cpu-sparc.c: Ditto.
1226 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1228 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1231 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1232 (SYMBOL_CALLS_LOCAL): New macro.
1233 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1234 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1235 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1236 (ppc_elf_relocate_section): Use flag variable to determine
1237 whether the relocation refers to a local symbol.
1238 Test whether a PLTREL24 reloc will produce a reloc by looking
1239 to see whether a PLT entry was made.
1241 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1243 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1244 entries that could serve as a definition for a weak symbol.
1246 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1248 From Ralf Baechle <ralf@gnu.org>
1250 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1251 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1252 against local symbols.
1253 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1255 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1257 * section.c (struct sec): Add kept_section.
1258 (struct bfd_comdat_info): Remove sec, we can use above.
1259 (STD_SECTION): Add initializer.
1260 (bfd_make_section_anyway): Init here too.
1262 * bfd-in2.h: Regenerate.
1264 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1266 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1267 fudge values for discarded link-once section symbols.
1269 * elf64-hppa.c: Include alloca-conf.h
1271 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1273 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1275 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1277 2000-10-10 Alan Modra <alan@linuxcare.com.au>
1279 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1281 2000-10-10 Tom Rix <trix@redhat.com>
1283 * section.c (bfd_make_section_anyway): Release newsect ptr when
1284 newsect->symbol fails to alloc. Use bfd_release instead of free.
1286 2000-10-09 Richard Henderson <rth@cygnus.com
1288 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1289 (elf64_ia64_unwind_entry_compare): New.
1290 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1292 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1294 * elflink.h (size_dynamic_sections): Don't create various tags if
1295 .dynstr is excluded from the link. Don't set first dynsym entry
1296 if dynsymcount is zero.
1297 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1298 .dynsym excluded from the link. Don't try to write any dynamic
1299 sections excluded from the link.
1301 * elf.c (swap_out_syms): Handle global section symbols.
1303 2000-10-05 DJ Delorie <dj@redhat.com>
1305 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1306 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1307 (coff_write_relocs): write extended reloc count
1308 (coff_write_object_contents): account for extended relocs
1310 2000-10-05 Jim Wilson <wilson@cygnus.com>
1312 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1314 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1315 elf_backend_section_flags function.
1316 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1318 (elf64_ia64_section_flags): New function containing flag conversion
1320 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1321 * elfxx-target.h (elf_backend_section_flags): Define.
1322 (elfNN_bed): Initialize elf_backend_section_flags field.
1324 2000-10-02 Alan Modra <alan@linuxcare.com.au>
1326 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1327 _bfd_elf32_gc_record_vtable. Correct a comment.
1329 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1331 From Ralf Baechle <ralf@gnu.org>
1333 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1334 produces binaries with got[1] = 0x80000001 to differenciate them
1335 for the dynamic linker from the broken binaries produced by old
1338 2000-09-30 Petr Sorfa <petrs@sco.com>
1340 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1341 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1342 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1343 * configure: Regenerate.
1345 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
1347 Define two bfd_targets for absence and presence of leading
1348 underscore on symbols. Make sure to only link same kind.
1349 * elf32-cris.c (cris_elf_object_p,
1350 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1351 cris_elf_merge_private_bfd_data): New.
1352 (elf_backend_object_p, elf_backend_final_write_processing,
1353 bfd_elf32_bfd_print_private_bfd_data,
1354 bfd_elf32_bfd_merge_private_bfd_data): Define.
1355 <Target vector definition>: Include elf32-target.h twice with
1356 different macro settings:
1357 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1358 bfd_elf32_us_cris_vec.
1359 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1360 (elf_symbol_leading_char): First as 0, then '_'.
1361 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1362 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1363 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1364 * configure: Regenerate.
1365 * targets.c: Declare bfd_elf32_us_cris_vec.
1366 * po/bfd.pot: Regenerate.
1368 2000-09-29 Momchil Velikov <velco@fadata.bg>
1370 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1371 R_ARM_THM_PC22 relocations.
1373 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1375 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1377 2000-09-29 Momchil Velikov <velco@fadata.bg>
1379 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1380 is has the SEC_HAS_CONTENTS flag set.
1382 2000-09-28 Vrjan Friberg <orjanf@axis.com>
1383 Hans-Peter Nilsson <hp@axis.com>
1385 * aout-cris.c (N_TXTADDR): Define.
1387 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1389 * som.c: Include alloca-conf.h.
1390 * Makefile.am: "make dep-am"
1391 * Makefile.in: Regenerate.
1393 2000-09-27 Alan Modra <alan@linuxcare.com.au>
1395 * elf32-hppa.c (plt_stub): New.
1396 (PLT_STUB_ENTRY): Define.
1397 (elf32_hppa_link_hash_table): Change multi_subspace to packed
1398 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1399 (elf32_hppa_link_hash_table_create): Init to suit.
1400 (elf32_hppa_check_relocs): Set has_12bit_branch and
1401 has_17bit_branch as appropriate.
1402 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1403 non-local functions.
1404 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1405 Add space for plt_stub as needed.
1406 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1407 functions at plt_stub.
1408 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1409 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1411 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1412 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
1413 of fixed size, and if negative, disable handling of input sections
1414 before stub section. Set up default stub group size depending
1415 on detected branch relocs.
1416 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1417 ensure different offsets from sym_value aren't rounded to
1418 different 2k blocks. Use lrsel and rrsel for other stubs too for
1419 consistency rather than necessity.
1420 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1421 (final_link_relocate): Likewise.
1422 (elf32_hppa_relocate_section): Likewise.
1424 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1425 (_bfd_elf_hppa_gen_reloc_type): Generate them.
1426 (elf_hppa_final_link_relocate): Handle them.
1427 (elf_hppa_relocate_insn): Likewise.
1428 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1430 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
1432 * elfcode.h (elf_object_p): Preserve and clear abfd section
1433 information. Restore at error.
1435 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1437 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1438 is empty, make sure that its rva also 0. NT loader dislikes
1441 2000-09-26 Steve Ellcey <sje@cup.hp.com>
1443 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1446 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1448 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1449 currently unused RELATIVE_DYNAMIC_RELOCS code.
1450 (hppa_discard_copies): Likewise.
1451 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1452 comments. Don't check non-code output sections for stub grouping.
1454 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1456 * section.c (bfd_get_unique_section_name): Return NULL if
1459 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1461 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1462 instruction sequence to actually work.
1463 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1466 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
1468 * elf32-sh.c (sh_elf_relocate_section): Use
1469 _bfd_final_link_relocate to apply the relocation against a section
1470 symbol, when doing relocatable links.
1472 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1474 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1476 (stub_hash_newfunc): Here too.
1477 (hppa_add_stub): And here.
1478 (elf32_hppa_link_hash_table): Remove stub_section_created,
1479 reloc_section_created, first_init_sec and first_fini_sec. Add
1481 (elf32_hppa_link_hash_table_create): Init to suit.
1482 (hppa_get_stub_entry): Add support for grouping stub sections.
1483 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
1484 section code. Index stub vars by section->id.
1485 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
1486 exit paths. Zap allocation of above removed vars. Refine
1489 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1490 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1491 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1492 rather than pointer to bfd_link_info.
1493 (hppa_add_stub): Likewise.
1494 (final_link_relocate): Likewise.
1496 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
1498 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1501 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
1503 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1504 ld/emulparams/shelf.sh.
1506 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1508 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1509 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1510 * bfd-in2.h: Regenerate.
1512 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
1514 * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1515 LITUSE relocations incorrectly if -relax is specified on the ld
1516 command line and the displacement field of the load or store
1517 instruction is non-zero. (Patch by paul.winalski@compaq.com)
1519 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1521 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1522 first_fini_sec here.
1523 (elf32_hppa_size_stubs): Instead correctly find the first .init
1524 and .fini section here.
1526 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
1528 * elf32-hppa.c (clobber_millicode_symbols): New function.
1529 (elf32_hppa_size_dynamic_sections): Call it.
1531 2000-09-14 Alan Modra <alan@linuxcare.com.au>
1533 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1534 packed. Add plabel, plt_abs packed booleans.
1535 (hppa_link_hash_newfunc): Init new fields.
1536 (PLABEL_PLT_ENTRY_SIZE): Define.
1537 (hppa_stub_name): Use size_t len vars.
1538 (hppa_add_stub): Likewise.
1539 (elf32_hppa_build_stubs): Likewise.
1540 (hppa_build_one_stub): Kill some compiler warnings.
1541 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1542 if dynamic linking. Munge the local plt offsets into
1543 local_got_refcounts. Set h->plabel for all global PLABELs. Use
1544 size_t len vars. Add assert for plabel addend.
1545 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1546 (elf32_hppa_hide_symbol): New function.
1547 (elf_backend_hide_symbol): Define.
1548 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1549 with h->plabel set. Don't make plt entries to have dynamic syms
1550 when they have been forced local. If plt entry is used by a
1551 plabel, make it PLABEL_PLT_ENTRY_SIZE.
1552 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1553 Set up .plt offsets for local syms.
1554 (elf32_hppa_relocate_section): Initialise plt entries for local
1555 syms. Leave weak undefined plabels zero. Make global plabel
1556 relocs against function symbol, and leave the addend zero.
1557 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1558 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1559 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
1560 relocs instead of SEGREL32 for dynamic got relocs.
1561 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1562 (elf_backend_got_header_size): Adjust.
1563 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
1565 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1566 (hppa_type_of_stub): Use it instead of #if 0
1567 (hppa_discard_copies): Use it here too.
1568 (elf32_hppa_size_dynamic_sections): And here.
1570 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1571 (elf32_hppa_link_hash_table_create): And here.
1572 (hppa_build_one_stub): And here. Instead keep track of stub
1573 offset using _raw_size.
1574 (elf32_hppa_size_stubs): Likewise.
1575 (elf32_hppa_build_stubs): Likewise.
1576 (hppa_size_one_stub): Likewise. Resize reloc section too.
1578 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
1579 first_fini_sec handling. Don't search for reloc section or set
1580 hplink->reloc_section_created here.
1581 (elf32_hppa_size_stubs): Instead search for reloc sections, and
1582 set reloc_section_created here.
1583 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
1584 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
1586 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
1588 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
1589 with `hplink->root.'.
1590 (elf32_hppa_check_relocs): Likewise.
1591 (elf32_hppa_gc_sweep_hook): Likewise.
1592 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1593 (hppa_handle_PIC_calls): Likewise.
1594 (elf32_hppa_size_dynamic_sections): Likewise.
1595 (elf32_hppa_set_gp): Likewise.
1596 (elf32_hppa_relocate_section): Likewise.
1597 (elf32_hppa_finish_dynamic_symbol): Likewise.
1598 (elf32_hppa_finish_dynamic_sections): Likewise.
1600 From David Huggins-Daines <dhd@linuxcare.com>
1601 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
1602 defined weak symbols in shared links.
1603 (final_link_relocate): Calls to defined weak symbols in shared
1604 objects must go via import stubs, as the target might not be known
1607 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1609 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
1610 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
1611 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
1612 the original entries with EMPTY_HOWTOs, and added new ones to fill
1614 (sh_elf_info_to_howto): Make sure the new gap isn't used.
1615 (sh_elf_relocate_section): Likewise.
1617 2000-09-13 Anders Norlander <anorland@acc.umu.se>
1619 * cpu-mips.c (arch_info_struct): Add mips:4K
1620 * bfd-in2.h (bfd_mach_mips4K): New define.
1621 * archures.c: Add bfd_mach_mips4K to comment.
1622 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
1623 E_MIPS_ARCH_2 for bfd_mach_mips4K.
1625 2000-09-13 Marco Franzen <marcof@thyron.com>
1627 * som.c (som_write_symbol_strings): Do not used fixed buffers,
1628 use size_t as a counter.
1629 (som_write_space_strings): Similarly.
1631 2000-09-12 Jason Eckhardt <jle@cygnus.com>
1633 * elf32-i860.c (elf32_i860_relocate_pc26): New function
1635 (elf32_i860_relocate_section): Invoke new function from here.
1637 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1639 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
1642 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1644 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
1645 target section name instead of dumping core when the target symbol is
1648 2000-09-09 Kazu Hirata <kazu@hxi.com>
1650 * riscix.c: Remove DEFUN.
1652 2000-09-08 Nick Clifton <nickc@redhat.com>
1654 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
1655 initialise flags in output bfd if the input bfd is the default
1656 architecture with the default flags.
1658 2000-09-08 Kazu Hirata <kazu@hxi.com>
1660 * archive.c: Fix formatting.
1661 * coff-arm.c: Likewise.
1662 * doc/chew.c: Likewise.
1664 2000-09-08 Alan Modra <alan@linuxcare.com.au>
1666 * section.c (bfd_get_unique_section_name): Put a dot before the
1669 2000-09-07 Kazu Hirata <kazu@hxi.com>
1671 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
1672 * elf.c: Fix formatting.
1674 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
1676 * config.bfd (sh-*-linux*): Added.
1677 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
1678 * targets.c: Declare them.
1679 * elf32-sh-lin.c: New file.
1680 * Makefile.am: Compile it.
1681 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
1682 * configure, Makefile.in: Rebuilt.
1684 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
1686 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
1687 pseduo-section when determining where the TOC ends.
1689 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
1690 output x_tvndx as it is only two bytes wide.
1692 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
1693 reloc is 26 or 32 bits wide.
1695 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
1696 for relocs that don't change anything. Also look at the full
1699 2000-09-06 Philip Blundell <philb@gnu.org>
1701 * config.bfd (arm*-*-uclinux*): New target.
1703 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1705 * configure: Rebuilt with new libtool.m4.
1707 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1709 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
1710 word for variable name.
1711 * bfd-in2.h: Regenerate.
1713 2000-09-05 Nick Clifton <nickc@redhat.com>
1715 * config.in: Regenerate.
1716 * libbfd.h: Regenerate.
1717 * po/bfd.pot: Regenerate.
1718 * doc/bfdint.texi: Remove CVS date string - it foils compares with
1721 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
1723 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
1725 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1727 Shared library and PIC support.
1728 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
1729 (GOT_ENTRY_SIZE): New.
1730 (ELF_DYNAMIC_INTERPRETER): New.
1731 (STUB_SUFFIX): Define.
1732 (LONG_BRANCH_PIC_IN_SHLIB): Define.
1733 (RELATIVE_DYNAMIC_RELOCS): Define.
1734 (enum elf32_hppa_stub_type): New.
1735 (struct elf32_hppa_stub_hash_entry): Rename offset to
1736 stub_offset. Add a number of new fields.
1737 (struct elf32_hppa_link_hash_entry): New.
1738 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
1740 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
1741 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
1742 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
1744 (hppa_link_hash_newfunc): New function.
1745 (elf32_hppa_link_hash_table_create): Use above function. Init new
1747 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
1748 instead of addend, and remove sym_name from args. Don't use
1749 symbol name for local syms, instead use sym index.
1750 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
1751 stub type rather than size. Pass in hash and handle import stub
1752 case. Also pass in reloc instead of offset so we can calculate
1753 PCREL22F and PCREL12F branches properly.
1754 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
1755 import and export stubs too.
1756 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
1757 import and export stub sizing.
1758 (elf32_hppa_check_relocs): New function.
1759 (elf32_hppa_adjust_dynamic_symbol): New function.
1760 (hppa_discard_copies): New function.
1761 (elf32_hppa_size_dynamic_sections): New function.
1762 (elf_backend_size_dynamic_sections): Define.
1763 (elf32_hppa_finish_dynamic_symbol): New function.
1764 (elf_backend_finish_dynamic_symbol): Define.
1765 (elf32_hppa_size_stubs): Stash params in link hash table, and move
1766 some local vars into the link hash table too. For shared links,
1767 trundle over function syms, generating export stubs. Handle
1768 PCREL22F branches. Break out stub creation code from here..
1769 (hppa_add_stub): .. to here. New function.
1770 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
1771 call the bfd linker. Use elf_gp to record global pointer.
1772 Calculate a value from sections if $global$ is missing.
1773 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
1774 (elf32_hppa_gc_mark_hook): New function.
1775 (elf_backend_gc_mark_hook): Define.
1776 (elf32_hppa_gc_sweep_hook): New function.
1777 (elf_backend_gc_sweep_hook): Define.
1778 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
1779 Add rel to args, and remove howto, input_bfd, offset, addend,
1780 sym_name as we can recalculate these locally. Handle calls to
1781 dynamic objects, extra PIC relocs, PCREL22F branches. Change
1782 handling of undefined weak syms. Check that stubs are in range.
1783 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
1784 message on hitting a DPREL21L reloc that needs fixing. Subtract
1785 off PC for PCREL14F. Break out code that does a stub lookup from
1787 (hppa_get_stub_entry): ..to here. New function.
1788 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
1789 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
1791 (elf32_hppa_finish_dynamic_sections): New function.
1792 (elf_backend_finish_dynamic_sections): Define.
1793 (elf_backend_final_write_processing) Define.
1794 (hppa_handle_PIC_calls): New function.
1795 (elf32_hppa_build_stubs): Call it. Pass link_info to
1796 hppa_build_one_stub.
1797 (elf32_hppa_create_dynamic_sections): New function
1798 to create .plt and .got then set .plt flags correctly.
1799 (elf_backend_create_dynamic_sections): Define.
1800 (elf32_hppa_object_p): New function.
1801 (elf_backend_object_p): Define.
1802 (elf32_hppa_elf_get_symbol_type): New function.
1803 (elf_backend_get_symbol_type): Define.
1804 (elf_backend_can_gc_sections): Define.
1805 (elf_backend_want_got_plt): Define.
1806 (elf_backend_plt_alignment): Set to 2.
1807 (elf_backend_plt_readonly): Define.
1808 (elf_backend_want_plt_sym): Define.
1809 (elf_backend_got_header_size): Reserve one entry.
1811 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
1812 (elf32_hppa_size_stubs): Pass in multi_subspace.
1813 (elf32_hppa_set_gp): Declare.
1815 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
1816 (bfd_get_unique_section_name): New function.
1817 * bfd_in2.h: Regenerate.
1819 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
1820 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
1823 From David Huggins-Daines <dhd@linuxcare.com>
1824 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
1825 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
1826 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
1827 been updated in finish_dynamic_symbol before modifying function
1830 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
1831 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
1832 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
1833 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
1834 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
1835 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
1836 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
1837 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
1839 From David Huggins-Daines <dhd@linuxcare.com>
1840 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
1841 style of local labels as well.
1843 2000-09-03 Philip Blundell <philb@gnu.org>
1845 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
1846 references to undefined symbols in debugging sections.
1848 2000-09-02 H.J. Lu <hjl@gnu.org>
1850 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1851 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
1852 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
1855 2000-09-02 Jason Eckhardt <jle@cygnus.com>
1857 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
1858 (elf32_i860_is_local_label_name): New function and prototype.
1860 2000-09-02 Nick Clifton <nickc@redhat.com>
1862 * configure.in: Increase version number to 2.10.91.
1863 * configure: Regenerate.
1864 * aclocal.m4: Regenerate.
1865 * config.in: Regenerate.
1866 * po/bfd.pot: Regenerate.
1868 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1870 * elf.c (_bfd_elf_make_section_from_shdr): Add
1871 .gnu.linkobce.wi. to the list of debug section names.
1873 2000-09-02 Nick Clifton <nickc@redhat.com>
1875 * dwarf2.c (find_debug_info): New function: Locate a section
1876 containing dwarf2 debug information.
1877 (bfd_dwarf2_find_nearest_line): Find all sections containing
1878 debug information and include them in the stash.
1880 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1882 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
1883 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
1884 (sh_reloc_map): Add new relocs.
1885 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
1886 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
1887 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
1888 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
1890 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
1891 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1892 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
1893 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
1894 New array constants.
1895 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
1897 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1898 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
1899 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
1900 elf_sh_plt_reloc_offset): Define.
1901 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
1902 elf_sh_link_hash_table): New structs.
1903 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
1904 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
1906 (elf_backend_create_dynamic_sections,
1907 bfd_elf32_bfd_link_hash_table_create,
1908 elf_backend_adjust_dynamic_symbol,
1909 elf_backend_size_dynamic_sections,
1910 elf_backend_finish_dynamic_symbol,
1911 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1912 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1913 elf_backend_got_header_size, elf_backend_plt_header_size):
1915 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1916 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
1918 * bfd-in2.h, libbfd.h: Rebuilt.
1920 2000-09-01 Alan Modra <alan@linuxcare.com.au>
1922 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
1925 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
1927 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
1928 not initialized, set them to indicate the SH1 instruction set.
1930 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1932 * acinclude.m4: Include libtool and gettext macros from the
1934 * aclocal.m4, configure: Rebuilt.
1936 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
1938 * elf.c: Eliminate references to __sparcv9 macro; replace with
1939 autoconf variables HAVE_PSINFO32_T etc.
1940 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
1941 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
1943 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
1944 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
1945 * aclocal.m4: Ditto.
1946 * configure: Regenerate.
1948 2000-08-27 Alan Modra <alan@linuxcare.com.au>
1950 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
1951 for any shared link, not just shared -Bsymbolic.
1952 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
1953 any shared link, and pass link info to it.
1954 (elf_i386_size_dynamic_sections): Update comment.
1955 (elf_i386_discard_copies): Modify to discard relocs for symbols
1956 that have been forced local.
1957 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
1958 that have been forced local.
1960 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
1962 * elflink.h (elf_link_add_object_symbols): Allow common
1963 symbols to have an alignment of 1 if explicitly requested, and
1964 not overridden by other definitions.
1966 2000-08-22 Doug Kwan <dkwan@transmeta.com>
1968 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
1969 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
1971 2000-08-22 H.J. Lu <hjl@gnu.org>
1973 * elf-bfd.h (elf_link_hash_table): Add runpath.
1975 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
1976 * bfd-in2.h: Rebuilt.
1978 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
1979 "runpath" field to NULL.
1980 (bfd_elf_get_runpath_list): New function.
1982 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
1985 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
1987 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
1988 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
1989 explicitly. Improve validation of r_type.
1991 2000-08-21 H.J. Lu <hjl@gnu.org>
1993 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
1994 dynamic allocated content space. Add a comment to remind us that
1995 one day this ought to be fixed.
1996 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1997 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
1998 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2000 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2002 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2003 field with the newly relocated value instead of adding it to the
2004 existing immediate field.
2005 (elf32_i860_relocate_splitn): Likewise.
2006 (elf32_i860_relocate_highadj): Likewise.
2008 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2010 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2011 was previously just a stub).
2013 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2015 * elflink.c (_bfd_elf_create_got_section): Don't abort().
2017 (_bfd_elf_create_dynamic_sections): Likewise.
2019 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
2021 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2022 for undefined symbols to be the beginning of the section.
2024 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2025 four extra entries at the beginning of the .rela.plt section.
2026 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2027 section to account for the four reserved entries in the .plt section.
2029 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
2031 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2032 to the list of NOPs we recognize after a branch-and-link.
2033 Use the ori NOP when one is needed.
2035 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2038 2000-08-14 Jim Wilson <wilson@cygnus.com>
2040 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2041 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2042 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
2045 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
2047 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2049 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2051 * elf32-i860.c (elf32_i860_relocate_section): New function.
2052 (i860_final_link_relocate): New function.
2053 (elf32_i860_relocate_splitn): New function.
2054 (elf32_i860_relocate_pc16): New function.
2055 (elf32_i860_relocate_highadj): New function.
2056 (elf32_i860_howto): Minor adjustments to some relocations.
2057 (elf_info_to_howto_rel): Define.
2058 (elf_backend_relocate_section): Define.
2060 2000-08-10 Nick Clifton <nickc@cygnus.com>
2062 * elf32-arm.h: Fix formatting.
2064 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
2066 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2068 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2070 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2072 2000-08-07 Kazu Hirata <kazu@hxi.com>
2074 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2075 * elf64-ia64.c: Fix a typo.
2077 2000-08-05 Jason Eckhardt <jle@cygnus.com>
2079 * elf32-i860 (elf32_i860_howto_table): New structure.
2080 (lookup_howto): New function.
2081 (elf32_i860_reloc_type_lookup): New function.
2082 (elf32_i860_info_to_howto_rela): New function.
2083 (elf_code_to_howto_index): New structure.
2084 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2085 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2086 elf32_i860_reloc_type_lookup.
2088 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2090 * som.c (struct fixup_format): Constify `format'.
2091 (som_hppa_howto_table): Use SOM_HOWTO macro.
2092 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2093 (som_bfd_reloc_type_lookup): Likewise.
2094 (compare_subspaces): Remove unused `count1', `count2'.
2095 (som_begin_writing): Remove unused `total_reloc_size'.
2096 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2097 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2098 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2099 (som_find_nearest_line): Decorate unused parameter(s).
2100 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2101 (som_bfd_link_split_section): Likewise.
2103 2000-08-03 Nick Clifton <nickc@cygnus.com>
2105 * section.c: Restore backed out code.
2106 * elf.c: Restore backed out code.
2107 (copy_private_bfd_data): Fix bug preventing stipped dynamic
2108 binaries from working.
2109 * bfd-in2.h: Regenerate.
2111 2000-08-03 H.J. Lu <hjl@gnu.org>
2113 * section.c: Back out the change made by Nick Clifton
2114 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2116 * bfd-in2.h: Likewise.
2119 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
2121 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2123 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2125 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2126 * bfd-in2.h, libbfd.h: Regenerate.
2128 2000-07-31 Nick Clifton <nickc@cygnus.com>
2130 * section.c (struct sec): Add new boolean field 'segment_mark'.
2131 (STD_SECTION): Initialise new field to zero.
2133 * bfd-in2.h: Regenerate.
2135 * elf.c (copy_private_bfd_data): Reorganise section to segment
2136 mapping to cope with moved sections requiring new segments,
2137 and overlapping segments.
2138 (SEGMENT_END): New macro: Return the end address of a segment.
2139 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2140 contains a section by comparing their VMA addresses.
2141 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2142 contains a section by comparing their LMA addresses.
2143 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2144 section should be included in a segment.
2145 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2146 follows another in memory.
2147 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2150 2000-07-22 Jason Eckhardt <jle@cygnus.com>
2152 * cpu-i860.c: Added comments.
2154 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2155 bfd_elf32_i860_little_vec.
2156 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2157 (ELF_MAXPAGESIZE): Changed to 4096.
2159 * targets.c (bfd_elf32_i860_little_vec): Declaration of
2161 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
2163 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2164 config for little endian elf32 i860.
2165 (targ_defvec): Define for the new config above
2166 as "bfd_elf32_i860_little_vec".
2167 (targ_selvecs): Define for the new config above
2168 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2170 * configure.in (bfd_elf32_i860_little_vec): Added recognition
2173 * configure: Regenerated.
2175 2000-07-27 H.J. Lu <hjl@gnu.org>
2177 * elflink.h (elf_merge_symbol): Take one more argument,
2178 dt_needed, to indicate if the symbol comes from a DT_NEEDED
2179 entry. Don't overide the existing weak definition if dt_needed
2181 (elf_link_add_object_symbols): Pass dt_needed to
2182 elf_merge_symbol ().
2184 2000-07-27 Nick Clifton <nickc@cygnus.com>
2186 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2189 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
2191 * configure.host (*-*-aix*): AIX has 'long long' always.
2193 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2194 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2195 (xcoff_write_archive_contents_big): Don't update the offset
2196 of the symbol table, xcoff_write_armap will do it.
2198 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
2200 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2201 of dynobj for SGI_COMPAT checks.
2203 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2205 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2206 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2207 * bfd-in2.h: Regenerate.
2209 2000-07-21 Nick Clifton <nickc@cygnus.com>
2211 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2212 range symbol indices in relocs and issue an error message.
2214 2000-07-20 H.J. Lu <hjl@gnu.org>
2216 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2217 info->new_dtags when setting DT_FLAGS_1. It will only be set
2218 by the new linker options. It shouldn't break anything.
2220 2000-07-20 H.J. Lu <hjl@gnu.org>
2222 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2223 only if info->new_dtags is true.
2225 2000-07-20 H.J. Lu <hjl@gnu.org>
2227 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2228 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2230 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2232 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2233 (ALL_MACHINES_CFILES): Add cpu-cris.c.
2234 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2235 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2236 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2237 * Makefile.in: Rebuild.
2238 * aclocal.m4: Rebuild.
2239 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2240 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2241 (bfd_cris_arch): Declare.
2242 (bfd_archures_list): Add bfd_cris_arch.
2243 * bfd-in2.h: Rebuild.
2244 * config.bfd: (cris-*-*): New target.
2245 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2246 * configure: Rebuild.
2247 * elf.c (prep_headers): Add bfd_arch_cris.
2248 * libbfd.h: Rebuild.
2249 * libaout.h (enum machine_type): Add M_CRIS.
2250 * reloc.c: Add CRIS relocations.
2251 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2252 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2253 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2254 * po/POTFILES.in, po/bfd.pot: Regenerate.
2256 2000-07-19 H.J. Lu <hjl@gnu.org>
2258 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2259 DF_TEXTREL if DT_TEXTREL is set.
2260 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2261 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2262 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2263 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2264 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2265 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2266 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2267 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2268 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2269 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2271 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2272 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2274 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2276 2000-07-19 H.J. Lu <hjl@gnu.org>
2278 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2279 * bfd-in2.h: Rebuild.
2281 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2282 (elf_dt_soname): New.
2284 * elf.c (bfd_elf_set_dt_needed_soname): New.
2286 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2287 entry if the shared object loaded by DT_NEEDED is used to
2288 resolve the reference in a regular object.
2290 2000-07-19 H.J. Lu <hjl@gnu.org>
2292 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2293 DT_DEPAUDIT and DT_AUDIT as strings.
2295 2000-07-19 Nick Clifton <nickc@cygnus.com>
2297 * format.c: Fix formatting.
2299 2000-07-19 H.J. Lu <hjl@gnu.org>
2301 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2303 2000-07-19 H.J. Lu <hjl@gnu.org>
2305 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2306 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2307 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2308 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2309 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2310 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2311 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2313 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
2315 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2316 renamed functions from here...
2317 (assign_section_numbers): Use renamed functions.
2318 (prep_headers): Use renamed functions.
2320 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2321 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2322 * bfd-in2.h: Regenerate.
2324 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
2326 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2327 parenthesis in if statement.
2329 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
2331 Enable the support for Traditional MIPS.
2332 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2333 return ict_none appropriately for traditional mips targets.
2334 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2335 (STUB_MOVE): Conditionalize for traditonal mips.
2336 (STUB_LI16): Likewise.
2337 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2338 room for RTPROC header.
2339 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2340 the permission for the PT_DYNAMIC as read, write and execute.
2341 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2342 for traditonal mips.
2343 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2344 _DYNAMIC_LINKING for traditonal mips.
2345 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2346 in case of traditonal mips.
2347 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2348 entry is required. For a function if PLT is not required then set the
2349 corresponding hash table entry to 0.
2350 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2352 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2353 shared object set the value to 0.
2354 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2355 _DYNAMIC_LINKING for traditonal mips.
2356 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2357 for traditonal mips.
2359 2000-07-15 H.J. Lu <hjl@gnu.org>
2361 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2363 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2365 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2366 out a structure that is BFD_IN_MEMORY.
2368 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2370 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2371 bfd pointer. Print section id instead of bfd pointer for local
2372 syms. Prefix addend with `+' for global syms as well as local.
2373 Correct calculation of name component lengths.
2374 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2376 From David Huggins-Daines <dhd@linuxcare.com>
2377 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2378 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2379 (elf64_hppa_modify_segment_map): Likewise.
2381 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2383 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2384 addresses to be "naturally" sign extended. Return -1 if unknown.
2385 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2386 * bfd-in2.h: Regenerate.
2388 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2390 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2391 and ECOF_SIGNED_64 to list ways to extract an offset.
2392 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2393 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2395 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2396 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2398 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2400 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2401 bfd_get_start_address.
2402 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2403 (elf_swap_ehdr_out): Ditto.
2405 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
2407 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2408 compatibility with older binutils.
2410 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2412 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2413 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2415 From Ryan Bradetich <rbradetich@uswest.net>
2416 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2417 (parse_line_table): Ditto.
2418 (_bfd_dwarf1_find_nearest_line): Ditto.
2419 * syms.c (cmpindexentry): Remove extra `*' from params.
2421 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
2423 * elf32-mips.c (sort_dynamic_relocs): New Function.
2424 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2425 via qsort to sort the dynamic relocations in increasing r_symndx
2428 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2430 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2431 ATTRIBUTE_UNUSED to unused args.
2432 (get_opd): Likewise.
2433 (get_plt): Likewise.
2434 (get_dlt): Likewise.
2435 (get_stub): Likewise.
2436 (elf64_hppa_adjust_dynamic_symbol): Likewise.
2437 (elf64_hppa_link_output_symbol_hook): Likewise.
2438 (elf64_hppa_check_relocs): Delete unused var.
2439 (elf64_hppa_size_dynamic_sections): Likewise.
2440 (elf64_hppa_finalize_opd): Likewise.
2441 (elf64_hppa_finalize_dynreloc): Likewise.
2442 (elf64_hppa_modify_segment_map): Likewise.
2443 (elf64_hppa_finish_dynamic_sections): Likewise.
2445 * elf-hppa.h (elf_hppa_final_write_processing): Add
2446 ATTRIBUTE_UNUSED to unused args.
2447 (elf_hppa_final_link_relocate): Likewise.
2448 (elf_hppa_record_segment_addrs): Add paretheses.
2449 (elf_hppa_relocate_section): Constify dyn_name.
2451 From David Huggins-Daines <dhd@linuxcare.com>
2452 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2453 rearrange case statement so that it gets preferred to 32-bit ones.
2455 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2456 asection->id instead of address of asection structure.
2457 (elf32_hppa_size_stubs): Likewise.
2459 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2460 for .init* and .fini*.
2462 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2463 and addends used in stub names to 32 bits.
2464 (elf32_hppa_size_stubs): Likewise.
2466 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2467 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
2468 not bfd_put_64. Fix minor comment typo and formatting.
2470 Changes to create multiple linker stubs, positioned immediately
2471 before the section where they are required.
2472 * elf32-hppa.c: Don't include hppa_stubs.h.
2473 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2474 (elf32_hppa_stub_hash_table): Delete.
2475 (elf32_hppa_link_hash_entry): Delete.
2476 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2477 stub_hash_table, and store the struct here rather than a pointer.
2478 Delete output_symbol_count. Add offset array. Change
2479 global_value to a bfd_vma.
2480 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2481 (elf32_hppa_stub_hash_traverse): Delete.
2482 (elf32_hppa_name_of_stub): Delete.
2483 (elf32_hppa_link_hash_lookup): Delete.
2484 (elf32_hppa_link_hash_traverse): Delete.
2485 (elf32_hppa_stub_hash_table_init): Delete.
2486 (elf32_hppa_size_of_stub): Pass input section and offset rather
2487 than location and calculate location here. Don't pass name as all
2488 stubs are now the same size.
2489 (elf32_hppa_stub_hash_newfunc): Init new fields.
2490 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2492 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2493 comparing against ints. Rewrite stub handling code.
2494 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2495 Case enums to int before comparing against ints. Remove
2496 bfd_reloc_dangerous case.
2497 (elf32_hppa_build_one_stub): Rewrite.
2498 (elf32_hppa_size_one_stub): New function.
2499 (elf32_hppa_build_stubs): Rewrite.
2500 (elf32_hppa_size_stubs): Pass in linker call-back functions.
2501 Rewrite stub-handling specific code.
2503 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2505 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2507 * hppa_stubs.h: Delete.
2508 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2509 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2510 * Makefile.in: Regenerate.
2512 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2515 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2517 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2518 and section name for bfd_reloc_notsupported error message.
2519 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2520 bfd_reloc_notsupported.
2521 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2523 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2524 undefined weak symbols for all relocs.
2525 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2526 offsets are relative to one past the delay slot.
2527 (elf32_hppa_size_stubs): Account for reloc addend when calculating
2528 branch destination. Put addend into stub name too.
2529 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2530 adjust by 8 when deciding whether a linker stub is needed. Put
2531 addend into stub name as for above.
2533 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2534 various args and vars.
2535 (elf32_hppa_bfd_final_link_relocate): Here too.
2536 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
2537 inner block var to avoid shadowing.
2539 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
2541 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2542 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2543 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
2545 * libhppa.h: Change practically all unsigned ints to plain ints.
2546 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
2549 From Ryan Bradetich <rbradetich@uswest.net>
2550 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
2551 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2553 From David Huggins-Daines <dhd@linuxcare.com>
2554 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2555 to the new OP_* ones.
2557 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2558 error exit. Bail out earlier on plabel relocs that we aren't
2559 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
2560 string, and then don't free our copy.
2561 (elf32_hppa_build_one_stub): Make insn unsigned int.
2563 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2564 available with BL, not BE and BLE.
2566 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2567 code for elf arg relocs.
2568 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2569 argument with elf_link_hash_entry h. Handle undefined weak
2570 symbols. Move $global$ lookup from here...
2571 (elf32_hppa_relocate_section): ...to here. Return correct error
2572 message for non-handled relocs.
2573 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
2574 wrong test was -0x3ffff to +0x40000.
2576 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2577 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
2578 Handle them as such.
2579 (elf_hppa_relocate_insn): Fix a typo.
2581 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
2582 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2583 assemble_17, assemble_21): Delete.
2584 Supply defines for all 64 possible opcodes.
2585 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
2586 formats. Handle COMICLR.
2587 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
2590 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
2591 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
2592 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
2594 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
2595 the local syms - did this code get deleted accidentally? Ignore
2596 undefined and undefweak syms.
2598 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
2599 block. Use it instead of elf64_hppa_hash_table (info).
2600 (elf_hppa_final_link_relocate): Use hppa_info instead of
2601 elf64_hppa_hash_table (info).
2603 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2604 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2605 (hppa_rebuild_insn): Mask immediate bits here instead.
2606 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2608 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2610 * section.c (struct sec): Add id field. Tidy comment formatting.
2611 (bfd_make_section_anyway): Set id.
2612 (STD_SECTION): Init id too.
2613 Change CONST to const throughout.
2614 * archures.c (bfd_arch_info): Tidy comment.
2615 (bfd_arch_list): Change a CONST to const.
2616 * libbfd-in.h: Tidy comments and replace CONST with const.
2617 * elf-bfd.h: Likewise.
2618 * libbfd.h: Regenerate.
2619 * bfd-in2.h: Regenerate.
2620 * libcoff.h: Regenerate.
2622 2000-07-07 DJ Delorie <dj@redhat.com>
2624 * archive.c (_bfd_write_archive_contents): Add an informative
2627 2000-07-06 Kazu Hirata <kazu@hxi.com>
2629 * srec.c: Fix formatting.
2631 2000-06-05 DJ Delorie <dj@redhat.com>
2635 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
2637 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
2638 value of PC-relative offsets.
2640 2000-07-03 Jim Wilson <wilson@cygnus.com>
2642 * elf64-alpha.c (alpha_elf_size_info): New.
2643 (elf_backend_size_info): Define to alpha_elf_size_info.
2644 * elfcode.h (elf_size_info): Change hash bucket size to 4.
2646 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
2648 * elf32-mips.c: Include elf32-target.h again for the traditional
2651 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
2653 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
2654 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
2655 (avr_info_to_howto_rela): Likewise.
2656 (elf32_avr_gc_mark_hook): Likewise.
2657 (elf32_avr_gc_sweep_hook): Likewise.
2658 (elf32_avr_relocate_section): Likewise.
2660 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
2662 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
2663 an external symbol for a non-shared, non-relocatable link.
2665 2000-07-03 Nick Clifton <nickc@redhat.com>
2667 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2668 is an external symbol.
2669 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2672 2000-07-03 Kazu Hirata <kazu@hxi.com>
2674 * reloc16.c: Fix formatting.
2676 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2678 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
2679 to add a new target for traditional mips i.e
2680 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
2681 * configure.in: Likewise.
2682 * configure: Rebuild.
2683 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
2685 (bfd_elf32_tradlittlemips_vec): Likewise.
2686 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
2687 to see that elfNN_bed does not get redefined even if the target file
2688 is included twice for a chip. See elf32-mips.c.
2690 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2692 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2693 (CLEANFILES): Add DEPA.
2694 * Makefile.in: Regenerate.
2696 2000-06-30 DJ Delorie <dj@cygnus.com>
2698 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
2699 can't assume the PE header is at 0x80.
2701 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2703 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2705 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
2707 * go32stub.h: Update stub.
2709 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2711 * archures.c (bfd_mach_avr5): Define.
2712 * bfd-in2.h (bfd_mach_avr5): Define.
2713 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
2714 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
2715 (compatible): Update comment. Add missing test.
2716 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
2717 for avr2 and avr4. Simplify 8K wrap code.
2718 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
2719 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2721 2000-06-26 Kazu Hirata <kazu@hxi.com>
2723 * coff-h8300.c: Fix formatting.
2724 * cpu-h8300.c: Likewise.
2726 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
2728 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
2729 for local symbols whose names are unknown.
2731 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2733 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2735 * Makefile.in: Regenerate.
2736 * doc/Makefile.in: Regenerate.
2738 2000-06-20 H.J. Lu <hjl@gnu.org>
2740 * Makefile.am: Rebuild dependency.
2741 * Makefile.in: Rebuild.
2743 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2745 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
2746 (elf_backend_copy_indirect_symbol): Map to the new function.
2748 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2750 * archive.c (normalize): Correct pointer comparison when checking
2752 (bfd_bsd_truncate_arname): Likewise.
2753 (bfd_gnu_truncate_arname): Likewise.
2755 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
2757 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
2758 sections elf_{text,data}_{section,symbol}.
2759 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
2760 (_bfd_mips_elf_hide_symbol): New function.
2761 (elf_backend_hide_symbol): Map to the new function.
2762 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
2763 definitions of mips_elf_{text,data}_{section,symbol}.
2764 (mips_elf_local_relocation_p): Try to find the direct symbol
2765 based on new check_forced argument.
2766 (mips_elf_calculate_relocation): Use new version of
2767 mips_elf_local_relocation_p.
2768 (mips_elf_relocate_section): Likewise.
2769 (_bfd_mips_elf_relocate_section): Likewise.
2770 (mips_elf_sort_hash_table): Only assert that have enough GOT
2772 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
2773 entry if the relocation based on the new external argument.
2774 (mips_elf_create_dynamic_relocation): Assert that we have a
2775 section contents allocated where we can swap out the dynamic
2777 (mips_elf_calculate_relocation): Find the real hash-table entry
2778 correctly by using h->root.root.type. Only create a dynamic
2779 relocation entry if the symbol is defined in a shared library.
2780 Create an external GOT entry for the GOT16 relocation if the
2781 symbol was forced local.
2782 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
2783 dynamic index if the symbol was forced local.
2785 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2787 * elf32-mips.c: Fix typos in comments.
2789 2000-06-19 Mark Kettenis <kettenis@gnu.org>
2791 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2794 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2796 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
2797 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
2798 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
2799 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
2800 (bfd_elf32_m68hc11_vec): Likewise.
2801 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
2802 Supports 68hc11 & 68hc12 at the same time.
2803 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
2805 (bfd_elf32_m68hc11_vec): Likewise.
2806 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
2807 * archures.c (bfd_m68hc12_arch): Define and register in global list
2808 (bfd_m68hc11_arch): Likewise.
2809 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
2810 BFD_RELOC_M68HC11_3B): Define.
2811 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
2812 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2814 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
2816 * elf_bfd.h (struct elf_backend_data): Add info argument to
2817 elf_backend_hide_symbol.
2818 (_bfd_elf_link_hash_hide_symbol): Likewise.
2819 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
2820 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
2821 * elflink.h (elf_link_add_object_symbols): Likewise.
2822 (elf_link_assign_sym_version): Likewise.
2824 2000-06-18 H.J. Lu <hjl@gnu.org>
2826 * coff-i386.c (coff_i386_reloc): Don't return in case of
2827 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
2828 Compensate PE relocations when linking with non-PE object
2829 files to generate a non-PE executable.
2831 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
2833 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
2834 GOT entries if we're doing a static link or -Bsymbolic link.
2836 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
2838 * elflink.h (elf_link_adjust_relocs): Check for and call backend
2839 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
2841 (elf_link_output_relocs): Likewise.
2842 (elf_reloc_link_order): Likewise.
2844 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2846 * archures.c (enum bfd_architecture): #define constants for
2847 PowerPc and RS6000 machine numbers.
2848 * bfd-in2.h: Regenerate.
2849 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
2850 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
2851 and RS6000 machine numbers using #defined constants from
2853 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
2854 machine numbers using #defined constants from archures.c. Add
2855 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
2856 64-bit words in 620 entry.
2857 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
2859 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
2861 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
2863 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
2864 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
2865 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
2867 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2869 * bfd-in.h (bfd_family_coff): Define.
2870 * bfd-in2.h: Regenerate.
2871 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
2872 coff_find_nearest_line): Check COFFness using bfd_family_coff()
2873 instead of bfd_target_coff_flavour.
2874 * cofflink.c (_bfd_coff_final_link): Likewise.
2875 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
2876 exclude XCOFF files.
2877 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
2879 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
2880 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
2881 * xcofflink.c (XCOFF_XVECP): Delete.
2882 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
2883 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
2884 bfd_xcoff_record_link_assignment,
2885 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
2886 check for bfd_target_xcoff_flavour.
2888 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2890 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
2892 (read_hdr): New function.
2893 (rs6000coff_core_p): Store mstsave or __context64 struct instead
2894 of trying to extract individual registers. Set abfd->arch_info
2895 to match the architecture that created the core file.
2896 (rs6000coff_get_section_contents): Delete.
2897 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
2899 2000-06-14 H.J. Lu <hjl@gnu.org>
2901 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
2904 2000-06-13 H.J. Lu <hjl@gnu.org>
2906 * configure: Regenerate.
2908 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
2910 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
2913 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2915 * configure.in (VERSION): Update to show this is the CVS mainline.
2917 2000-06-07 Alan Modra <alan@linuxcare.com.au>
2919 * elf32-d10v.c: Include elf/d10v.h
2920 (enum reloc_type): Delete.
2921 * elf32-d30v.c: Include elf/d30v.h
2922 (enum reloc_type): Delete.
2924 * Makefile.am: Run "make dep-am" to regenerate dependencies.
2925 * Makefile.in: Regenerate.
2927 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
2928 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
2929 move HOWTOs into elf_howto_table.
2930 (R_386_standard, R_386_ext_offset): Define.
2931 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
2932 (elf_i386_reloc_type_lookup): Modify calculation of index into
2933 elf_howto_table since we've removed the padding.
2934 (elf_i386_info_to_howto_rel): Likewise.
2935 (elf_i386_relocate_section): Likewise.
2937 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
2939 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
2941 2000-06-05 H.J. Lu <hjl@gnu.org>
2943 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
2944 an error when seeing an undefined symbol with hidden/internal
2945 attribute. It is handled in *_relocate_section ().
2947 2000-06-05 H.J. Lu <hjl@gnu.org>
2949 * elflink.h (elf_fix_symbol_flags): Follow the link for the
2950 indirect symbol for the ELF_LINK_NON_ELF bit.
2951 (elf_link_output_extsym): Don't output the indirect symbol even
2952 if the ELF_LINK_NON_ELF bit is set.
2954 2000-06-01 J.T. Conklin <jtc@redback.com>
2956 * config.bfd (i[3456]86-*-netbsdelf*): New target.
2957 (i[3456]86-*-netbsdaout*): New target.
2958 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
2959 (i[3456]86-*-openbsd*): Likewise.
2961 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
2963 * trad-core.c: From hpux-core.c, include <dirent.h> or
2964 <sys/ndir.h> when possible.
2966 2000-05-31 Nick Clifton <nickc@cygnus.com>
2968 * opintl.h (_(String)): Explain why dgettext is used instead
2971 2000-05-31 Ulrich Drepper <drepper@redhat.com>
2973 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
2974 definitions. We must not assume they are sorted in the file
2975 according to their index numbers.
2977 2000-05-31 Alan Modra <alan@linuxcare.com.au>
2979 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
2980 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
2981 R_PARISC_DIR17F are for absolute branches; Handle them as such.
2983 2000-05-30 Nick Clifton <nickc@cygnus.com>
2985 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
2986 80960CA, 80960MC as valid machine names.
2988 2000-05-30 H.J. Lu <hjl@gnu.org>
2990 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
2991 visibility bits if the symbol is undefined. Correctly handle
2992 weak undefined symbols with hidden and internal attributes.
2994 * elflink.h (elf_link_add_object_symbols): Always turn the
2995 symbol into local if it has the hidden or internal attribute.
2997 2000-05-29 Philip Blundell <philb@gnu.org>
2999 * ppcboot.c: Add packed attribute if compiling with GCC.
3001 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
3003 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3005 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
3007 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3008 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3009 corefile on a 64-bit (Sparc Solaris) host. Also clean up
3012 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3014 * Makefile.am: Update dependencies with "make dep-am"
3015 * Makefile.in: Regenerate.
3017 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3018 bindtextdomain): Replace defines with those from intl/libgettext.h
3019 to quieten gcc warnings.
3021 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3023 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3025 * archive.c (normalize, bfd_bsd_truncate_arname,
3026 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3027 file names with backslashes.
3029 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3032 * sysdep.h: Include filenames.h.
3034 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3036 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3038 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3040 * elf64-sparc.c (sparc64_elf_relax_section): New.
3041 (sparc64_elf_relocate_section): Optimize tail call into branch always
3043 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3044 (elf32_sparc_relax_section): New.
3046 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3048 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3049 Remove unusued variables.
3050 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3051 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3052 previous fix, so that shared libs really don't influence targets
3053 extension mask and memory model.
3055 2000-05-23 H.J. Lu <hjl@gnu.org>
3057 * elf64-alpha.c (elf64_alpha_relocate_section): Check
3058 h->root.other not h->other.
3059 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3061 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3063 2000-05-23 H.J. Lu <hjl@gnu.org>
3065 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3066 undefined symbol with the non-default visibility attributes.
3067 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3068 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3069 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3070 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3071 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3072 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3073 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3074 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3075 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3076 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3077 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3079 2000-05-22 Richard Henderson <rth@cygnus.com>
3081 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3082 PCREL22, PCREL64I. Zero size of special relocs.
3083 (elf64_ia64_reloc_type_lookup): Likewise.
3084 (USE_BRL, oor_brl, oor_ip): New.
3085 (elf64_ia64_relax_section): New.
3086 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3087 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3088 (elf64_ia64_relocate_section): Likewise.
3089 (bfd_elf64_bfd_relax_section): New.
3090 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3091 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3092 * bfd-in2.h, libbfd.h: Regenerate.
3094 2000-05-22 Nick Clifton <nickc@cygnus.com>
3096 * configure.in : Add peigen.lo to MIPS PE targets.
3097 * configure: Regenerate.
3099 2000-05-22 Momchil Velikov <velco@fadata.bg>
3101 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3102 only if it is known for both input and output bfds. Separate
3103 error message strings as in some languages, it may be necessary
3104 to change more than one place in the string to change between
3107 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3108 endianess checks, call _bfd_generic_verify_endian_match() instead.
3110 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3112 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3114 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3115 endianess before checking bfd flavours.
3117 2000-05-22 H.J. Lu <hjl@gnu.org>
3119 * elflink.h (elf_link_output_extsym): Clear the visibility
3120 field for symbols not defined locally.
3122 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3124 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3125 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3126 (hppa_rebuild_insn): Mask immediate bits here instead.
3127 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3129 2000-05-18 Momchil Velikov <velco@fadata.bg>
3131 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3132 relocs for an executable, ensure that they are virtual addresses.
3134 2000-05-18 Jeffrey A Law (law@cygnus.com)
3136 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3138 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3139 Rick Gorton <gorton@scrugs.lkg.dec.com>
3141 * elflink.h: Add emitrelocations support: when enabled, relocation
3142 information and relocation sections are put into final output
3143 executables. If the emitrelocations flag is set, do the following:
3144 (elf_bfd_final_link): Emit relocation sections.
3145 (elf_link_input_bfd): Compute relocation section contents.
3146 (elf_gc_sections): Don't clean relocation sections.
3148 2000-05-16 Catherine Moore <clm@cygnus.com>
3150 * som.c (som_decode_symclass): Recognize weak symbols.
3152 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
3154 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3155 read idata section only from dataoff.
3156 (pe_print_edata): Correctly check for valid eat_member.
3158 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
3160 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3162 2000-05-14 Philip Blundell <philb@gnu.org>
3164 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3166 2000-05-12 Alan Modra <alan@linuxcare.com.au>
3168 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3170 * peigen.c (pe_print_idata): Look for .idata section and print
3171 info even if data directory has zero entries. Read idata section
3172 starting from dataoff, and adjust all data offsets to suit. Cast
3173 all bfd_vma vars to unsigned long before passing to fprintf.
3174 * peigen.c (pe_print_edata): Similarly, look for .edata section
3175 and print info even if data directory has zero entries. Cast
3176 all bfd_vma vars to unsigned long before passing to fprintf.
3178 From Szabolcs Szakacsits <szaka@F-Secure.com>
3179 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
3180 directory size which may be bogus.
3181 * peigen.c (pe_print_edata): Similarly.
3183 2000-05-09 Alan Modra <alan@linuxcare.com.au>
3185 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3187 (copy_private_bfd_data): Allow for space possibly taken up by elf
3188 headers when calculating segment physical address from lma.
3190 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3192 * versados.c (versados_scan): Init stringlen and pass_2_done.
3194 * trad-core.c (trad_unix_core_file_p): Return
3195 bfd_error_wrong_format rather than bfd_error_file_truncated.
3197 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3198 add_data_entry. DataDirectory virtual address is relative.
3199 (pe_print_idata): Account for relative DataDirectory virtual
3200 addresses. Don't trash datasize inside POWERPC_LE_PE code.
3201 (pe_print_edata): Similarly.
3203 From Szabolcs Szakacsits <szaka@F-Secure.com>
3204 * peigen.c (dir_names): Add Delay Import Directory.
3205 (pe_print_idata): Always search for bfd section containing
3206 idata address rather than looking up section name. Print this
3207 section name rather than .idata.
3208 (pe_print_edata): Similarly. Also print some fields as %08lx.
3209 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3212 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3214 * xcoff.h: Rename to xcoff-target.h
3215 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3216 * coff-rs6000.c: Ditto.
3217 * coff64-rs6000.c: Ditto.
3218 * coff-pmac.c: Ditto.
3219 * Makefile.in: Regenerate.
3221 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3223 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3224 Change U802TOC64MAGIC to U803XTOCMAGIC.
3226 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
3228 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3229 * bfd-in.h: Prototype bfd_elf_get_arch_size.
3230 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3232 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3234 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3236 2000-05-03 Martin v. Lvwis <loewis@informatik.hu-berlin.de>
3238 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3239 hidden and internal symbols.
3240 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3242 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3243 assign a PLT or GOT entry to symbols with hidden and
3244 internal visibility.
3246 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3248 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3250 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3252 2000-05-02 H.J. Lu <hjl@gnu.org>
3254 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3257 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3259 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3260 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3262 * Makefile.in: Regenerate.
3264 2000-05-01 Jim Wilson <wilson@cygnus.com>
3266 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3267 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3268 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3269 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3270 * Makefile.in: Rebuild.
3272 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3274 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3275 doesn't work very well.
3277 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3278 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3279 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3280 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3281 (elf_hppa_info_to_howto): Likewise.
3282 (elf_hppa_info_to_howto_rel): Likewise.
3283 (elf_hppa_reloc_type_lookup): Likewise.
3284 (elf_hppa_is_local_label_name): Likewise.
3285 (elf_hppa_fake_sections): Likewise.
3286 (elf_hppa_final_write_processing): Likewise.
3287 (elf_hppa_howto_table): Fully initialise all entries.
3288 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3289 (elf_hppa_info_to_howto): Likewise.
3290 (elf_hppa_info_to_howto_rel): Likewise.
3291 (elf_hppa_reloc_type_lookup): Likewise.
3292 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3293 elf_hppa_unmark_useless_dynamic_symbols,
3294 elf_hppa_remark_useless_dynamic_symbols,
3295 elf_hppa_record_segment_addrs, elf_hppa_final_link,
3296 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3297 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3298 elf32-hppa.c mess is cleaned up.
3299 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3300 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
3301 r_field then call hppa_field_adjust inline func with variable
3302 r_field arg, instead call hppa_field_adjust with fixed arg.
3303 In case R_PARISC_PCREL22F, don't set r_field.
3304 (elf_hppa_relocate_insn): Change args and return type to unsigned
3305 int. Call re_assemble_* funcs to do the work.
3307 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3310 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3312 (sign_extend): Mask first before sign extending.
3313 (low_sign_extend): Rewrite without condition expression.
3314 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3315 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3316 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3317 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3318 result as function return value rather than through pointer arg.
3319 Accept unsigned int args, and return unsigned int.
3320 (re_assemble_3): New. Combines function of dis_assemble_3 with
3321 re-assembly of opcode and immediate.
3322 (re_assemble_12): Likewise.
3323 (re_assemble_16): Likewise.
3324 (re_assemble_17): Likewise.
3325 (re_assemble_21): Likewise.
3326 (re_assemble_22): Likewise.
3327 (hppa_field_adjust): Rewrite and document, paying attention to
3328 size of types and signed/unsigned issues.
3329 (get_opcode): Shift before masking.
3330 (FDLW): Rename to FLDW.
3331 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
3332 (hppa_rebuild_insn): Change args and return value to unsigned
3333 int. Make use of re_assemble_*. Correct case 11.
3335 * dep-in.sed: Handle ../opcodes/.
3336 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3337 elf64-hppa.h, hppa_stubs.h, xcoff.h.
3338 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3339 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3340 elfarm-nabi.lo dependencies outside of auto-dependency area.
3341 Regenerate dependencies.
3342 * Makefile.in: Regenerate.
3344 * configure.in (TRAD_HEADER): Test non-null before
3346 * configure: Regenerate.
3348 * reloc.c: Fix mis-spelling in comment.
3350 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3352 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3353 * vms.c (vms_openr_next_archived_file): Return NULL.
3355 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3357 * coffcode.h Copy changes mistakenly done to libcoff.h in
3360 2000-04-29 Andreas Jaeger <aj@suse.de>
3362 * libbfd-in.h: Correctly check GCC version.
3363 * bfd-in.h: Likewise.
3364 * libhppa.h: Likewise.
3365 * libbfd.h: Regenerate.
3366 * bfd-in2.h: Regenerate.
3368 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3370 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3371 coffdu-rs6000.{lo,c}.
3372 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3374 * Makefile.in: Regenerate.
3375 * xcoff.h: New file.
3376 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3377 * coff-rs6000.c: Move all declarations and defines that are
3378 common to the xcoff backends into xcoff.h
3379 * coff64-rs6000.c: Ditto,
3381 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3383 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3384 _bfd_coff_force_symnames in strings and
3385 _bfd_coff_debug_string_prefix_length to their default values.
3386 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3388 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3390 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3391 _bfd_coff_force_symnames in strings and
3392 _bfd_coff_debug_string_prefix_length to their default values.
3394 2000-04-27 Alan Modra <alan@linuxcare.com.au>
3396 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
3397 Check local_got_refcounts before dereferencing.
3399 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3400 before deciding we don't need R_PPC_PLT32 relocation.
3401 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3404 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3406 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3408 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3409 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3410 (elf_i386_relocate_section): Allow for .plt to go missing.
3411 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3412 can use a relative reloc for got as elf_i386_relocate_section.
3413 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3415 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3417 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3419 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3421 * Makefile.am (coff64-rs6000.lo): New rule.
3422 * Makefile.in: Regenerate.
3423 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3424 xcoff_is_local_label_name, xcoff_rtype2howto,
3425 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3426 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3427 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3428 (NO_COFF_SYMBOLS): Define.
3429 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3430 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3432 (MINUS_ONE): New macro.
3433 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3435 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3436 coff_SWAP_aux_out): Map to the new functions.
3437 * coff64-rs6000.c: New file.
3438 * libcoff.h (bfd_coff_backend_data): Add new fields
3439 _bfd_coff_force_symnames_in_strings and
3440 _bfd_coff_debug_string_prefix_length.
3441 (bfd_coff_force_symnames_in_strings,
3442 bfd_coff_debug_string_prefix_length): New macros for above fields.
3443 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3444 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
3445 of using coff_swap_sym_in directly.
3446 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3447 (coff_set_flags) Set magic for XCOFF64.
3448 (coff_compute_section_file_positions): Add symbol name length to
3449 string section length if bfd_coff_debug_string_prefix_length is
3451 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3452 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3453 using coff_swap_lineno_in directly.
3454 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3455 and _bfd_coff_debug_string_prefix_length fields.
3456 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3457 symbol names into strings table when
3458 bfd_coff_force_symnames_in_strings is true.
3459 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3460 SET_RELOC_VADDR): New macros.
3461 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3462 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3464 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3465 changes within RS6000COFF_C specific code.
3466 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3467 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3468 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3469 Extend existing hack on target name.
3470 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3472 * coff-tic54x.c (ticof): Keep up to date with new fields
3473 in bfd_coff_backend_data.
3474 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3475 targ_selvecs to include rs6000coff64_vec for rs6000.
3476 * configure.in: Add rs6000coff64_vec case.
3477 * cpu-powerpc.c: New bfd_arch_info_type.
3479 2000-04-24 Jeffrey A Law (law@cygnus.com)
3481 * config.bfd: Only disable elf32-hppa vectors, not all of the
3482 BSD and OSF configuration support. Provide (disabled) clauses
3484 * configure.in: Add clause for PA64 support.
3485 * configure: Rebuilt.
3487 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3488 (bfd_elf64_hppa_vec): Declare.
3490 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3491 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3492 (elf64-hppa.lo): Add dependencies.
3493 * Makefile.in: Rebuilt.
3495 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3497 2000-04-24 Jason Eckhardt <jle@cygnus.com>
3499 * libhppa.h (dis_assemble_16): New function.
3500 (pa_arch): Added pa20w element.
3502 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
3504 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3505 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3506 bfd_elf64_slurp_reloc_table.
3508 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3509 definitions to get external names.
3510 (elf_write_relocs): Renamed from write_relocs and make global.
3511 (elf_slurp_reloc_table): Make global.
3512 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3514 * archive.c (hpux_uid_gid_encode): New function.
3515 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3516 defined and the ID is greater than 99999.
3517 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3518 special uid/gid fields into 32 bit values.
3520 2000-04-21 Matthew Green <mrg@cygnus.com>
3522 * config.bfd: Add NetBSD/sparc64 support.
3524 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3525 David Mosberger <davidm@hpl.hp.com>
3526 Timothy Wall <twall@cygnus.com>
3527 Jim Wilson <wilson@cygnus.com>
3529 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3530 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3531 (BFD64_BACKENDS): Add elf64-ia64.lo.
3532 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3533 (cpu-ia64.lo, elf64-ia64.lo): New rules.
3534 * Makefile.in: Rebuild.
3535 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3536 (bfd_ia64_arch): Declare.
3537 (bfd_archures_list): Add bfd_ia64_arch.
3538 * bfd-in2.h: Rebuild.
3539 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3540 * configure: Rebuild.
3541 * configure.host: (ia64-*-linux*): New host.
3542 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3543 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3544 * elf.c (prep_headers): Add bfd_arch_ia64.
3545 * libbfd.h: Rebuild.
3546 * reloc.c: Add IA-64 relocations.
3547 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3549 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3550 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3552 2000-04-21 Richard Henderson <rth@cygnus.com>
3554 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3555 contents when performing a partial link.
3556 (bfd_elf_d30v_reloc_21): Likewise.
3558 2000-04-20 H.J. Lu <hjl@gnu.org>
3560 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3561 patch to symbols defined by a shared object.
3562 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3564 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3567 * dwarf2.c (concat_filename): Avoid string literal concatenation.
3568 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
3570 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
3572 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3573 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3574 (coff-ia64.lo): Add dependency.
3575 * Makefile.in: Regenerate.
3576 * coff-ia64.c: New file.
3577 * efi-app-ia32.c: Ditto.
3578 * efi-app-ia64.c: Ditto.
3579 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
3580 (coff_set_flags): Ditto.
3581 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
3582 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
3583 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
3584 * configure: Regenerate.
3585 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
3586 (PUT_OPTHDR_IMAGE_BASE): Ditto.
3587 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3588 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3589 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3590 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3591 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3592 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3593 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3594 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3595 (GET_PDATA_ENTRY): Ditto.
3596 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
3597 data_start. Use above macros to read fields that are 64 bit wide for
3598 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
3599 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
3600 FileAlignment and SectionAlignment to minimum alignment if they
3602 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
3603 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
3604 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
3605 Use above macros to write fields that are 64 bit wide for
3607 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
3608 5*4 otherwise. This should be right for IA-32 and IA-64, but may
3609 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
3610 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
3611 begin address, end address, and unwind info address only. Use
3612 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
3614 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
3615 HIGH3ADJ relocation names.
3616 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
3617 * targets.c: Declare bfd_efi_app_ia32_vec and
3618 bfd_efi_app_ia64_vec.
3619 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
3620 bfd_efi_app_ia64_vec.
3622 2000-04-17 Timothy Wall <twall@cygnus.com>
3624 * bfd-in2.h: Add prototypes for tic54x load page access.
3625 * bfd-in.h: Regenerate.
3626 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
3627 in customized _set_arch_mach function.
3628 * coffcode.h (coff_set_alignment_hook): Set section load page if
3629 the appropriate macro is defined.
3630 (write_object_contents): Read section load page.
3632 2000-04-13 Alan Modra <alan@linuxcare.com.au>
3634 * elf32-hppa.h: Update copyright date.
3636 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
3637 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
3639 * elf32-d30v.c (MAX32): Don't use LL suffix.
3640 (MIN32): Define in terms of MAX32.
3641 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
3643 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
3646 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
3648 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3650 * dep-in.sed: Match space before file name, not after.
3651 * Makefile.am: Regenerate dependencies.
3652 * Makefile.in: Regenerate.
3654 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
3655 case, allow address wrap-around stupidly removed 2000-03-17. Sign
3656 extend without an if statement.
3658 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3660 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
3662 * elf32-mips.c (gprel16_with_gp): Likewise.
3663 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
3664 here using -0x40000, not (int)0xfffc0000.
3665 (elf32_hppa_size_of_stub): Likewise.
3667 2000-04-11 Timothy Wall <twall@cygnus.com>
3669 * coff-tic54x.c: Now builds with all targets.
3670 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
3671 * Makefile.in: Regenerate.
3672 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
3673 unitialized variable.
3675 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3677 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3678 --enable-build-warnings option.
3679 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3680 * Makefile.in, configure: Re-generate.
3682 2000-04-07 Nick Clifton <nickc@cygnus.com>
3684 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
3685 BFD_RELOC_THUMB_PCREL_BLX.
3687 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3688 R_ARM_XPC25 and R_ARM_THM_PC22.
3690 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
3691 R_ARM_XPC25 and R_ARM_THM_XPC22.
3692 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
3693 R_ARM_[XPC25|THM_XPC22].
3695 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
3696 elf/arm-oabi.h to elf/arm.h
3698 * Makefile.am: Fix dependency for elfarm-oabi.c
3699 * Makefile.in: Regenerate.
3701 * bfd-in2.h: Regenerate.
3702 * libbfd.h: Regenerate.
3704 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3706 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
3707 and restore it on failure. Release newly allocated tdata on
3710 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
3712 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
3713 (decode_line_info): Set it. Report error if unit->line_offset is
3714 equal to or larger than it.
3716 2000-04-07 Timothy Wall <twall@cygnus.com>
3718 * targets.c: Added vecs for tic54x.
3719 * reloc.c: Added relocs for tic54x.
3720 * libbfd.h: Regenerated.
3721 * configure: Add TI COFF vecs for tic54x.
3722 * configure.in: Ditto.
3723 * config.bfd (targ_cpu): Recognize new tic54x target.
3724 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
3725 * bfd-in2.h: Add tic54x target and relocations.
3726 * Makefile.am, Makefile.in: Add tic54x target.
3727 * archures.c (bfd_archures_list): Add tic54x target.
3728 * coff-tic54x.c: New.
3729 * cpu-tic54x.c: New.
3731 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3733 * elfcore.h (elf_core_file_p): call backend_object_p which
3734 thereby gets an opportunity to update the arch/machine type.
3736 2000-04-06 Timothy Wall <twall@cygnus.com>
3738 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
3739 class. Handle SEC_CLINK and SEC_BLOCK flags.
3740 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
3741 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
3743 2000-04-06 Nick Clifton <nickc@cygnus.com>
3745 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
3746 EF_INTERWORK if this is an unknown EABI.
3747 (elf32_arm_merge_private_bfd_data): Check EABI version
3748 numbers. Only check EF_xxx flags if the EABI version number
3750 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
3751 if the EABI version number is unknown.
3752 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
3753 if the EABI version number is unknown.
3755 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3757 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
3758 BFD_RELOC_SH_LOOP_END.
3759 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
3760 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
3761 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
3762 (sh_elf_reloc_loop): New function.
3763 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
3765 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
3766 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
3767 * bfd-in2.h, libbfd.h: Regenerate.
3769 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3771 * po/bfd.pot: Regenerate.
3773 * Makefile.am: Remove extraneous mkdep comment.
3774 (MKDEP): Use gcc -MM rather than mkdep.
3775 (DEP): Quote when passing vars to sub-make. Add warning
3777 (DEP1): Rewrite for "gcc -MM".
3778 (CLEANFILES): Add DEP2.
3779 Update dependencies.
3780 * Makefile.in: Regenerate.
3782 2000-04-03 Kevin Buettner <kevinb@redhat.com>
3784 * configure.in: Added corefile support for AIX 4.3. In particular,
3785 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
3786 compiling rs6000-core.c.
3787 * configure: Regenerated.
3789 2000-04-03 H.J. Lu <hjl@gnu.org>
3791 * cache.c (bfd_open_file): Unlink the output file only if
3792 it has non-zero size.
3794 2000-04-01 Ken Block USG <block@zk3.dec.com>
3796 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
3797 relative relocations for non-loaded sections in shared objects.
3798 (elf64_alpha_check_relocs): Similarly.
3800 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
3802 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
3803 BFD_RELOC_16 to switch for extended relocs.
3804 (MY_swap_ext_reloc_in): New.
3805 (MY_swap_ext_reloc_out): New.
3806 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
3807 than NAME(aout,swap_ext_reloc_in) for extended relocs.
3808 (NAME(aout,squirt_out_relocs)): Similarly use
3809 MY_swap_ext_reloc_out.
3810 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
3812 2000-04-03 Kazu Hirata <kazu@hxi.com>
3814 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
3815 the R_PCRWORD_B case.
3817 2000-03-31 Thomas de Lellis <tdel@wrs.com>
3819 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
3823 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
3825 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
3826 HOWTO references to bfd_elf_generic_reloc, that have
3827 partial_inplace == true, now use the new function. The function
3828 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
3829 extends its fixes to the R_M32R_{16,24,32} relocs.
3830 The new logic in m32r_elf_lo16_reloc() has been removed, and
3831 it instead calls the new routine to obtain that functionality.
3833 2000-03-27 Alan Modra <alan@linuxcare.com.au>
3835 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
3836 elf32_avr_check_relocs, avr_final_link_relocate,
3837 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
3838 elf32_avr_object_p): Add prototypes.
3839 (elf32_avr_gc_mark_hook): Add default for h->root.type.
3840 (bfd_elf_avr_final_write_processing): Make static.
3842 2000-03-27 Denis Chertykov <denisc@overta.ru>
3844 * cpu-avr.c: New file. BFD support routines for AVR architecture.
3845 * archures.c (bfd_architecture): Add AVR architecture.
3846 (bfd_archures_list): Add reference to AVR architecture info.
3847 * elf.c (prep_headers): Handle bfd_arch_avr.
3848 * reloc.c: Add various AVR relocation enums.
3849 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
3851 * Makefile.am: Add support for AVR elf.
3852 * configure.in: Likewise.
3853 * config.bfd: Likewise.
3854 * Makefile.in: Regenerate.
3855 * configure: This too.
3856 * bfd-in2.h: And this.
3857 * libbfd.h: And this.
3859 2000-03-24 H.J. Lu <hjl@gnu.org>
3861 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
3862 (elf64_alpha_find_reloc_at_ofs): Likewise.
3864 2000-03-17 Alan Modra <alan@linuxcare.com.au>
3866 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
3867 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
3868 allowable range used to be -2**(n-1) to 2**n-1.
3869 * reloc.c (_bfd_relocate_contents): Same here. Also replace
3870 "boolean overflow" with "bfd_reloc_status_type flag".
3872 2000-03-14 Doug Evans <dje@casey.transmeta.com>
3874 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
3876 2000-03-14 Kazu Hirata <kazu@hxi.com>
3878 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
3879 of shrinks properly, including the last reloc.
3881 2000-03-13 Kazu Hirata <kazu@hxi.com>
3883 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
3886 2000-03-11 Alan Modra <alan@linuxcare.com.au>
3888 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
3889 a format mismatch rather than an "error" from bfd_read such as
3890 bfd_error_file_truncated.
3892 2000-03-10 Geoff Keating <geoffk@cygnus.com>
3894 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
3895 sign-extension and big-endian compensation for
3896 R_MIPS_64 even in ld -r.
3898 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
3900 * elf32-mips.c (mips_elf_next_relocation): Rename from
3901 mips_elf_next_lo16_relocation, and generalize to look
3902 for any relocation type.
3903 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
3904 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
3905 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
3906 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
3907 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
3908 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
3909 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
3910 (mips_rtype_to_howto): Likewise.
3911 (mips_elf_calculate_relocation): Handle new relocs.
3912 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
3913 are paired. The addend for R_MIPS_GNU_REL16_S2
3914 is shifted right two bits.
3916 2000-03-10 Alan Modra <alan@linuxcare.com.au>
3918 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
3919 comment, and ensure it doesn't happen again.
3920 (bfd_install_relocation): Same here.
3921 (_bfd_relocate_contents): Don't bother assigning unused signmask
3922 shift result. Fix typos in comments.
3923 Remove trailing whitespace throughout file.
3925 2000-03-07 Doug Evans <dje@casey.transmeta.com>
3927 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
3928 * bfd-in2.h: Rebuild.
3930 2000-03-06 Nick Clifton <nickc@cygnus.com>
3932 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
3934 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
3935 (SIZEOF_ILF_STRINGS): Redefine.
3936 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
3937 relative reloc, as opposed to a section relative reloc.
3938 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
3940 Add length of symbol's prefix to string pointer.
3941 Store a pointer to the symbol in the symbol pointer table.
3942 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
3943 Initialise the symbol pointer table.
3944 Store the hint in the Hint/Name table.
3945 Make the jump reloc be symbol realtive, not section relative.
3946 Create an import symbol for imported code.
3948 2000-03-06 Catherine Moore <clm@cygnus.com>
3950 * elf.c (swap_out_syms): Check for null type_ptr.
3952 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
3954 * aout-target.h (MY(write_object_contents)): Remove unused
3955 and unusable "#if CHOOSE_RELOC_SIZE".
3956 * pc532-mach.c (MY(write_object_contents)): Ditto.
3957 * netbsd.h (MY(write_object_contents)): Ditto.
3958 * hp300hpux.c (MY(write_object_contents)): Ditto.
3959 * freebsd.h (MY(write_object_contents)): Ditto.
3960 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
3962 2000-02-29 H.J. Lu <hjl@gnu.org>
3964 * peicode.h (jtab): Make it static.
3966 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
3967 defined and COFF_IMAGE_WITH_PE is not defined.
3968 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
3969 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
3971 2000-03-01 Nick Clifton <nickc@cygnus.com>
3973 * coff-arm.c (bfd_arm_process_before_allocation): Make
3974 'symndx' signed to prevent compile time warning.
3976 * coff-mcore.c: Remove unused prototype for pe_object_p.
3978 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
3979 functions that are not used when COFF_IMAGE_WITH_PE is
3981 (struct sh_opcode): Change type of 'flags' field to unsigned
3982 long so that it can hold the USESAS flag.
3984 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
3986 * elf-m10300.c (mn10300_elf_relax_section): Initialise
3989 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
3991 Remove unusued variables and code.
3992 (elf_backend_add_symbol_hook): Fix prototype.
3994 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
3997 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4000 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4002 Remove unusued variables and code.
4003 (elf_backend_add_symbol_hook): Fix prototype.
4005 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4007 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4008 to unused function parameter.
4010 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4012 Use EMPTY_HOWTO to initialise empty howto slots.
4013 Remove unused variables.
4015 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4017 2000-03-01 H.J. Lu <hjl@gnu.org>
4019 * aoutx.h (aout_link_input_section_std): Pass "true" to
4020 the undefined_symbol callback.
4021 (aout_link_input_section_ext): Likewise.
4022 * bout.c (get_value): Likewise.
4023 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4024 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4026 (alpha_relocate_section): Likewise.
4027 * coff-arm.c (coff_arm_relocate_section): Likewise.
4028 * coff-i960.c (coff_i960_relocate_section): Likewise.
4029 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4030 * coff-mips.c (mips_relocate_section): Likewise.
4031 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4032 * coff-sh.c (sh_relocate_section): Likewise.
4033 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4034 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4035 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4036 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4037 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4038 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4039 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4040 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4041 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4042 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4043 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4044 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4045 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4046 * elflink.h (elf_link_output_extsym): Likewise.
4047 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4048 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4049 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4051 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4052 undefined_symbol callback when building shared library with
4053 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4055 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4056 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4057 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4058 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4059 (elf32_mips_get_relocated_section_content): Likewise.
4060 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4061 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4062 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4063 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4065 2000-02-28 Nick Clifton <nickc@cygnus.com>
4067 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4068 * Makefile.in: Regenerate.
4070 * configure.in: Add support for mips and sh pe vectors.
4071 * configure: regenerate.
4073 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4076 * targets.c: Add mips and sh pe vectors.
4078 * libpei.h (coff_final_link_postscript): Only define if not
4081 * coffcode.h: Add support for WinCE magic numbers.
4083 * peigen.c (pe_print_reloc): Update comment and rearrange
4084 appending of newline character.
4086 * peicode.h: Add support for Image Library Format.
4087 (pe_ILF_vars): Structure containing data used by ILF code.
4088 (pe_ILF_make_a_section): New function. Create a section based
4090 (pe_ILF_make_a_reloc): New function. Create a reloc based on
4092 (pe_ILF_make_a_symbol): New function. Create a symbol based
4094 (pe_ILF_save_relocs): New function. Store the relocs created
4095 by pe_ILF_make_a_reloc in a section.
4096 (pe_ILF_build_a_bfd): New function. Create a BFD describing
4098 (pe_ILF_object_p): New function. Return a bfd_target pointer
4100 (pe_bfd_object_p): If an ILF object is detected call
4101 pe_ILF_object_p on it.
4103 * coff-arm.c: Add support for WinCE relocs which are different
4104 from normal ARM COFF relocs.
4105 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4107 * coff-sh.c: Add support for sh-pe target.
4108 * pe-sh.c: New file. Support code for sh-pe target.
4109 * pei-sh.c: New file. Support code for sh-pe target.
4111 * pe-mips.c: New file. Support code for mips-pe target.
4112 * pei-mips.c: New file. Support code for mips-pe target.
4114 2000-02-27 Jakub Jelinek <jakub@redhat.com>
4116 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4117 architecture if the object causing the bump is dynamic.
4118 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4119 and also don't it for memory ordering.
4120 (sparc64_elf_write_relocs): Take src_rela out of the loop.
4122 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4124 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4125 calling bfd_get_section_size_before_reloc.
4126 (decode_line_info): Likewise.
4127 (_bfd_dwarf2_find_nearest_line): Likewise.
4129 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
4131 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4132 name of the libtool directory.
4133 * Makefile.in: Rebuild.
4135 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
4137 * som.c (SOM_HOWTO): Define.
4138 (som_hppa_howto_table): Use it.
4140 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4142 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4144 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4146 2000-02-24 Catherine Moore <clm@cygnus.com>
4148 * som.c (som_misc_symbol_info): Add field
4150 (som_bfd_derive_misc_symbol_info): Initialize
4152 (som_build_and_write_symbol_table): Keep track
4153 of secondary_def field.
4154 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4155 if secondary_def field is set.
4156 (som_bfd_ar_write_symbol_stuff): Initialize
4159 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
4161 * dwarf2.c (read_address): Read 16-bits addresses.
4162 (parse_comp_unit): Accept addr_size == 2.
4164 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4166 * bfd-in.h: Update copyright date.
4168 2000-02-23 Linas Vepstas <linas@linas.org>
4170 * cpu-i370.c: New file.
4171 * elf32-i370.c: New file.
4172 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
4173 (bfd_i370_arch): New.
4174 (bfd_archures_list): Add bfd_i370_arch.
4175 * elf.c (prep_headers): Add bfd_arch_i370.
4176 * Makefile.am: Add support for IBM 370 elf.
4177 * config.bfd: Likewise.
4178 * configure.in: Likewise.
4179 * libbfd.h (bfd_reloc_code_real_names): Likewise.
4180 * reloc.c (bfd_reloc_code_type): Likewise.
4181 * targets.c: Likewise.
4183 * Makefile.in: Regenerate.
4184 * configure: Regenerate.
4185 * bfd-in2.h: Regenerate.
4187 2000-02-22 Ian Lance Taylor <ian@zembu.com>
4189 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4190 invalid relocation types, and change them to R_386_NONE.
4192 2000-02-22 H.J. Lu <hjl@gnu.org>
4194 * elflink.h (elf_link_add_object_symbols): If a version symbol is
4195 not defined, don't add a second ELF_VER_CHR.
4197 * elflink.h (elf_bfd_final_link): Call output_extsym for global
4198 symbols converted to local symbols even when stripping all
4200 (elf_link_output_extsym): Process global symbols converted to
4201 local symbols even if they are being stripped.
4203 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4205 * archures.c (bfd_octets_per_byte): Return unsigned int.
4206 (bfd_arch_mach_octets_per_byte): Ditto.
4207 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4209 * section.c (bfd_get_section_size_before_reloc): Quell signed
4210 vs. unsigned comparison warning.
4211 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
4212 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4213 change. What was I thinking?
4214 * bfd-in2.h: Regenerate.
4216 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4217 (elf_gc_sections): Same here.
4218 (elf_gc_common_finalize_got_offsets): And here.
4220 2000-02-21 Ian Lance Taylor <ian@zembu.com>
4222 ELF HPPA doesn't work at present; remove it until it does.
4223 * config.bfd: Comment out setting targ_defvec to
4225 * Makefile.am: Rebuild dependencies.
4226 (BFD32_BACKENDS): Remove elf32-hppa.lo.
4227 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4228 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4229 * Makefile.in: Rebuild.
4230 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4232 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4234 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4235 is no bfd_free(). Revert bfd_free part of previous change.
4237 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4239 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4241 (coff_compute_section_file_positions): Use bfd_free to pair
4243 (coff_write_object_contents): Likewise.
4245 * coff-rs6000.c (xcoff_howto_table_16): New variable.
4246 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4248 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
4250 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4251 (xcoff_ar_file_hdr_big): New structure.
4252 (SIZEOF_AR_FILE_HDR_BIG): New macro.
4253 (xcoff_ar_hdr_big): New structure.
4254 (SIZEOF_AR_HDR_BIG): New macro.
4255 (xcoff_big_format_p): New macro.
4256 (xcoff_ardata_big): New macro.
4257 (arch_xhdr_big): New macro.
4258 (xcoff_slurp_armap): Handle large archives.
4259 (xcoff_archive_p): Detect large archives.
4260 (xcoff_read_ar_hdr): Handle large archives.
4261 (xcoff_openr_next_archived_file): Handle large archives.
4262 (xcoff_generic_stat_arch_elt): Handle large archives.
4263 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4264 (xcoff_write_armap_big): New function.
4265 (xcoff_write_armap): New function, dispatch to _old or _big.
4266 (xcoff_write_archive_contents_old): Rename from
4267 xcoff_write_archive_contents.
4268 (xcoff_write_archive_contents_big): New function.
4269 (xcoff_write_archive_contents): New function, dispatch to _old or
4272 2000-02-18 Richard Henderson <rth@cygnus.com>
4274 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4275 and hide_symbol members.
4276 (elf_link_hash_copy_indirect): Remove.
4277 (elf_link_hash_hide_symbol): Remove.
4278 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4279 and elf_backend_hide_symbol.
4280 (_bfd_elf_link_hash_copy_indirect): Declare.
4281 (_bfd_elf_link_hash_hide_symbol): Declare.
4282 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4283 (_bfd_elf_link_hash_hide_symbol): Likewise.
4284 (_bfd_elf_link_hash_table_init): Don't init killed members.
4285 * elflink.h (elf_link_add_object_symbols): Use the bed function
4286 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4287 (elf_link_assign_sym_version): Likewise.
4288 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4289 (elf_backend_hide_symbol): Likewise.
4290 (elfNN_bed): Update for new members.
4292 2000-02-17 Kevin Buettner <kevinb@redhat.com>
4294 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4295 STACK_END_ADDR): Define for new core file format.
4296 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4297 for handling the vagaries of the various core file structures used
4298 by AIX over the years.
4299 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4300 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4301 core_dumpx structure.
4303 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4305 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4306 (bfd_mach_sh3_dsp): Likewise.
4307 (bfd_mach_sh4): Reinstate.
4308 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4309 * bfd-in2.h: Regenerate.
4310 * coff-sh.c (struct sh_opcode): flags is no longer short.
4311 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4312 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4313 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4314 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4315 (sh_opcodes): No longer const.
4316 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4317 (sh_insn_uses_reg): Check for USESAS and USESR8.
4318 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4319 (_bfd_sh_align_load_span): Return early for SH4.
4320 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4321 Take into account that field b of a parallel processing insn
4322 could be mistaken for a separate insn.
4323 * cpu-sh.c (arch_info_struct): New array elements for
4324 sh2, sh-dsp and sh3-dsp.
4325 Reinstate element for sh4.
4326 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4327 (SH4_NEXT): Reinstate.
4328 (SH3_NEXT, SH3E_NEXT): Adjust.
4329 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4330 * elf32-sh.c (sh_elf_set_private_flags): New function.
4331 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4332 (sh_elf_merge_private_data): New function.
4333 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4334 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4335 (bfd_elf32_bfd_merge_private_bfd_data): Change to
4336 sh_elf_merge_private_data.
4338 2000-02-13 Richard Henderson <rth@cygnus.com>
4340 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4341 hide_symbol members.
4342 (elf_link_hash_copy_indirect): New.
4343 (elf_link_hash_hide_symbol): New.
4344 * elflink.h (elf_link_add_object_symbols): Break out copy from
4345 indirect new new symbol to elf.c.
4346 (elf_link_assign_sym_version): Break out privatization of
4347 non-exported symbol to elf.c.
4348 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4349 (_bfd_elf_link_hash_hide_symbol): New.
4350 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4352 2000-02-13 Ian Lance Taylor <ian@zembu.com>
4354 * section.c (_bfd_strip_section_from_output): Add info parameter.
4355 If it passed as non-NULL, use it to check whether any input BFD
4356 has an input section which uses this output section. Change all
4358 * bfd-in2.h: Rebuild.
4360 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4361 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4363 * bfd-in2.h: Rebuild.
4365 2000-02-10 Timothy Wall <twall@cygnus.com>
4367 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4368 allow final modifications of swapped-in symbol.
4369 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4370 * coffcode.h (coff_write_relocs): Use macro
4371 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4372 symbol index should be set to -1.
4374 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4376 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4377 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4378 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4379 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4380 sh_insns_uses_or_sets_freg): New functions.
4381 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4382 * (sh_insns_conflict): Use new functions and new macros to
4383 detect conflicts when two instructions both set same integer registers,
4384 both set same fp register, and both set special register.
4386 2000-02-09 Timothy Wall <twall@cygnus.com>
4388 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4389 swapping in sections, so that the swapping routines have access to
4392 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4394 * coff-go32.c: Update comment. Update copyright.
4396 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4398 * syms.c (bfd_decode_symclass)
4399 Two new class characters were added - 'V' and 'v'. The
4400 meaning of 'W' is now restricted to just weak non-object
4401 symbols. This allows differentiation between, for example,
4402 weak functions vs weak objects. nm for example now dumps:
4404 'w' = weak unresolved
4405 'V' = weak global object
4406 'v' = weak unresolved object
4408 (bfd_is_undefined_symclass): New function. Return true if the
4409 given symbol class represents and undefined/unresolved symbol.
4411 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4414 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4416 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4417 STT_ARM_16BIT flag set, but it is not attached to a data object
4418 return STT_ARM_16BIT so that it will be treated as code by the
4421 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4423 * coff-i386.c (i3coff_object_p): Remove prototype.
4426 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4427 to name. Update copyright.
4429 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4430 assignment to avoid warning. Update copyright.
4432 2000-01-24 Robert Lipe (robertl@sco.com)
4434 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4435 instead of using GNU C extension.
4437 2000-01-21 Nick Clifton <nickc@cygnus.com>
4439 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4440 amount from a bfd_in_memory structure.
4441 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4444 2000-01-14 Nick Clifton <nickc@cygnus.com>
4446 * linker.c (default_indirect_link_order): oops - fix incorrectly
4447 applied patch from Tim Wall.
4449 2000-01-13 Timothy Wall (twall@tiac.net>
4451 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4452 = scnhsz, filhsz, relsz, aoutsz, etc)
4454 * coffswap.h: Ditto.
4456 2000-01-13 Nick Clifton <nickc@cygnus.com>
4458 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4459 interwork thumb to arm stub.
4461 2000-01-13 Timothy Wall (twall@tiac.net>
4463 * archures.c (bfd_octets_per_byte): New function: Return
4465 (bfd_arch_mach_octets_per_byte): New function: Return target
4468 * section.c: Distinguish between octets and bytes for usage of
4469 _cooked_size, _raw_size, and output_offset. Clarify
4470 description of bfd_set_section_contents.
4472 * bfd-in2.h: Regenerate.
4474 * coffgen.c: Indicate that the offset parameter is in bytes, not
4477 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4478 where appropriate to get the octet offset when calling
4479 bfd_set_section_contents.
4480 (bfd_coff_reloc_link_order): Ditto.
4482 * linker.c (bfd_generic_reloc_link_order): Ditto.
4483 (_bfd_default_link_order): Ditto.
4485 * reloc.c (bfd_perform_relocation): Distinguish between octets
4486 and bytes. Use octets when indexing into octet data; use bytes
4487 when calculating target addresses.
4488 (bfd_install_relocation): Ditto.
4490 * srec.c (srec_write_section): Ditto.
4492 2000-01-13 Nick Clifton <nickc@cygnus.com>
4494 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4495 3 to 2. This allows 4 byte sized sections, which is necessary for
4496 dlltool to build functioning DLLs.
4498 2000-01-10 Philip Blundell <pb@futuretv.com>
4500 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4501 (arm*-*-conix*): New target.
4503 2000-01-10 Egor Duda <deo@logos-m.ru>
4505 * config.bfd: Include elf32_i386 vector to target list for cygwin
4508 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4509 * configure.in: Test for structure win32_pstatus_t in
4511 * configure: Regenerate.
4513 * elf.c (elfcore_grok_win32pstatus): New function: process
4514 win32_pstatus_t notes in elf core file.
4515 (elfcore_grok_note): Detect win32_pstatus notes.
4517 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4519 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4521 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4522 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4524 For older changes see ChangeLog-9899
4530 version-control: never