aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
2002-01-15 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.Jakub Jelinek1-0/+11
* elf.c (merge_sections_remove_hook): New function. (_bfd_elf_merge_sections): Pass it as 3rd argument to _bfd_merge_sections. * libbfd-in.h (_bfd_merge_sections): Add 3rd argument. * libbfd.h: Rebuilt. * merge.c (_bfd_merge_sections): Add remove_hook argument. Call remove_hook if a SEC_EXCLUDE section is encountered.
2002-01-15Fix up generation of VTINHERIT relocsNick Clifton1-0/+8
2002-01-102002-01-10 Michael Snyder <msnyder@redhat.com>Michael Snyder1-0/+6
* elf.c (elfcore_write_prstatus): Use long instead of pid_t; (elfcore_write_pstatus): Use long instead of pid_t; * elf-bfd.h: Change prototypes to use long instead of pid_t;
2002-01-09include/elf:Jason Thorpe1-0/+6
* common.h: Update copyright years. (NT_NETBSDCORE_PROCINFO): Define. (NT_NETBSDCORE_FIRSTMACH): Define. bfd: * elf.c: Update copyright years. (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO and NT_NETBSDCORE_FIRSTMACH. Improve a comment. bintuils: * readelf.c (get_netbsd_elfcore_note_type): Use NT_NETBSDCORE_PROCINFO and NT_NETBSDCORE_FIRSTMACH.
2002-01-08Fix typo.Michael Snyder1-1/+1
2002-01-082002-01-08 Michael Snyder <msnyder@redhat.com>Michael Snyder1-0/+11
Add capability to write corefile note sections, for gdb. * elf.c (elfcore_write_note): New function. (elfcore_write_prpsinfo): New function. (elfcore_write_prstatus): New function. (elfcore_write_pstatus): New function. (elfcore_write_prfpreg): New function. (elfcore_write_prxfpreg): New function. * elf-bfd.h: Add prototypes for above functions.
2002-01-08* elf.c (elf_fake_sections): Propagate errors fromAlexandre Oliva1-0/+5
elf_backend_fake_section.
2002-01-08bfd:Jason Thorpe1-0/+17
* Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo. (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c. (elf32-sh-nbsd.lo): New rule. * Makefile.in: Regenerate. * config.bfd (sh*le-*-netbsdelf*): New target. (sh*-*-netbsdelf*): New target. * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*. (bfd_elf32_shnbsd_vec): New vector. (bfd_elf32_shlnbsd_vec): New vector. * configure: Regenerate. * elf32-sh-nbsd.c: New file. * targets.c: Update copyright years. (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and bfd_elf32_shnbsd_vec. gas: * configure.in (sh*le): Set cpu_type=sh and endian=little. (sh*-*-netbsdelf*): New target. * configure: Regenerate. * tc-sh.h: Update copyright years. (TARGET_FORMAT): Add version for TE_NetBSD. ld: * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o. (eshelf_nbsd.c): New rule. (eshlelf_nbsd.c): New rule. * Makefile.in: Regenerate. * configure.tgt (sh*le-*-netbsdelf*): New target. (sh*-*-netbsdelf*): New target. * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file. * ld/emulparams/shelf_nbsd.sh: New emulation. * ld/emulparams/shlelf_nbsd.sh: New emulation.
2002-01-08* bfd/coff-rs6000.c (READ20): Use bfd_scan_vma.Aldy Hernandez1-0/+4
2002-01-07 * elflink.h (elf_link_input_bfd): Don't ask for the merged offsetGeoffrey Keating1-0/+5
of a symbol in a section that will be deleted.
2002-01-07Add spanish translation filesNick Clifton1-0/+6
2002-01-07Rotated ChangeLogNick Clifton1-9585/+1
2002-01-06 * elfxx-ia64.c (is_unwind_section_name): Add target vector asAlan Modra1-0/+17
argument so we can handle HP-UX specially. (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name. (elfNN_hpux_backend_section_from_bfd_section): New for support of SHN_IA_64_ANSI_COMMON. (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON. (is_unwind_section_name): Add special HP-UX support. (elfNN_ia64_section_from_shdr): Add support for more sections. (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and add support for more sections. (elfNN_ia64_additional_program_headers): Modify is_unwind_section_name call. (elfNN_ia64_modify_segment_map): Remove assumption that there is only one unwind section in segment.
2002-01-06 * syms.c (_bfd_generic_make_empty_symbol): New function.Alan Modra1-0/+37
* libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as _bfd_generic_make_empty_symbol. * libbfd.h: Regenerate. * bfd-in2.h: Regenerate. * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function. (hppabsd_core_get_symtab_upper_bound): Don't define. (hppabsd_core_get_symtab): Likewise. (hppabsd_core_print_symbol): Likewise. (hppabsd_core_get_symbol_info): Likewise. (hppabsd_core_bfd_is_local_label_name): Likewise. (hppabsd_core_get_lineno): Likewise. (hppabsd_core_find_nearest_line): Likewise. (hppabsd_core_bfd_make_debug_symbol): Likewise. (hppabsd_core_read_minisymbols): Likewise. (hppabsd_core_minisymbol_to_symbol): Likewise. (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols). Formatting fixes. * hpux-core.c: Similarly. * irix-core.c: Similarly. * osf-core.c: Similarly. * sco5-core.c: Similarly. * binary.c (binary_make_empty_symbol): Remove function, define as _bfd_generic_make_empty_symbol. * ihex.c (ihex_make_empty_symbol): Likewise. * mmo.c (mmo_make_empty_symbol): Likewise. * ppcboot.c (ppcboot_make_empty_symbol): Likewise. * srec.c (srec_make_empty_symbol): Likewise. * versados.c (versados_make_empty_symbol): Likewise. * vms.c (_bfd_vms_make_empty_symbol): Remove. (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol. * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol rather than _bfd_vms_make_empty_symbol. * vms-misc.c (new_symbol): Likewise.
2002-01-05 * section.c (bfd_section_init): Remove unnecessary initialisations.Alan Modra1-0/+31
(bfd_section_list_clear): New function. (bfd_section_list_remove, bfd_section_list_insert): New macros. (_bfd_strip_section_from_output): Use them. * coffcode.h (coff_set_alignment_hook): Likewise. * elf32-mips.c (_bfd_mips_elf_final_link): Likewise. * elf64-mips.c (mips_elf64_final_link): Likewise. * elf64-mmix.c (mmix_elf_final_link): Likewise. * sunos.c (sunos_add_dynamic_symbols): Likewise. * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise. * bfd-in2.h: Regenerate. * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway rather than doing our own section handling. Clean up after errors with bfd_release and bfd_section_list_clear. Handle unexpected flags. * aoutf1.h (sunos4_core_file_p): Likewise. * aix386-core.c (aix386_core_file_p): Likewise. * cisco-core.c (cisco_core_file_validate): Likewise. * ptrace-core.c (ptrace_unix_core_file_p): Likewise. * trad-core.c (trad_unix_core_file_p): Likewise. * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors with bfd_release and bfd_section_list_clear. * hpux-core.c (hpux_core_core_file_p): Likewise. * irix-core.c (irix_core_core_file_p): Likewise. * lynx-core.c (lynx_core_file_p): Likewise. * osf-core.c (osf_core_core_file_p): Likewise. * rs6000-core.c (rs6000coff_core_p): Likewise. * sco5-core.c (sco5_core_file_p): Likewise.
2002-01-05 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and performAlan Modra1-0/+5
sign extension adjustments without conditionals.
2002-01-04 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash ifJakub Jelinek1-0/+5
CIE at .eh_frame start is removed due to no FDEs referencing it.
2002-01-04bfd:Andreas Jaeger1-12/+19
* config.bfd (x86_64-*-netbsd*): New target. * configure.in (x86_64-*-netbsd*): Set COREFILE to netbsd-core.lo. * configure: Regenerated. gas: * configure.in (i386-*-netbsdelf*): Collapse target into... (i386-*-netbsd*): ...this. Add support for x86-64. * configure: Regenerated. ld: * configure.tgt (x86_64-*-netbsd*): New target.
2002-01-03Fix xcoff linker's ordering of pad sectionsTom Rix1-0/+5
2002-01-03Handle R_ARM_THM_PC11Nick Clifton1-0/+5
2002-01-02Add japanese translationNick Clifton1-0/+6
2002-01-02Reformat error messages to ease translation into other languages.Nick Clifton1-0/+5
2001-12-31 * elflink.h (elf_bfd_final_link): Check if dynobj is not NULLJakub Jelinek1-0/+8
before looking for .eh_frame_hdr section. * elf-eh-frame.c (_bfd_elf_write_section_eh_frame_hdr): If .eh_frame_hdr section is being stripped from output, don't do anything.
2001-12-31Fix for xcoff <bigaf> big archive format support.Tom Rix1-0/+9
2001-12-22-binitfini emulation, put __rtinit symbol generation into linker.Tom Rix1-0/+13
2001-12-21 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix dst_mask forJakub Jelinek1-0/+16
R_SPARC_DISP32. Support R_SPARC_PLT32. (sparc_reloc_map): Add BFD_RELOC_16_PCREL and BFD_RELOC_SPARC_PLT32. (elf32_sparc_check_relocs): Handle R_SPARC_PLT32. (elf32_sparc_relocate_section): Likewise. * elf64-sparc.c (sparc64_elf_howto_table): Fix dst_mask for R_SPARC_DISP32. Support R_SPARC_PLT32 and R_SPARC_PLT64. (sparc_reloc_map): Add BFD_RELOC_16_PCREL, BFD_RELOC_64_PCREL and BFD_RELOC_SPARC_PLT32. (sparc64_elf_check_relocs): Handle R_SPARC_PLT32 and R_SPARC_PLT64. (sparc64_elf_relocate_section): Likewise. * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SPARC_PLT32. * bfd-in2.h, libbfd.h: Rebuilt. * config/tc-sparc.h (TC_PARSE_CONS_EXPRESSION): Define. (sparc_cons): Provide prototype. * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_*_PCREL and BFD_RELOC_SPARC_PLT{32,64}. Enumerate for which relocs reloc->addend = fixp->fx_addnumber shouldn't be done instead of enumarating for which pc relative ones it should be done. (sparc_cons_special_reloc): New variable. (sparc_cons): New function. (cons_fix_new_sparc): Use sparc_cons_special_reloc. * testsuite/gas/sparc/pcrel.s: New test. * testsuite/gas/sparc/pcrel.d: Expected output. * testsuite/gas/sparc/pcrel64.s: New test. * testsuite/gas/sparc/pcrel64.d: Expected output. * testsuite/gas/sparc/plt.s: New test. * testsuite/gas/sparc/plt.d: Expected output. * testsuite/gas/sparc/plt64.s: New test. * testsuite/gas/sparc/plt64.d: Expected output. * testsuite/gas/sparc/sparc.exp: Add pcrel, pcrel64, plt and plt64 tests.
2001-12-20Special handling of AIX xcoff text alignment fix.Tom Rix1-0/+5
2001-12-20 2001-12-19 Michael Snyder <msnyder@redhat.com>Michael Snyder1-0/+5
* elf32-i386.c (elf_i386_grok_psinfo): Fix probable copy-and-paste error: target is i386 (not mips), and size of descdata is 124 (not 128).
2001-12-20 * config.bfd (mips-dec-netbsd*): Delete alias for mips*el-*-netbsd*.Alan Modra1-0/+2
2001-12-20 * config.bfd (arm-*-netbsdelf*): Add target.Alan Modra1-0/+6
* configure.in: Include netbsd-core.lo for native arm-*-netbsd*. * configure: Regenerate.
2001-12-19 * elfcode.h (elf_slurp_symbol_table): Test elf_elfsections for NULL,Alan Modra1-0/+5
as can happen with a core file, before dereferencing.
2001-12-19 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): If new_sizeJakub Jelinek1-0/+7
is 0, temporarily grow it to minimal CIE size. (_bfd_elf_write_section_eh_frame): If input .eh_frame section would end up empty, build a fake minimal CIE.
2001-12-192001-12-18 Michael Snyder <msnyder@redhat.com>Michael Snyder1-0/+5
* elf.c (assign_file_positions_for_segments): Don't sort PT_NOTE sections of corefiles. Also it makes no sense to sort if count == 1.
2001-12-19 * config.bfd (bfd_elf32_ia64_hpux_big_vec): New vector forAlan Modra1-0/+14
ia64*-*-hpux* target. (bfd_elf64_ia64_hpux_big_vec): Likewise. * targets.c: Ditto. * configure.in: Ditto. * configure: Regenerate * elfxx-ia64.c (elfNN_ia64_final_write_processing): Replace use of alloca with bfd_malloc. (get_local_sym_hash): Likewise. (elfNN_hpux_post_process_headers): New function. #include elfNN-target.h again with values for IA64 HP-UX vector.
2001-12-182001-12-18 H.J. Lu <hjl@gnu.org>H.J. Lu1-0/+4
* elf.c (_bfd_elf_copy_private_bfd_data): Also copy GP.
2001-12-182001-12-18 H.J. Lu <hjl@gnu.org>H.J. Lu1-0/+4
* elf.c (_bfd_elf_copy_private_bfd_data): Update comments.
2001-12-182001-12-18 H.J. Lu <hjl@gnu.org>H.J. Lu1-0/+25
* elf-bfd.h (_bfd_elf_copy_private_bfd_data): New. Prototype. (_bfd_mips_elf_copy_private_bfd_data): Removed. * elf.c (_bfd_elf_copy_private_bfd_data): New. Copy e_flags in the ELF header. * elf32-i370.c (??_elf_copy_private_bfd_data): Removed. (bfd_elf??_bfd_copy_private_bfd_data): Removed. * elf32-m32r.c: Likewise. * elf32-m68k.c: Likewise. * elf32-mcore.c: Likewise. * elf32-mips.c: Likewise. * elf32-ppc.c: Likewise. * elf32-v850.c: Likewise. * elf64-ppc.c: Likewise. * elf64-sparc.c: Likewise. * elfxx-ia64.c: Likewise. * elf64-mips.c (bfd_elf64_bfd_copy_private_bfd_data): Removed. * elfxx-target.h (bfd_elfNN_bfd_copy_private_bfd_data): Defined to _bfd_elf_copy_private_bfd_data.
2001-12-18 * elf32-s390 (elf_s390_check_relocs): Pass addend toMartin Schwidefsky1-0/+7
gc_record_vtentry. * elf64-s390 (elf_s390_check_relocs): Likewise. Fix by Andreas Jaeger <aj@suse.de>.
2001-12-18Correctly match all NetBSD/mips hosts.Nick Clifton1-0/+5
2001-12-18* config.bfd (m68*-*-netbsdelf*): New target.Matthew Green1-0/+6
(m68*-*-netbsd): Also include bfd_elf32_m68k_vec. (m68*-*-netbsdaout*): New alias for m68*-*-netbsd. * configure.in (m68k-*-netbsdelf*): New target. (m68k-*-netbsd*): Also include ELF support. (m68k-*-netbsdaout*): New alias for m68*-*-netbsd*. * configure: Regenerate. * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o. (m68kelfnbsd.c): New rule. * Makefile.in: Regenerate. * configure.tgt (m68*-hp-netbsd*): Renamed to .. (m68*-*-netbsd*4k*): .. this. (m68*-*-netbsdelf*): New target. (m68*-*-netbsd*): Also include ELF support. (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*. * emulparams/m68kelfnbsd.sh: New emulation.
2001-12-18 * ldgram.y (vers_node): Support anonymous version tags.Jakub Jelinek1-0/+5
* ldlang.c (lang_register_vers_node): Ensure anonymous version tag is not defined together with non-anonymous versions. * ld.texinfo: Document it. * elflink.h (size_dynamic_sections): Skip anonymous version tag. (elf_link_assign_sym_version): Don't count anonymous version tag.
2001-12-18 * elf-eh-frame.c (struct cie): Add make_lsda_relative.Jakub Jelinek1-0/+16
(struct eh_cie_fde): Add lsda_encoding, lsda_offset, make_lsda_relative. (read_value, write_value): New. (_bfd_elf_discard_section_eh_frame): Inicialize lsda_encoding, lsda_offset and make_lsda_relative. (_bfd_elf_eh_frame_section_offset): If make_lsda_relative, request no dynamic reloc for LSDA field of FDE. (_bfd_elf_write_section_eh_frame): Handle make_lsda_relative. If a non-DW_EH_PE_absptr value is 0, don't adjust it by base or pcrel. Fix address computation for DW_EH_PE_pcrel relocs. Update LSDA field if LSDA encoding is DW_EH_PE_pcrel, because . might have changed due to deleted FDE or CIEs.
2001-12-18 * elf-strtab.c (struct elf_strtab_hash_entry): Add u.next.Jakub Jelinek1-0/+7
(last_eq): Remove. (_bfd_elf_strtab_finalize): Don't use a hash table for last character chains, instead use an array.
2001-12-18 * elf.c (elfcore_netbsd_get_lwpid): New function.Alan Modra1-2/+10
(elfcore_grok_netbsd_procinfo): New function. (elfcore_grok_netbsd_note): New function. (elfcore_read_notes): Call elfcore_grok_netbsd_note to process NetBSD ELF core file notes.
2001-12-18 * elfcode.h (struct bfd_preserve): New.Alan Modra1-0/+11
(elf_object_p): Replace preserved_* vars with instance of above. Save and restore arch_info pointer rather than arch, mach so that more cases can be restored. Save and restore new section_tail, section_htab structure, and init appropriately. Move "rest of section header" code so that i_shdrp needs no NULL initialisation. Free old section_htab on success. * elfcore.h (elf_core_file_p): Likewise.
2001-12-18Fix email address.Tom Rix1-1/+1
2001-12-18Minimal handle .typchk and .except section.Tom Rix1-0/+5
2001-12-17 * elf-bfd.h (elf_discarded_section): Define.Jakub Jelinek1-0/+9
* elflink.h (elf_link_input_bfd): Use it. (elf_reloc_symbol_deleted_p): Likewise. * elf64-alpha.c (elf64_alpha_relocate_section): Don't warn about overflows for pc relative relocs against discarded sections.
2001-12-17Fix formatting in next-to-last entryHans-Peter Nilsson1-0/+1
2001-12-17 * elf32-mips.c (_bfd_mips_elf_relocate_section): Formatting.Thiemo Seufer1-0/+10
* elf64-mips.c: Add most of the fixes and tweaks done in elf32-mips.c over the last months. Add some code for mips16 handling. (mips_elf64_check_mips16_stubs): New function. (mips_elf64_stub_section_p): Likewise. (mips_elf64_calculate_relocation): Change interface to support mips16. (mips_elf64_perform_relocation): Likewise.