aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
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
2005-07-27 * elflink.c (fix_syms): Handle symbols defined in input sections.Alan Modra2-3/+8
2005-07-27bfd/Jan Beulich2-2/+14
2005-07-27 Jan Beulich <jbeulich@novell.com> * elf64-x86-64.c (R_X86_64_standard, R_X86_64_vt_offset): New. (elf64_x86_64_info_to_howto): Use them.
2005-07-27daily updateAlan Modra1-1/+1
2005-07-26 * elflink.c (_bfd_elf_merge_symbol): Skip weak redefinitionAlan Modra2-1/+6
regardless of strength of previous definition.
2005-07-26 * elflink.c (elf_gc_mark_dynamic_ref_symbol): Handle -shared.Alan Modra3-9/+22
(bfd_elf_gc_sections): Allow -gc-sections when -shared. * elf32-ppc.c (ppc_elf_gc_sweep_hook): Correct for -shared.
2005-07-26 * elflink.c (elf_gc_sweep): Move gcc_except_table code..Alan Modra2-39/+51
(bfd_elf_gc_sections): ..to here.
2005-07-26[bfd]DJ Delorie5-68/+80
* reloc.c: Remove unused M32C relocs, add BFD_RELOC_M32C_HI8. * libbfd.h: Regenerate. * bfd-in2.h: Regenerate. * elf32-m32c.c (m32c_elf_howto_table): Add R_M32C_8, R_M32C_LO16, R_M32C_HI8, R_M32C_HI16. (m32c_reloc_map): Likewise. (m32c_elf_relocate_section): Add R_M32C_HI8 and R_M32C_HI16. [cpu] * m32c.opc (parse_unsigned8): Add %dsp8(). (parse_signed8): Add %hi8(). (parse_unsigned16): Add %dsp16(). (parse_signed16): Add %lo16() and %hi16(). (parse_lab_5_3): Make valuep a bfd_vma *. [gas] * config/tc-m32c.c (md_cgen_lookup_reloc): Add 8 bit operands. Support %mod() modifiers from opcodes. * doc/c-m32c.texi (M32C-Modifiers): New section. [include/elf] * m32c.h: Add R_M32C_8, R_M32C_LO16, R_M32C_HI8, and R_M32C_HI16. [opcodes] * m32c-asm.c Regenerate. * m32c-dis.c Regenerate.
2005-07-26daily updateAlan Modra1-1/+1
2005-07-25bfd/H.J. Lu4-0/+227
2005-07-25 Jan Hubicka <jh@suse.cz> H.J. Lu <hongjiu.lu@intel.com> * elf-bfd.h (_bfd_elf_large_com_section): New. * elf.c (_bfd_elf_large_com_section): New. Defined. * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): New. (elf64_x86_64_elf_section_from_bfd_section): New. (elf64_x86_64_symbol_processing): New. (elf64_x86_64_common_definition): New. (elf64_x86_64_common_section_index): New. (elf64_x86_64_common_section): New. (elf64_x86_64_merge_symbol): New. (elf64_x86_64_additional_program_headers): New. (elf64_x86_64_special_sections): New. (elf_backend_section_from_bfd_section): New. Defined. (elf_backend_add_symbol_hook): Likewise. (elf_backend_common_section_index): Likewise. (elf_backend_common_section): Likewise. (elf_backend_common_definition): Likewise. (elf_backend_merge_symbol): Likewise. (elf_backend_special_sections): Likewise. (elf_backend_additional_program_headers): Likewise. binutils/ 2005-07-25 H.J. Lu <hongjiu.lu@intel.com> * readelf.c (dump_relocations): Handle SHN_X86_64_LCOMMON. (get_symbol_index_type): Likewise. (get_elf_section_flags): Handle SHF_X86_64_LARGE. gas/ 2005-07-25 Jan Hubicka <jh@suse.cz> H.J. Lu <hongjiu.lu@intel.com> * config/obj-elf.c: Include "elf/x86-64.h" if TC_I386 is defined. (elf_com_section_ptr): New. (elf_begin): Set elf_com_section_ptr to bfd_com_section_ptr. (elf_common_parse): Make it global. Use elf_com_section_ptr instead of bfd_com_section_ptr. (obj_elf_change_section): Handle x86-64 large bss sections. * config/obj-elf.h (elf_com_section_ptr): New. (elf_common_parse): New. * config/tc-i386.c (handle_large_common): New. (md_pseudo_table): Add "largecomm". (x86_64_section_letter): New. (x86_64_section_word): New. * config/tc-i386.h (x86_64_section_word): New. (x86_64_section_letter): New. (md_elf_section_letter): New. Defined. (md_elf_section_word): Likewise. include/elf/ 2005-07-25 Jan Hubicka <jh@suse.cz> * x86-64.h (SHN_X86_64_LCOMMON): New. (SHF_X86_64_LARGE): New. ld/ 2005-07-25 Jan Hubicka <jh@suse.cz> H.J. Lu <hongjiu.lu@intel.com> * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New. * scripttempl/elf.sc: Updated for large section support.
2005-07-252005-07-25 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu7-50/+214
* elf-bfd.h (elf_backend_data): Add common_definition, common_section_index, common_section, and merge_symbol. (_bfd_elf_common_definition): New. (_bfd_elf_common_section_index): New. (_bfd_elf_common_section): New. * elf.c (elf_fake_sections): Don't clear sh_flags. * elflink.c (_bfd_elf_merge_symbol): Call backend merge_symbol if it is available. (is_global_data_symbol_definition): Call backend common_definition instead of checking SHN_COMMON. (elf_link_add_object_symbols): Likewise. (elf_link_output_extsym): Call backend common_section_index for common section index. (_bfd_elf_common_definition): New. (_bfd_elf_common_section_index): New. (_bfd_elf_common_section): New. * elfxx-target.h (elf_backend_common_definition): New. (elf_backend_common_section_index): New. (elf_backend_common_section): New. (elf_backend_merge_symbol): New. (elfNN_bed): Initialize common_definition, common_section_index, common_section, and merge_symbol. * section.c (BFD_FAKE_SECTION): New. (STD_SECTION): Use it. * bfd-in2.h: Regenerated.
2005-07-25daily updateAlan Modra1-1/+1
2005-07-24 * chew.c: Include <string.h>.Daniel Jacobowitz2-0/+5
2005-07-24daily updateAlan Modra1-1/+1
2005-07-232005-07-23 Olaf Hering <olh@suse.de>H.J. Lu2-1/+6
* elflink.c (elf_link_input_bfd): Add '\n' for linker einfo callback.
2005-07-23daily updateAlan Modra1-1/+1
2005-07-22* chew.c: Include stdlib.h.DJ Delorie2-0/+5
2005-07-22 * chew.c: Don't include sysdep.h.Kazu Hirata2-1/+4
2005-07-22Remove special case handling for rtems targets that are sufficiently handled byNick Clifton2-3/+8
the default rtems targets.
2005-07-22(m32r_elf_check_relocs): Fix pc count for R_M32R_REL32.Nick Clifton2-0/+6
2005-07-22daily updateAlan Modra1-1/+1
2005-07-21bfd/Ben Elliston10-123/+17
* Makefile.am (BFD32_BACKENDS): Remove cf-m68klynx.lo. (BFD32_BACKENDS): Likewise, remove m68klynx.lo. (BFD32_BACKENDS_CFILES): Remove cf-m68klynx.c, m68klynx.c. (cf-m68klynx.lo, m68klynx.lo): Remove targets. * Makefile.in: Regenerate. * cf-m68klynx.c: Remove. * m68klynx.c: Likewise. * configure.in (m68klynx_aout_vec): Remove vector. (m68klynx_coff_vec): Likewise. * configure: Regenerate. * targets.c (m68klynx_aout_vec): Remove extern. (m68klynx_coff_vec): Likewise. (_bfd_target_vector): Remove m68klynx_{aout,coff}_vec. * po/SRC-POTFILES.in: Remove cf-m68klynx.c, m68klynx.c. gas/ * config/tc-m68k.h: Remove TE_LYNX conditional code.
2005-07-21daily updateAlan Modra1-1/+1
2005-07-20Add support for a 32bit PC relative relocNick Clifton2-5/+36
2005-07-20daily updateAlan Modra1-1/+1
2005-07-19Add ChangeLog entries for yesterdays deltas (oops!)Nick Clifton1-0/+14
2005-07-19daily updateAlan Modra1-1/+1
2005-07-18Fix building for MS1 and M32C.Nick Clifton9-47/+144
Restore alpha- sorting to the architecture tables.
2005-07-18bfd/Jan Beulich3-4/+11
2005-07-18 Jan Beulich <jbeulich@novell.com> * elf32-i386.c (elf_howto_table): Adjust overflow complaint handler for R_386_PC16. * elf64-x86-64.c (x86_64_elf_howto_table): Adjust overflow complaint handler for R_X86_64_PC16, R_X86_64_8, and R_X86_64_DTPOFF. ld/testsuite/ 2005-07-18 Jan Beulich <jbeulich@novell.com> * ld-i386/abs.s, ld-i386/zero.s, ld-i386/abs.d, ld-x86-64/abs.d, ld-i386/pcrel16.s, ld-i386/pcrel16.d, ld-x86-64/pcrel16.d, ld-i386/pcrel8.s, ld-i386/pcrel8.d, ld-x86-64/pcrel8.d: New. * ld-i386/i386.exp, ld-x86-64/x86-64.exp: Run new tests.