1. 17 May, 2016 3 commits
    • Maciej W. Rozycki's avatar
      LD/ELF: Unify STB_GNU_UNIQUE handling · a43942db
      Maciej W. Rozycki authored
      Take STB_GNU_UNIQUE handling scattered across targets and gather it in
      the generic ELF linker.  Update test suite infrastructure accordingly.
      
      	bfd/
      	* elf-s390-common.c (elf_s390_add_symbol_hook): Remove
      	STB_GNU_UNIQUE handling.
      	* elf32-arc.c (elf_arc_add_symbol_hook): Likewise.
      	* elf32-arm.c (elf32_arm_add_symbol_hook): Likewise.
      	* elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
      	* elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
      	* elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
      	* elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
      	* elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
      	* elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise.
      	* elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
      	* elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Likewise.
      	* elf32-i386.c (elf_i386_add_symbol_hook): Remove function.
      	(elf_backend_add_symbol_hook): Remove macro.
      	* elflink.c (elf_link_add_object_symbols): Set `has_gnu_symbols'
      	for STB_GNU_UNIQUE symbols.
      
      	binutils/
      	* testsuite/lib/binutils-common.exp (supports_gnu_unique): New
      	procedure.
      	* testsuite/binutils-all/objcopy.exp: Use `supports_gnu_unique'
      	with the `strip-10' test.
      
      	ld/
      	* testsuite/ld-unique/unique.exp: Use `is_elf_format' and
      	`supports_gnu_unique' to qualify testing.
      a43942db
    • Yao Qi's avatar
      Use unsuspend_all_lwps · fcdad592
      Yao Qi authored
      This patch is to replace find_inferior (&all_threads, unsuspend_one_lwp, NULL)
      with unsuspend_all_lwps (NULL), which is shorter.  They are equivalent
      to each other.
      
      gdb/gdbserver:
      
      2016-05-17  Yao Qi  <yao.qi@linaro.org>
      
      	* linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
      	instead of find_inferior.
      fcdad592
    • GDB Administrator's avatar
      Automatic date update in version.in · acac2e45
      GDB Administrator authored
      acac2e45
  2. 16 May, 2016 8 commits
    • Yao Qi's avatar
      Match shell_prompt # in batch-preserve-term-settings.exp · 155b7f57
      Yao Qi authored
      batch-preserve-term-settings.exp fails if the shell prompt isn't $.  It
      is # in our testing env.  In fact, the shell prompt can be anything.
      
      The perfect solution would be "set_board_info shell_prompt" in the
      host board file, and use board_info shell_prompt in
      batch-preserve-term-settings.exp.  This is a little bit overkill to
      me, and we still need to figure out the different prompts on different
      shells.  I also tried to start shell with the prompt preset, but there is
      not unique way to set shell prompt in different shells, so I give up.
      
      It is reasonably simple to match either $ or # for the shell prompt, and
      we can easily extend it to match other char, like >.
      
      gdb/testsuite:
      
      2016-05-16  Yao Qi  <yao.qi@linaro.org>
      
      	* gdb.base/batch-preserve-term-settings.exp: Remove variable
      	shell_prompt.  Update shell_prompt_re.
      155b7f57
    • Maciej W. Rozycki's avatar
      V850/BFD: Call `_bfd_elf_copy_private_bfd_data' again · 71de3413
      Maciej W. Rozycki authored
      Correct a regression introduced with commit 685080f2 ("Adds support
      for generating notes in V850 binaries.") which replaced rather than
      extending the call to `_bfd_elf_copy_private_bfd_data' with
      `v850_elf_copy_private_bfd_data'.  Consequently ELFOSABI_GNU marking is
      not propagated to output by `objcopy' from objects containing
      STB_GNU_UNIQUE symbols.
      
      	bfd/
      	* elf32-v850.c (v850_elf_copy_notes): New function, factored out
      	from...
      	(v850_elf_copy_private_bfd_data): ... here.  Call the new
      	function and `_bfd_elf_copy_private_bfd_data'.
      
      	binutils/
      	* testsuite/binutils-all/objcopy.exp: Don't skip the `strip-10'
      	test for the V850.
      71de3413
    • Trevor Saunders's avatar
      m32r: make mach_table static and const · 7b14583e
      Trevor Saunders authored
      It is only read in tc-m32r.c, so it might as well be static and const, and
      that should help the compiler slightly.
      
      gas/ChangeLog:
      
      2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
      
      	* config/tc-m32r.c (mach_table): Make static and const.
      7b14583e
    • Trevor Saunders's avatar
      tc-vax.c: make prototype of flonum_gen2vax match its definition · 0591130a
      Trevor Saunders authored
      gas/ChangeLog:
      
      2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
      
      	* config/tc-vax.c (flonum_gen2vax): Adjust prototype to match
      	definition.
      0591130a
    • Trevor Saunders's avatar
      stop defining linkrelax in multiple places · 9117cd3e
      Trevor Saunders authored
      Defining linkrelax to have different values in as.c and tc-msp430.c /
      tc-mn10300.c is at least rather tricky, and seems fragile, when we can just set
      it in md_begin instead.
      
      gas/ChangeLog:
      
      2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
      
      	* config/tc-mn10300.c (md_begin): set linkrelax here instead of
      	defining it.
      	* config/tc-msp430.c (md_begin): Likewise.
      9117cd3e
    • Trevor Saunders's avatar
      m68hc11: make some vars type bfd_reloc_code_real_type · e1838240
      Trevor Saunders authored
      These variables only hold values from the bfd_reloc_code_real_type enum, and
      are passed to functions that expect the argument to be of type
      bfd_reloc_code_real_type, so it seems to make sense that there type is
      bfd_reloc_code_real_type rather than int.
      
      gas/ChangeLog:
      
      2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
      
      	* config/tc-m68hc11.c (fixup8): Change variables type from int to
      	bfd_reloc_code_real_type where appropriate.
      	(fixup16): Likewise.
      	(fixup8_xg): Likewise.
      e1838240
    • Maciej W. Rozycki's avatar
      ld/testsuite/ld-elf/flags1.d: Update the xfail list · 69a1c856
      Maciej W. Rozycki authored
      Update to match commit 924bc11b ("Update section merge test.").
      
      	ld/
      	* testsuite/ld-elf/flags1.d: Update the xfail list.
      69a1c856
    • GDB Administrator's avatar
      Automatic date update in version.in · 558e50ba
      GDB Administrator authored
      558e50ba
  3. 15 May, 2016 3 commits
  4. 14 May, 2016 2 commits
  5. 13 May, 2016 8 commits
    • Peter Bergner's avatar
      Accept valid one byte signed and unsigned values for the IMM8 operand. · 1178da44
      Peter Bergner authored
      opcodes/
      	* ppc-opc.c (IMM8): Use PPC_OPERAND_SIGNOPT.
      
      gas/
      	* testsuite/gas/ppc/power9.d <xxspltib>: Add additional operand tests.
      	* testsuite/gas/ppc/power9.s: Likewise.
      1178da44
    • H.J. Lu's avatar
      Don't convert GOTPCREL relocation against large section · 2168b268
      H.J. Lu authored
      bfd/
      
      	PR ld/20093
      	* elf64-x86-64.c (elf_x86_64_convert_load_reloc): Don't convert
      	GOTPCREL relocation against large section.
      
      ld/
      
      	PR ld/20093
      	* testsuite/ld-x86-64/pr20093-1.d: New file.
      	* testsuite/ld-x86-64/pr20093-1.s: Likewise.
      	* testsuite/ld-x86-64/pr20093-2.d: Likewise.
      	* testsuite/ld-x86-64/pr20093-2.s: Likewise.
      	* testsuite/ld-x86-64/x86-64.exp: Run pr20093-1 and pr20093-2.
      2168b268
    • Alan Modra's avatar
      Fix build breakage · d2edc834
      Alan Modra authored
      	* config/obj-coff.c (weak_uniquify): Delete unused var.
      d2edc834
    • Alan Modra's avatar
      Set dynamic tag VMA and size from dynamic section when possible · 4ade44b7
      Alan Modra authored
      Rather than searching the output for a specific named section, it's
      better, where possible, to use a linker created dynamic section to set
      a dynamic tag's value.  That way ld doesn't depend on the output
      section name, making it possibile to map dynamic sections differently.
      
      bfd/
      	* elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_sections): Use
      	linker dynamic sections in calculating size and address of
      	* dynamic tags rather than using output sections.  Remove asserts.
      	* elf32-arm.c (elf32_arm_finish_dynamic_sections): Likewise.
      	* elf32-cr16.c (_bfd_cr16_elf_finish_dynamic_sections): Likewise.
      	* elf32-cris.c (elf_cris_finish_dynamic_sections): Likewise.
      	* elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
      	* elf32-lm32.c (lm32_elf_finish_dynamic_sections): Likewise.
      	* elf32-m32r.c (m32r_elf_finish_dynamic_sections): Likewise.
      	* elf32-m68k.c (elf_m68k_finish_dynamic_sections): Likewise.
      	* elf32-metag.c (elf_metag_finish_dynamic_sections): Likewise.
      	* elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Likewise.
      	* elf32-nds32.c (nds32_elf_finish_dynamic_sections): Likewise.
      	* elf32-nios2.c (nios2_elf32_finish_dynamic_sections): Likewise.
      	* elf32-or1k.c (or1k_elf_finish_dynamic_sections): Likewise.
      	* elf32-s390.c (elf_s390_finish_dynamic_sections): Likewise.
      	* elf32-score.c (s3_bfd_score_elf_finish_dynamic_sections): Likewise.
      	* elf32-score7.c (s7_bfd_score_elf_finish_dynamic_sections): Likewise.
      	* elf32-vax.c (elf_vax_finish_dynamic_sections): Likewise.
      	* elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Likewise.
      	* elf64-alpha.c (elf64_alpha_finish_dynamic_sections): Likewise.
      	* elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise.
      	* elf64-sh64.c (sh64_elf64_finish_dynamic_sections): Likewise.
      	* elflink.c (bfd_elf_final_link): Likewise.
      	* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Likewise.
      	* elfxx-sparc.c (sparc_finish_dyn): Likewise.  Adjust error message.
      	* elf32-arc.c (GET_SYMBOL_OR_SECTION): Remove ASSERT arg and
      	don't set doit.  Look up dynobj section.
      	(elf_arc_finish_dynamic_sections): Adjust GET_SYMBOL_OR_SECTION
      	invocation and dynamic tag vma calculation.  Don't test
      	boolean var == TRUE.
      	* elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_sections): Fix
      	DT_JMPREL calc.
      ld/
      	* testsuite/ld-arm/arm-elf.exp: Adjust for arm-no-rel-plt now passing.
      	Use different output file name for static app without .rel.plt.
      	* testsuite/ld-arm/arm-no-rel-plt.ld: Align .rel.dyn and .rela.dyn.
      	* testsuite/ld-arm/arm-no-rel-plt.out: Delete.
      	* testsuite/ld-arm/arm-no-rel-plt.r: New.
      	* testsuite/ld-arm/arm-static-app.d: Don't check file name.
      	* testsuite/ld-arm/arm-static-app.r: Likewise.
      4ade44b7
    • Alan Modra's avatar
      ld -z combreloc elf_link_sort_relocs · c8e44c6d
      Alan Modra authored
      A linker script may put .rela.plt in with other .rela.dyn relocs.
      The change to elf_reloc_type_class puts any PLT relocs last.  This
      patch makes the input section layout better match the sorted relocs.
      
      	* elflink.c (elf_link_sort_relocs): Wrap overlong lines.  Fix
      	octets_per_byte.  Put dynamic .rela.plt last in link orders.
      	Assign output_offset for reloc sections rather than writing
      	sorted relocs from block corresponding to output_offset.
      c8e44c6d
    • Trevor Saunders's avatar
      use XNEW and related macros more · add39d23
      Trevor Saunders authored
      Its a bit shorter and simpler than raw xmalloc.
      
      gas/ChangeLog:
      
      2016-05-13  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
      
      	* app.c (app_push): Use XNEW and related macros.
      	* as.c (parse_args): Likewise.
      	* cgen.c (make_right_shifted_expr): Likewise.
      	(gas_cgen_tc_gen_reloc): Likewise.
      	* config/bfin-defs.h: Likewise.
      	* config/bfin-parse.y: Likewise.
      	* config/obj-coff.c (stack_init): Likewise.
      	(stack_push): Likewise.
      	(coff_obj_symbol_new_hook): Likewise.
      	(coff_obj_symbol_clone_hook): Likewise.
      	(add_lineno): Likewise.
      	(coff_frob_symbol): Likewise.
      	* config/obj-elf.c (obj_elf_section_name): Likewise.
      	(build_group_lists): Likewise.
      	* config/obj-evax.c (evax_symbol_new_hook): Likewise.
      	* config/obj-macho.c (obj_mach_o_indirect_symbol): Likewise.
      	* config/tc-aarch64.c (insert_reg_alias): Likewise.
      	(find_or_make_literal_pool): Likewise.
      	(add_to_lit_pool): Likewise.
      	(fill_instruction_hash_table): Likewise.
      	* config/tc-alpha.c (load_expression): Likewise.
      	(emit_jsrjmp): Likewise.
      	(s_alpha_ent): Likewise.
      	(s_alpha_end): Likewise.
      	(s_alpha_linkage): Likewise.
      	(md_begin): Likewise.
      	(tc_gen_reloc): Likewise.
      	* config/tc-arc.c (arc_insert_opcode): Likewise.
      	(arc_extcorereg): Likewise.
      	* config/tc-bfin.c: Likewise.
      	* config/tc-cr16.c: Likewise.
      	* config/tc-cris.c: Likewise.
      	* config/tc-crx.c (preprocess_reglist): Likewise.
      	* config/tc-d10v.c: Likewise.
      	* config/tc-frv.c (frv_insert_vliw_insn): Likewise.
      	(frv_tomcat_shuffle): Likewise.
      	* config/tc-h8300.c: Likewise.
      	* config/tc-i370.c (i370_macro): Likewise.
      	* config/tc-i386.c (lex_got): Likewise.
      	(md_parse_option): Likewise.
      	* config/tc-ia64.c (alloc_record): Likewise.
      	(set_imask): Likewise.
      	(save_prologue_count): Likewise.
      	(dot_proc): Likewise.
      	(dot_endp): Likewise.
      	(ia64_frob_label): Likewise.
      	(add_qp_imply): Likewise.
      	(add_qp_mutex): Likewise.
      	(mark_resource): Likewise.
      	(dot_alias): Likewise.
      	* config/tc-m68hc11.c: Likewise.
      	* config/tc-m68k.c (m68k_frob_label): Likewise.
      	(s_save): Likewise.
      	(mri_control_label): Likewise.
      	(push_mri_control): Likewise.
      	(build_mri_control_operand): Likewise.
      	(s_mri_else): Likewise.
      	(s_mri_break): Likewise.
      	(s_mri_next): Likewise.
      	(s_mri_for): Likewise.
      	(s_mri_endw): Likewise.
      	* config/tc-metag.c (create_mnemonic_htab): Likewise.
      	* config/tc-microblaze.c: Likewise.
      	* config/tc-mmix.c (s_loc): Likewise.
      	* config/tc-nds32.c (nds32_relax_hint): Likewise.
      	* config/tc-nios2.c (nios2_insn_reloc_new): Likewise.
      	* config/tc-rl78.c: Likewise.
      	* config/tc-rx.c (rx_include): Likewise.
      	* config/tc-sh.c: Likewise.
      	* config/tc-sh64.c (shmedia_frob_section_type): Likewise.
      	* config/tc-sparc.c: Likewise.
      	* config/tc-spu.c: Likewise.
      	* config/tc-tic6x.c (static tic6x_unwind_info *tic6x_get_unwind): Likewise.
      	(tic6x_start_unwind_section): Likewise.
      	* config/tc-tilegx.c: Likewise.
      	* config/tc-tilepro.c: Likewise.
      	* config/tc-v850.c: Likewise.
      	* config/tc-visium.c: Likewise.
      	* config/tc-xgate.c: Likewise.
      	* config/tc-xtensa.c (xtensa_translate_old_userreg_ops): Likewise.
      	(new_resource_table): Likewise.
      	(resize_resource_table): Likewise.
      	(xtensa_create_trampoline_frag): Likewise.
      	(xtensa_maybe_create_literal_pool_frag): Likewise.
      	(cache_literal_section): Likewise.
      	* config/xtensa-relax.c (append_transition): Likewise.
      	(append_condition): Likewise.
      	(append_value_condition): Likewise.
      	(append_constant_value_condition): Likewise.
      	(append_literal_op): Likewise.
      	(append_label_op): Likewise.
      	(append_constant_op): Likewise.
      	(append_field_op): Likewise.
      	(append_user_fn_field_op): Likewise.
      	(enter_opname_n): Likewise.
      	(enter_opname): Likewise.
      	(split_string): Likewise.
      	(parse_insn_templ): Likewise.
      	(clone_req_or_option_list): Likewise.
      	(clone_req_option_list): Likewise.
      	(parse_option_cond): Likewise.
      	(parse_insn_pattern): Likewise.
      	(parse_insn_repl): Likewise.
      	(build_transition): Likewise.
      	(build_transition_table): Likewise.
      	* dw2gencfi.c (alloc_fde_entry): Likewise.
      	(alloc_cfi_insn_data): Likewise.
      	(cfi_add_CFA_remember_state): Likewise.
      	(dot_cfi_escape): Likewise.
      	(dot_cfi_fde_data): Likewise.
      	(select_cie_for_fde): Likewise.
      	* dwarf2dbg.c (dwarf2_directive_loc): Likewise.
      	* ecoff.c (ecoff_add_bytes): Likewise.
      	(ecoff_build_debug): Likewise.
      	* input-scrub.c (input_scrub_push): Likewise.
      	(input_scrub_begin): Likewise.
      	(input_scrub_next_buffer): Likewise.
      	* itbl-ops.c (append_insns_as_macros): Likewise.
      	(alloc_entry): Likewise.
      	(alloc_field): Likewise.
      	* listing.c (listing_newline): Likewise.
      	(listing_listing): Likewise.
      	* macro.c (get_any_string): Likewise.
      	(delete_macro): Likewise.
      	* stabs.c (generate_asm_file): Likewise.
      	(stabs_generate_asm_lineno): Likewise.
      	* subsegs.c (subseg_change): Likewise.
      	(subseg_get): Likewise.
      	* symbols.c (define_dollar_label): Likewise.
      	(symbol_relc_make_sym): Likewise.
      	* write.c (write_relocs): Likewise.
      add39d23
    • Trevor Saunders's avatar
      use xstrdup, xmemdup0 and concat more · 29a2809e
      Trevor Saunders authored
      gas/ChangeLog:
      
      2016-05-13  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
      
      	* config/obj-coff.c (obj_coff_def): Simplify string copying.
      	(weak_name2altname): Likewise.
      	(weak_uniquify): Likewise.
      	(obj_coff_section): Likewise.
      	(obj_coff_init_stab_section): Likewise.
      	* config/obj-elf.c (obj_elf_section_name): Likewise.
      	(obj_elf_init_stab_section): Likewise.
      	* config/obj-evax.c (evax_shorten_name): Likewise.
      	* config/obj-macho.c (obj_mach_o_make_or_get_sect): Likewise.
      	* config/tc-aarch64.c (create_register_alias): Likewise.
      	* config/tc-alpha.c (load_expression): Likewise.
      	(s_alpha_file): Likewise.
      	(s_alpha_section_name): Likewise.
      	(tc_gen_reloc): Likewise.
      	* config/tc-arc.c (md_assemble): Likewise.
      	* config/tc-arm.c (create_neon_reg_alias): Likewise.
      	(start_unwind_section): Likewise.
      	* config/tc-hppa.c (pa_build_unwind_subspace): Likewise.
      	(hppa_elf_mark_end_of_function): Likewise.
      	* config/tc-nios2.c (nios2_modify_arg): Likewise.
      	(nios2_negate_arg): Likewise.
      	* config/tc-rx.c (rx_section): Likewise.
      	* config/tc-sh64.c (sh64_consume_datalabel): Likewise.
      	* config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
      	* config/tc-tic54x.c (tic54x_include): Likewise.
      	(tic54x_macro_info): Likewise.
      	(subsym_get_arg): Likewise.
      	(subsym_substitute): Likewise.
      	(tic54x_start_line_hook): Likewise.
      	* config/tc-xtensa.c (xtensa_literal_prefix): Likewise.
      	(xg_reverse_shift_count): Likewise.
      	* config/xtensa-relax.c (enter_opname_n): Likewise.
      	(split_string): Likewise.
      	* dwarf2dbg.c (get_filenum): Likewise.
      	(process_entries): Likewise.
      	* expr.c (operand): Likewise.
      	* itbl-ops.c (alloc_entry): Likewise.
      	* listing.c (listing_message): Likewise.
      	(listing_title): Likewise.
      	* macro.c (check_macro): Likewise.
      	* stabs.c (s_xstab): Likewise.
      	* symbols.c (symbol_relc_make_expr): Likewise.
      	* write.c (compress_debug): Likewise.
      29a2809e
    • GDB Administrator's avatar
      Automatic date update in version.in · 59441ccd
      GDB Administrator authored
      59441ccd
  6. 12 May, 2016 5 commits
    • H.J. Lu's avatar
      Handle symbols defined/referenced only within IR · 3355cb3b
      H.J. Lu authored
      The plugin is called to claim symbols in an archive element from
      plugin_object_p.  But those symbols aren't needed to create output.
      They are defined and referenced only within IR.  get_symbols should
      return resolution based on IR symbol kinds.
      
      	PR ld/20070
      	* Makefile.am (noinst_LTLIBRARIES): Add libldtestplug4.la.
      	(libldtestplug4_la_SOURCES): New.
      	(libldtestplug4_la_CFLAGS): Likewise.
      	(libldtestplug4_la_LDFLAGS): Likewise.
      	* Makefile.in: Regenerated.
      	* plugin.c (get_symbols): Return resolution based on IR symbol
      	kinds for symbols defined/referenced only within IR.
      	* testplug4.c: New file.
      	* ld/testsuite/ld-plugin/pr20070.d: Likewise.
      	* ld/testsuite/ld-plugin/pr20070a.c: Likewise.
      	* ld/testsuite/ld-plugin/pr20070b.c: Likewise.
      	* testsuite/ld-plugin/plugin.exp (plugin4_name): New.
      	(plugin4_path): Likewise.
      	Add a test for ld/20070.
      3355cb3b
    • Doug Evans's avatar
      PR symtab/19999 gdb unable to resolve vars with fission+PIE · 8ddd5a6c
      Doug Evans authored
      gdb/ChangeLog:
      
      	* dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
      	add base_offset.
      
      gdb/testsuite/ChangeLog:
      
      	* lib/dwarf.exp (build_executable_from_fission_assembler): Pass
      	$options when building executable.
      	* gdb.dwarf2/fission-loclists-pie.c: New file.
      	* gdb.dwarf2/fission-loclists-pie.exp: New file.
      8ddd5a6c
    • Nick Clifton's avatar
      58c7f094
    • Alan Modra's avatar
      ld -z combreloc reloc sorting · 1997c994
      Alan Modra authored
      PLT relocs don't appear in .rela.dyn, at least not when using
      normal linker scripts.  However, if they do, then they ought to be
      placed last rather than in the middle of other relocs.
      
      	* elf-bfd.h (elf_reloc_type_class): Put reloc_class_plt last.
      1997c994
    • GDB Administrator's avatar
      Automatic date update in version.in · 001c250f
      GDB Administrator authored
      001c250f
  7. 11 May, 2016 10 commits
    • Nick Clifton's avatar
    • Matthew Fortune's avatar
      Add MIPS32 DSPr3 support. · 8f4f9071
      Matthew Fortune authored
      bfd/
      
      	* elfxx-mips.c (print_mips_ases): Add DSPR3.
      
      binutils/
      
      	* readelf.c (print_mips_ases): Add DSPR3.
      
      gas/
      
      	* config/tc-mips.c (options): Add OPTION_DSPR3 and
      	OPTION_NO_DSPR3.
      	(md_longopts): Likewise.
      	(md_show_usage): Add help for -mdspr3 and -mno-dspr3.
      	(mips_ases): Define availability for DSPr3.
      	(mips_ase_groups): Add ASE_DSPR3 to the DSP group.
      	(mips_convert_ase_flags): Map ASE_DSPR3 to AFL_ASE_DSPR3.
      	* doc/as.texinfo: Document -mdspr3, -mno-dspr3.  Fix -mdspr2
      	formatting.
      	* doc/c-mips.texi: Document -mdspr3, -mno-dspr3, .set dspr3 and
      	.set nodspr3.  Fix -mdspr2 formatting.
      	* testsuite/gas/mips/mips32-dspr3.d: New file.
      	* testsuite/gas/mips/mips32-dspr3.s: Likewise.
      	* testsuite/gas/mips/mips.exp: Run mips32-dspr3 test.
      
      include/
      
      	* elf/mips.h (AFL_ASE_DSPR3): New macro.
      	(AFL_ASE_MASK): Update to include AFL_ASE_DSPR3.
      	* opcode/mips.h (ASE_DSPR3): New macro.
      
      opcodes/
      
      	* mips-dis.c (mips_arch_choices): Add ASE_DSPR3 to mips32r6 and
      	mips64r6.
      	* mips-opc.c (D34): New macro.
      	(mips_builtin_opcodes): Define bposge32c for DSPr3.
      8f4f9071
    • Alan Modra's avatar
      [HPPA] Attach linker created dynamic sections to stub bfd · a464198b
      Alan Modra authored
      bfd/
      	* elf32-hppa.c (elf32_hppa_init_stub_bfd): New function.
      	(elf32_hppa_check_relocs): Don't set dynobj.
      	(elf32_hppa_size_stubs): Test !SEC_LINKER_CREATED for stub sections.
      	(elf32_hppa_build_stubs): Likewise.
      	* elf32-hppa.h (elf32_hppa_init_stub_bfd): Declare.
      ld/
      	* emultempl/hppaelf.em (hppaelf_create_output_section_statements):
      	Call elf32_hppa_init_stub_bfd.
      a464198b
    • Alan Modra's avatar
      ld --gc-sections fail with __tls_get_addr_opt · 3bd43ebc
      Alan Modra authored
      When --gc-sections is active, __tls_get_addr_opt is marked as not
      needed and forced local before ppc*_elf_tls_setup is run.
      
      bfd/
      	PR 20060
      	* elf64-ppc.c (ppc64_elf_tls_setup): Clear forced_local.
      	* elf32-ppc.c (ppc_elf_tls_setup): Likewise.
      ld/
      	PR 20060
      	* testsuite/ld-powerpc/powerpc.exp: Run new tests.
      	* testsuite/ld-powerpc/tlsdll.s: New.
      	* testsuite/ld-powerpc/tlsdll.ver: New.
      	* testsuite/ld-powerpc/tlsdll_32.s: New.
      	* testsuite/ld-powerpc/tlsopt5.d: New.
      	* testsuite/ld-powerpc/tlsopt5.s: New.
      	* testsuite/ld-powerpc/tlsopt5_32.d: New.
      	* testsuite/ld-powerpc/tlsopt5_32.s: New.
      3bd43ebc
    • Nick Clifton's avatar
      Ensure that padding in the constant pool uses constant values. · a6684f0d
      Nick Clifton authored
      	PR target/20068
      	* config/tc-arm.c (add_to_lit_pool): Ensure that the padding added
      	to the pool uses O_constant.
      	* testsuite/gas/arm/pr20068.s: New test.
      	* testsuite/gas/arm/pr20068.d: Test driver.
      a6684f0d
    • Jiong Wang's avatar
      [AArch64] Remove redundant tls relax in elfNN_aarch64_final_link_relocate · 4e7fbb34
      Jiong Wang authored
      bfd/
        * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Remove redundant
        aarch64_tls_transition check.
      4e7fbb34
    • Nick Clifton's avatar
      oops - fix up changelog entry · 4179a6a2
      Nick Clifton authored
      4179a6a2
    • Nick Clifton's avatar
      Skip new ARM security extension tests on non-ELF based targets. · be5c445b
      Nick Clifton authored
      	* testsuite/gas/arm/archv8m-cmse-base.d: Skip for non-ELF ARM targets.
      	* testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
      	* testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
      	* testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
      	* testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
      	* testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
      	* testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
      	* testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
      	* testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
      be5c445b
    • Trevor Saunders's avatar
      fix up two issues with the removal of unused variables · df140a0b
      Trevor Saunders authored
      gdb/ChangeLog:
      
      2016-05-10  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
      
      	* iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
      	anything.
      	* linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
      df140a0b
    • GDB Administrator's avatar
      Automatic date update in version.in · aa79adb0
      GDB Administrator authored
      aa79adb0
  8. 10 May, 2016 1 commit
    • Alexander Fomin's avatar
      Enable Intel RDPID instruction. · 8bc52696
      Alexander Fomin authored
      This patch enables Intel RDPID instruction described in Intel64 and
      IA-32 Architectures Software Developer's Manual, April 2016.
      
      gas/
      
      	* config/tc-i386.c (cpu_arch): Add RDPID.
      	* doc/c-i386.texi: Document RDPID.
      
      gas/testsuite/
      
      	* gas/i386/i386.exp: Run RDPID tests.
      	* gas/i386/prefix.d: Adjust.
      	* gas/i386/rdpid.s: New test.
      	* gas/i386/rdpid.d: Ditto.
      	* gas/i386/rdpid-intel.d: Ditto.
      	* gas/i386/x86-64-rdpid.s: Ditto.
      	* gas/i386/x86-64-rdpid.d: Ditto.
      	* gas/i386/x86-64-rdpid-intel.d: Ditto.
      
      opcodes/
      
      	* i386-dis.c (prefix_table): Add RDPID instruction.
      	* i386-gen.c (cpu_flag_init): Add RDPID flag.
      	(cpu_flags): Add RDPID bitfield.
      	* i386-opc.h (enum): Add RDPID element.
      	(i386_cpu_flags): Add RDPID field.
      	* i386-opc.tbl: Add RDPID instruction.
      	* i386-init.h: Regenerate.
      	* i386-tbl.h: Regenerate.
      8bc52696