aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2005-02-14oops - omitted form previous deltaNick Clifton1-0/+6
2005-02-14PR binutils/716Nick Clifton1-0/+8
* peicode.h (pe_bfd_copy_private_bfd_data): Copy the large address aware flag from the input bfd to the output bfd.
2005-02-13daily updateAlan Modra1-1/+1
2005-02-13* Makefile.am: Use CFLAGS_FOR_BUILD and LDFLAGS_FOR_BUILD forMaciej W. Rozycki3-4/+10
building chew. * Makefile.in: Regenerate.
2005-02-12daily updateAlan Modra1-1/+1
2005-02-11daily updateAlan Modra1-1/+1
2005-02-11* elf32-mips.c (_bfd_mips_elf32_gprel16_reloc): RejectMaciej W. Rozycki4-4/+32
R_MIPS_LITERAL relocations for external symbols. * elf64-mips.c (mips_elf64_literal_reloc): Likewise. * elfn32-mips.c (mips_elf_literal_reloc): Likewise.
2005-02-112005-02-11 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-8/+4
* bfd-in2.h: Rebuilt.
2005-02-11(bfd_sym_parse_contained_variables_table_entry_v32): Avoid call to memcpy withNick Clifton2-0/+5
a size of 0.
2005-02-11(m32r_reloc_map_old): Use #ifdef USE_M32R_OLD_RELOC to protect the ↵Nick Clifton2-1/+6
declaration of this array.
2005-02-11(iq2000_reloc_map): Remove unused structure and array.Nick Clifton2-24/+5
2005-02-11(ip2k_call_opcode, IS_CALL_OPCODE): Remove unused structure and macro.Nick Clifton2-9/+3
2005-02-11(coff_std_swap_table): Add an unused attribute in case it is not used.Nick Clifton2-1/+4
2005-02-11(coff_rtype_to_howto): Move definition before inclusion of coffcode.h so thatNick Clifton2-3/+7
it is actually picked up.
2005-02-112005-02-11 Paul Brook <paul@codesourcery.com>Paul Brook5-16/+68
* elf-bfd.h (struct elf_link_hash_table): Add is_relocatable_executable. * elf.c (_bfd_elf_link_hash_table_init): Initialize it. * elflink.c (bfd_elf_link_record_dynamic_symbol): Create local dynamic symbols in relocatable executables. (bfd_elf_record_link_assignment): Create dynamic section symbols in relocatable executables. (_bfd_elf_link_renumber_dynsyms): Ditto. (bfd_elf_final_link): Ditto. * elf32-arm.c (elf32_arm_final_link_relocate): Copy absolute relocations into relocatable executables. (elf32_arm_check_relocs): Crate dynamic sections for relocatable executables. Also copy absolute relocations. (elf32_arm_adjust_dynamic_symbol): Don't create copy relocations in relocatable executables. (allocate_dynrelocs): Copy relocations for relocatable executables. Output dynamic symbols for symbols defined in linker scripts.
2005-02-11Fix compile time warning by using an unsigned type.Nick Clifton2-1/+4
2005-02-11Remove redundant test in BFD_ASSERTNick Clifton2-1/+6
2005-02-11 * elf64-ppc.c (toc_adjusting_stub_needed): Return true forAlan Modra2-6/+25
old-style branches to undefined dot-symbols which will be satisfied by a plt call.
2005-02-11 * elf64-ppc.c (move_plt_plist): New function, extracted from..Alan Modra2-32/+43
(ppc64_elf_copy_indirect_symbol): ..here. (func_desc_adjust): Use move_plt_plist.
2005-02-10daily updateAlan Modra1-1/+1
2005-02-102005-02-10 Paul Brook <paul@codesourcery.com>Paul Brook2-0/+5
* elf32-arm.c (elf32_arm_final_link_relocate): Handle R_ARM_THM_PC9.
2005-02-102005-02-10 Paul Brook <paul@codesourcery.com>Paul Brook2-3/+49
* elflink.c (bfd_elf_record_link_assignment): Make hidden and internal symbols local. (elf_link_renumber_hash_table_dynsyms): Ignore local symbols. (elf_link_renumber_local_hash_table_dynsyms): New function. (_bfd_elf_link_renumber_dynsyms): Number local dynamic symbols. ld/testsuite/ * ld-elfvsb/hidden2.s: New file * ld-elfvsb/hidden2.d: New file * ld-elfvsb/hidden2.ld: New file
2005-02-10 * bfd-in.h (BFD_LINKER_CREATED): Define.Jakub Jelinek4-3/+19
* bfd-in2.h: Rebuilt. * elflink.c (bfd_elf_size_dynamic_sections): Disregard BFD_LINKER_CREATED bfds when determining input bfds without .note.GNU-stack section. * emultempl/hppaelf.em (hppaelf_create_output_section_statements): Set BFD_LINKER_CREATED on the stubs bfd. * emultempl/ppc64elf.em (ppc_create_output_section_statements): Likewise.
2005-02-10* elf64-mips.c (mips16_gprel_reloc): Update a comment.Maciej W. Rozycki3-2/+18
* elfn32-mips.c (mips16_gprel_reloc): Keep R_MIPS16_GPREL relocations against external symbols unchanged.
2005-02-09daily updateAlan Modra1-1/+1
2005-02-08daily updateAlan Modra1-1/+1
2005-02-082005-02-08 Paul Brook <paul@codesourcery.com>Paul Brook2-2/+7
* elflink.c (elf_link_input_bfd): Ignore symbols from null input sections.
2005-02-08 * elflink.c (elf_link_add_object_symbols): Don't add "warning: "Hans-Peter Nilsson2-7/+8
prefix here.
2005-02-07daily updateAlan Modra1-1/+1
2005-02-07* elf64-mips.c: Fix formatting throughout.Maciej W. Rozycki2-16/+20
2005-02-07* elfn32-mips.c (elf_mips_howto_table_rela): Fix a comment typo.Maciej W. Rozycki2-1/+5
2005-02-07bfd/ChangeLog:Alexandre Oliva2-15/+42
* elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove special handling for *ABS*/*UND* sections. (elf32_frv_relocate_section): Move zero-addend-required error... (_frv_emit_got_relocs_plt_entries): ... here. Report error for missing needed TLS section. ld/testsuite/ChangeLog: * ld-frv/fdpic-shared-8-fail.d: Tweak error messages.
2005-02-07 * aoutx.h (aout_link_add_symbols): Just return TRUE if a warningHans-Peter Nilsson2-2/+5
symbol was last.
2005-02-07 * aoutx.h (NAME(aout,find_nearest_line)): Correct case for N_SOHans-Peter Nilsson2-1/+6
being the last symbol.
2005-02-07* elf32-mips.c (mips_elf_gprel32_reloc): RejectMaciej W. Rozycki3-2/+18
R_MIPS_GPREL32 relocations against external symbols. * elf64-mips.c (mips_elf64_gprel32_reloc): Replace an incorrect comment.
2005-02-06 * elf-bfd.h (elf_string_from_elf_strtab): Delete macro.Alan Modra4-66/+94
* elf.c (bfd_elf_string_from_elf_section): Expand occurrence of elf_string_from_elf_strtab. (_bfd_elf_setup_group_pointers, bfd_section_from_shdr): Likewise. (bfd_section_from_shdr): For SHT_SYMTAB, load SHT_SYMTAB_SHNDX too if it exists. Don't do the reverse for SHT_SYMTAB_SHNDX. For SHT_STRTAB, check whether the strtab is for symtab or dynsymtab by looking at cached symtab info first, before iterating over headers. For SHT_REL and SHT_RELA, load dynsymtab if needed. * elfcode.h (elf_object_p): Don't load section header stringtab
2005-02-06daily updateAlan Modra1-1/+1
2005-02-062005-02-06 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-6/+64
* elf32-i386.c (elf_i386_relocate_section): Disallow R_386_GOTOFF against protected function when building shared library. PR 584 * elf64-x86-64.c (is_32bit_relative_branch): New. (elf64_x86_64_relocate_section): Alllow R_X86_64_PC32 on a protected function symbol when building shared library for 32bit relative branch instruction.
2005-02-06 * elf64-ppc.c (add_symbol_adjust): Don't create fake descriptorAlan Modra2-10/+35
syms when doing a relocatable link. (ppc64_elf_gc_mark_hook): Check that syms are defined before looking at u.def.section. (ppc64_elf_tls_setup): Likewise. (ppc64_elf_edit_opd): Don't use an undefined func desc sym.
2005-02-03 * elf64-ppc.c (struct ppc_link_hash_entry): Add "fake".Alan Modra2-18/+44
(link_hash_newfunc): Clear all locals using memset. (make_fdh): Remove flags param. Always create fake func desc weak. Link the descriptor with the code entry sym. (ppc64_elf_archive_symbol_lookup): Don't return fake syms. (add_symbol_adjust): Adjust make_fdh call. (func_desc_adjust): Likewise. Twiddle any pre-existing fake descriptor to strong undefined if code entry is strong.
2005-02-03bfd/Alan Modra2-6/+13
* elflink.c (bfd_elf_record_link_assignment): Do "provide" symbol lookup here. Set to new before calling bfd_link_repair_undef_list. (elf_smash_syms): Check that u.undef.weak isn't the not_needed bfd. ld/ emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't look up symbol for etree_provide here.
2005-02-03 * linker.c (_bfd_link_hash_newfunc): Set all local fields.Alan Modra2-1/+7
2005-02-03include/Alan Modra3-0/+27
* bfdlink.h (struct bfd_link_hash_entry): Add u.undef.weak. bfd/ * linker.c (_bfd_generic_link_add_one_symbol): Set u.undef.weak. * elflink.c (elf_smash_syms): Restore symbols that were undefweak before the as-needed lib was loaded. Abort on unexpected refs.
2005-02-02daily updateAlan Modra1-1/+1
2005-02-02 * elflink.c (elf_smash_syms): Expand comments.Alan Modra2-6/+18
(elf_link_add_object_symbols): Only call elf_smash_syms for as-needed dynamic objects.
2005-02-02 * elf64-hppa.c (elf64_hppa_new_dyn_hash_entry): Don't clear everything,Alan Modra2-5/+7
just the fields specific to hppa64.
2005-02-02 * elfxx-ia64.c (elfNN_ia64_new_elf_hash_entry): Don't clearAlan Modra2-5/+7
everything, just the field specific to ia64.
2005-02-01daily updateAlan Modra1-1/+1
2005-02-01bfd/Alan Modra2-30/+81
* elf64-ppc.c (func_desc_adjust): Move code creating func desc sym to.. (make_fdh): ..here. New function. Don't set BSF_OBJECT for undefined syms. (struct add_symbol_adjust_data): New. (add_symbol_adjust): Make an undefweak func desc for old ABI objects to link with --as-needed shared libs. Return fail status. Don't adjust old ABI func entry sym to weak if func desc syms isn't defined. (ppc64_elf_check_directives): Adjust call to add_symbol_adjust, and return status. ld/testsuite/ * ld-powerpc/tlsso.r: Update. * ld-powerpc/tlstocso.r: Update.
2005-02-01 * cpu-cris.c (get_compatible): Rearrange disabled code and commentHans-Peter Nilsson2-7/+11
for clarity.