aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2005-03-08daily updateAlan Modra1-1/+1
2005-03-08 * configure.in: Bump version to 2.16.90.Daniel Jacobowitz3-2/+7
* configure: Regenerated.
2005-03-07daily updateAlan Modra1-1/+1
2005-03-07 * opncls.c (opncls_bread, opncls_bclose): Fix if pread resp.Jakub Jelinek2-2/+7
close is a function like macro in system headers.
2005-03-07 PR ld/778Alan Modra2-2/+14
* elf32-hppa.c (elf32_hppa_create_dynamic_sections): Reinstate _GLOBAL_OFFSET_TABLE_ as a normal dynamic symbol.
2005-03-06daily updateAlan Modra1-1/+1
2005-03-06 * elf.c (elfcore_grok_win32pstatus): Warning fixes.Alan Modra2-2/+7
2005-03-05daily updateAlan Modra1-1/+1
2005-03-05Regenerate .pot filesAlan Modra2-617/+811
2005-03-05 * elf64-ppc.c (update_plt_info): Don't mark new ABI call symsAlan Modra2-7/+14
with is_func. (func_desc_adjust): Force dot-syms local in executables as well as shared libs.
2005-03-05 bfd/ChangeLogThiemo Seufer2-0/+17
* elfxx-mips.c (mips_elf_calculate_relocation): Handle special '__gnu_local_gp' symbol used by gas -mno-shared. gas/ChangeLog * config/tc-mips.c (macro_build_lui): Use '__gnu_local_gp' instead of '_gp' for -mno-shared optimization. (s_cpload): Ditto. (s_abicalls): Document it in the comment. (md_show_usage): Document the -mno-shared option. gas/testsuite/ChangeLog * gas/mips/elf-rel23b.d: Use '__gnu_local_gp' instead of '_gp' for -mno-shared optimization. * gas/mips/elf-rel25a.d: Ditto. ld/testsuite/ChangeLog * ld-mips-elf/multi-got-no-shared-1.s, ld-mips-elf/multi-got-no-shared-2.s, ld-mips-elf/multi-got-no-shared.d: New tests. * ld-mips-elf/mips-elf.exp: Run them.
2005-03-04daily updateAlan Modra1-1/+1
2005-03-03daily updateAlan Modra1-1/+1
2005-03-032005-03-03 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-2/+10
* elf-bfd.h (elf_backend_data): Add "const char *" to elf_backend_section_from_phdr. * elf.c (bfd_section_from_phdr): Pass "proc" to the elf_backend_section_from_phdr hook.
2005-03-03update copyright datesAlan Modra89-103/+111
2005-03-02daily updateAlan Modra1-1/+1
2005-03-02 * elfxx-mips.c (struct mips_got_entry): Add tls_type.Daniel Jacobowitz8-74/+1698
(struct mips_got_info): Add tls_gotno, tls_assigned_gotno, and tls_ldm_offset. (struct mips_elf_got_per_bfd_arg): Add global_count. (struct mips_elf_count_tls_arg): New. (struct mips_elf_hash_sort_data): Update comment for min_got_dynindx. (struct mips_elf_link_hash_entry): Add tls_type and tls_got_offset. (GOT_NORMAL, GOT_TLS_GD, GOT_TLS_LDM, GOT_TLS_IE) (GOT_TLS_OFFSET_DONE, GOT_TLS_DONE): Define. (TLS_RELOC_P): Define. (TP_OFFSET, DTP_OFFSET): Define. (dtprel_base, tprel_base): New functions. (mips_elf_link_hash_newfunc): Initialize tls_type. (mips_elf_got_entry_hash, mips_elf_got_entry_eq) (mips_elf_multi_got_entry_hash, mips_elf_multi_got_entry_eq): Handle TLS entries. (mips_tls_got_relocs, mips_elf_count_local_tls_relocs) (mips_elf_count_global_tls_entries, mips_elf_count_global_tls_relocs) (mips_elf_output_dynamic_relocation, mips_elf_initialize_tls_slots) (mips_tls_got_index): New functions. (mips_elf_local_got_index): Add new R_SYMNDX, H, and R_TYPE arguments. Pass them to mips_elf_create_local_got_entry. Use mips_tls_got_index. (mips_elf_global_got_index): Add new R_TYPE and INFO arguments. Handle TLS entries. (mips_elf_got_page, mips_elf_got16_entry): Update calls to mips_elf_create_local_got_entry. (mips_elf_create_local_got_entry): Add new R_SYMNDX, H, and R_TYPE arguments. Handle TLS entries. (mips_elf_sort_hash_table_f): Add non-TLS assertions. (mips_elf_record_local_got_symbol): Add new TLS_FLAG argument. Handle TLS entries. (mips_elf_record_global_got_symbol): Likewise. (mips_elf_make_got_per_bfd): Initialize new mips_got_info members. Count TLS entries. (mips_elf_merge_gots): Handle TLS entries when merging. (mips_elf_initialize_tls_index): New function. (mips_elf_set_global_got_offset): Handle TLS entries. (mips_elf_adjust_gp): Handle TLS. (mips_elf_multi_got): Remove redundant call to mips_elf_resolve_final_got_entries. Initialize global_count. Correct a comment. Initialize new TLS members of mips_got_info. Assign TLS GOT indexes for new GOTs. (mips_elf_create_got_section): Initialize new TLS members of mips_got_info. (mips_elf_calculate_relocation): Handle TLS relocs. (_bfd_mips_elf_check_relocs): Likewise. Update calls to changed functions. (_bfd_mips_elf_always_size_sections): Handle TLS. (_bfd_mips_elf_size_dynamic_sections): Likewise. (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Update calls to changed functions. (_bfd_mips_elf_copy_indirect_symbol): Copy tls_type. (_bfd_mips_elf_hide_symbol): Handle TLS. * elfn32-mips.c (elf_mips_howto_table_rel, elf_mips_howto_table_rela) (mips_reloc_map): Add TLS relocs. * elf32-mips.c (elf_mips_howto_table_rel, mips_reloc_map): Likewise. * elf64-mips.c (mips_elf64_howto_table_rel) (mips_elf64_howto_table_rela, mips_reloc_map): Likewise. * reloc.c: Define new MIPS TLS relocations. * libbfd.h, bfd-in2.h: Regenerated.
2005-03-02bfd/Jan Beulich4-3/+10
2005-03-02 Jan Beulich <jbeulich@novell.com> * Makefile.am: Add dependency of cache.o on libiberty.h. * cache.c: Include libiberty.h. (bfd_open_file): Use unlink_if_ordinary instead of unlink. binutils/ 2005-03-02 Jan Beulich <jbeulich@novell.com> * ar.c (remove_output): Use unlink_if_ordinary instead of unlink. * objcopy.c (copy_file): Likewise. (strip_main): Likewise. gas/ 2005-03-02 Jan Beulich <jbeulich@novell.com> * as.c (main): Use unlink_if_ordinary instead of unlink. * messages.c (as_fatal): Likewise. ld/ 2005-03-02 Jan Beulich <jbeulich@novell.com> * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink. * pe-dll.c (pe_dll_generate_implib): Likewise.
2005-03-02 * elf.c (bfd_section_from_shdr <default case>): CallZack Weinberg3-11/+16
elf_backend_section_from_shdr hook unconditionally, and return what it returns. (bfd_section_from_phdr): Similarly, for elf_backend_section_from_phdr. * elfxx-target.h (elf_backend_section_from_shdr) (elf_backend_section_from_phdr): Default to _bfd_elf_make_section_from_shdr and _bfd_elf_make_section_from_phdr respectively.
2005-03-01daily updateAlan Modra1-1/+1
2005-03-01 * targets.h: Typo fix.Alan Modra3-2/+5
* bfd-in2.h: Regenerate.
2005-03-01 * bout.c (b_out_write_object_contents): Don't use sizeof on hostAlan Modra2-7/+13
structs to size on-disk structures. (b_out_set_section_contents): Size the external struct, not the internal one for on-disk size. (b_out_sizeof_headers): Likewise.
2005-02-28 * elf64-ppc.c (ppc64_elf_size_stubs): Override defined dot-symAlan Modra2-2/+6
entry points with the func descriptor as well as undefweak.
2005-02-28daily updateAlan Modra1-1/+1
2005-02-28(pe_ILF_build_a_bfd): Do not assume that an @ will be present whenNick Clifton2-5/+13
IMPORT_NAME_UNDOECRATE is used.
2005-02-282005-02-28 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu4-15/+50
PR 757 * elf-bfd.h (_bfd_elf_merge_symbol): Add a pointer to unsigned int. * elf32-sh-symbian.c (sh_symbian_relocate_section): Pass NULL to _bfd_elf_merge_symbol. * elflink.c (_bfd_elf_merge_symbol): Use the pointer to unsigned int to return the alignment of the old common symbol in the dynamic object. (_bfd_elf_add_default_symbol): Pass NULL to _bfd_elf_merge_symbol. (elf_link_add_object_symbols): Pass &old_alignment to _bfd_elf_merge_symbol. Get the alignment of the new common symbol in the dynamic object.
2005-02-27daily updateAlan Modra1-1/+1
2005-02-26daily updateAlan Modra1-1/+1
2005-02-25daily updateAlan Modra1-1/+1
2005-02-24daily updateAlan Modra1-1/+1
2005-02-24 * coffcode.h (coff_sym_filepos): Remove GNU960 conditional code.Ben Elliston4-32/+8
* format.c (bfd_check_format_matches): Likewise. * archive.c (BFD_GNU960_ARMAG): Likewise. (bfd_generic_archive_p): Likewise. (_bfd_write_archive_contents): Likewise.
2005-02-242005-02-24 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-2/+7
* configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.95. * configure: Regenerate.
2005-02-24 * elflink.c (elf_link_add_object_symbols): Force symbols inJulian Brown2-1/+9
discarded COMDAT group sections to have default visibility.
2005-02-24 * coffcode.h (coff_print_aux): Warning fix.Alan Modra10-33/+46
* elf-m10300.c (mn10300_elf_relax_section): Use section->id instead of section pointer to identify. * coff-h8300.c (h8300_reloc16_extra_cases): Likewise. Allocate the correct size buffer for local sym mangling too. (h8300_bfd_link_add_symbols): Likewise. * elf32-sh-symbian.c (sh_symbian_process_embedded_commands): Fix warning. * elf32-sh64.c (shmedia_prepare_reloc): Use %B and %p in error message * elf32-xtensa.c (literal_value_hash): Warning fix. * versados.c (process_otr): Warning fix. (versados_canonicalize_reloc): Likewise. * vms-gsd.c (_bfd_vms_slurp_gsd): Warning fix. * vms.c (fill_section_ptr): Warning fix.
2005-02-23daily updateAlan Modra1-1/+1
2005-02-232005-02-22 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-0/+23
* coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Defined. * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Likewise.
2005-02-23Initialise bitfield.Nick Clifton2-0/+4
2005-02-23(elf32_m68hc11_relocate_section): Initialise variables that are passed byNick Clifton2-3/+8
reference to m68hc11_get_relocation_value in case that function does not initialise them.
2005-02-23(cr16c_elf_final_link_relocate): Remove duplicated return statements andNick Clifton2-19/+25
replace with a single return at the end of the function. This helps pacify the flow analysis code in gcc 4.0.
2005-02-23(_bfd_elf_compute_section_file_positions): Initialise strtab to avoid compileNick Clifton2-1/+12
time warning.
2005-02-23 * opncls.c (bfd_zalloc): Document this function.Ben Elliston2-1/+16
2005-02-22daily updateAlan Modra1-1/+1
2005-02-22bfd/H.J. Lu5-120/+138
2005-02-21 H.J. Lu <hongjiu.lu@intel.com> * coffcode.h (sec_to_styp_flags): Replaced SEC_CLINK with SEC_TIC54X_CLINK. Replace SEC_BLOCK with SEC_TIC54X_BLOCK. Replace SEC_SHARED with SEC_COFF_SHARED. (styp_to_sec_flags): Likewise. * elfxx-target.h (TARGET_BIG_SYM): Remove SEC_ARCH_BIT_0. (TARGET_LITTLE_SYM): Likewise. * section.c (SEC_ARCH_BIT_0): Removed. (SEC_LINK_DUPLICATES_SAME_CONTENTS): Defined with SEC_LINK_DUPLICATES_ONE_ONLY and SEC_LINK_DUPLICATES_SAME_SIZE. (SEC_SHARED): Renamed to ... (SEC_COFF_SHARED): This. (SEC_BLOCK): Renamed to ... (SEC_TIC54X_BLOCK): This. (SEC_CLINK): Renamed to ... (SEC_TIC54X_CLINK): This. (SEC_XXX): Rearranged. Move SEC_COFF_SHARED_LIBRARY, SEC_COFF_SHARED, SEC_TIC54X_BLOCK and SEC_TIC54X_CLINK to the end. * bfd-in2.h: Regenerated. binutils/ 2005-02-21 H.J. Lu <hongjiu.lu@intel.com> * objcopy.c (parse_flags): Replace SEC_SHARED with SEC_COFF_SHARED. * objdump.c (dump_section_header): Dump SEC_TIC54X_BLOCK and SEC_TIC54X_CLINK for TI c54x only. Remove SEC_ARCH_BIT_0. Dump SEC_COFF_SHARED for COFF only. gas/ 2005-02-21 H.J. Lu <hongjiu.lu@intel.com> * config/obj-coff.c (obj_coff_section): Replace SEC_SHARED with SEC_COFF_SHARED. * config/tc-tic54x.c (tic54x_bss): Replace SEC_BLOCK with SEC_TIC54X_BLOCK. (demand_empty_rest_of_line): Likewise. (tic54x_sblock): Likewise. (tic54x_clink): Replace with SEC_CLINK with SEC_TIC54X_CLINK. ld/ 2005-02-21 H.J. Lu <hongjiu.lu@intel.com> * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI tic54x input only. (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF and ECOFF output only.
2005-02-21daily updateAlan Modra1-1/+1
2005-02-21Approved by nickc@redhat.com:Fred Fish2-2/+16
2005-02-21 Fred Fish <fnf@specifixinc.com> * dwarf2.c (find_abstract_instance_name): Call recursively to handle a DW_AT_specification.
2005-02-21 * elfxx-mips.c (ecoff_swap_rpdr_out, mips_elf_output_extsym,Thiemo Seufer2-87/+7
mips_elf_create_dynamic_relocation, _bfd_mips_elf_size_dynamic_sections, _bfd_mips_elf_final_link): Remove #if 0'd code.
2005-02-21bfd/Alan Modra5-8/+21
* Makefile.am: Run "make dep-am" * Makefile.in: Regenerate. bfd/doc/ * Makefile.in: Regenerate.
2005-02-21 * coffgen.c (bfd_coff_get_comdat_section): Check thatAlan Modra2-7/+9
coff_section_data isn't NULL.
2005-02-20daily updateAlan Modra1-1/+1
2005-02-20include/Alan Modra37-402/+307
* xtensa-isa-internal.h (xtensa_length_decode_fn): Warning fix. * xtensa-isa.h (xtensa_insnbuf_to_chars): Likewise. (xtensa_insnbuf_from_chars, xtensa_isa_length_from_chars): Likewise. include/coff/ * xcoff.h (struct xcoff_loader_info): Warning fix. bfd/ * bfd-in.h (bfd_elf_bfd_from_remote_memory): Warning fix. * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Likewise. * coff-rs6000.c (xcoff_write_armap_big): Warning fixes. Remove useless assignments. (xcoff_write_archive_contents_big): Likewise. (_bfd_xcoff_put_ldsymbol_name): Likewise. * coff64-rs6000.c (_bfd_xcoff64_put_ldsymbol_name): Likewise. * coffgen.c (coff_write_symbols): Make "written" a bfd_vma. * cofflink.c (process_embedded_commands): Warning fixes. * cpu-arm.c: Delete unnecessary prototypes. Convert to C90. Warning fixes. * dwarf2.c: Warning fixes. * elf-bfd.h: Likewise. * elf-eh-frame.c: Likewise. * elf-strtab.c: Likewise. * elf.c: Likewise. * elf32-m68k.c: Likewise. * elf32-ppc.c: Likewise. * elf32-sh-symbian.c: Likewise. * elf32-sh.c: Delete unnecessary prototypes. Warning fixes. * elf64-sh64.c: Likewise. * peicode.h: Likewise. * elf64-mmix.c: Warning fixes. * elfcode.h: Likewise. * elfxx-mips.c: Likewise. * libbfd-in.h: Likewise. * libbfd.c: Likewise. * mach-o.c: Likewise. * merge.c: Likewise. * mmo.c: Likewise. * opncls.c: Likewise. * pef.c: Likewise. * srec.c: Likewise. * vms-hdr.c: Likewise. * vms-tir.c: Likewise. * xtensa-isa.c: Likewise. * xtensa-modules.c: Likewise. * xsym.c: Likewise. (pstrcmp): Use correct choice of string lengths. Fix return value. (bfd_sym_module_name): Correct string length. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate.