aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2005-07-06 * po/SRC-POTFILES.in: Add cpu-ms1.c, elf32-ms1.c, elf-vxworks.c,Alan Modra2-0/+9
elfxx-sparc.c.
2005-07-06daily updateAlan Modra1-1/+1
2005-07-052005-07-05 Paul Brook <paul@codesourcery.com>Paul Brook2-36/+22
* elf32-ppc.c (ppc_elf_vxworks_special_sections): Remove. (ppc_elf_vxworks_get_sec_type_attr): New function. (elf_backend_special_sections): Remove vxwords definition. (elf_backend_get_sec_type_attr): Define for vxworks.
2005-07-05Fix compile time warnings from a GCC 4.0 compilerNick Clifton2-2/+6
2005-07-052005-05-07 Paul Brook <paul@codesourcery.com>Paul Brook7-287/+789
bfd/ * config.bfd: Add separate case for ppc-vxworks. * configure: Regenerate. * configure.in: Include elf-vxworks.lo on ppc targets. * elf-vxworks.c (elf_vxworks_final_write_processing): Handle .rela.plt.unloaded. * elf32-ppc.c: Add VxWorks target vec. Include elf-vxworks.h. (PLT_ENTRY_SIZE, PLT_INITIAL_ENTRY_SIZE, PLT_SLOT_SIZE): Remove. (VXWORKS_PLT_ENTRY_SIZE, ppc_elf_vxworks_plt_entry, ppc_elf_vxworks_pic_plt_entry, VXWORKS_PLT_INITIAL_ENTRY_SIZE, ppc_elf_vxworks_plt0_entry, ppc_elf_vxworks_pic_plt0_entry, VXWORKS_PLT_NON_JMP_SLOT_RELOCS, VXWORKS_PLTRESOLVE_RELOCS, VXWORKS_PLTRESOLVE_RELOCS_SHLIB): New. (ppc_elf_link_hash_table): Add srelplt2, sgotplt, hgot, hplt, is_vxworks, plt_entry_size, plt_slot_size, plt_initial_entry_size. (ppc_elf_link_hash_table_create): Initialize hadtab plt fields. (ppc_elf_create_got): Create .got.plt for VxWorks. (ppc_elf_create_dynamic_sections): Create unloaded plt relocation section for VxWorks. (ppc_elf_select_plt_layout): Handle VxWorks plt format. (allocate_got): VxWorks does not need a got header. (allocate_dynrelocs): Handle VxWorks plt format. (ppc_elf_size_dynamic_sections): Save _G_O_T_ and _P_L_T_ symbols for VxWorks. Handle VxWorks plt/got. (ppc_elf_finish_dynamic_sections): Fill in VxWorks plt. (ppc_elf_vxworks_special_sections): New. (ppc_elf_vxworks_link_hash_table_create, ppc_elf_vxworks_add_symbol_hook, elf_i386_vxworks_link_output_symbol_hook, ppc_elf_vxworks_final_write_processing): New functions. * targets.c (bfd_elf32_powerpc_vxworks_vec): Declare. (_bfd_target_vector): Use it. gas/ * config/tc-ppc.c (ppc_target_format): Add VxWorks. gas/testsuite/ * gas/ppc/altivec.d: Match all powerpc target vecs. * gas/ppc/booke.d: Ditto. * gas/ppc/e500.d: Ditto. ld/ * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o. (eelf32ppcvxworks.o): Add dependencies. * Makefile.in: Regenerate. * configure.tgt: Add entry for powerpc-vxworks. * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment. * emulparams/elf32ppcvxworks.sh: New file. * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare. (is_ppc_elf32_vec): New function. (ppc_after_open, ppc_before_allocation, gld${EMULATION_NAME}_after_allocation): Use it.
2005-07-05 * libbfd-in.h (struct artdata): Add extended_names_size field.Jakub Jelinek7-31/+62
* libbfd.h: Rebuilt. * coff-rs600.c (_bfd_xcoff_archive_p): Don't clear fields in freshly allocated object by bfd_zalloc. * coff64-rs6000.c (xcoff64_archive_p): Likewise. * ecoff.c (_bfd_ecoff_archive_p): Likewise. * archive.c (_bfd_generic_mkarchive, bfd_generic_archive_p): Likewise. (get_extended_arelt_filename): Fail if index is bigger or equal to extended_names_size. (_bfd_generic_read_ar_hdr_mag): Don't set bfd_error_malformed_archive, get_extended_arelt_filename already did that. (_bfd_slurp_extended_name_table): Initialize extended_names_size field. Allocate one extra byte and clear it, in case extended names table is not terminated.
2005-07-05 * libbfd-in.h (bfd_malloc2, bfd_realloc2, bfd_zmalloc2, bfd_alloc2,Jakub Jelinek14-73/+386
bfd_zalloc2): New prototypes. * bfd-in.h (HALF_BFD_SIZE_TYPE): Define. * libbfd.c (bfd_malloc2, bfd_realloc2, bfd_zmalloc2): New functions. * opncls.c (bfd_alloc2, bfd_zalloc2): New functions. * elf.c (bfd_elf_get_elf_syms, setup_group, assign_section_numbers, elf_map_symbols, map_sections_to_segments, assign_file_positions_for_segments, copy_private_bfd_data, swap_out_syms, _bfd_elf_slurp_version_tables): Use bfd_*alloc2 where appropriate. * bfd-in2.h: Rebuilt. * libbfd.h: Rebuilt. * elf.c (_bfd_elf_print_private_bfd_data): Don't crash on bogus verdef or verneed section. (_bfd_elf_slurp_version_tables): Handle corrupt verdef and/or verneed sections gracefully. * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto_ptr): Don't crash on bogus relocation values. * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise. * elf64-s390.c (elf_s390_info_to_howto): Likewise. * elf32-s390.c (elf_s390_info_to_howto): Likewise. * elf64-x86-64.c (elf64_x86_64_info_to_howto): Likewise. * elfxx-ia64.c (lookup_howto): Likewise.
2005-07-05 * elf.c (bfd_elf_get_str_section): Allocate an extra byte afterJakub Jelinek2-23/+21
the end of strtab and clear it. (elf_read): Remove.
2005-07-05Add Vietnamese translation.Nick Clifton4-2/+3280
2005-07-05(elf32_arm_size_dynamic_sections): Fix a typo and touchup logic like i386/ppc.Nick Clifton2-3/+7
2005-07-05 * elf.c (special_sections): Move const qualifier.Alan Modra17-44/+66
(special_sections_b..special_sections_t): Likewise. * elf32-arm.c (elf32_arm_symbian_get_sec_type_attr): Remove duplicate const. (elf32_arm_symbian_special_sections): Move const qualifier. * elf32-m32r.c: Similarly. * elf32-m68hc11.c: Similarly. * elf32-m68hc12.c: Similarly. * elf32-mcore.c: Similarly. * elf32-ppc.c: Similarly. * elf32-sh64.c: Similarly. * elf32-v850.c: Similarly. * elf32-xtensa.c: Similarly. * elf64-alpha.c: Similarly. * elf64-hppa.c: Similarly. * elf64-ppc.c: Similarly. * elf64-sh64.c: Similarly. * elfxx-ia64.c: Similarly. * elfxx-mips.c: Similarly.
2005-07-05daily updateAlan Modra1-1/+1
2005-07-04m32r-linux-ld support for position independent executablesNick Clifton2-2/+7
2005-07-04 PR 1042Alan Modra2-5/+11
* elf.c (assign_file_positions_for_segments): Remove excluded sections from the segment map.
2005-07-04 PR 1004Alan Modra20-753/+391
bfd/ * elf-bfd.h (struct elf_backend_data): Add get_sec_type_attr. Delete special_sections. (_bfd_elf_get_special_section): Declare. (bfd_elf_special_section): Update prototype. * elf.c (special_sections): Remove unused outer entries. (get_special_section): Delete. (_bfd_elf_get_special_section): New function. (_bfd_elf_get_sec_type_attr): Replace "name" arg with "sec". Update special_sections indexing. (_bfd_elf_new_section_hook): Call backend get_sec_type_attr. * elf32-arm.c (symbian_special_sections_d): Delete. (symbian_special_sections_g, symbian_special_sections_h): Delete. (symbian_special_sections_i, symbian_special_sections_f): Delete. (symbian_special_sections_p): Delete. (elf32_arm_symbian_special_sections): Merge above to here. (elf32_arm_symbian_get_sec_type_attr): New function. (elf_backend_special_sections): Don't define. (elf_backend_get_sec_type_attr): Define. * elf32-m32r.c: Similarly to elf32-arm.c. * elf32-m68hc11.c: Likewise. * elf32-m68hc12.c: Likewise. * elf32-mcore.c: Likewise. * elf32-sh64.c: Likewise. * elf32-v850.c: Likewise. * elf32-xtensa.c: Likewise. * elf64-alpha.c: Likewise. * elf64-hppa.c: Likewise. * elf64-ppc.c: Likewise. * elf64-sh64.c: Likewise. * elfxx-ia64.c: Likewise. * elfxx-mips.c: Likewise. * elf32-ppc.c: Likewise. (bfd_elf_special_section ppc_alt_plt): New. Use it if .plt loadable. * elfxx-mips.h (_bfd_mips_elf_get_sec_type_attr): Declare. (_bfd_mips_elf_special_sections, elf_backend_special_sections): Delete. (elf_backend_get_sec_type_attr): Define. * elfxx-target.h (elf_backend_get_sec_type_attr): Define. (elf_backend_special_sections): Don't define. (elfNN_bed): Update. binutils/ * objcopy.c (copy_object): Use bfd_make_section_with_flags. (write_debugging_info): Likewise. (setup_section): Use bfd_make_section_anyway_with_flags. gas/ * config/obj-elf.c (obj_elf_change_section): Use backend get_sec_type_attr.
2005-07-04daily updateAlan Modra1-1/+1
2005-07-03daily updateAlan Modra1-1/+1
2005-07-02daily updateAlan Modra1-1/+1
2005-07-01Update function declarations to ISO C90 formattingNick Clifton19-4333/+3595
2005-07-01 * elf64-alpha.c (elf64_alpha_create_got_section): Always createAlan Modra2-46/+38
a new .got section. (elf64_alpha_create_dynamic_sections): Always make new sections by using bfd_make_section_anyway_with_flags. Check that .got not already created. (elf64_alpha_check_relocs): Delete "got_created". Use tdata->gotobj instead.
2005-07-01daily updateAlan Modra1-1/+1
2005-06-30 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Ignore dynamicAlan Modra3-12/+34
_SDA_BASE_ and _SDA2_BASE_ symbols. * elflink.c (_bfd_elf_provide_symbol): Correct comment. Define sym if not def_regular. (_bfd_elf_provide_section_bound_symbols): Similarly.
2005-06-30daily updateAlan Modra1-1/+1
2005-06-29 * config.bfd: Mark as obsolete:Ben Elliston2-0/+10
m68*-apollo-* m68*-apple-aux* m68*-bull-sysv*
2005-06-29 * elflink.c (_bfd_elf_gc_mark): Mark sections referenced byAlan Modra5-29/+73
.eh_frame specially.. (bfd_elf_gc_sections): ..rather than totally ignoring .eh_frame. Don't recheck sections we have already marked. (elf_gc_sweep): Keep non-code sections referenced from .eh_frame. * section.c (struct bfd_section): Add gc_mark_from_eh. (STD_SECTION): Adjust. * ecoff.c (bfd_debug_section): Adjust. * bfd-in2.h: Regenerate.
2005-06-29 * elflink.c (elf_gc_sweep): Do not refcount on sections that haveAlan Modra2-1/+8
not been processed by check_relocs.
2005-06-292005-06-29 Paul Brook <paul@codesourcery.com>Paul Brook5-22/+48
* bfd-in.h (_bfd_elf_provide_symbol): Update prototype. * bfd-in2.h: Regenerate. * elf32-ppc.c (ppc_elf_set_sdata_syms): Make sdata symbols section relative. * elflink.c (bfd_elf_set_symbol): Add section argument. (_bfd_elf_provide_symbol): Ditto. (_bfd_elf_provide_section_bound_symbols): Pass NULL section argument.
2005-06-29daily updateAlan Modra1-1/+1
2005-06-28daily updateAlan Modra1-1/+1
2005-06-27 * bfd/elf32-hppa.c (struct elf32_hppa_stub_hash_entry):Dave Anglin2-145/+177
Use bh_root, and hh. (struct elf32_hppa_link_hash_entry): Use eh, and hsh_cache. (struct elf32_hppa_dyn_reloc_entry): Use hdh_next. (struct elf32_hppa_link_hash_table): Use etab and bstab. (stub_hash_newfunc): Use hh. (hppa_link_hash_newfunc): Use hsh_cache. (elf32_hppa_link_hash_table_create): Use etab, and bstab. (elf32_hppa_link_hash_table_free): Use bstab. (hppa_stub_name): Use eh. (hppa_get_stub_entry): Use hh, hsh_entry, and hsh_cache. (hppa_add_stub): Use bstab. (hppa_type_of_stub): Use eh. (hppa_build_one_stub): Use hh and bh_root. (elf32_hppa_copy_indirect_symbol): Use hdh_next. (elf32_hppa_check_relocs): Use eh, etab, and hdh_next. (elf32_hppa_gc_sweep_hook): Use hdh_next. (elf32_hppa_adjust_dynamic_symbol): Use hdh_next, and etab. (allocate_plt_static): Use etab. (allocate_dynrelocs): Use etab, and hdh_next. (readonly_dynrelocs): Use hdh_next. (elf32_hppa_size_dynamic_sections): Use etab, and hdh_next. (get_local_syms): Use eh, bstab, and hh. (elf32_hppa_size_stubs): Use eh, bstab, and hh. (elf32_hppa_set_gp): Use etab. (elf32_hppa_build_stubs): Use bstab. (final_link_relocate): Use eh, bh_root. (elf32_hppa_relocate_section): Use elf, etab. (elf32_hppa_finish_dynamic_sections): Use etab.
2005-06-272005-06-27 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+6
* elfxx-ia64.c (elfNN_hpux_backend_symbol_processing): Remove the extra `;'.
2005-06-27daily updateAlan Modra1-1/+1
2005-06-26daily updateAlan Modra1-1/+1
2005-06-25daily updateAlan Modra1-1/+1
2005-06-24daily updateAlan Modra1-1/+1
2005-06-23daily updateAlan Modra1-1/+1
2005-06-22daily updateAlan Modra1-1/+1
2005-06-21 * bfd/elf32-hppa.c (hppa_elf_hash_entry): Define.Dave Anglin2-612/+673
(hppa_stub_hash_entry): Define. (stub_hash_newfunc): Rename variables. (hppa_link_hash_newfunc): Likewise. (elf32_hppa_link_hash_table_free): Likewise. (hppa_stub_name): Likewise. (hppa_get_stub_entry): Likewise. (hppa_add_stub): Likewise. (hppa_type_of_stub): Likewise. (hppa_build_one_stub): Likewise. (hppa_size_one_stub): Likewise. (elf32_hppa_create_dynamic_sections): Likewise. (elf32_hppa_copy_indirect_symbol): Likewise. (elf32_hppa_check_relocs): Likewise. (elf32_hppa_gc_mark_hook): Likewise. (elf32_hppa_gc_sweep_hook): Likewise. (elf32_hppa_grok_psinfo): Likewise. (elf32_hppa_hide_symbol): Likewise. (elf32_hppa_adjust_dynamic_symbol): Likewise. (allocate_dynrelocs): Likewise. (clobber_millicode_symbols): Likewise. (readonly_dynrelocs): Likewise. (elf32_hppa_size_dynamic_sections): Likewise. (get_local_syms): Likewise. (elf32_hppa_size_stubs): Likewise. (hppa_record_segment_addr): Likewise. (final_link_relocate): Likewise. (elf32_hppa_relocate_section): Likewise. (elf32_hppa_finish_dynamic_symbol): Likewise.
2005-06-21daily updateAlan Modra1-1/+1
2005-06-202005-06-20 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu29-28/+195
PR 1025 * elf-m10300.c (mn10300_elf_check_relocs): Handle indirect symbol. * elf32-arm.c (elf32_arm_check_relocs): Likewise. * elf32-avr.c (elf32_avr_check_relocs): Likewise. * elf32-cris.c (cris_elf_check_relocs): Likewise. * elf32-d10v.c (elf32_d10v_check_relocs): Likewise. * elf32-dlx.c (elf32_dlx_check_relocs): Likewise. * elf32-fr30.c (fr30_elf_check_relocs): Likewise. * elf32-frv.c (elf32_frv_check_relocs): Likewise. * elf32-i370.c (i370_elf_check_relocs): Likewise. * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise. * elf32-m32r.c (m32r_elf_check_relocs): Likewise. * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise. * elf32-m68k.c (elf_m68k_check_relocs): Likewise. * elf32-mcore.c (mcore_elf_check_relocs): Likewise. * elf32-ms1.c (ms1_elf_check_relocs): Likewise. * elf32-msp430.c (elf32_msp430_check_relocs): Likewise. * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise. * elf32-ppc.c (ppc_elf_check_relocs): Likewise. * elf32-s390.c (elf_s390_check_relocs): Likewise. * elf32-sh.c (sh_elf_check_relocs): Likewise. * elf32-v850.c (v850_elf_check_relocs): Likewise. * elf32-vax.c (elf_vax_check_relocs): Likewise. * elf64-mmix.c (mmix_elf_check_relocs): Likewise. * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. * elf64-s390.c (elf_s390_check_relocs): Likewise. * elf64-sh64.c (sh_elf64_check_relocs): Likewise. * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
2005-06-202005-06-20 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-2/+13
PR 1022 * elf32-hppa.c (elf32_hppa_check_relocs): Handle indirect symbol.
2005-06-202005-06-20 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-2/+18
PR 1025: * elf32-i386.c (elf_i386_check_relocs): Handle indirect symbol. * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
2005-06-20daily updateAlan Modra1-1/+1
2005-06-19daily updateAlan Modra1-1/+1
2005-06-182005-06-18 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-0/+10
* reloc.c: Add BFD_RELOC_X86_64_GOTOFF64 and BFD_RELOC_X86_64_GOTPC32. * bfd-in2.h: Regenerated.
2005-06-18daily updateAlan Modra1-1/+1
2005-06-17 * elf.c (bfd_section_from_shdr): Kill bogus warning.Jakub Jelinek2-1/+4
2005-06-17 * elf.c (bfd_section_from_shdr): Fail if sh_entsize is bogus forJakub Jelinek4-8/+38
symbol, relocation, group or versym sections. * coffcode.h (coff_slurp_reloc_table): Don't crash if native_relocs is NULL. * peXXigen.c (pe_print_idata): Don't crash if dll_name or start_address doesn't point into the section.
2005-06-17bfd/Jan Beulich4-7/+82
2005-06-17 Jan Beulich <jbeulich@novell.com> * bfd-in2.h (elf_x86_64_reloc_type): Add BFD_RELOC_X86_64_GOTOFF64 and BFD_RELOC_X86_64_GOTPC32. * libbfd.h (bfd_reloc_code_real_names): Likewise. * elf64-x86-64.c (x86_64_elf_howto_table): Add entries for R_X86_64_PC64, R_X86_64_GOTOFF64, and R_X86_64_GOTPC32. (x86_64_reloc_map): Add entries for R_X86_64_PC64, R_X86_64_GOTOFF64, and R_X86_64_GOTPC32. (elf64_x86_64_info_to_howto): Adjust bounding relocation type. (elf64_x86_64_check_relocs): Also handle R_X86_64_PC64, R_X86_64_GOTOFF64, and R_X86_64_GOTPC32. (elf64_x86_64_relocate_section): Likewise. (elf64_x86_64_gc_sweep_hook): Also handle R_X86_64_PC64. gas/ 2005-06-17 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (reloc): Also handle BFD_RELOC_64_PCREL. (tc_i386_fix_adjustable): Include BFD_RELOC_X86_64_GOTOFF64, BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64. (output_disp): Do GOTPC conversion also for BFD_RELOC_X86_64_32S and BFD_RELOC_32_PCREL. Use BFD_RELOC_X86_64_GOTPC32 instead of aborting. (output_imm): Do GOTPC conversion also for BFD_RELOC_X86_64_32S. Use BFD_RELOC_X86_64_GOTPC32 instead of aborting. (tc_gen_reloc): Do GOTPC conversion also for BFD_RELOC_32_PCREL. Use BFD_RELOC_X86_64_GOTPC32 instead of aborting. Also handle BFD_RELOC_X86_64_GOTOFF64, BFD_RELOC_X86_64_GOTPC32, BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64. Also convert 8-byte pc-relative relocations. (lex_got): Use BFD_RELOC_X86_64_GOTOFF64 for 64-bit @gotoff. (i386_validate_fix): Likewise. (x86_cons): Also handle quad values in 64-bit mode. (i386_displacement): Also handle BFD_RELOC_X86_64_GOTOFF64. (md_apply_fix): Include BFD_RELOC_X86_64_DTPOFF64 and BFD_RELOC_X86_64_TPOFF64 in the TLS check. Also convert BFD_RELOC_64 to pc-relative variant. Also check for BFD_RELOC_64_PCREL. gas/testsuite/ 2005-06-17 Jan Beulich <jbeulich@novell.com> * gas/i386/x86-64-pcrel.s: Add insn requiring 64-bit pc-relative relocation. Add insns for all widths of non-pc-relative relocations. * gas/i386/x86-64-pcrel.d: Adjust. include/elf/ 2005-06-17 Jan Beulich <jbeulich@novell.com> * x86-64.h (elf_x86_64_reloc_type): Adjust comment for R_X86_64_GOTPCREL. Add R_X86_64_PC64, R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
2005-06-17daily updateAlan Modra1-1/+1