2010-01-19 Daisuke Hatayama Alan Modra * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff. (elf_object_p): Read e_phnum extension. (elf_write_shdrs_and_ehdr): Write e_phnum extension. * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check that we can read last program header. 2010-01-19 Matthew Gretton-Dann * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of R_ARM_THM_CALL entry. (elf32_arm_final_link_relocate): Correct calculation of reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22, or R_ARM_THM_JUMP24 relocation. 2010-01-18 Alan Modra PR 11168 * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C block past vars in COFF_IMAGE_WITH_PE block. Report error on more than 32k sections. 2010-01-15 Jan Kratochvil Fix compilation warning on gcc-3.4. * vms-tir.c (start_etir_record, sto_imm): Rename the prototype parameter index to sec_index according to the function definition. 2010-01-13 Chao-ying Fu * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B. It is true for all CPUs. (jal_reloc_p): New function. (mips_elf_calculate_relocation): Rename require_jalxp to cross_mode_jump_p. Update comment for CROSS_MODE_JUMP_P. Set up cross_mode_jump_p based on the mode change. (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p. Update comment for CROSS_MODE_JUMP_P. Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx. Use !cross_mode_jump_p to guard conversion. Convert "jr t9" to "b", if possible. (_bfd_mips_elf_relocate_section): Rename require_jalx to cross_mode_jump_p. Pass &cross_mode_jump_p to call mips_elf_calculate_relocation. Pass cross_mode_jump_p to call mips_elf_perform_relocation. 2010-01-13 Nick Clifton * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for "m32c" returns the m32c arch_info_struct and not the m16c arch_info_struct. (arch_info_struct): Use the new scan function. (bfd_m32c_arch): Likewise. 2010-01-13 Tristan Gingold * config.bfd: Remove duplicated target vector for i386-*-darwin. Appends new arch instead of overriding. Use mach_o_x86_64_vec for x86_64-*-darwin. * configure.in: Add mach_o_x86_64_vec. * configure: Regenerate. * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector. * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c * Makefile.in: Regenerate. * mach-o-x86-64.c: New file. 2010-01-13 Tristan Gingold * reloc.c: Add MACH_O_X86_64 relocations. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. 2010-01-13 Tristan Gingold * archive.c (normalize): Use lbasename. (bfd_bsd_truncate_arname): Ditto. (bfd_gnu_truncate_arname): Ditto. 2010-01-12 Tristan Gingold * makefile.vms (CFLAGS): Turns warnings into informational messages. 2010-01-11 Tristan Gingold * mach-o.h: Add x86-64 relocation types. 2010-01-11 Tristan Gingold * mach-o.h (bfd_mach_o_backend_data): Add arch field. (bfd_mach_o_set_arch_mach): New prototype. * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject. (bfd_mach_o_set_arch_mach): New function. (bfd_mach_o_gen_mkobject): New function. Set TARGET_ARCHITECTURE for the generic back-ends. * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define. Check that TARGET_ARCHITECTURE is defined. Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure. * mach-o-i386.c (TARGET_ARCHITECTURE): Define. 2010-01-11 Tristan Gingold * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap. 2010-01-11 Nick Clifton * elf32-v850.c (v850_elf_perform_relocation): Fix overflow handling of R_V850_HI16_S relocation. 2010-01-11 Alan Modra PR 11103 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment. 2010-01-11 Alan Modra PR 6832 * dwarf2.c (struct comp_unit): Add sec_info_ptr. (find_abstract_instance_name): Use it. (parse_comp_unit): Set it. 2010-01-09 Ralf Wildenhues * Makefile.in: Regenerate. * configure: Regenerate. 2010-01-08 Tristan Gingold * archive.c: Remove bfd_special_undocumented_glue. 2010-01-08 Alan Modra PR ld/11133 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook. * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise. * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise. 2010-01-07 H.J. Lu PR ld/11138 * elflink.c (elf_link_check_versioned_symbol): Don't abort if a symbol referenced by DSO is is defined in a non-shared object and forced local. 2010-01-07 H.J. Lu PR ld/11133 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for undefined __start_XXX/__stop_XXX in all input files and set SEC_KEEP. 2010-01-07 H.J. Lu PR ld/11143 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section. 2010-01-04 Daniel Gutson * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC before including procfs.h. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise. * configure.in: Added autoconf probe for the pr_fpreg member. * configure: Regenerated. * config.in: Regenerated. * elf.c: Define _STRUCTURE_PROC before including procfs.h. 2010-01-04 Joel Brobecker Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64). * dwarf2.c (concat_filename): Rename dirname with dir_name to void shadowing the dirname function. Rename subdirname with subdir_name to stay consistent with the new dir_name variable name. 2010-01-04 Edmar Wienskoski * archures.c: Add bfd_mach_ppc_e500mc64. * bfd-in2.h: Regenerate. * cpu-powerpc.c (bfd_powerpc_archs): Add entry for bfd_mach_ppc_e500mc64. 2010-01-01 Joel Brobecker Fix -Wshadow warnings (seen on ppc-aix) * xcofflink.c: Replace finfo by flinfo throughout. For older changes see ChangeLog-2009 Local Variables: mode: change-log left-margin: 8 fill-column: 74 version-control: never End: