summaryrefslogtreecommitdiff
path: root/bfd
Commit message (Collapse)AuthorAgeFilesLines
* 2007-07-09 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2007-07-102-11/+41
| | | | | | | * elflink.c (bfd_elf_record_link_assignment): Handle indirect symbol. (_bfd_elf_merge_symbol): Properly update normal symbol when overriding the versioned symbol from a dynamic library.
* daily updateAlan Modra2007-07-101-1/+1
|
* .Roland McGrath2007-07-091-0/+15
|
* 2007-07-09 Roland McGrath <roland@redhat.com>Roland McGrath2007-07-092-2/+157
| | | | | | | | | | * elf-bfd.h (struct elf_obj_tdata): Add members emit_note_gnu_build_id and note_gnu_build_id_sec. * elf.c (_bfd_id_note_section_size): New global function. (read_hex, _bfd_elf_write_build_id_section): New static functions. (_bfd_elf_write_object_contents): Call _bfd_elf_write_build_id_section if emit_note_gnu_build_id is set. * Makefile.am (elf.lo): Update dependencies.
* 2007-07-09 Roland McGrath <roland@redhat.com>Roland McGrath2007-07-091-0/+13
| | | | | | | | | | | | | | * elf-bfd.h (struct elf_obj_tdata): Add members emit_note_gnu_build_id and note_gnu_build_id_sec. * elf.c (_bfd_id_note_section_size): New global function. (read_hex, _bfd_elf_write_build_id_section): New static functions. (_bfd_elf_write_object_contents): Call _bfd_elf_write_build_id_section if emit_note_gnu_build_id is set. * Makefile.am (elf.lo): Update dependencies. * elf-bfd.h (struct elf_size_info): Add checksum_contents hook. (bfd_elf32_checksum_contents, bfd_elf64_checksum_contents): Declare. * elfcode.h (elf_checksum_contents): New macro and function. (NAME(_bfd_elf,size_info)): Initialize checksum_contents hook.
* 2007-07-09 Roland McGrath <roland@redhat.com>Roland McGrath2007-07-091-1/+50
| | | | | | | * elf-bfd.h (struct elf_size_info): Add checksum_contents hook. (bfd_elf32_checksum_contents, bfd_elf64_checksum_contents): Declare. * elfcode.h (elf_checksum_contents): New macro and function. (NAME(_bfd_elf,size_info)): Initialize checksum_contents hook.
* daily updateAlan Modra2007-07-091-1/+1
|
* daily updateAlan Modra2007-07-081-1/+1
|
* daily updateAlan Modra2007-07-071-1/+1
|
* * elflink.c (elf_link_add_object_symbols): Return viaAlan Modra2007-07-062-5/+9
| | | | error_free_vers on "notice" failure.
* daily updateAlan Modra2007-07-061-1/+1
|
* 2007-07-04 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2007-07-052-14/+23
| | | | | * peicode.h (pe_bfd_object_p): Don't check PE vs. EFI target if arch is unknown.
* daily updateAlan Modra2007-07-051-1/+1
|
* * elf32-mep.c (mep_final_link_relocate) [R_MEP_HI16S]: Correctly compensateNick Clifton2007-07-042-0/+11
| | | | for high bit set in R_MEP_LOW16.
* daily updateAlan Modra2007-07-041-1/+1
|
* bfd:Joseph Myers2007-07-032-0/+22
| | | | | | | | | | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Copy type from input attributes if value has been copied. ld/testsuite: * ld-arm/attr-merge-2a.s, ld-arm/attr-merge-2b.s, ld-arm/attr-merge-2.attr: New. * ld-arm/arm-elf.exp (armelftests): Add new test.
* Switch sources over to use the GPL version 3Nick Clifton2007-07-03399-2735/+4015
|
* daily updateAlan Modra2007-07-031-1/+1
|
* bfd:Joseph Myers2007-07-023-1/+23
| | | | | | | | | | | | | | * elfxx-mips.c (mips_elf_calculate_relocation): Handle R_MIPS_TLS_DTPREL32 and R_MIPS_TLS_DTPREL64. * elf64-mips.c (mips_elf64_howto_table_rela): Support R_MIPS_TLS_DTPREL64. gas: * config/tc-mips.c (s_dtprelword, s_dtpreldword, s_dtprel_internal): New. (mips_pseudo_table): Add .dtprelword and .dtpreldword. (md_apply_fix): Handle BFD_RELOC_MIPS_TLS_DTPREL32 and BFD_RELOC_MIPS_TLS_DTPREL64.
* Regenerate files.Alan Modra2007-07-029-7198/+1096
|
* * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): TidyAlan Modra2007-07-022-10/+16
| | | | symsec != NULL tests.
* PR 4712Alan Modra2007-07-022-84/+87
| | | | | * elf.c (assign_file_positions_for_load_sections): Adjust lma by p_vaddr_offset.
* daily updateAlan Modra2007-07-021-1/+1
|
* daily updateAlan Modra2007-07-011-1/+1
|
* bfd/H.J. Lu2007-06-305-20/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-30 H.J. Lu <hongjiu.lu@intel.com> * aclocal.m4: Regenerated. * Makefile.in: Likewise. bfd/doc/ 2007-06-30 H.J. Lu <hongjiu.lu@intel.com> * Makefile.in: Likewise. binutils/ 2007-06-30 H.J. Lu <hongjiu.lu@intel.com> * aclocal.m4: Regenerated. * doc/Makefile.in: Likewise. * Makefile.in: Likewise. gas/ 2007-06-30 H.J. Lu <hongjiu.lu@intel.com> * aclocal.m4: Regenerated. * doc/Makefile.in: Likewise. * Makefile.in: Likewise. gprof/ 2007-06-30 H.J. Lu <hongjiu.lu@intel.com> * aclocal.m4: Regenerated. * Makefile.in: Likewise. ld/ 2007-06-30 H.J. Lu <hongjiu.lu@intel.com> * aclocal.m4: Regenerated. * Makefile.in: Likewise. opcodes/ 2007-06-30 H.J. Lu <hongjiu.lu@intel.com> * aclocal.m4: Regenerated. * Makefile.in: Likewise.
* bfd:Joseph Myers2007-06-302-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | * elf32-ppc.c (ppc_elf_merge_obj_attributes): New. (ppc_elf_merge_private_bfd_data): Call it. binutils: * readelf.c (display_power_gnu_attribute, process_power_specific): New. (process_arch_specific): Call process_power_specific. include/elf: * ppc.h (Tag_GNU_Power_ABI_FP): Define. ld/testsuite: * ld-powerpc/attr-gnu-4-0.s, ld-powerpc/attr-gnu-4-00.d, ld-powerpc/attr-gnu-4-01.d, ld-powerpc/attr-gnu-4-02.d, ld-powerpc/attr-gnu-4-1.s, ld-powerpc/attr-gnu-4-10.d, ld-powerpc/attr-gnu-4-11.d, ld-powerpc/attr-gnu-4-12.d, ld-powerpc/attr-gnu-4-13.d, ld-powerpc/attr-gnu-4-2.s, ld-powerpc/attr-gnu-4-20.d, ld-powerpc/attr-gnu-4-21.d, ld-powerpc/attr-gnu-4-22.d, ld-powerpc/attr-gnu-4-3.s, ld-powerpc/attr-gnu-4-31.d: New. * ld-powerpc/powerpc.exp: Run these new tests.
* daily updateAlan Modra2007-06-301-1/+1
|
* bfd:Joseph Myers2007-06-292-0/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | * elfxx-mips.c (mips_elf_merge_obj_attributes): New. (_bfd_mips_elf_merge_private_bfd_data): Call it. binutils: * readelf.c (display_mips_gnu_attribute): New. (process_mips_specific): Call process_attributes. include/elf: * mips.h (Tag_GNU_MIPS_ABI_FP): Define. ld/testsuite: * ld-mips-elf/attr-gnu-4-0.s, ld-mips-elf/attr-gnu-4-00.d, ld-mips-elf/attr-gnu-4-01.d, ld-mips-elf/attr-gnu-4-02.d, ld-mips-elf/attr-gnu-4-03.d, ld-mips-elf/attr-gnu-4-1.s, ld-mips-elf/attr-gnu-4-10.d, ld-mips-elf/attr-gnu-4-11.d, ld-mips-elf/attr-gnu-4-12.d, ld-mips-elf/attr-gnu-4-13.d, ld-mips-elf/attr-gnu-4-14.d, ld-mips-elf/attr-gnu-4-2.s, ld-mips-elf/attr-gnu-4-20.d, ld-mips-elf/attr-gnu-4-21.d, ld-mips-elf/attr-gnu-4-22.d, ld-mips-elf/attr-gnu-4-23.d, ld-mips-elf/attr-gnu-4-3.s, ld-mips-elf/attr-gnu-4-30.d, ld-mips-elf/attr-gnu-4-31.d, ld-mips-elf/attr-gnu-4-32.d, ld-mips-elf/attr-gnu-4-33.d, ld-mips-elf/attr-gnu-4-4.s, ld-mips-elf/attr-gnu-4-41.d: New. * ld-mips-elf/mips-elf.exp: Run these new tests.
* bfd:Joseph Myers2007-06-2918-565/+935
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * elf-attrs.c: New. * Makefile.am (BFD32_BACKENDS): Add elf-attrs.lo. (BFD32_BACKENDS_CFILES): Add elf-attrs.c. (elf-attrs.lo): Generate dependencies. * Makefile.in: Regenerate. * configure.in (elf): Add elf-attrs.lo. * configure: Regenerate. * elf-bfd.h (struct elf_backend_data): Add entries for object attributes. (NUM_KNOWN_OBJ_ATTRIBUTES, obj_attribute, obj_attribute_list, OBJ_ATTR_PROC, OBJ_ATTR_GNU, OBJ_ATTR_FIRST, OBJ_ATTR_LAST, Tag_NULL, Tag_File, Tag_Section, Tag_Symbol, Tag_compatibility): New. (struct elf_obj_tdata): Add entries for object attributes. (elf_known_obj_attributes, elf_other_obj_attributes, elf_known_obj_attributes_proc, elf_other_obj_attributes_proc): New. (bfd_elf_obj_attr_size, bfd_elf_set_obj_attr_contents, bfd_elf_get_obj_attr_int, bfd_elf_add_obj_attr_int, bfd_elf_add_proc_attr_int, bfd_elf_add_obj_attr_string, bfd_elf_add_proc_attr_string, bfd_elf_add_obj_attr_compat, bfd_elf_add_proc_attr_compat, _bfd_elf_attr_strdup, _bfd_elf_copy_obj_attributes, _bfd_elf_obj_attrs_arg_type, _bfd_elf_parse_attributes, _bfd_elf_merge_object_attributes): New. * elf.c (_bfd_elf_copy_private_bfd_data): Copy object attributes. (bfd_section_from_shdr): Handle attributes sections. * elflink.c (bfd_elf_final_link): Handle attributes sections. * elfxx-target.h (elf_backend_obj_attrs_vendor, elf_backend_obj_attrs_section, elf_backend_obj_attrs_arg_type, elf_backend_obj_attrs_section_type): New. (elfNN_bed): Update. * elf32-arm.c (NUM_KNOWN_ATTRIBUTES, aeabi_attribute, aeabi_attribute_list): Remove. (struct elf32_arm_obj_tdata): Remove object attributes fields. (check_use_blx, bfd_elf32_arm_set_vfp11_fix, using_thumb2, elf32_arm_copy_private_bfd_data, elf32_arm_merge_eabi_attributes): Update for new object attributes interfaces. (uleb128_size, is_default_attr, eabi_attr_size, elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute, elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link, elf32_arm_new_eabi_attr, elf32_arm_get_eabi_attr_int, elf32_arm_add_eabi_attr_int, attr_strdup, elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat, copy_eabi_attributes, elf32_arm_parse_attributes): Remove. Moved to generic code in elf-attrs.c. (elf32_arm_obj_attrs_arg_type): New. (elf32_arm_fake_sections): Do not handle .ARM.attributes. (elf32_arm_section_from_shdr): Do not handle SHT_ARM_ATTRIBUTES. (bfd_elf32_bfd_final_link): Remove. (elf_backend_obj_attrs_vendor, elf_backend_obj_attrs_section, elf_backend_obj_attrs_arg_type, elf_backend_obj_attrs_section_type): New. * elf32-bfin.c (bfin_elf_copy_private_bfd_data): Copy object attributes. * elf32-frv.c (frv_elf_copy_private_bfd_data): Likewise. * elf32-iq2000.c (iq2000_elf_copy_private_bfd_data): Likewise. * elf32-mep.c (mep_elf_copy_private_bfd_data): Likewise. * elf32-mt.c (mt_elf_copy_private_bfd_data): Likewise. * elf32-sh.c (sh_elf_copy_private_data): Likewise. * elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise. binutils: * readelf.c (display_gnu_attribute): New. (process_arm_specific): Rearrange as process_attributes. (process_arm_specific): Replace by wrapper of process_attributes. gas: * as.c (create_obj_attrs_section): New. (main): Call create_obj_attrs_section for ELF. * read.c (s_gnu_attribute, skip_whitespace, skip_past_char, skip_past_comma, s_vendor_attribute): New. (potable): Add gnu_attribute for ELF. * read.h (s_vendor_attribute): Declare. * config/tc-arm.c (s_arm_eabi_attribute): Replace by wrapper round s_vendor_attribute. (aeabi_set_public_attributes): Update for new attributes interfaces. (arm_md_end): Remove attributes contents setting now done generically. include/elf: * arm.h (elf32_arm_add_eabi_attr_int, elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat, elf32_arm_get_eabi_attr_int, elf32_arm_set_eabi_attr_contents, elf32_arm_eabi_attr_size, Tag_NULL, Tag_File, Tag_Section, Tag_Symbol, Tag_compatibility): Remove. * common.h (SHT_GNU_ATTRIBUTES): Define. ld: * emulparams/armelf.sh (OTHER_SECTIONS): Remove .ARM.attributes. (ATTRS_SECTIONS): Define. * scripttempl/elf.sc, scripttempl/elf32sh-symbian.sc, scripttempl/elf_chaos.sc, scripttempl/elfi370.sc, scripttempl/elfxtensa.sc: Handle ATTRS_SECTIONS.
* 2007-06-29 Paul Brook <paul@codesourcery.com>Paul Brook2007-06-292-25/+45
| | | | | | | | | | | | | bfd/ * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Suppress call veneers for call relocations against undefined symbols. (elf32_arm_final_link_relocate): Turn call to undefined symbol into a jump to the next instruction. ld/testuite/ * ld-arm/arm-elf.exp (armelftests): Add callweak. * ld-arm/callweak.d: New test. * ld-arm/callweak.s: New test.
* * bfd.c (bfd_demangle): Plug memory leak (Coverity).Nick Clifton2007-06-292-6/+10
|
* New port: National Semiconductor's CR16Nick Clifton2007-06-2914-8/+1647
|
* * elflink.c (_bfd_elf_link_assign_sym_version): Improve errorAlan Modra2007-06-292-2/+9
| | | | | | message for undefined version nodes. (elf_gc_sweep): Don't warn when zero size sections are removed.
* * elf32-ppc.c (ppc_elf_info_to_howto): Check for invalid relocationAlan Modra2007-06-292-0/+16
| | | | types.
* * elf32-spu.c (spu_elf_fake_sections): New function.Alan Modra2007-06-292-0/+18
| | | | (elf_backend_fake_sections): Define.
* Mention PR ld/4701.H.J. Lu2007-06-291-0/+1
|
* * elf.c (assign_file_positions_for_load_sections): Use elfAlan Modra2007-06-292-19/+19
| | | | | section header sh_size rather than bfd section size, simplifying .tbss handling.
* * elf.c (assign_file_positions_for_load_sections): Ensure bssAlan Modra2007-06-292-28/+50
| | | | | | segments meet gABI alignment requirements. Don't allocate file space for bss sections in a segment also containing file or program headers.
* daily updateAlan Modra2007-06-291-1/+1
|
* daily updateAlan Modra2007-06-281-1/+1
|
* bfd/Alan Modra2007-06-278-31/+49
| | | | | | | | | | | | | | | | | | * bfd.c (struct bfd): Rename "next" to "archive_next". * archive.c: Rename uses throughout file. * archive64.c: Likewise. * coff-rs6000.c: Likewise. * ecoff.c: Likewise. * som.c: Likewise. * bfd-in2.h: Regenerate. binutils/ * ar.c: Rename uses of bfd.next to bfd.archive_next throughout. * arsup.c: Likewise. * binemul.c: Likewise. * objcopy.c: Likewise. * dlltool.c: Likewise. ld/ * pe-dll.c: Rename uses of bfd.next to bfd.archive_next throughout.
* * elf32-spu.c (spu_elf_create_sections): Properly iterate overAlan Modra2007-06-272-1/+2
| | | | input bfds.
* * elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate overAlan Modra2007-06-272-1/+6
| | | | input bfds.
* daily updateAlan Modra2007-06-271-1/+1
|
* * dwarf2.c (find_line): New. Contains the duplicated code from:Nick Clifton2007-06-262-277/+114
| | | | | (_bfd_dwarf2_find_nearest_line): Use it. (_bfd_dwarf2_find_line): Use it.
* bfd:Joseph Myers2007-06-262-0/+5
| | | | | | | | * elf32-arm.c (copy_eabi_attributes): Copy type of attributes. ld/testsuite: * ld-arm/attr-merge.s, ld-arm/attr-merge.attr: New. * ld-arm/arm-elf.exp (armelftests): Add new test.
* daily updateAlan Modra2007-06-261-1/+1
|
* bfd/Richard Sandiford2007-06-252-2/+6
| | | | | | | | | | | | | | | | * elfxx-mips.c (mips_elf_calculate_relocation): Allow local stubs to be used for calls from MIPS16 code. gas/ * config/tc-mips.h (TC_SYMFIELD_TYPE): New. * config/tc-mips.c (append_insn): Record which symbols have R_MIPS16_26 relocations against them. (mips_fix_adjustable): Don't reduce relocations against such symbols. ld/testsuite/ * ld-mips-elf/mips16-local-stubs-1.s, * ld-mips-elf/mips16-local-stubs-1.d: New tests. * ld-mips-elf/mips-elf.exp: Run them.
* daily updateAlan Modra2007-06-251-1/+1
|
* daily updateAlan Modra2007-06-241-1/+1
|