summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 2009-12-10 Doug Kwan <dougkwan@google.com>Doug Kwan2009-12-104-18/+1084
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | elfcpp/ChangeLog * arm.h: New enums for EABI object attribute tags and values. gold/ChangeLog * arm.cc (attributes.h): New include. (Arm_relobj::Arm_relobj): Initialize attributes_section_data_. (Arm_relobj::~Arm_relobj): Delete object pointed by attributes_section_data_. (Arm_relobj::attributes_section_data): New method definition. (Arm_relobj::attributes_section_data_): New data member declaration. (Arm_dynobj::Arm_dynobj): Initialize attributes_section_data_. (Arm_dynobj::~Arm_dynobj): Delete object pointed by attributes_section_data_. (Arm_dynobj::attributes_section_data): New method definition. (Arm_dynobj::attributes_section_data_): New data member declaration. (Target_arm::Target_arm): Initialize attributes_section_data_. Change initialization value of may_use_blx_ to false. (Target_arm::using_thumb2, Target_arm::using_thumb_only, Target_arm::may_use_arm_nop, Target_arm::may_use_thumb2_nop): Use object attributes to compute results instead of hard-coding. (Target_arm::do_attribute_arg_type, Target_arm::do_attributes_order, Target_arm::get_secondary_compatible_arch, Target_arm::set_secondary_compatible_arch Target_arm::tag_cpu_arch_combine, Target_arm::aeabi_enum_name, Target_arm::tag_cpu_name_value, Target_arm::merge_object_attributes): New method declarations. (Target_arm::get_aeabi_object_attribute): New method definition. (Target_arm::attributes_section_data_): New data member declaration. (read_arm_attributes_section): New template definition. (Arm_relobj::do_read_symbols): Read attributes section if it exists. (Arm_dynobj::do_read_symbols): Ditto. (Target_arm::do_finalize_sections): Merge attributes sections from input. Check for BLX use after attributes section merging. Fix __exidx_start and __exidx_end visibility. Create an .ARM.attributes section if necessary. (Target_arm::get_secondary_compatible_arch, Target_arm::set_secondary_compatible_arch, Target_arm::tag_cpu_arch_combine, Target_arm::aeabi_enum_name, Target_arm::tag_cpu_name_value, Target_arm::merge_object_attributes, Target_arm::do_attribute_arg_type, Target_arm::do_attributes_order): New method definitions.
* 2009-12-10 Tristan Gingold <gingold@adacore.com>Tristan Gingold2009-12-104-40/+78
| | | | | | | | | | * addr2line.c (pretty_print): New variable. (long_options): Add an entry for -p/--pretty-print. (usage): Document -p/--pretty-print. (translate_addresses): Handle pretty_print. Reindent. (main): Handle option -p. * doc/binutils.texi (addr2line): Document -p/--pretty-print. * NEWS: Mention new feature.
* bfd/Maciej W. Rozycki2009-12-106-7/+50
| | | | | | | | | | * elfxx-mips.c (mips_elf_calculate_relocation): Correct handling of undefined symbols. ld/testsuite/ * ld-mips-elf/undefined.d: New test. * ld-mips-elf/undefined.s: Source for the new test. * ld-mips-elf/mips-elf.exp: Run the new test.
* * plugin.cc (Plugin::load): Don't cast from void* to a functionIan Lance Taylor2009-12-102-3/+10
| | | | pointer.
* 2009-12-09 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2009-12-102-152/+226
| | | | | | | | * config/tc-i386.c (arch_entry): Add len and skip. (cpu_arch): Use STRING_COMMA_LEN. (MESSAGE_TEMPLATE): New. (show_arch): Likewise. (md_show_usage): Use show_arch.
* * dynobj.cc (Sized_dynobj::do_read_symbols): Clear versionIan Lance Taylor2009-12-102-1/+14
| | | | information fields.
* daily updateAlan Modra2009-12-091-1/+1
|
* bfd/Daniel Jacobowitz2009-12-097-3/+51
| | | | | | | | | | | * elf32-arm.c (elf32_arm_next_input_section): Skip sections without SEC_CODE. ld/testsuite/ * ld-arm/arm-elf.exp (armeabitests): Add farcall-data. * ld-arm/farcall-data.d, ld-arm/farcall-data.s: New. * lib/ld-lib.exp (run_ld_link_tests, run_cc_link_tests): Correct regular expression for archives.
* 2009-12-09 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2009-12-093-2/+8
| | | | | | * testsuite/Makefile.am (two_file_shared_1_pic_2_test_DEPENDENCIES): Replace two_file_shared_1.so with two_file_shared_2.so. * testsuite/Makefile.in: Regenerated.
* 2009-12-09 Tristan Gingold <gingold@adacore.com>Tristan Gingold2009-12-094-3/+38
| | | | | | | | | | | * addr2line.c (translate_addresses): Display addresses if option -a is used. (with_addresses): New variable. (long_options): Add option '-a'. (usage): Add usage for option '-a'. (main): Handle option '-a'. * doc/binutils.texi (addr2line): Document option '-a'. * NEWS: Mention new feature.
* PR 10924Nick Clifton2009-12-092-5/+17
| | | | | * arm-dis.c (print_insn_arm): Mark insns that use the PC in post-indexed addressing as unpredictable.
* 2009-12-08 Doug Kwan <dougkwan@google.com>Doug Kwan2009-12-0910-143/+1149
| | | | | | | | | | | | | | | | | | | * Makefile.am (CCFILES): Add attributes.cc and int_encoding.cc. (HFILES): Add attributes.h and int_encoding.h. * Makefile.in: Regenerate. * dwarf_reader.cc (read_unsigned_LEB_128, read_signed_LEB_128): Move function definitions to int_encoding.cc * dwarf_reader.h (read_unsigned_LEB_128, read_signed_LEB_128): Move prototypes to int_encoding.h * reduced_debug_output.cc (int_encoding.h): New include. (write_unsigned_LEB_128, get_length_as_unsigned_LEB_128): Move function definitions to int_encoding.cc (insert_into_vector, read_from_pointer): Move template definitions to int_encoding.h * attributes.cc: New file. * attributes.h: New file. * int_encoding.cc: New file. * int_encoding.h: New file.
* PR ld/11012Alan Modra2009-12-093-1/+11
| | | | | | * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Move .rela.opd .. (INITIAL_RELOC_SECTIONS): .. to here. New define. * scripttempl/elf.sc: Expand INITIAL_RELOC_SECTIONS.
* daily updateAlan Modra2009-12-081-1/+1
|
* * dwarf.c (dwarf_select_sections_by_names): Handle pubtypes correctly.Cary Coutant2009-12-082-3/+6
| | | | (debug_displays): Remove duplicate entry for debug_pubtypes.
* * pex-unix.c (pex_unix_exec_child): Save/restore environ.Doug Evans2009-12-082-1/+24
|
* * elf.c (write_zeros): New function.Alan Modra2009-12-082-0/+31
| | | | | (assign_file_positions_for_load_sections): Allocate file space for NOBITS sections that are followed by PROGBITS sections in a segment.
* Call symbol_same_p to check to if 2 symbols are the same.H.J. Lu2009-12-087-2/+50
| | | | | | | | | | | | | | | | | | | | | gas/ 2009-12-07 H.J. Lu <hongjiu.lu@intel.com> PR gas/11037 * expr.c (resolve_expression): Call symbol_same_p to check if 2 symbols are the same. * symbols.c (symbol_same_p): New. * symbols.h (symbol_same_p): Likewise. gas/testsuite/ 2009-12-07 H.J. Lu <hongjiu.lu@intel.com> PR gas/11037 * gas/i386/intelpic.s: Add testcases. * gas/i386/intelpic.d: Updated.
* daily updateAlan Modra2009-12-071-1/+1
|
* 2009-12-07 Rafael Avila de Espindola <espindola@google.com>espindola2009-12-072-63/+103
| | | | | | PR gold/11055 * incremental-dump.cc (dump_incremental_inputs): New. (main): Use dump_incremental_inputs.
* Sync with GCC:ghazi2009-12-073-148/+80
| | | | | | | | | | | | PR middle-end/30447 PR middle-end/30789 PR other/40302 * configure.ac: Require MPC. * configure: Regenerate. * configure.ac: Update minimum MPC version to 0.8. * configure: Regenerate.
* 2009-12-07 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2009-12-075-10/+36
| | | | | | | | | | | | | PR gold/10893 * i386.cc (Target_i386::Scan::globa): Use is_func instead of checking elfcpp::STT_FUNC. (Target_i386::Relocate::relocate): Likewise. * x86_64.cc (Target_x86_64::Scan::global): Likewise. * symtab.cc (Symbol_table::sized_write_symbol): Turn IFUNC symbols from shared libraries into normal FUNC symbols. * symtab.h (Symbol): Add is_func and use it.
* daily updateAlan Modra2009-12-061-1/+1
|
* make gold/testsuite/incremental_test.sh executableJim Meyering2009-12-061-0/+0
| | | | | * gold/testsuite/incremental_test.sh: chmod a+x. Manually sync this permission change from the CVS repo.
* 2009-12-05 Doug Kwan <dougkwan@google.com>Doug Kwan2009-12-0611-10/+131
| | | | | | | | | | | | | | | | | | | | | | | | | elfcpp/ChangeLog: * arm.h: Define enums for Tag_CPU_arch EABI attribute. gold/ChangeLog: * arm.cc (Target_arm::arm_info): Initialize new fields attributes_section and attributes_vendor. * i386.cc (Target_i386::i386_info): Same. * object.cc (Sized_relobj::do_layout): Skip attribute section. * gold/powerpc.cc (Target_powerpc::powerpc_info): Initialize new fields attributes_section and attributes_vendor. * sparc.cc (Target_sparc::sparc_info): Same. * target.h (Target::attributes_section, Target::attributes_vendor, Target::is_attributes_section, Target::attribute_arg_type, Target::attributes_order): New method definitions. (Target::Target_info::attributes_section, Target::Target_info::attributes_vendor): New fields. (Target::do_attribute_arg_type, Target::do_attributes_order): New virtual method definitions. * x86_64.cc (Target_x86_64::x86_64_info): Initialize new fields attributes_section and attributes_vendor. * testsuite/testfile.cc (Target_test::test_target_info): Same.
* 2009-12-05 Doug Kwan <dougkwan@google.com>Doug Kwan2009-12-062-45/+61
| | | | | | | | | | | | | | * arm.cc: Update comments about interworking and stub generation. (Target_arm::Relocate::reloc_is_non_pic): Update list of relocations considered as non-PIC. (Arm_relocate_functions::base_abs): Fix formatting. (Arm_relocate_functions::got_prel): Fix comment. Change interface of function to use GOT entry address instead of offset. (Target_arm::Scan::global): Issue an error if a symbol would need a PLT does not get one because it is untyped. Remove code to create dynamic symbols for relative branches. (Target_arm::Relocate::relocate: Use 0 instead of false since function takes unsigned integer instead of boolean.
* 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2009-12-053-154/+73
| | | | | | | | | | | | | | | | * testsuite/Makefile.am (constructor_test_LDADD): New. Empty. (two_file_test_LDADD): Likewise. (common_test_1_LDADD): Likewise. (exception_test_LDADD) Likewise. (weak_test_LDADD): Likewise. (many_sections_test_LDADD): Likewise. (initpri1_LDADD): Likewise. (script_test_1_LDADD): Likewise. (script_test_2_LDADD): Likewise. (justsyms_LDADD): Likewise. (binary_test_LDADD): Likewise. (large_LDADD): Likewise. * testsuite/Makefile.in: Regenerated.
* daily updateAlan Modra2009-12-051-1/+1
|
* 2009-12-04 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2009-12-053-0/+9
| | | | | | * resolve.cc (symbol_to_bits): Treat STB_GNU_UNIQUE as STB_GLOBAL. (Symbol_table::override_with_special): Likewise. (Symbol_table::add_from_object): Likewise.
* daily updateAlan Modra2009-12-041-1/+1
|
* 2009-12-04 Rafael Avila de Espindola <espindola@google.com>espindola2009-12-042-4/+5
| | | | | * incremental.cc (Incremental_inputs::sized_create_inputs_section_data): Don't set the data_offset twice.
* pdaespindola2009-12-042-6/+20
|
* Support fxsave64 and fxrstor64.H.J. Lu2009-12-0410-6/+208
| | | | | | | | | | | | | | | | | | | | | | | | | gas/testsuite/ 2009-12-03 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/i386.exp: Run x86-64-fxsave and x86-64-fxsave-intel. * gas/i386/rex.d: Updated for fxsave64. * gas/i386/x86-64-fxsave-intel.d: New. * gas/i386/x86-64-fxsave.d: Likewise. * gas/i386/x86-64-fxsave.s: Likewise. opcodes/ 2009-12-03 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (FXSAVE_Fixup): New. (FXSAVE): Likewise. (mod_table): Use FXSAVE on fxsave and fxrstor. * i386-opc.tbl: Add fxsave64 and fxrstor64. * i386-tbl.h: Regenerated.
* * ld.texinfo: Make it clear that --nmagic disables linkingJie Zhang2009-12-042-2/+8
| | | | against shared libraries.
* 2009-12-03 Doug Kwan <dougkwan@google.com>Doug Kwan2009-12-038-22/+57
| | | | | | | | | | | | | | | | | * arm.cc: Remove comment about missing .ARM.exidx section symbols. (Target_arm::do_finalize_sections): Add parameter for symbol table pointer. Add __exidx_start and __exidx_end symbols as appropriate. * i386.cc (Target_i386::do_finalize_sections): Add an additional parameter for symbol table pointer. * layout.cc (Layout::finalize): Call Target::finalize_sections with an additional parameter for a pointer to symbol table. * powerpc.cc (Target_powerpc::do_finalize_sections): Add an additional parameter for a symbol table pointer. * sparc.cc (Target_sparc::do_finalize_sections): Ditto. * target.h (Target::finalize_sections, Target::do_finalize_sections): Ditto. * x86_64.cc (Target_x86_64::do_finalize_sections): Add an additional parameter for a symbol table pointer.
* daily updateAlan Modra2009-12-031-1/+1
|
* include/David Daney2009-12-034-0/+12
| | | | | | | | | | | | 2009-12-03 David Daney <ddaney@caviumnetworks.com> Adam Nemet <adambnemet@gmail.com> * elf/mips.h (E_MIPS_MACH_OCTEON2): New machine flag. binutils/ 2009-12-03 David Daney <ddaney@caviumnetworks.com> Adam Nemet <adambnemet@gmail.com> * readelf.c (get_machine_flags): Handle E_MIPS_MACH_OCTEON2 case.
* 2009-12-03 Rafael Avila de Espindola <espindola@google.com>espindola2009-12-033-162/+173
| | | | | | | | | * incremental.cc (Incremental_inputs_header) (Incremental_inputs_header_write, Incremental_inputs_entry) (Incremental_inputs_entry_write): Move ... * incremental.h (Incremental_inputs_header) (Incremental_inputs_header_write, Incremental_inputs_entry) (Incremental_inputs_entry_write): here.
* 2009-12-03 Tristan Gingold <gingold@adacore.com>Tristan Gingold2009-12-032-2/+12
| | | | | * mach-o.c (bfd_mach_o_make_bfd_section): Force debug flags for all sections of the __DWARF segment.
* PR binutils/11045Nick Clifton2009-12-036-15/+41
| | | | | | | | | | | | | | * dwarf.c (do_debug_pubtypes): New variable. (dwarf_select_sections_by_names): Handle .debug_pubtypes. (dwarf_select_sections_by_letters): Add 't' for .debug_pubtype. (dwarf_select_sections_all): Set do_debug_pubtypes. (debug_displays): Add support for .debug_pubtypes. * dwarf.h (do_debug_pubtypes): Export. * objdump.c (usage): Add -wt or --dwarf=pubtypes. * readelf.c (usage): Likewise. (process_section_headers): Enable debug display if do_debug_pubtypes is set. * doc/binutils.texi: Document -wt/--dwarf=pubtypes option.
* PR ld/11047Alan Modra2009-12-033-13/+14
| | | | | | | * elf32-ppc.c (ppc_elf_relocate_section): Delete __tls_get_addr symbol reference from relocs belonging to calls that are optimized away. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* 2009-12-02 Rafael Avila de Espindola <espindola@google.com>espindola2009-12-033-0/+16
| | | | | | * incremental.cc (make_sized_incremental_binary): Set the target. Error if it is incompatible. * output.h (Output_file): Add filename method.
* daily updateAlan Modra2009-12-021-1/+1
|
* PR gas/11013Nick Clifton2009-12-027-16/+55
| | | | | | | | | | | * arm-dis.c (thumb32_opc): Adjust disassembly of QADD, QDADD, QSUB and QDSUB. * gas/arm/arch7em.d: Update expected disassembly. * gas/arm/thumb32.d: Likewise. * config/tc-arm.c (do_t_simd2): New function. (insns): Use do_t_simd2 for QADD, QDADD, QSUB and QDSUB.
* 2009-12-02 Rafael Avila de Espindola <espindola@google.com>espindola2009-12-022-6/+11
| | | | | * incremental.cc (Incremental_inputs_entry): Remove unused argument from the get_* methods.
* 2009-12-02 Rafael Avila de Espindola <espindola@google.com>espindola2009-12-023-0/+28
| | | | | | * incremental-dump.cc (main): Check that the offeset of a script is 0. * incremental.cc (Incremental_inputs::sized_create_inputs_section_data): Write 0 for the data_offset of scripts.
* 2009-12-02 Rafael Avila de Espindola <espindola@google.com>espindola2009-12-025-0/+99
| | | | | | | * testsuite/Makefile.am: Add the incremental_test.sh test. * testsuite/incremental_test.sh: New. * testsuite/incremental_test_1.c: New. * testsuite/incremental_test_2.c: New.
* PR binutils/11017Nick Clifton2009-12-027-26/+56
| | | | | | | | | | | * dlltool.c (PAGE_SIZE): Delete. (PAGE_MASK): Provide default definition based on COFF_PAGE_SIZE. Check for DLLTOOL_DEFAULT_MX86_64 and DLLTOOL_DEFAULT_I386. * coff-i386.h (COFF_PAGE_SIZE): Definition moved to coff/i386.h * i386lh (COFF_PAGE_SIZE): Define. * x86_64.h (COFF_PAGE_SIZE): Define.
* daily updateAlan Modra2009-12-011-1/+1
|
* 2009-12-01 Rafael Avila de Espindola <espindola@google.com>espindola2009-12-012-2/+6
| | | | * incremental-dump.cc (main): Fix typos.