aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
2005-09-282005-09-28 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+11
PR binutils/1321 * elf-bfd.h (_bfd_elf_setup_group_pointers): Renamed to ... (_bfd_elf_setup_sections): This. * elf.c: Likewise. * elfcode.h (elf_object_p): Likewise. * elf.c (_bfd_elf_setup_sections): Process SHF_LINK_ORDER. (_bfd_elf_copy_private_section_data): Likewise.
2005-09-282005-09-28 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+5
* elflink.c (elf_fixup_link_order): Report locations for mixed ordered and unordered input sections.
2005-09-22Fix addr2line -i problem; reports incorrect function nesting for inline funcs.Jim Wilson1-0/+9
* dwarf2.c (struct funcinfo): Delete nesting_level field. (lookup_address_in_function_table): Delete code to set funcinfo caller_func field. Delete local curr_func. (scan_unit_for_symbols): New locals nested_funcs, nested_funcs_size. Delete code setting funcinfo nesting_level field. Add code to set funcinfo caller_func field.
2005-09-20Add mangled names to addr2line -i output.Jim Wilson1-0/+6
* dwarf2.c (find_abstract_instance_name): Don't early exit when name set. For DW_AT_name case, only set name if not already set. Handle DW_AT_MIPS_linkage_name.
2005-09-19 * elflink.c (_bfd_elf_merge_symbol): Simplify.Alan Modra1-0/+4
2005-09-19 * elf64-ppc.c (ppc_build_one_stub): Replace assertion that longAlan Modra1-0/+9
branch offset is in range with an error. Print full stub name on errors. (ppc_size_one_stub): Print full stub name on errors. (group_sections): Warn if section size exceeds group size. (ppc64_elf_size_stubs): Continue relaxing when stub types change.
2005-09-09 * elf32-am33lin.c (bfd.h, sysdep.h, elf-bfd.h, elf/mn10300.h):Kevin Buettner1-0/+8
Include. (elf32_am33lin_grok_prstatus, elf32_am33lin_grok_psinfo): New functions. (elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
2005-09-09 * elf32-arm.c (elf32_arm_section_from_shdr): Accept SHT_ARM_PREEMPTMAPRichard Earnshaw1-0/+5
and SHT_ARM_ATTRIBUTES.
2005-09-092005-09-08 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+5
* elflink.c (elf_get_linked_section_vma): Fix a typo in comment. * elfxx-ia64.c (elf_backend_link_order_error_handler): Likewise.
2005-09-082005-09-08 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+6
PR ld/1263 * elflink.c (elf_link_add_object_symbols): Abort for --just-symbols on DSO.
2005-09-082005-09-08 Paul Brook <paul@codesourcery.com>Paul Brook1-0/+6
bfd/ * reloc.c: Rename BFD_RELOC_ARM_SMI to BFD_RELOC_ARM_SMC. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. opcodes/ * arm-dis.c (arm_opcodes, thumb32_opcodes): Rename smi to smc. gas/ * config/tc-arm.c (do_smi, do_t_smi): Rename ... (do_smc, do_t_smc): ... to this. (insns): Remane smi to smc. (md_apply_fix, tc_gen_reloc): Rename BFD_RELOC_ARM_SMI to BFD_RELOC_ARM_SMC. gas/testsuite/ * gas/arm/arch6zk.d: Rename smi to smc. * gas/arm/arch6zk.s: Ditto. * gas/arm/thumb32.d: Ditto. * gas/arm/thumb32.s: Ditto.
2005-09-072005-09-06 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+6
PR ld/1301 * elflink.c (_bfd_elf_merge_symbol): Don't check undefined symbol introduced by "ld -u" for TLS.
2005-09-022005-09-02 Paul Brook <paul@codesourcery.com>Paul Brook1-0/+7
bfd/ * libbdf.h: Regenerate. * bfd-in2.h: Regenerate. * reloc.c: Add BFD_RELOC_ARM_T32_CP_OFF_IMM and BFD_RELOC_ARM_T32_CP_OFF_IMM_S2. gas/ * config/tc-arm.c (encode_arm_cp_address): Use BFD_RELOC_ARM_T32_CP_OFF_IMM in thumb mode. (do_iwmmxt_wldstbh): Use BFD_RELOC_ARM_T32_CP_OFF_IMM_S2 in thumb mode. (md_assemble): Only allow coprocessor instructions when Thumb-2 is available. (cCE, cC3): Define. (insns): Use them for coprocessor instructions. (md_pcrel_from_section): Handle BFD_RELOC_ARM_T32_CP_OFF_IMM. (get_thumb32_insn): New function. (put_thumb32_insn): New function. (md_apply_fix): Handle BFD_RELOC_ARM_T32_CP_OFF_IMM and BFD_RELOC_ARM_T32_CP_OFF_IMM_S2. gas/testsuite/ * gas/arm/vfp-bad_t2.d, gas/arm/vfp-bad_t2.l, arm/vfp-bad_t2.s, gas/arm/vfp1_t2.d, gas/arm/vfp1_t2.s, gas/arm/vfp1xD_t2.d, gas/arm/vfp1xD_t2.s, gas/arm/vfp2_t2.d, gas/arm/vfp2_t2.s): New files. opcodes/ * arm-dis.c (coprocessor_opcodes): New. (arm_opcodes, thumb32_opcodes): Remove coprocessor insns. (print_insn_coprocessor): New function. (print_insn_arm): Use print_insn_coprocessor. Remove coprocessor format characters. (print_insn_thumb32): Use print_insn_coprocessor.
2005-09-012005-09-01 Dmitry Diky <diwil@spec.ru>Dmitry Diky1-0/+7
* elf32-msp430.c (msp430_elf_relax_delete_bytes): Do not adjust local symbols and move it to (msp430_elf_relax_adjust_locals): New function - walk over the sections in the bfd and adjust relocations as necessary.
2005-08-31* elf32-i386.c (elf_i386_check_relocs): Don't cast a unary &DJ Delorie1-0/+12
address operator, as that breaks GCC's strict aliasing rules. (elf_i386_size_dynamic_sections): Avoid the need for type punning. * elf64-x86-64.c (elf_x86_64_check_relocs): Don't cast a unary & address operator, as that breaks GCC's strict aliasing rules. (elf_x86_64_size_dynamic_sections): Avoid the need for type punning.
2005-08-30(i[3-7]86-*-vxworks): Match vxworks* instead.Nick Clifton1-0/+4
2005-08-292005-08-29 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+5
PR ld/1247 * elfxx-ia64.c (allocate_fptr): Check undefined symbol.
2005-08-29(_bfd_mips_elf_relocate_section): Initialise 'value' to avoid compile timeNick Clifton1-0/+5
warning message.
2005-08-26Re-enable GAS for z8k-coffNick Clifton1-0/+16
2005-08-25 * elf32-sh.c (sh_elf_get_flags_from_mach): Fix off-by-one error.Kaz Kojima1-0/+4
2005-08-252005-08-24 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+18
PR ld/1208 * elf-hppa.h (elf_hppa_relocate_section): Print out the name of unresolvable relocation. * elf-m10300.c (mn10300_elf_relocate_section): Likewise. * elf32-arm.c (elf32_arm_relocate_section): Likewise. * elf32-i386.c (elf_i386_relocate_section): Likewise. * elf32-m32r.c (m32r_elf_relocate_section): Likewise. * elf32-m68k.c (elf_m68k_relocate_section): Likewise. * elf32-s390.c (elf_s390_relocate_section): Likewise. * elf32-sh.c (sh_elf_relocate_section): Likewise. * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise. * elf64-s390.c (elf_s390_relocate_section): Likewise. * elf64-sh64.c (sh_elf64_relocate_section): Likewise. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
2005-08-18 * config.bfd: Add bfd_elf32_shnbsd_vec and bfd_elf32_shlnbsd_vecKaz Kojima1-0/+5
to targ_selvecs for sh5*-*-netbsd* and sh64*-*-netbsd*.
2005-08-18Remove a29k files.Alan Modra1-0/+2
2005-08-18Remove a29k support.Alan Modra1-0/+19
2005-08-18 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Warn onAlan Modra1-0/+21
zero size dynamic variables. * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise. * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise. * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise. * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise. * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise. * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise. * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise. * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise. * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise. * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise. * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise. * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
2005-08-17bfd/H.J. Lu1-0/+7
2005-08-17 H.J. Lu <hongjiu.lu@intel.com> PR binutils/1179 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Use section lma instead of vma. (_bfd_dwarf2_find_line): Likewise. binutils/ 2005-08-17 H.J. Lu <hongjiu.lu@intel.com> PR binutils/1179 * objdump.c (disassemble_bytes): Don't adjust adjust_section_vma. (adjust_addresses): Don't adjust vma for debugging section. Adjust lma only for relocatable files. (dump_bfd): Tell adjust_addresses if it is a relocatable file.
2005-08-17 * elf64-mmix.c (mmix_elf_add_symbol_hook): Mark reg sectionAlan Modra1-0/+9
SEC_LINKER_CREATED. (mmix_elf_final_link): Check that section hasn't already been removed before removing. * mmo.c (mmo_scan): Mark reg contents section SEC_LINKER_CREATED. (mmo_canonicalize_symtab): Likewise for reg section.
2005-08-17bfd/Alan Modra1-0/+6
* elf32-cris.c (elf_cris_adjust_gotplt_to_got): Move assert later. * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Cope with being called without any got section. ld/testsuite/ * ld-alpha/tlsbin.rd: Update. * ld-alpha/tlsbinr.rd: Update. * ld-cris/locref1.d: Update. * ld-cris/locref2.d: Update. * ld-i386/tlsbin.rd: Update. * ld-ia64/tlsbin.rd: Update. * ld-powerpc/tlsexe.r: Update. * ld-powerpc/tlsexe32.r: Update. * ld-powerpc/tlsexetoc.r: Update. * ld-s390/tlsbin.rd: Update. * ld-s390/tlsbin_64.rd: Update. * ld-sparc/tlssunbin32.rd: Update. * ld-sparc/tlssunbin64.rd: Update. * ld-x86-64/tlsbin.rd: Update.
2005-08-17bfdDanny Smith1-0/+5
* cofflink.c (_bfd_coff_generic_relocate_section): Correct comment. gas * config/obj-coff.c (obj_coff_weak): Set auxiliary record of NT weak externals to IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY.
2005-08-17 * elflink.c (_bfd_elf_define_linkage_sym): Don't callAlan Modra1-0/+11
bfd_elf_link_record_dynamic_symbol. Call elf_backend_hide_symbol. (_bfd_elf_link_renumber_dynsyms): Formatting. (struct elf_gc_sweep_symbol_info): New. (elf_gc_sweep_symbol): Rewrite. (elf_gc_sweep): Adjust params and elf_gc_sweep_symbol call. Call _bfd_elf_link_renumber_dynsyms. (bfd_elf_gc_sections): Adjust elf_gc_sweep call.
2005-08-16 * elf64-ppc.c (ppc64_elf_edit_opd): Don't call dec_dynrel_countAlan Modra1-0/+5
when relocatable.
2005-08-15 * elf32-xtensa.c (ELF_MACHINE_CODE, ELF_MACHINE_ALT1): Swap valuesBob Wilson1-0/+5
of EM_XTENSA and EM_XTENSA_OLD.
2005-08-15 * elf-bfd.h (_bfd_elf_define_linkage_sym): Declare.Alan Modra1-0/+13
* 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 Brook1-0/+5
* elf32-arm.c (elf32_arm_howto_table_1): Make R_ARM_PLT32 the same as R_ARM_PC24.
2005-08-14 PR ld/1135Dave Anglin1-0/+6
* elf64-hppa.c (elf64_hppa_special_sections): Add flag definitions for .plt, .dlt, .sdata, .sbss and .tbss.
2005-08-122005-08-12 Dmitry Diky <diwil@spec.ru>Dmitry Diky1-0/+5
* elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust relocations referenced by .section + DISPLACEMENT.
2005-08-10Fix linker error found when compiling glibc with a mismatched gcc.Jim Wilson1-0/+5
* 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. Lu1-0/+4
* elfxx-ia64.c (elfNN_ia64_final_link): Reset gp.
2005-08-09(xcoff64_core_p): Constify return_value variable. Also, do not use core_hdrNick Clifton1-0/+7
macro as it evaluates to a cast of an lvalue which is no longer supported by GCC 4.0.
2005-08-08Add support for msp430x21xx variantsNick Clifton1-0/+7
2005-08-08PR 1147Nick Clifton1-0/+17
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-07Reviewed and approved by Nick Clifton <nickc@redhat.com>Fred Fish1-0/+5
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-05bfd/H.J. Lu1-0/+5
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-042005-08-04 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+6
* 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 Modra1-0/+20
* 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 Modra1-0/+7
* 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. Lu1-0/+5
* elfxx-ia64.c (elfNN_ia64_relax_section): Resize .rela.got only if it isn't NULL.
2005-08-03bfd/H.J. Lu1-0/+8
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-02 * elf32-ppc.c (struct ppc_elf_link_hash_table): Remove hgot. UseAlan Modra1-0/+5
elf.hgot throughout file.
2005-08-02 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Correct value ofAlan Modra1-0/+5
_GLOBAL_OFFSET_TABLE_ for > 32k GOT.