aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2011-07-08daily updateAlan Modra1-1/+1
2011-07-07daily updateAlan Modra1-1/+1
2011-07-06bfd/Tristan Gingold2-304/+6
2011-07-06 Tristan Gingold <gingold@adacore.com> * mach-o.h: Move loader related definitions to include/mach-o/loader.h. Include it. include/mach-o/ 2011-07-06 Tristan Gingold <gingold@adacore.com> * loader.h: New file.
2011-07-06daily updateAlan Modra1-1/+1
2011-07-05Always elf_backend_post_process_headers to _bfd_elf_set_osabi.H.J. Lu2-11/+5
2011-07-05 H.J. Lu <hongjiu.lu@intel.com> * elf64-x86-64.c (elf_backend_post_process_headers): Always define to _bfd_elf_set_osabi.
2011-07-05daily updateAlan Modra1-1/+1
2011-07-04daily updateAlan Modra1-1/+1
2011-07-03ELFOSABI_GNUThomas Schwinge1-0/+1
bfd/ * elf.c (_bfd_elf_set_osabi): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX alias. * elf32-hppa.c: Likewise. * elf32-i370.c: Likewise. * elf64-hppa.c: Likewise. binutils/ * elfedit.c (osabis): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX alias and ELFOSABI_HURD. Add GNU alias. * readelf.c (get_osabi_name, get_symbol_binding, get_symbol_type): Likewise. * doc/binutils.texi <elfedit>: Update accordingly. elfcpp/ * elfcpp.h (ELFOSABI): Add ELFOSABI_GNU with value of ELFOSABI_LINUX, keep ELFOSABI_LINUX as an alias. Remove ELFOSABI_HURD. gas/ * config/obj-elf.c (obj_elf_type): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX alias. * config/tc-ia64.c: Likewise. include/elf/ * common.h (ELFOSABI_GNU): Define, replaces... (ELFOSABI_LINUX): ... this, kept as an alias. (ELFOSABI_HURD): Remove. ld/testsuite/ * ld-ifunc/ifunc.exp: Update for changed output. * ld-unique/unique.exp: Likewise.
2011-07-03ELFOSABI_GNUThomas Schwinge5-9/+18
bfd/ * elf.c (_bfd_elf_set_osabi): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX alias. * elf32-hppa.c: Likewise. * elf32-i370.c: Likewise. * elf64-hppa.c: Likewise. binutils/ * elfedit.c (osabis): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX alias and ELFOSABI_HURD. Add GNU alias. * readelf.c (get_osabi_name, get_symbol_binding, get_symbol_type): Likewise. * doc/binutils.texi <elfedit>: Update accordingly. elfcpp/ * elfcpp.h (ELFOSABI): Add ELFOSABI_GNU with value of ELFOSABI_LINUX, keep ELFOSABI_LINUX as an alias. Remove ELFOSABI_HURD. gas/ * config/obj-elf.c (obj_elf_type): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX alias. * config/tc-ia64.c: Likewise. include/elf/ * common.h (ELFOSABI_GNU): Define, replaces... (ELFOSABI_LINUX): ... this, kept as an alias. (ELFOSABI_HURD): Remove. ld/testsuite/ * ld-ifunc/ifunc.exp: Update for changed output. * ld-unique/unique.exp: Likewise.
2011-07-03daily updateAlan Modra1-1/+1
2011-07-02daily updateAlan Modra1-1/+1
2011-07-01 * elf32-i386.c (elf_i386_eh_frame_plt): Correct expression: changeIan Lance Taylor2-1/+6
DW_OP_lit3 to DW_OP_lit2.
2011-07-01 * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Don't look atAlan Modra3-76/+56
dyn relocs when called to copy flags for a weak sym. * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise. (ppc64_elf_merge_private_bfd_data): Delete. (bfd_elf64_bfd_merge_private_bfd_data): Define as _bfd_generic_verify_endian_match.
2011-07-01daily updateAlan Modra1-1/+1
2011-06-30 * bfd/elf32-tic6x.c (elf32_tic6x_set_osabi): Also set it ifBernd Schmidt2-1/+6
link_info is NULL.
2011-06-30daily updateAlan Modra1-1/+1
2011-06-29daily updateAlan Modra1-1/+1
2011-06-282011-06-28 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-3/+10
* vms-alpha.c (vms_private_data_struct): Make vms_linkage_index unsigned int. (_bfd_vms_write_etir): Write linkage index from reloc.
2011-06-282011-06-28 Fawzi Mohamed <fawzi.mohamed@nokia.com>Tristan Gingold2-0/+6
* mach-o.c (bfd_mach_o_read_command): Also ignore BFD_MACH_O_LC_ROUTINES_64.
2011-06-28daily updateAlan Modra1-1/+1
2011-06-272011-06-27 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-10/+10
* vms-alpha.c (_bfd_vms_write_etir): Use 'section' to get current section target index.
2011-06-27 * cisco-core.c (cisco_core_little_vec): Add initialization ofNick Clifton2-0/+6
match_priority field.
2011-06-272011-06-27 Tristan Gingold <gingold@adacore.com>Tristan Gingold7-18/+79
* cache.c: Include bfd_stdint.h. (cache_bmmap): Change profile. Return region start and size. * bfdio.c (struct bfd_iovec): Change bmmap profile. (bfd_mmap): Change profile and adjust. Update comment. (memory_bmmap): Change profile. * opncls.c (opncls_bmmap): Change profile. * vms-lib.c (vms_lib_bmmap): Likewise. * libbfd.h: Regenerate. * bfd-in2.h: Regenerate.
2011-06-272011-06-27 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-4/+17
* vms-misc.c (vms_time_to_time_t): Adjust overflow detection. Add comment.
2011-06-27daily updateAlan Modra1-1/+1
2011-06-26daily updateAlan Modra1-1/+1
2011-06-25Properly define elf_backend_post_process_headers.H.J. Lu2-4/+10
2011-06-25 H.J. Lu <hongjiu.lu@intel.com> * elf64-x86-64.c (elf_backend_post_process_headers): Don't define for FreeBSD/x86-64 nor FreeBSD/L1OM. Define for L1OM.
2011-06-25bfd/Jan Kratochvil3-0/+8
* elf64-x86-64.c (elf_x86_64_link_hash_table_create): Initialize PLT_EH_FRAME. * elf32-i386.c (elf_i386_link_hash_table): Likewise.
2011-06-25daily updateAlan Modra1-1/+1
2011-06-24 PR ld/12928Richard Henderson2-7/+13
* elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Recover the tlsgd insn before swapping adjacent insns.
2011-06-242011-06-24 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+13
* vms-alpha.c (alpha_vms_slurp_relocs): Add a guard for relocs in the absolute section.
2011-06-24 PR ld/12921Alan Modra2-17/+26
* elf.c (assign_file_positions_for_load_sections): Don't align sh_offset for all SHT_NOBITS sections here, just .tbss sections that don't get a PT_LOAD.
2011-06-24daily updateAlan Modra1-1/+1
2011-06-23daily updateAlan Modra1-1/+1
2011-06-22 * elf32-sh.c (sh_elf_relocate_section): Allow R_SH_TLS_LE_32 for PIE.Kaz Kojima2-2/+7
(sh_elf_check_relocs): Likewise.
2011-06-22 * elf64-alpha.c (elf64_alpha_check_relocs): No dynamic reloc forRichard Henderson2-13/+27
TPREL in a PIE image. (alpha_dynamic_entries_for_reloc): Likewise. (elf64_alpha_relocate_section): Allow TPREL in PIE images. (elf64_alpha_relax_got_load): Likewise.
2011-06-222011-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>Ramana Radhakrishnan2-1/+6
* elf32-arm.c (elf32_arm_final_link_relocate): Allow R_ARM_TLS_LE32 for PIE.
2011-06-21 * elflink.c (_bfd_elf_merge_symbol): Allow type changes forAlan Modra2-4/+14
plugin symbols. Fix segfault on linker scrip defined syms.
2011-06-21daily updateAlan Modra1-1/+1
2011-06-20 PR ld/12570Jakub Jelinek4-19/+260
include/ * bfdlink.h (struct bfd_link_info): Add no_ld_generated_unwind_info option. ld/ * emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO, OPTION_NO_LD_GENERATED_UNWIND_INFO): Define. (gld${EMULATION_NAME}_handle_option): Handle --ld-generated-unwind-info and --no-ld-generated-unwind-info. * ld.texinfo (--ld-generated-unwind-info, --no-ld-generated-unwind-info): Document. bfd/ * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Allow no relocations at all for linker created .eh_frame sections. (_bfd_elf_discard_section_eh_frame): Handle linker created .eh_frame sections with no relocations. * elf64-x86-64.c: Include dwarf2.h. (elf_x86_64_eh_frame_plt): New variable. (PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET, PLT_FDE_LEN_OFFSET): Define. (struct elf_x86_64_link_hash_table): Add plt_eh_frame field. (elf_x86_64_create_dynamic_sections): Create and fill in .eh_frame section for .plt section. (elf_x86_64_size_dynamic_sections): Write .plt section size into .eh_frame FDE covering .plt section. (elf_x86_64_finish_dynamic_sections): Write .plt section start into .eh_frame FDE covering .plt section. Call _bfd_elf_write_section_eh_frame on htab->plt_eh_frame section. (elf_backend_plt_alignment): Define to 4. * elf32-i386.c: Include dwarf2.h. (elf_i386_eh_frame_plt): New variable. (PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET, PLT_FDE_LEN_OFFSET): Define. (struct elf_i386_link_hash_table): Add plt_eh_frame field. (elf_i386_create_dynamic_sections): Create and fill in .eh_frame section for .plt section. (elf_i386_size_dynamic_sections): Write .plt section size into .eh_frame FDE covering .plt section. (elf_i386_finish_dynamic_sections): Write .plt section start into .eh_frame FDE covering .plt section. Call _bfd_elf_write_section_eh_frame on htab->plt_eh_frame section. (elf_backend_plt_alignment): Define to 4. ld/testsuite/ * ld-x86-64/x86-64.exp: Link some testcases with --no-ld-generated-unwind-info. * ld-x86-64/tlsbin.rd: Add --no-ld-generated-unwind-info to ld comment. * ld-x86-64/tlsdesc.dd: Likewise. * ld-x86-64/tlspic.dd: Likewise. * ld-x86-64/tlsdesc.sd: Likewise. * ld-x86-64/tlspic.rd: Likewise. * ld-x86-64/tlsbindesc.rd: Likewise. * ld-x86-64/tlsbindesc.sd: Likewise. * ld-x86-64/tlsbin.td: Likewise. * ld-x86-64/tlsdesc.pd: Likewise. * ld-x86-64/tlsdesc.td: Likewise. * ld-x86-64/tlsbindesc.dd: Likewise. * ld-x86-64/tlsbin.dd: Likewise. * ld-x86-64/tlsgdesc.rd: Likewise. * ld-x86-64/tlspic.sd: Likewise. * ld-x86-64/tlsbindesc.td: Likewise. * ld-x86-64/tlspic.td: Likewise. * ld-x86-64/tlsbin.sd: Likewise. * ld-x86-64/ilp32-4.d: Likewise. * ld-x86-64/tlsgdesc.dd: Add --no-ld-generated-unwind-info to ld comment. Adjust. * ld-x86-64/tlsdesc.rd: Likewise. * ld-x86-64/tlsgd6.dd: Adjust. * ld-x86-64/tlsgd5.dd: Likewise. * ld-i386/i386.exp: Link some testcases with --no-ld-generated-unwind-info. * ld-i386/tlsbin.rd: Add --no-ld-generated-unwind-info to ld comment.. * ld-i386/tlsdesc.dd: Likewise. * ld-i386/tlspic.dd: Likewise. * ld-i386/tlsdesc.sd: Likewise. * ld-i386/tlsgdesc.dd: Likewise. * ld-i386/tlsnopic.sd: Likewise. * ld-i386/tlspic.rd: Likewise. * ld-i386/tlsdesc.rd: Likewise. * ld-i386/tlsbindesc.rd: Likewise. * ld-i386/tlsbindesc.sd: Likewise. * ld-i386/tlsbin.td: Likewise. * ld-i386/tlsdesc.td: Likewise. * ld-i386/tlsnopic.dd: Likewise. * ld-i386/tlsbindesc.dd: Likewise. * ld-i386/tlsbin.dd: Likewise. * ld-i386/tlsgdesc.rd: Likewise. * ld-i386/tlspic.sd: Likewise. * ld-i386/tlsnopic.rd: Likewise. * ld-i386/tlsbindesc.td: Likewise. * ld-i386/tlspic.td: Likewise. * ld-i386/tlsbin.sd: Likewise.
2011-06-20daily updateAlan Modra1-1/+1
2011-06-19Fix misc x32 bugs.H.J. Lu2-0/+8
bfd/ 2011-06-19 H.J. Lu <hongjiu.lu@intel.com> * elf64-x86-64.c (elf_backend_post_process_headers): Defined for x32. binutils/testsuite/ 2011-06-19 H.J. Lu <hongjiu.lu@intel.com> * binutils-all/elfedit-1.d: Updated for x32. gas/ 2011-06-19 H.J. Lu <hongjiu.lu@intel.com> * configure.tgt: Support x32. ld/ 2011-06-19 H.J. Lu <hongjiu.lu@intel.com> * configure.tgt: Support x32. ld/testsuite/ 2011-06-19 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/eh1.d: Skip x32. * ld-elf/eh2.d: Likewise. * ld-elf/eh3.d: Likewise. * ld-elf/eh4.d: Likewise. * ld-elfvsb/elfvsb.exp: Only xfail 64bit x86_64-*-linux*. * ld-shared/shared.exp: Likewise. * ld-ifunc/ifunc-1-local-x86.d: Support x32. * ld-ifunc/ifunc-1-x86.d: Likewise. * ld-ifunc/ifunc-3a-x86.d: Likewise. * ld-x86-64/pcrel16.d: Likewise. * ld-x86-64/x86-64.exp (x86_64tests): Add missing -melf_x86_64.
2011-06-18daily updateAlan Modra1-1/+1
2011-06-17daily updateAlan Modra1-1/+1
2011-06-16Suport x32 gcore.H.J. Lu3-59/+174
2011-06-16 H.J. Lu <hongjiu.lu@intel.com> * elf64-x86-64.c: Include <stdarg.h> and CORE_HEADER if CORE_HEADER is defined. (elf_x86_64_write_core_note): New. (elf_backend_write_core_note): Likewise. * hosts/x86-64linux.h (uint64_t): New. (user_regsx32_struct): Likewise. (elf_gregx32_t): Likewise. (ELF_NGREGX32): Likewise. (elf_gregsetx32_t): Likewise. (elf_prstatusx32): Likewise. (prstatusx32_t): Likewise. (user_fpregs32_struct): Removed. (user_fpxregs32_struct): Likewise. (user32): Likewise. (elf_fpregset32_t): Likewise. (elf_fpxregset32_t): Likewise. (prgregset32_t): Likewise. (prfpregset32_t): Likewise.
2011-06-16Support x32 core dump.H.J. Lu2-0/+27
2011-06-16 H.J. Lu <hongjiu.lu@intel.com> * elf64-x86-64.c (elf_x86_64_grok_prstatus): Support x32. (elf_x86_64_grok_psinfo): Likewise.
2011-06-16 * elf.c (elf_find_function): Fail if not provided with a symbolNick Clifton2-0/+8
table.
2011-06-16daily updateAlan Modra1-1/+1
2011-06-15include/elf/Ulrich Weigand3-0/+37
* common.h (NT_ARM_VFP): Define. bfd/ * elf-bfd.h (elfcore_write_arm_vfp): Add prototype. * elf.c (elfcore_grok_arm_vfp): New function. (elfcore_grok_note): Call it to handle NT_ARM_VFP notes. (elfcore_write_arm_vfp): New function. (elfcore_write_register_note): Call it to handle .reg-arm-vfp. binutils/ * readelf.c (get_note_type): Handle NT_ARM_VFP.
2011-06-15 * elf64-alpha.c (elf64_alpha_copy_indirect_symbol): Rename fromRichard Henderson2-17/+27
elf64_alpha_merge_ind_symbols; adjust for the generic interface. (elf64_alpha_always_size_sections): Don't call elf64_alpha_merge_ind_symbols. (elf_backend_copy_indirect_symbol): New.