aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-08-042010-08-04 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-2/+58
* vms-alpha.c (alpha_vms_build_fixups): Write the EICP. (alpha_vms_bfd_final_link): Explicitly forbid relocatable links. Clear the SEC_RELOC flag.
2010-08-04Fix tipo in comment.Ian Lance Taylor1-1/+1
2010-08-042010-08-04 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-0/+21
* vms-alpha.c (alpha_vms_create_eisd_for_section): Make writable sections with relocs. (alpha_vms_add_fixup_lp): Set SEC_RELOC flag. (alpha_vms_add_fixup_ca): Ditto. (alpha_vms_add_fixup_qr): Ditto. Add comments.
2010-08-04elfcpp:/Ian Lance Taylor7-19/+42
* i386.h (R_386_IRELATIVE): Define. * powerpc.h (R_POWERPC_IRELATIVE): Define. (R_PPC_RELAX32, R_PPC_RELAX32PC): Don't define. (R_PPC_RELAX32_PLT, R_PPC_RELAX32PC_PLT): Don't define. * sparc.h (R_SPARC_IRELATIVE): Define. * x86_64.h (R_X86_64_IRELATIVE): Define. (R_X86_64_GNU_VTINHERIT): Rename from R_386_GNU_VTINHERIT. (R_X86_64_GNU_VTENTRY): Rename from R_386_GNU_VTENTRY. gold:/ * x86_64.cc (Target_x86_64::Scan::local): Use R_X86_64_GNU_VTINHERIT instead of R_386_GNU_VTINHERIT and R_X86_64_GNU_VTENTRY instead of R_386_GNU_VTENTRY. (Target_x86_64::Scan::global): Likewise. (Target_x86_64::Relocate::relocate): Likewise. (Target_x86_64::Relocatable_size_for_reloc::get_size_for_reloc): Likewise.
2010-08-042010-08-04 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+6
* vms-alpha.c (alpha_vms_create_eisd_for_section): Do not make CODE sections writable.
2010-08-042010-08-04 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-16/+14
* vms-alpha.c (alpha_vms_add_lw_fixup): Renamed to ... (alpha_vms_add_fixup_lr): ... this for consistency. (alpha_vms_add_qw_fixup): Removed. Fix some comments. (vms_get_symbol_info): Adjust type for unknown sections.
2010-08-042010-08-04 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-34/+42
* vms-alpha.c (_bfd_vms_slurp_egsd): Use the canonical absolute section for any absolute section. Remove some debugging code.
2010-08-04 * configure.tgt (m32c): Set endian=little.Alan Modra4-3/+9
* config/tc-m32c.h (TARGET_BYTES_BIG_ENDIAN): Define as 0. * config/tc-m32c.c (md_number_to_chars): Revert last change.
2010-08-04* elf32-m32c.c (ELF_MAXPAGESIZE): Change page size to 256 bytes.DJ Delorie2-1/+5
2010-08-04*** empty log message ***gdbadmin1-1/+1
2010-08-04daily updateAlan Modra1-1/+1
2010-08-03Add missing entry to previous checkin.Doug Evans1-1/+2
(bfd_lookup_symbol): Remove unnecessary forward decl.
2010-08-03 * breakpoint.c (bpdisp_text): Constify bpdisps.Doug Evans4-16/+26
* solib-svr4.c (solib_break_names): Constify. (bkpt_names, main_name_list): Constify. (match_main): Constify soname arg. (bfd_lookup_symbol): Constify symname arg. (enable_break): Constify bkpt_namep. * symtab.c (search_symbols): Constify types, types2, types3, types4. (symtab_symbol_info): Constify classnames.
2010-08-03 * merge.cc (Output_merge_string::do_add_input_section): Count stringsCary Coutant5-47/+76
to reserve space in merged_strings vector. Keep total input size for stats. (Output_merge_string::do_print_merge_stats): Print total input size. * merge.h (Output_merge_string): Add input_size_ field. * stringpool.cc (Stringpool_template::string_length): Move implementations out of Stringpool_template class and place in stringpool.h. * stringpool.h (string_length): Move out of Stringpool_template.
2010-08-032010-08-03 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-4/+9
* vms-misc.c (vms_convert_to_var): Make it static. (_bfd_vms_convert_to_var_unix_filename): Make it public.
2010-08-03 PR 11712Ian Lance Taylor2-4/+34
* layout.cc (relaxation_loop_body): If address of load segment is set, adjust address to include headers if possible.
2010-08-03 * version.cc (version_string): Bump to 1.10.Ian Lance Taylor2-1/+5
2010-08-03bfd/Tristan Gingold4-8/+14
2010-08-03 Tristan Gingold <gingold@adacore.com> * makefile.vms (OBJS): Update list. gas/ Index: gas/ChangeLog 2010-08-03 Tristan Gingold <gingold@adacore.com> * makefile.vms (OBJS): Add Add compress-debug.c.
2010-08-032010-08-03 Ian Lance Taylor <iant@google.com>Ian Lance Taylor13-717/+654
PR 11805 * layout.h (enum Output_section_order): Define. (class Layout): Update declarations. * layout.cc (Layout::get_output_section): Add order parameter. Remove is_interp, is_dynamic_linker_section, is_last_relro, and is_first_non_relro parameters. Change all callers. (Layout::choose_output_section): Likewise. (Layout::add_output_section_data): Likewise. (Layout::make_output_section): Likewise. Set order. (Layout::default_section_order): New function. (Layout::layout_eh_frame): Call add_output_section_to_nonload. * output.cc (Output_section::Output_section): Initialize order_. Don't initialize deleted fields. (Output_segment::Output_segment): Don't initialize deleted fields. (Output_segment::add_output_section_to_load): New function replacing add_output_section. Change all callers to call this or add_output_section_to_nonload. (Output_segment::add_output_section_to_nonload): New function. (Output_segment::remove_output_section): Rewrite. (Output_segment::add_initial_output_data): Likewise. (Output_segment::has_any_data_sections): Likewise. (Output_segment::is_first_section_relro): Likewise. (Output_segment::maximum_alignment): Likewise. (Output_segment::has_dynamic_reloc): New function replacing dynamic_reloc_count. Change all callers. (Output_segment::has_dynamic_reloc_list): New function replacing dynamic_reloc_count_list. Change all callers. (Output_segment::set_section_addresses): Rewrite. (Output_segment::set_offset): Rewrite. (Output_segment::find_first_and_last_list): Remove. (Output_segment::set_tls_offsets): Rewrite. (Output_segment::first_section_load_address): Likewise. (Output_segment::output_section_count): Likewise. (Output_segment::section_with_lowest_load_address): Likewise. (Output_segment::write_section_headers): Likewise. (Output_segment::print_sections_to_map): Likewise. * output.h (class Output_data): Remove dynamic_reloc_count_ field. Add has_dynamic_reloc_ field. Make bools into bitfields. (Output_data::add_dynamic_reloc): Rewrite. (Output_data::has_dynamic_reloc): New function. (Output_data::dynamic_reloc_count): Remove. (class Output_section): Add order_ field. Remvoe is_relro_local_, is_last_relro_, is_first_non_relro_, is_interp_, is_dynamic_linker_section_ fields. Add order and set_order functions. Remove is_relro_local, set_is_relro_local, is_last_relro, set_is_last_relro, is_first_non_relro, set_is_first_non_relro functions, is_interp, set_is_interp, is_dynamic_linker_section, and set_is_dynamic_linker_section functions. (class Output_segment): Change Output_data_list from std::list to std:;vector. Add output_lists_ field. Remove output_data_ and output_bss_ fields. Update declarations.
2010-08-03 * config/tc-d10v.h (TARGET_BYTES_BIG_ENDIAN): Define as 1.Alan Modra3-4/+10
* config/tc-m32c.c (md_number_to_chars): Call bigendian form of number_to_chars, not littleendian.
2010-08-03 * gas/all/octa.s, * gas/all/octa.d: New test.Alan Modra7-16/+19
* gas/all/gas.exp: Run octa. * gas/elf/data-1.s, * gas/elf/data-1.d: Delete. * gas/elf/elf.exp: Don't run data-1.
2010-08-032010-08-03 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-8/+6
* dwarf.c (display_debug_lines): Mark file argument unused. Do not try to load .debug_info section.
2010-08-032010-08-03 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-0/+13
* NEWS: Document Python value inferior function calls.
2010-08-032010-08-03 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+6
* vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS nor SEC_RELOC for empty sections.
2010-08-032010-08-03 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-44/+49
* vms-alpha.c (evax_section_flags): Fix flags for absolute section. Remove useless parenthesis.
2010-08-032010-08-03 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-3/+8
* vms-lib.c (vms_lib_bread_raw): Change type of BUF argument. (vms_lib_bread, vms_lib_bopen): Adjust.
2010-08-03 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.Doug Evans2-0/+6
2010-08-03*** empty log message ***gdbadmin1-1/+1
2010-08-03daily updateAlan Modra1-1/+1
2010-08-02 * gdb.cp/namespace.exp: When "print ::cOtherFileClassVar" failsDoug Evans2-4/+17
because of an older gcc, change test2 "print ::C::OtherFileClass::cOtherFileClassVar" from unresolved to unsupported.
2010-08-02Run data-1 only for i*86, x86_64 and ia64.H.J. Lu2-1/+10
2010-08-02 H.J. Lu <hongjiu.lu@intel.com> * elf/elf.exp: Run data-1 only for i*86, x86_64 and ia64.
2010-08-02 * arm.cc (Target_arm::gc_process_relocs): Use typename.Ian Lance Taylor4-3/+9
* powerpc.cc (Target_powerpc::gc_process_relocs): Likewise. * sparc.cc (Target_sparc::gc_process_relocs): Likewise.
2010-08-02Add a testcase for PR gas/11867.H.J. Lu4-0/+19
2010-08-02 H.J. Lu <hongjiu.lu@intel.com> PR gas/11867 * gas/elf/data-1.d: New. * gas/elf/data-1.s: Likewise. * elf/elf.exp: Run data-1.
2010-08-02 * gdb.base/break-always.exp: Do not expect full paths to fileKazu Hirata3-5/+11
names. * gdb.base/commands.exp: Likewise.
2010-08-02 * config/tc-d30v.c (d30v_cons_align): Don't align constantsAlan Modra2-0/+9
in debug sections.
2010-08-02 * readelf.c (apply_relocations): D30V is really REL.Alan Modra2-2/+10
2010-08-02 PR 11855Ian Lance Taylor16-70/+249
* script.cc (Script_options::Script_options): Initialize symbol_definitions_ and symbol_references_. (Script_options::add_symbol_assignment): Update symbol_definitions_ and symbol_references_. (Script_options::add_symbol_reference): New function. (script_symbol): New function. * script.h (class Script_options): Add symbol_definitions_ and symbol_references_ fields. (Script_options::referenced_const_iterator): New type. (Script_options::referenced_begin): New function. (Script_options::referenced_end): New function. (Script_options::is_referenced): New function. (Script_options::any_unreferenced): New function. * script-c.h (script_symbol): Declare. * yyscript.y (exp): Call script_symbol. * symtab.cc: Include "script.h". (Symbol_table::gc_mark_undef_symbols): Add layout parameter. Change all callers. Check symbols referenced by scripts. (Symbol_table::add_undefined_symbols_from_command_line): Add layout parameter. Change all callers. (Symbol_table::do_add_undefined_symbols_from_command_line): Likewise. Break out loop body. Check symbols referenced by scripts. (Symbol_table::add_undefined_symbol_from_command_line): New function broken out of do_add_undefined_symbols_from_command_line. * symtab.h (class Symbol_table): Update declarations. * archive.cc: Include "layout.h". (Archive::should_include_member): Add layout parameter. Change all callers. Check for symbol mentioned in expression. * archive.h (class Archive): Update declaration. * object.cc (Sized_relobj::do_should_include_member): Add layout parameter. * object.h (Object::should_include_member): Add layout parameter. Change all callers. (Object::do_should_include_member): Add layout parameter. (class Sized_relobj): Update declaration. * dynobj.cc (Sized_dynobj::do_should_include_member): Add layout parameter. * dynobj.h (class Sized_dynobj): Update declaration. * plugin.cc (Sized_pluginobj::do_should_include_member): Add layout parameter. * plugin.h (class Sized_pluginobj): Update declaration.
2010-08-02 PR gas/11867Alan Modra3-10/+42
* expr.c (operand <'-' and '~'>): Widen bignums. (operand <'!'>): Correct bignum result and convert to O_constant. * read.c (emit_expr): Don't assert on .byte bignum. Don't display bignum truncated warning for sign extended bignums.
2010-08-02 PR 11866Ian Lance Taylor5-20/+94
* output.cc (Output_segment::set_offset): Search for the first and last sections rather than assuming that the list is in order. (Output_segment::find_first_and_last_list): New function. * output.h (class Output_segment): Update declarations. * testsuite/Makefile.am (check_PROGRAMS): Add relro_strip_test. (relro_strip_test_SOURCES): New variable. (relro_strip_test_DEPENDENCIES): New variable. (relro_strip_test_LDFLAGS): New variable. (relro_strip_test_LDADD): New variable. (relro_strip_test.so): New target.
2010-08-02 PR 11866Alan Modra2-1/+7
* elf.c (assign_file_positions_for_load_sections): Use p_vaddr to calculate off_adjust rather than first section vma.
2010-08-02 * i386.cc (class Target_i386): Add got_tlsdesc_ field.Ian Lance Taylor3-26/+123
(Target_i386::Target_i386):: Initialize got_tlsdesc_. (Target_i386::got_tlsdesc_section): New function. (Target_i386::got_section): Create space for GOT entries for TLSDESC relocations. (Target_i386::Scan::local): Use TLSDESC GOT for unoptimized R_386_TLS_GOTDESC. (Target_i386::Scan::global): Likewise. (Target_i386::Relocate::relocate_tls): Adjust GOT offset when using TLSDESC GOT. * x86_64.cc (class Target_x86_64): Add got_tlsdesc_ field. (Target_x86_64::Target_x86_64):: Initialize got_tlsdesc_. (Target_x86_64::got_tlsdesc_section): New function. (Target_x86_64::got_section): Create space for GOT entries for TLSDESC relocations. (Target_x86_64::Scan::local): Use TLSDESC GOT for unoptimized R_386_TLS_GOTDESC. (Target_x86_64::Scan::global): Likewise. (Target_x86_64::Relocate::relocate_tls): Adjust GOT offset when using TLSDESC GOT.
2010-08-022010-08-02 Tristan Gingold <gingold@adacore.com>Tristan Gingold9-17/+82
* lib/gas-defs.exp (get_standard_section_names): New function. (run_dump_tests): Document the new behavior for objdump, document to new section-subst option. Automatically perform substitutions for objdump. (objdump_finish): Add REF_SUBST argument. (run_list_test): Adjust call of regexp_diff. (run_list_test_stdin): Ditto. * gas/all/gas.exp (test_cond): Adjust call of regexp_diff. * gas/symver/symver.exp (run_error_test): Ditto. * gas/mt/relocs.exp (regexp_test): Ditto. * gas/mep/complex-relocs.exp (regexp_test): Ditto. * gas/m68k/all.exp: Ditto. * gas/elf/elf.exp (run_elf_list_test): Ditto. * gas/rx/rx-asm-good.d: Set section-subst to no.
2010-08-02 * config/tc-v850.c (md_assemble): Always pass format string toAlan Modra2-2/+8
as_warn. (md_apply_fix): Similarly for as_warn_where.
2010-08-02 * gas/i386/i386.exp (dw2-compress-1): Only run on ELF targets.Alan Modra2-10/+10
(dw2-compress-2, x86-64-dw2-compress-2): Remove unnecessary linux target test.
2010-08-02Update for ppc_fix_adjustable change.Alan Modra2-2/+6
2010-08-02 * testsuite/final_layout.sh: Use dc to convert from hex toIan Lance Taylor2-2/+9
decimal.
2010-08-02*** empty log message ***gdbadmin1-1/+1
2010-08-02daily updateAlan Modra1-1/+1
2010-08-01*** empty log message ***gdbadmin1-1/+1
2010-08-01daily updateAlan Modra1-1/+1