aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2005-08-16 * elf64-ppc.c (ppc64_elf_edit_opd): Don't call dec_dynrel_countAlan Modra2-2/+8
when relocatable.
2005-08-16daily updateAlan Modra1-1/+1
2005-08-15 * elf32-xtensa.c (ELF_MACHINE_CODE, ELF_MACHINE_ALT1): Swap valuesBob Wilson2-8/+7
of EM_XTENSA and EM_XTENSA_OLD.
2005-08-15 * elf-bfd.h (_bfd_elf_define_linkage_sym): Declare.Alan Modra6-145/+88
* elflink.c (_bfd_elf_define_linkage_sym): New function, extracted from.. (_bfd_elf_create_got_section): ..here. (_bfd_elf_link_create_dynamic_sections): Call it for _DYNAMIC. (_bfd_elf_create_dynamic_sections): ..and _PROCEDURE_LINKAGE_TABLE_. * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Use _bfd_elf_define_linkage_sym. * elf32-frv.c (_frv_create_got_section): Likewise. * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
2005-08-152005-08-15 Paul Brook <paul@codesourcery.com>Paul Brook2-2/+7
* elf32-arm.c (elf32_arm_howto_table_1): Make R_ARM_PLT32 the same as R_ARM_PC24.
2005-08-15daily updateAlan Modra1-1/+1
2005-08-14 PR ld/1135Dave Anglin2-3/+14
* elf64-hppa.c (elf64_hppa_special_sections): Add flag definitions for .plt, .dlt, .sdata, .sbss and .tbss.
2005-08-14daily updateAlan Modra1-1/+1
2005-08-13daily updateAlan Modra1-1/+1
2005-08-122005-08-12 Dmitry Diky <diwil@spec.ru>Dmitry Diky2-3/+20
* elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust relocations referenced by .section + DISPLACEMENT.
2005-08-12daily updateAlan Modra1-1/+1
2005-08-11daily updateAlan Modra1-1/+1
2005-08-10Fix linker error found when compiling glibc with a mismatched gcc.Jim Wilson2-3/+16
* dwarf2.c (scan_unit_for_symbols, case DT_AT_location): Verify that DW_OP_addr is only opcode in location before using it.
2005-08-102005-08-09 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-7/+11
* elfxx-ia64.c (elfNN_ia64_final_link): Reset gp.
2005-08-10daily updateAlan Modra1-1/+1
2005-08-09Oops - omitted by accident from the previous msp430 patchNick Clifton1-6/+9
2005-08-09(xcoff64_core_p): Constify return_value variable. Also, do not use core_hdrNick Clifton2-3/+13
macro as it evaluates to a cast of an lvalue which is no longer supported by GCC 4.0.
2005-08-09daily updateAlan Modra1-1/+1
2005-08-08Add support for msp430x21xx variantsNick Clifton3-3/+13
2005-08-08PR 1147Nick Clifton3-3/+39
elf32-arm.c (bfd_elf32_close_and_cleanup): Define. (elf32_arm_close_and_cleanup): New function - walk over the sections in the bfd that is being closed removing them from the list of recorded sections. (unrecord_section_via_map_over_sections): New helper function. (record_section_with_arm_elf_section_data): Call bfd_malloc instead of bfd_alloc. Remove unneeded abfd parameter. (elf32_arm_new_section_hook): Do not pass bfd to record_section_with_arm_elf_section_data. elfxx-target.h (bfd_elfNN_close_and_cleanup): Only define if not already defined by the target.
2005-08-08daily updateAlan Modra1-1/+1
2005-08-07Reviewed and approved by Nick Clifton <nickc@redhat.com>Fred Fish2-1/+6
2005-08-05 Fred Fish <fnf@specifix.com> * dwarf2.c (read_rangelist): Use addr_size instead of offset_size to determine how many bytes to read from each rangelist entry.
2005-08-07daily updateAlan Modra1-1/+1
2005-08-06daily updateAlan Modra1-1/+1
2005-08-05bfd/H.J. Lu3-0/+35
2005-08-05 H.J. Lu <hongjiu.lu@intel.com> * bfd.c (bfd_hide_symbol): New. * bfd-in2.h: Regenerated. ld/ 2005-08-05 H.J. Lu <hongjiu.lu@intel.com> * ld.texinfo: Document PROVIDE_HIDDEN. * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked. (exp_provide): Add and set hidden. * ldexp.h (etree_type): Add hidden to assign. * ldgram.y (PROVIDE_HIDDEN): New. * ldlex.l (PROVIDE_HIDDEN): Likewise. * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound symbols.
2005-08-05daily updateAlan Modra1-1/+1
2005-08-042005-08-04 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-12/+21
* elf64-x86-64.c (elf64_x86_64_merge_symbol): When mixing a large common symbol and a normal common symbol, always turn the large common symbol into a normal one.
2005-08-04bfd/Alan Modra5-140/+122
* elf32-ppc.c (struct elf_linker_section): Replace sym_val field with sym. (ppc_elf_relocate_section): Adjust for above. (create_sdata_sym): New function. (ppc_elf_create_linker_section): Call it. (ppc_elf_check_relocs): Correct has_sda_refs and non_got_refs. Create sdata syms for all SDA relocs. (ppc_elf_adjust_dynamic_symbol): Don't special case _SDA_BASE_ and _SDA2_BASE_. (ppc_elf_set_sdata_syms): Delete. * elflink.c (bfd_elf_size_dynamic_sections): Don't create DT_INIT and DT_FINI tags unless associated section has input. (bfd_elf_set_symbol, _bfd_elf_provide_symbol): Delete. (_bfd_elf_provide_section_bound_symbols): Delete. * bfd-in.h (_bfd_elf_provide_symbol): Delete. (_bfd_elf_provide_section_bound_symbols): Delete. * bfd-in2.h: Regenerate. ld/ * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete. * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete. (struct ld_emulation_xfer_struct): Remove do_assignments field. * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments. * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New. (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New. * emultempl/aix.em (ld_*_emulation): Delete do_assignments init. * emultempl/armcoff.em: Likewise. * emultempl/beos.em: Likewise. * emultempl/generic.em: Likewise. * emultempl/gld960.em: Likewise. * emultempl/gld960c.em: Likewise. * emultempl/linux.em: Likewise. * emultempl/lnk960.em: Likewise. * emultempl/m68kcoff.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/sunos.em: Likewise. * emultempl/ticoff.em: Likewise. * emultempl/vanilla.em: Likewise. * emultempl/elf32.em: Likewise. (gld*_provide_bound_symbols): Delete. (gld*_provide_init_fini_syms): Delete. (gld*_before_allocation): Don't call ldemul_do_assignments. * emultempl/ppc32elf.em (ppc_do_assignments): Delete. (LDEMUL_DO_ASSIGNMENTS): Delete. * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS, SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
2005-08-04bfd/Alan Modra5-35/+42
* elflink.c (fix_syms, _bfd_elf_fix_excluded_sec_syms): Move to.. * linker.c (fix_syms, _bfd_fix_excluded_sec_syms): ..here. * bfd-in.h (_bfd_fix_excluded_sec_syms): Rename. * bfd-in2.h: Regenerate. ld/ * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally. (finish_default): New function. * ldemul.h (finish_default): Declare. * emultempl/aix.em (gld*_before_allocation): Call before_allocation_default rather than strip_excluded_output_sections. (ld_*_emulation): Init finish field to finish_default. * emultempl/armcoff.em: Likewise. * emultempl/beos.em: Likewise. * emultempl/elf32.em: Likewise. * emultempl/generic.em: Likewise. * emultempl/gld960.em: Likewise. * emultempl/gld960c.em: Likewise. * emultempl/hppaelf.em: Likewise. * emultempl/linux.em: Likewise. * emultempl/lnk960.em: Likewise. * emultempl/m68kcoff.em: Likewise. * emultempl/mmo.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/ppc64elf.em: Likewise. * emultempl/sunos.em: Likewise. * emultempl/ticoff.em: Likewise. * emultempl/vanilla.em: Likewise.
2005-08-042005-08-03 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+7
* elfxx-ia64.c (elfNN_ia64_relax_section): Resize .rela.got only if it isn't NULL.
2005-08-04daily updateAlan Modra1-1/+1
2005-08-03bfd/H.J. Lu3-2/+10
2005-08-03 H.J. Lu <hongjiu.lu@intel.com> * elf32-i386.c (elf_howto_table): Undo the overflow change for R_386_PC16 made on 2005-07-18. * elf64-x86-64.c (x86_64_elf_howto_table): Undo the overflow change for R_X86_64_PC16 made on 2005-07-18. ld/testsuite/ 2005-08-03 H.J. Lu <hongjiu.lu@intel.com> * ld-i386/pcrel16.d: Updated. * ld-i386/pcrel16.s: Likewise. * ld-x86-64/pcrel16.d: Likewise.
2005-08-03daily updateAlan Modra1-1/+1
2005-08-02 * elf32-ppc.c (struct ppc_elf_link_hash_table): Remove hgot. UseAlan Modra2-23/+27
elf.hgot throughout file.
2005-08-02 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Correct value ofAlan Modra2-3/+11
_GLOBAL_OFFSET_TABLE_ for > 32k GOT.
2005-08-02 * elfxx-ia64.c (struct elfNN_ia64_allocate_data): Add only_got.Andreas Schwab2-43/+69
(elfNN_ia64_relax_section): Reallocate .rela.got when .got has changed. (allocate_dynrel_entries): Look only at GOT relocations when only_got is true. (elfNN_ia64_size_dynamic_sections): Set only_got to false before calling allocate_dynrel_entries.
2005-08-02PR 1147Nick Clifton2-17/+124
* elf32-arm.c (struct _arm_elf_section_data): Turn into a typedef and make the mapcount field unsigned. (struct section_list): New: Used to keep track of which sections have an _arm_elf_section_data structure. (record_section_with_arm_elf_section_data): New function. (get_arm_elf_section_data): New function. (unrecord_section_with_arm_elf_section_data): New function. (elf32_arm_output_symbol_hook): Use get_arm_elf_section_data. (elf32_arm_new_section_hook): Call record_section_with_arm_elf_section_data. (elf32_arm_write_section): Use get_arm_elf_section_data and unrecord_section_with_arm_elf_section_data.
2005-08-02daily updateAlan Modra1-1/+1
2005-08-01 * elfxx-mips.c (mips_mach_extends_p): Treat MIPS64 as an extensionRichard Sandiford2-3/+23
of MIPS32 and MIPS64r2 as an extension of MIPS32r2.
2005-08-01daily updateAlan Modra1-1/+1
2005-07-31 * elflink.c (elf_gc_sweep): Set dynsymcount to correct value.David Daney2-0/+10
2005-07-31daily updateAlan Modra1-1/+1
2005-07-30daily updateAlan Modra1-1/+1
2005-07-29 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Ignore _gp_dispDavid Daney2-0/+19
if it is in the *ABS* section.
2005-07-292005-07-29 Paul Brook <paul@codesourcery.com>Paul Brook4-0/+10
bfd/ * reloc.c: Add BFD_RELOC_ARM_T32_ADD_PC12. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. gas/ * config/tc-arm.c (T16_32_TAB): Add "addr". Fix encoding of push and pop. (do_t_addr): Implement 32-bit variant. (do_t_push_pop): Make some errors warnings. Handle single register 32-bit case. (insns): Use tCE for adr. (md_pcrel_from_section): Handle BFD_RELOC_ARM_T32_ADD_PC12. (md_apply_fix): Ditto. gas/testsuite/ * gas/arm/thumb32.d: Fix expected output for writeback addressing modes. Add single high reg push/pop test. * gas/asm/thumb32.s: Add single high reg push/pop test. opcodes/ * arm-dis.c: Fix disassebly of thumb2 writeback addressing modes.
2005-07-292005-07-29 Paul Brook <paul@codesourcery.com>Paul Brook4-0/+10
bfd/ * reloc.c (BFD_RELOC_ARM_T32_IMM12): Add. * bfd-in2.h: Regeenrate. * libbfd.h: Regenerate. gas/ * config/tc-arm.c (parse_tb): New function. (enum operand_parse_code): Add OP_TB. (parse_operands): Handle OP_TB. (do_t_add_sub_w, do_t_tb): New functions. (insns): Add entries for addw, subw, tbb and tbh. (md_apply_fix): Handle BFD_RELOC_ARM_T32_IMM12. gas/testsuite/ * gas/arm/thumb32.s: Add tests for addw, subw, tbb and tbh. * gas/arm/thumb32.d: Ditto. opcodes/ * arm-dis.c (thumb32_opc): Fix addressing mode for tbh. (print_insn_thumb32): Fix decoding of thumb2 'I' operands.
2005-07-29* peXXigen.c (pe_print_edata): Compute the size of the export table from theNick Clifton2-9/+20
size field in the DataDictionary and not the size of the section. Some linkers embed the export table inside a larger section.
2005-07-29 * elf-bfd.h (struct elf_backend_data): Add action_discarded.Alan Modra10-16/+71
(enum action_discarded): Move from.. * elflink.c (enum action_discarded): ..here. (_bfd_elf_default_action_discarded): Rename from elf_action_discarded. Remove target specific section checks. (elf_link_input_bfd): Adjust. * elfxx-target.h (elf_backend_action_discarded): Define. (elfNN_bed): Init new field. * bfd-in.h (_bfd_elf_default_action_discarded): Declare. * bfd-in2.h: Regenerate. * elf-hppa.h (elf_hppa_action_discarded): New function. * elf32-hppa.c (elf_backend_action_discarded): Define. * elf64-hppa.c (elf_backend_action_discarded): Define. * elf32-ppc.c (ppc_elf_action_discarded): New function. (elf_backend_action_discarded): Define.
2005-07-29daily updateAlan Modra1-1/+1
2005-07-28daily updateAlan Modra1-1/+1