aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2002-01-082002-01-08 Michael Snyder <msnyder@redhat.com>Michael Snyder3-0/+161
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 Oliva2-3/+9
elf_backend_fake_section.
2002-01-08bfd:Jason Thorpe8-178/+229
* 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 Hernandez2-1/+5
2002-01-07daily updateAlan Modra1-1/+1
2002-01-07 * elflink.h (elf_link_input_bfd): Don't ask for the merged offsetGeoffrey Keating2-0/+7
of a symbol in a section that will be deleted.
2002-01-07Add spanish translation filesNick Clifton4-153/+2298
2002-01-07Rotated ChangeLogNick Clifton2-9585/+9593
2002-01-06daily updateAlan Modra1-1/+1
2002-01-06 * elfxx-ia64.c (is_unwind_section_name): Add target vector asAlan Modra2-6/+89
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 Modra19-303/+138
* 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-05daily updateAlan Modra1-1/+1
2002-01-05 * section.c (bfd_section_init): Remove unnecessary initialisations.Alan Modra22-318/+380
(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 Modra2-15/+20
sign extension adjustments without conditionals.
2002-01-04daily updateAlan Modra1-1/+1
2002-01-04 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash ifJakub Jelinek2-5/+19
CIE at .eh_frame start is removed due to no FDEs referencing it.
2002-01-04bfd:Andreas Jaeger4-189/+176
* 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 Rix2-21/+35
2002-01-03Handle R_ARM_THM_PC11Nick Clifton2-0/+46
2002-01-02Add japanese translationNick Clifton4-153/+2293
2002-01-02Reformat error messages to ease translation into other languages.Nick Clifton2-13/+26
2001-12-31 * elflink.h (elf_bfd_final_link): Check if dynobj is not NULLJakub Jelinek3-1/+12
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 Rix4-384/+465
2001-12-23daily updateAlan Modra1-1/+1
2001-12-22daily updateAlan Modra1-1/+1
2001-12-22-binitfini emulation, put __rtinit symbol generation into linker.Tom Rix7-0/+567
2001-12-21daily updateAlan Modra1-1/+1
2001-12-21 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix dst_mask forJakub Jelinek6-12/+75
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-20daily updateAlan Modra1-1/+1
2001-12-20Special handling of AIX xcoff text alignment fix.Tom Rix2-1/+35
2001-12-20 2001-12-19 Michael Snyder <msnyder@redhat.com>Michael Snyder2-1/+6
* 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 Modra2-1/+3
2001-12-20 * config.bfd (arm-*-netbsdelf*): Add target.Alan Modra4-63/+75
* 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 Modra2-1/+7
as can happen with a core file, before dereferencing.
2001-12-19daily updateAlan Modra1-1/+1
2001-12-19 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): If new_sizeJakub Jelinek2-1/+24
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 Snyder2-2/+12
* 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-19*** empty log message ***Alan Modra5-21/+83
2001-12-18daily updateAlan Modra1-1/+1
2001-12-182001-12-18 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+7
* elf.c (_bfd_elf_copy_private_bfd_data): Also copy GP.
2001-12-182001-12-18 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+7
* elf.c (_bfd_elf_copy_private_bfd_data): Update comments.
2001-12-182001-12-18 H.J. Lu <hjl@gnu.org>H.J. Lu15-226/+46
* 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 Schwidefsky3-2/+9
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 Clifton2-1/+6
2001-12-18* config.bfd (m68*-*-netbsdelf*): New target.Matthew Green2-1/+16
(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 Jelinek2-0/+12
* 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 Jelinek2-46/+172
(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 Jelinek2-44/+35
(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 Modra2-4/+128
(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.