binutils.git
12 years ago * elf32-spu.c (build_stub): Fix malloc under-allocation.master
Alan Modra [Sun, 26 Feb 2012 23:12:15 +0000 (26 23:12 +0000)]
* elf32-spu.c (build_stub): Fix malloc under-allocation.

12 years agodaily update
Alan Modra [Sun, 26 Feb 2012 23:00:04 +0000 (26 23:00 +0000)]
daily update

12 years agoFix regression from change
walt [Sat, 25 Feb 2012 22:40:48 +0000 (25 22:40 +0000)]
Fix regression from change
http://sourceware.org/ml/binutils-cvs/2012-01/msg00049.html .  The
code needs to check that the symbol is not a local symbol before
accessing a non-local-symbol field.

* tc-tilepro.c (emit_tilepro_instruction): Check if symbol is
non-local before checking sy_value.
* tc-tilegx.c (emit_tilegx_instruction): Ditto.

12 years agoImprove TLS support on TILE-Gx/TILEPro:
walt [Sat, 25 Feb 2012 22:24:18 +0000 (25 22:24 +0000)]
Improve TLS support on TILE-Gx/TILEPro:
- Add support for TLS LE references.
- Support linker optimization of TLS references.
- Delete relocations of GOT/tp relative offsets beyond 32-bits.

This brings binutils in line with the support expected in gcc 4.7, for
TILE-Gx/TILEPro.

bfd/
* reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL,
BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD,
BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD,
BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD,
BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD,
BFD_RELOC_TILEPRO_TLS_IE_LOAD, BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE,
BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE,
BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO,
BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO,
BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI,
BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI,
BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA,
BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA,
BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE,
BFD_RELOC_TILEGX_TLS_GD_CALL, BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD,
BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD,
BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD,
BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD, BFD_RELOC_TILEGX_TLS_IE_LOAD,
BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD,
BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD,
BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD, BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD.
Delete BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT,
BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT,
BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT,
BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT,
BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT,
BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT,
BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT,
BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT,
BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE.
* elf32-tilepro.c (tilepro_elf_howto_table): Update tilepro
relocations.
(tilepro_reloc_map): Ditto.
(tilepro_info_to_howto_rela): Ditto.
(reloc_to_create_func): Ditto.
(tilepro_tls_translate_to_le): New.
(tilepro_tls_translate_to_ie): New.
(tilepro_elf_tls_transition): New.
(tilepro_elf_check_relocs): Handle new tls relocations.
(tilepro_elf_gc_sweep_hook): Ditto.
(allocate_dynrelocs): Ditto.
(tilepro_elf_relocate_section): Ditto.
(tilepro_replace_insn): New.
(insn_mask_X1): New.
(insn_mask_X0_no_dest_no_srca): New
(insn_mask_X1_no_dest_no_srca): New
(insn_mask_Y0_no_dest_no_srca): New
(insn_mask_Y1_no_dest_no_srca): New
(srca_mask_X0): New
(srca_mask_X1): New
(insn_tls_le_move_X1): New
(insn_tls_le_move_zero_X0X1): New
(insn_tls_ie_lw_X1): New
(insn_tls_ie_add_X0X1): New
(insn_tls_ie_add_Y0Y1): New
(insn_tls_gd_add_X0X1): New
(insn_tls_gd_add_Y0Y1): New
* elfxx-tilegx.c (tilegx_elf_howto_table): Update tilegx
relocations.
(tilegx_reloc_map): Ditto.
(tilegx_info_to_howto_rela): Ditto.
(reloc_to_create_func): Ditto.
(tilegx_elf_link_hash_table): New field disable_le_transition.
(tilegx_tls_translate_to_le): New.
(tilegx_tls_translate_to_ie): New.
(tilegx_elf_tls_transition): New.
(tilegx_elf_check_relocs): Handle new tls relocations.
(tilegx_elf_gc_sweep_hook): Ditto.
(allocate_dynrelocs): Ditto.
(tilegx_elf_relocate_section): Ditto.
(tilegx_copy_bits): New.
(tilegx_replace_insn): New.
(insn_mask_X1): New.
(insn_mask_X0_no_dest_no_srca): New.
(insn_mask_X1_no_dest_no_srca): New.
(insn_mask_Y0_no_dest_no_srca): New.
(insn_mask_Y1_no_dest_no_srca): New.
(insn_mask_X0_no_operand): New.
(insn_mask_X1_no_operand): New.
(insn_mask_Y0_no_operand): New.
(insn_mask_Y1_no_operand): New.
(insn_tls_ie_ld_X1): New.
(insn_tls_ie_ld4s_X1): New.
(insn_tls_ie_add_X0X1): New.
(insn_tls_ie_add_Y0Y1): New.
(insn_tls_ie_addx_X0X1): New.
(insn_tls_ie_addx_Y0Y1): New.
(insn_tls_gd_add_X0X1): New.
(insn_tls_gd_add_Y0Y1): New.
(insn_move_X0X1): New.
(insn_move_Y0Y1): New.
(insn_add_X0X1): New.
(insn_add_Y0Y1): New.
(insn_addx_X0X1): New.
(insn_addx_Y0Y1): New.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.

gas/
* tc-tilepro.c (O_tls_le): Define operator.
(O_tls_le_lo16): Ditto.
(O_tls_le_hi16): Ditto.
(O_tls_le_ha16): Ditto.
(O_tls_gd_call): Ditto.
(O_tls_gd_add): Ditto.
(O_tls_ie_load): Ditto.
(md_begin): Delete old operators; handle new operators.
(emit_tilepro_instruction): Ditto.
(md_apply_fix): Ditto.
* tc-tilegx.c (O_hw1_got): Delete operator.
(O_hw2_got): Ditto.
(O_hw3_got): Ditto.
(O_hw2_last_got): Ditto.
(O_hw1_tls_gd): Ditto.
(O_hw2_tls_gd): Ditto.
(O_hw3_tls_gd): Ditto.
(O_hw2_last_tls_gd): Ditto.
(O_hw1_tls_ie): Ditto.
(O_hw2_tls_ie): Ditto.
(O_hw3_tls_ie): Ditto.
(O_hw2_last_tls_ie): Ditto.
(O_hw0_tls_le): Define operator.
(O_hw0_last_tls_le): Ditto.
(O_hw1_last_tls_le): Ditto.
(O_tls_gd_call): Ditto.
(O_tls_gd_add): Ditto.
(O_tls_ie_load): Ditto.
(O_tls_add): Ditto.
(md_begin): Delete old operators; handle new operators.
(emit_tilegx_instruction): Ditto.
(md_apply_fix): Ditto.
* doc/c-tilegx.texi: Delete old operators; document new operators.
* doc/c-tilepro.texi: Ditto.

include/elf/
* tilegx.h (R_TILEGX_IMM16_X0_HW1_GOT): Delete.
(R_TILEGX_IMM16_X1_HW1_GOT): Ditto.
(R_TILEGX_IMM16_X0_HW2_GOT): Ditto.
(R_TILEGX_IMM16_X1_HW2_GOT): Ditto.
(R_TILEGX_IMM16_X0_HW3_GOT): Ditto.
(R_TILEGX_IMM16_X1_HW3_GOT): Ditto.
(R_TILEGX_IMM16_X0_HW2_LAST_GOT): Ditto.
(R_TILEGX_IMM16_X1_HW2_LAST_GOT): Ditto.
(R_TILEGX_IMM16_X0_HW1_TLS_GD): Ditto.
(R_TILEGX_IMM16_X1_HW1_TLS_GD): Ditto.
(R_TILEGX_IMM16_X0_HW2_TLS_GD): Ditto.
(R_TILEGX_IMM16_X1_HW2_TLS_GD): Ditto.
(R_TILEGX_IMM16_X0_HW3_TLS_GD): Ditto.
(R_TILEGX_IMM16_X1_HW3_TLS_GD): Ditto.
(R_TILEGX_IMM16_X0_HW2_LAST_TLS_GD): Ditto.
(R_TILEGX_IMM16_X1_HW2_LAST_TLS_GD): Ditto.
(R_TILEGX_IMM16_X0_HW1_TLS_IE): Ditto.
(R_TILEGX_IMM16_X1_HW1_TLS_IE): Ditto.
(R_TILEGX_IMM16_X0_HW2_TLS_IE): Ditto.
(R_TILEGX_IMM16_X1_HW2_TLS_IE): Ditto.
(R_TILEGX_IMM16_X0_HW3_TLS_IE): Ditto.
(R_TILEGX_IMM16_X1_HW3_TLS_IE): Ditto.
(R_TILEGX_IMM16_X0_HW2_LAST_TLS_IE): Ditto.
(R_TILEGX_IMM16_X1_HW2_LAST_TLS_IE): Ditto.
(R_TILEGX_IMM16_X0_HW0_TLS_LE): New relocation.
(R_TILEGX_IMM16_X1_HW0_TLS_LE): Ditto.
(R_TILEGX_IMM16_X0_HW0_LAST_TLS_LE): Ditto.
(R_TILEGX_IMM16_X1_HW0_LAST_TLS_LE): Ditto.
(R_TILEGX_IMM16_X0_HW1_LAST_TLS_LE): Ditto.
(R_TILEGX_IMM16_X1_HW1_LAST_TLS_LE): Ditto.
(R_TILEGX_TLS_GD_CALL): Ditto.
(R_TILEGX_IMM8_X0_TLS_GD_ADD): Ditto.
(R_TILEGX_IMM8_X1_TLS_GD_ADD): Ditto.
(R_TILEGX_IMM8_Y0_TLS_GD_ADD): Ditto.
(R_TILEGX_IMM8_Y1_TLS_GD_ADD): Ditto.
(R_TILEGX_TLS_IE_LOAD): Ditto.
(R_TILEGX_IMM8_X0_TLS_ADD): Ditto.
(R_TILEGX_IMM8_X1_TLS_ADD): Ditto.
(R_TILEGX_IMM8_Y0_TLS_ADD): Ditto.
(R_TILEGX_IMM8_Y1_TLS_ADD): Ditto.
* tilepro.h (R_TILEPRO_TLS_GD_CALL): New relocation.
(R_TILEPRO_IMM8_X0_TLS_GD_ADD): Ditto.
(R_TILEPRO_IMM8_X1_TLS_GD_ADD): Ditto.
(R_TILEPRO_IMM8_Y0_TLS_GD_ADD): Ditto.
(R_TILEPRO_IMM8_Y1_TLS_GD_ADD): Ditto.
(R_TILEPRO_TLS_IE_LOAD): Ditto.
(R_TILEPRO_IMM16_X0_TLS_LE): Ditto.
(R_TILEPRO_IMM16_X1_TLS_LE): Ditto.
(R_TILEPRO_IMM16_X0_TLS_LE_LO): Ditto.
(R_TILEPRO_IMM16_X1_TLS_LE_LO): Ditto.
(R_TILEPRO_IMM16_X0_TLS_LE_HI): Ditto.
(R_TILEPRO_IMM16_X1_TLS_LE_HI): Ditto.
(R_TILEPRO_IMM16_X0_TLS_LE_HA): Ditto.
(R_TILEPRO_IMM16_X1_TLS_LE_HA): Ditto.

include/opcode/
* tilegx.h (tilegx_mnemonic): Add TILEGX_OPC_LD4S_TLS,
TILEGX_OPC_LD_TLS.
* tilepro.h (tilepro_mnemonic): Add TILEPRO_OPC_LW_TLS,
TILEPRO_OPC_LW_TLS_SN.

opcodes/
* tilegx-opc.c: Handle TILEGX_OPC_LD4S_TLS and TILEGX_OPC_LD_TLS.
* tilepro-opc.c: Handle TILEPRO_OPC_LW_TLS and
TILEPRO_OPC_LW_TLS_SN.

12 years agoDeletes some dead code in the TILE-Gx/TILEPro ports of gas.
walt [Sat, 25 Feb 2012 20:07:08 +0000 (25 20:07 +0000)]
Deletes some dead code in the TILE-Gx/TILEPro ports of gas.

* tc-tilepro.c (apply_special_operator): delete cases for
got and tls operators.
(md_apply_fix): Ditto.
* tc-tilegx.c: (apply_special_operator): delete cases for
got and tls operators.
(md_apply_fix): Ditto.

12 years agoAdd big-endian support for tilegx.
walt [Sat, 25 Feb 2012 19:51:31 +0000 (25 19:51 +0000)]
Add big-endian support for tilegx.

bfd/
* config.bfd (tilegx-*-*): rename little endian vector; add big
endian vector.
(tilegxbe-*-*): New case.
* configure.in (bfd_elf32_tilegx_vec): Rename...
(bfd_elf32_tilegx_le_vec): ... to this.
(bfd_elf32_tilegx_be_vec): New vector.
(bfd_elf64_tilegx_vec): Rename...
(bfd_elf64_tilegx_le_vec): ... to this.
(bfd_elf64_tilegx_be_vec): New vector.
* configure: Regenerate.
* elf32-tilegx.c (TARGET_LITTLE_SYM): Rename.
(TARGET_LITTLE_NAME): Ditto.
(TARGET_BIG_SYM): Define.
(TARGET_BIG_NAME): Define.
* elf64-tilegx.c (TARGET_LITTLE_SYM): Rename.
(TARGET_LITTLE_NAME): Ditto.
(TARGET_BIG_SYM): Define.
(TARGET_BIG_NAME): Define.
* targets.c (bfd_elf32_tilegx_vec): Rename...
(bfd_elf32_tilegx_le_vec): ... to this.
(bfd_elf32_tilegx_be_vec): Declare.
(bfd_elf64_tilegx_vec): Rename...
(bfd_elf64_tilegx_le_vec): ... to this.
(bfd_elf64_tilegx_be_vec): Declare.
(_bfd_target_vector): Add / rename above vectors.

binutils/testsuite/
* binutils-all/objdump.exp (cpus_expected): Add tilegx.

gas/
* tc-tilegx.c (tilegx_target_format): Handle big endian.
(OPTION_EB): Define.
(OPTION_EL): Define.
(md_longopts): Add entries for "EB" and "EL".
(md_parse_option): Handle OPTION_EB and OPTION_EL.
(md_show_usage): Add -EB and -EL.
(md_number_to_chars): New.
* tc-tilegx.h (TARGET_BYTES_BIG_ENDIAN): Guard definition with
ifndef.
(md_number_to_chars): Delete.
* configure.tgt (tilegx*be): Handle.
* doc/as.texinfo [TILE-Gx]: Document -EB and -EL.
* doc/c-tilegx.texi: Ditto.

ld/
* Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
(ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
(eelf32tilegx_be.c): Add rule to build this file.
(eelf64tilegx_be.c): Ditto.
* Makefile.in: Regenerate.
* configure.tgt (tilegx-*-*): Support big endian.
(tilegxbe-*-*): New.
* emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
(BIG_OUTPUT_FORMAT): Define.
(LITTLE_OUTPUT_FORMAT): Define.
* emulparams/elf32tilegx_be.sh: New.
* emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
(BIG_OUTPUT_FORMAT): Define.
(LITTLE_OUTPUT_FORMAT): Define.
* emulparams/elf64tilegx_be.sh: New.

ld/testsuite/
* ld-tilegx/reloc-be.d: New.
* ld-tilegx/reloc-le.d: New.
* ld-tilegx/reloc.d: Delete.
* ld-tilegx/tilegx.exp: Test big and little endian.

12 years agoProperly create and use a bfd_arch_info_type for 32-bit tilegx.
walt [Sat, 25 Feb 2012 18:57:53 +0000 (25 18:57 +0000)]
Properly create and use a bfd_arch_info_type for 32-bit tilegx.

bfd/
* arctures.c (bfd_architecture): Define bfd_mach_tilegx32.
* bfd-in2.h: Regenerate.
* cpu-tilegx.c (bfd_tilegx32_arch): define.
  (bfd_tilegx_arch): link to bfd_tilegx32_arch.

gas/
* tc-tilegx.c (md_begin): set architecture and machine.

12 years agodaily update
Alan Modra [Fri, 24 Feb 2012 23:00:05 +0000 (24 23:00 +0000)]
daily update

12 years ago PR binutils/13710
Kai Tietz [Fri, 24 Feb 2012 14:20:15 +0000 (24 14:20 +0000)]
PR binutils/13710
* defparse.y (keyword_as_name): Disable LIBRARY
keyword.
* doc/binutils.texi: Document LIBRARY exception.

PR binutils/13710
* deffilep.y (keyword_as_name): Disable LIBRARY
keyword.

12 years ago PR ld/13730
Nick Clifton [Fri, 24 Feb 2012 10:54:46 +0000 (24 10:54 +0000)]
PR ld/13730
* reloc.c (bfd_generic_get_relocated_section_contents): Issue an
error message instead of aborting, when an outofrange reloc is
encountered.

12 years agodaily update
Alan Modra [Thu, 23 Feb 2012 23:37:59 +0000 (23 23:37 +0000)]
daily update

12 years agodeal with endian-ness in mach-o non-scattered relocs.
iains [Thu, 23 Feb 2012 16:29:52 +0000 (23 16:29 +0000)]
deal with endian-ness in mach-o non-scattered relocs.

BFD:

* mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New.
(bfd_mach_o_canonicalize_one_reloc):  Swap non-scattered reloc
bit-fields when target and host differ in endian-ness.  When
PAIRs are non-scattered find the 'symbol' from the preceding
reloc.  Add FIXME re. reloc symbols on section boundaries.
(bfd_mach_o_swap_out_non_scattered_reloc): New.
(bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc.

include/mach-o:

* external.h: Add comments about relocations fields.  Add macros
for non-scattered relocations.  Move scattered relocation macros to here.
* reloc.h: Remove macros related to external representation of reloc fields.

12 years agooops - omitted part of changelog entry with the previous delta.
Nick Clifton [Wed, 22 Feb 2012 16:59:52 +0000 (22 16:59 +0000)]
oops - omitted part of changelog entry with the previous delta.

12 years ago PR ld/13683
Nick Clifton [Wed, 22 Feb 2012 16:27:31 +0000 (22 16:27 +0000)]
PR ld/13683
* ldlang.c (lang_process): Rerun lang_do_assignments before
starting garbage collection.
* ldexp.c (fold_name): Generate a reloc for defined symbols
found without an associated output section during the mark phase.
(exp_fold_tree_1): Continue processing an expression, even if we
are unable to fold it, if we are in the first two evaluation
phases.
* ldexp.h (enum lang_phase_type): Add descriptions of the phases.

* ld-gc/pr13683.c: New test source file.
* ld-gc/pr13683.d: New test control and output file.
* ld-gc/gc.exp: Run the pr13683 test.

* ld-cris/tls-gc-68: Update expected symbol table dump.
* ld-cris/tls-gc-69: Likewise.
* ld-cris/tls-gc-70: Likewise.
* ld-cris/tls-gc-71: Likewise.
* ld-cris/tls-gc-75: Likewise.
* ld-cris/tls-gc-76.d: Likewise.
* ld-cris/tls-gc-79.d: Likewise.

12 years agodaily update
Alan Modra [Tue, 21 Feb 2012 23:00:05 +0000 (21 23:00 +0000)]
daily update

12 years ago2012-02-21 Joern Rennecke <joern.rennecke@embecosm.com>
Jeff Johnston [Tue, 21 Feb 2012 22:40:27 +0000 (21 22:40 +0000)]
2012-02-21  Joern Rennecke  <joern.rennecke@embecosm.com>

        * COPYING.NEWLIB: Add Adapteva notice.
        * COPYING.LIBGLOSS: Add Adapteva notice.

12 years agoAdd HLEPrefixNone/HLEPrefixLock/HLEPrefixAny/HLEPrefixRelease
H.J. Lu [Tue, 21 Feb 2012 18:09:45 +0000 (21 18:09 +0000)]
Add HLEPrefixNone/HLEPrefixLock/HLEPrefixAny/HLEPrefixRelease

gas/

2012-02-21  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
HLEPrefixAny and HLEPrefixRelease.

opcodes/

2012-02-21  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.h (HLEPrefixNone): New.
(HLEPrefixLock): Likewise.
(HLEPrefixAny): Likewise.
(HLEPrefixRelease): Likewise.

12 years ago * gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
Nick Clifton [Tue, 21 Feb 2012 16:55:29 +0000 (21 16:55 +0000)]
* gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.

12 years ago PR binutils/13682
Kai Tietz [Tue, 21 Feb 2012 16:10:11 +0000 (21 16:10 +0000)]
PR binutils/13682
* NEWS: Mention new feature.
* dlltool.c (i386_x64_dljtab): New stub-code for x64
delayed-load feature.
(i386_x64_trampoline): New trampoline-code for x64
delayed-load feature.
(make_one_lib_file): Add support for x64 delayed-load
feature.
(make_delay_head): Likewis

12 years agoprovide a hook to allow checking errors just before we output the file.
iains [Tue, 21 Feb 2012 13:39:35 +0000 (21 13:39 +0000)]
provide a hook to allow checking errors just before we output the file.

gas:

* write.c (write_object_file): Add md_pre_output_hook.
* config/obj-macho.c (obj_mach_o_check_before_writing): New.
(obj_mach_o_pre_output_hook): New.
* config/obj-macho.h (md_pre_output_hook): Define.
(obj_mach_o_pre_output_hook): Declare.

12 years ago2012-02-21 Tristan Gingold <gingold@adacore.com>
iains [Tue, 21 Feb 2012 09:13:01 +0000 (21 09:13 +0000)]
2012-02-21  Tristan Gingold  <gingold@adacore.com>

* config/tc-i386.h (OBJ_MACH_O): New section.
(TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
(TC_FORCE_RELOCATION_SUB_SAME): New
(TC_FORCE_RELOCATION_SUB_LOCAL): New.
(TC_VALIDATE_FIX_SUB): New.
* frags.h (struct frag): OBJ_FRAG_TYPE, new field.
* symbols.c (colon): obj_frob_colon: New hook.
* write.c (write_object_file): md_pre_relax_hook, new
hook.
* config/obj-macho.c (obj_mach_o_frob_colon): New.
(obj_mach_o_frob_label): Record sub-section labels.
(obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
(obj_mach_o_set_subsections): New.
(obj_mach_o_pre_relax_hook): New.
(obj_mach_o_in_different_subsection): New.
(obj_mach_o_force_reloc_sub_same): New.
(obj_mach_o_force_reloc_sub_local): New.
(obj_mach_o_force_reloc): New.
* config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
(obj_frob_colon): New Define.
(obj_mach_o_frob_label): Renamed.
(obj_mach_o_frob_symbol): Renamed.
(OBJ_FRAG_TYPE): New.
(obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
 obj_mach_o_force_reloc_sub_same,
 obj_mach_o_force_reloc_sub_local): New declarations.

12 years agodaily update
Alan Modra [Mon, 20 Feb 2012 23:00:05 +0000 (20 23:00 +0000)]
daily update

12 years agogas:
iains [Mon, 20 Feb 2012 20:11:31 +0000 (20 20:11 +0000)]
gas:

* config/obj-macho.c (obj_mach_o_is_frame_section): New.
(obj_mach_o_allow_local_subtract): New.
* config/obj-macho.h (md_allow_local_subtract): Define.
(obj_mach_o_allow_local_subtract): Declare.

12 years agogas:
iains [Mon, 20 Feb 2012 19:44:40 +0000 (20 19:44 +0000)]
gas:

* config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of
canonical information, try to determine CODE and DEBUG section flags
from the mach-o section data.

12 years ago * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
Nick Clifton [Mon, 20 Feb 2012 10:25:01 +0000 (20 10:25 +0000)]
* cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
local symbols.

12 years ago * objdump.c (slurp_file): Close file if fstat fails.
Alan Modra [Mon, 20 Feb 2012 03:25:20 +0000 (20 03:25 +0000)]
* objdump.c (slurp_file): Close file if fstat fails.

12 years ago * ld-elf/comm-data.exp: Run for *-*-gnu*.
Alan Modra [Mon, 20 Feb 2012 01:51:52 +0000 (20 01:51 +0000)]
* ld-elf/comm-data.exp: Run for *-*-gnu*.

12 years agodaily update
Alan Modra [Sun, 19 Feb 2012 23:00:06 +0000 (19 23:00 +0000)]
daily update

12 years ago * deffilep.y (cmp_import_elem): Sort first by module name.
Kai Tietz [Sun, 19 Feb 2012 21:18:07 +0000 (19 21:18 +0000)]
    * deffilep.y (cmp_import_elem): Sort first by module name.
        * pe-dll.c (process_def_file_and_drectve): Free strings
        from removed export-element.
        (add_bfd_to_link): Optimize loop on import-elements and lower
        allocated memory.
        (pe_implied_import_dll): Pass NULL instead of 0 for pointer
        argument.

12 years agodaily update
Alan Modra [Sat, 18 Feb 2012 23:00:05 +0000 (18 23:00 +0000)]
daily update

12 years ago * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
Hans-Peter Nilsson [Sat, 18 Feb 2012 11:55:45 +0000 (18 11:55 +0000)]
* ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
temporary variable node used for NULL argument.

12 years agodaily update
Alan Modra [Fri, 17 Feb 2012 23:00:05 +0000 (17 23:00 +0000)]
daily update

12 years ago PR ld/13343
Alan Modra [Fri, 17 Feb 2012 14:09:55 +0000 (17 14:09 +0000)]
PR ld/13343
* ld.h (parsing_defsym): Delete.
* ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
(fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
exp_get_abs_int): Add tree arg for %S in error messages.  Don't
fudge lineno.
(exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
type.filename from sub-tree.
(exp_trinop): Likewise, and use "cond" rather than "lhs".
* ldexp.h (node_type): Add filename field to struct.
* ldfile.c (ldfile_input_filename): Delete.  Remove all refs.
* ldfile.h (ldfile_input_filename): Delete.
* ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
%S in error messages.
* ldemul.c (syslib_default, hll_default): Likewise.
* ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
lang_get_regions, lang_new_phdr): Likewise.
(lang_size_sections_1): Pass addr_tree for %S.
* ldlex.h (lex_redirect): Update prototype.
(ldlex_filename): Declare.
* ldlex.l (<EOF>): Don't set ldfile_input_filename.
(lex_redirect): Add fake_filename and count params.  Push
fake_filename to file_name_stack and init lineno from count.
(ldlex_filename): New function.
(lex_warn_invalid): Use above.
* ldmain.c (main): Update lex_redirect call.
* ldmisc.c (vfinfo <%S>): Take file name and line number from
etree_type arg, or use current if arg is NULL.
* lexsup.c (parsing_defsym): Delete.
(parse_args <OPTION_DEFSYM>): Update lex_redirect call.

12 years agosupport 16 sect-diffs for mach-o
iains [Fri, 17 Feb 2012 11:23:43 +0000 (17 11:23 +0000)]
support 16 sect-diffs for mach-o

bfd:

* mach-o-i386.c (i386_howto_table): Add support for 16 bit
sect-diffs.
(bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs.
(bfd_mach_o_i386_swap_reloc_out): Likewise.

12 years agoadd LOCAL SECDIFF relocation for m32 mach-o
iains [Fri, 17 Feb 2012 10:57:32 +0000 (17 10:57 +0000)]
add LOCAL SECDIFF relocation for m32 mach-o

bfd:

* reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF):
* libbfd.h: Regenerated.
* bfd-in2.h: Likewise.
* mach-o-i386.c (i386_howto_table): Include local sectdiff.
(bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff.
(bfd_mach_o_i386_swap_reloc_out): Likewise.

12 years ago2012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Fri, 17 Feb 2012 08:38:05 +0000 (17 08:38 +0000)]
2012-02-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* elf32-s390.c (elf_s390_relocate_section): Support basr in the
GD->LE and LD->LE optimizations.

12 years ago * testsuite/Makefile.am (initpri2): Add --ctors-in-init-array option.
Cary Coutant [Thu, 16 Feb 2012 19:37:33 +0000 (16 19:37 +0000)]
* testsuite/Makefile.am (initpri2): Add --ctors-in-init-array option.
* testsuite/Makefile.in: Regenerate.

12 years ago PR binutils/13355
Alan Modra [Thu, 16 Feb 2012 07:40:20 +0000 (16 07:40 +0000)]
PR binutils/13355
* elf32-rx.c (elf32_rx_relax_section): Correct width check.

12 years agodaily update
Alan Modra [Wed, 15 Feb 2012 23:00:07 +0000 (15 23:00 +0000)]
daily update

12 years ago * dwarf.c (dwarf_vmatoa64): New function.
Cary Coutant [Wed, 15 Feb 2012 18:32:30 +0000 (15 18:32 +0000)]
* dwarf.c (dwarf_vmatoa64): New function.
(read_and_display_attr_value): Print 8-byte forms as single hex
numbers.
(process_debug_info): Print type signatures as single hex numbers.
* elfcomm.c (byte_get_64): New function.
* elfcomm.h (byte_get_64): New function.

12 years ago * options.cc (General_options::finalize): Disallow -pie and -static.
Cary Coutant [Wed, 15 Feb 2012 00:56:16 +0000 (15 00:56 +0000)]
* options.cc (General_options::finalize): Disallow -pie and -static.

12 years agodaily update
Alan Modra [Tue, 14 Feb 2012 23:00:05 +0000 (14 23:00 +0000)]
daily update

12 years ago PR ld/13621
Richard Henderson [Tue, 14 Feb 2012 20:43:25 +0000 (14 20:43 +0000)]
    PR ld/13621
        * ld-elf/zerosize1.d, ld-elf/zerosize1.s: New test.

12 years ago * binutils-all/dlltool.exp: Add setup_xfail.
Alan Modra [Tue, 14 Feb 2012 02:40:39 +0000 (14 02:40 +0000)]
* binutils-all/dlltool.exp: Add setup_xfail.

12 years agoRegenerate
Alan Modra [Tue, 14 Feb 2012 01:25:01 +0000 (14 01:25 +0000)]
Regenerate

12 years agoRegenerate.
Alan Modra [Tue, 14 Feb 2012 01:24:35 +0000 (14 01:24 +0000)]
Regenerate.

12 years ago * ld-elf/linkoncerdiff.d: Don't run for hppa64-hpux.
Alan Modra [Tue, 14 Feb 2012 01:02:03 +0000 (14 01:02 +0000)]
* ld-elf/linkoncerdiff.d: Don't run for hppa64-hpux.
* ld-elf/pr11304a.s: Always have whitespace before directives.
* ld-elf/pr11304b.s: Likewise.
* ld-selective/selective.exp: Test m68hc1* variant of m6811, m6812.
* lib/ld-lib.exp: Likewise, and vice versa.

12 years ago * gas/elf/bad-group.s: Add section attributes.
Alan Modra [Tue, 14 Feb 2012 01:01:29 +0000 (14 01:01 +0000)]
* gas/elf/bad-group.s: Add section attributes.
* gas/elf/elf.exp (groupautoa, groupautob): Don't run for hppa64-hpux.
(ifunc-1, type): Don't run for hpux.
* gas/elf/type-noifunc.e: Accept ANSI_COM.
* gas/elf/section7.s: Always have whitespace before directives.
* gas/elf/warn-2.s: Likewise.
* gas/i386/ifunc-3.s: Move .size directive.

12 years ago * binutils-all/dw2-decodedline.S: Always have whitespace before
Alan Modra [Tue, 14 Feb 2012 01:00:50 +0000 (14 01:00 +0000)]
* binutils-all/dw2-decodedline.S: Always have whitespace before
directives.
* binutils-all/version.s: Likewise.
* binutils-all/objdump.exp (dw2-decodedline): Don't run for
hppa64*-*-hpux*, i370-*-*, i960-*-*.

12 years agodaily update
Alan Modra [Mon, 13 Feb 2012 23:00:05 +0000 (13 23:00 +0000)]
daily update

12 years ago * deffilep.y (find_export_in_list): Set is_indent for
Kai Tietz [Mon, 13 Feb 2012 20:42:07 +0000 (13 20:42 +0000)]
    * deffilep.y (find_export_in_list): Set is_indent for
        first or last element, if identical.
        (find_import_in_list): Likewise.

12 years agoPR ld/13621
Richard Henderson [Mon, 13 Feb 2012 18:08:50 +0000 (13 18:08 +0000)]
PR ld/13621

bfd/
* linker.c (fix_syms): Force symbols outside any section into
bfd_abs_section_ptr.
ld/testsuite/
* ld-elf/warn2.d: Expect ABS section for Foo.
* ld-elf/zerosize1.d, zerosize1.s: New test.

12 years agorevert premature delta
Alan Modra [Mon, 13 Feb 2012 04:10:56 +0000 (13 04:10 +0000)]
revert premature delta

12 years ago * ld-m68hc11/m68hc11.exp: Run for m68hc11-*-* and m68hc12-*-*.
Alan Modra [Mon, 13 Feb 2012 02:31:53 +0000 (13 02:31 +0000)]
* ld-m68hc11/m68hc11.exp: Run for m68hc11-*-* and m68hc12-*-*.
* ld-m68hc11/adj-brset.d: Remove redundant #target line.  Add
-m m68hc11elf to ld invocation.
* ld-m68hc11/adj-jump.d: Likewise.
* ld-m68hc11/bug-1403.d: Likewise.
* ld-m68hc11/bug-1417.d: Likewise.
* ld-m68hc11/bug-3331.d: Likewise.
* ld-m68hc11/relax-direct.d: Likewise.
* ld-m68hc11/relax-group.d: Likewise.
* ld-m68hc11/far-hc11.d: Remove redundant #target line.  Adjust for
changed addresses.
* ld-m68hc11/far-hc12.d: Remove redundant #target line.
* ld-m68hc11/link-hcs12.d: Likewise, and adjust for header changes.

12 years ago * gas/all/gas.exp (redef2): xfail m6811 and m6812.
Alan Modra [Mon, 13 Feb 2012 02:31:17 +0000 (13 02:31 +0000)]
* gas/all/gas.exp (redef2): xfail m6811 and m6812.
* gas/elf/elf.exp: Use is_elf_format.
* gas/symver/symver.exp: Likewise.
* gas/m68hc11/m68hc11.exp: Simplify target test.
Add -m68hc11 to error tests that pass for hc12.

12 years ago * elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function.
Alan Modra [Mon, 13 Feb 2012 02:29:50 +0000 (13 02:29 +0000)]
* elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function.
* elf32-m68hc1x.h (elf32_m68hc11_merge_symbol_attribute): Declare.
* elf32-m68hc11.c (elf_backend_merge_symbol_attribute): Define.
* elf32-m68hc12.c (elf_backend_merge_symbol_attribute): Define.

12 years agodaily update
Alan Modra [Sun, 12 Feb 2012 23:00:07 +0000 (12 23:00 +0000)]
daily update

12 years agogas:
iains [Sun, 12 Feb 2012 15:47:17 +0000 (12 15:47 +0000)]
gas:

* config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
any local symbol used as an indirect.

12 years agodaily update
Alan Modra [Sat, 11 Feb 2012 23:00:06 +0000 (11 23:00 +0000)]
daily update

12 years agoChangeLog binutils
Kai Tietz [Sat, 11 Feb 2012 20:02:01 +0000 (11 20:02 +0000)]
ChangeLog binutils

2012-02-11  Kai Tietz  <ktietz@redhat.com>

PR binutils/13657
* defparse.y (%union): New type id_const.
(opt_name2): New rule.
(keyword_as_name): New rule.
(opt_name): Adjust rule.
(opt_import_name): Likewise.
(opt_equal_name): Likewise.

ChangeLog binutils/testsuite

2012-02-11  Kai Tietz  <ktietz@redhat.com>

* binutils-all/version.def: New file.
* binutils-all/dlltool.exp: Add version-dll test.

ChangeLog ld

2012-02-11  Kai Tietz  <ktietz@redhat.com>

* deffilep.y (%union): New type id_const.
(opt_name2): New rule.
(keyword_as_name): New rule.
(dot_name): Replaced by opt_name2 rule.
(opt_name): Adjust rule.
(opt_equal_name): Likewise.

12 years ago * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
Nick Clifton [Sat, 11 Feb 2012 19:25:12 +0000 (11 19:25 +0000)]
* pe-dll.c (auto_export): Use bsearch to speed up scan of exports
table.
(process_def_file_and_drectve): Maintain sorting of exports table
after stripping leading @ signs.

12 years ago PR binutils/13297
Kai Tietz [Sat, 11 Feb 2012 15:15:34 +0000 (11 15:15 +0000)]
PR binutils/13297
* resrc.c (write_rc_dialog_control): Omit text dump for
EDITTEXT, COMBOBOX, LISTBOX, and SCROLLBAR.

12 years ago * gas/i386/disp32.d: Adjust lable-pattern.
Kai Tietz [Sat, 11 Feb 2012 15:12:56 +0000 (11 15:12 +0000)]
    * gas/i386/disp32.d: Adjust lable-pattern.

12 years agobfd/
Jan Kratochvil [Sat, 11 Feb 2012 15:10:10 +0000 (11 15:10 +0000)]
bfd/
* oasys.c (oasys_write_header): Fix compilation warning on zero-sized
memset.

12 years agodaily update
Alan Modra [Fri, 10 Feb 2012 23:00:06 +0000 (10 23:00 +0000)]
daily update

12 years agogas:
iains [Fri, 10 Feb 2012 13:12:54 +0000 (10 13:12 +0000)]
gas:

* config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
stub size when provided.  (obj_mach_o_section): Flag that stub-size
has been provided.

12 years agobfd:
iains [Fri, 10 Feb 2012 11:24:44 +0000 (10 11:24 +0000)]
bfd:

* mach-o.c (bfd_mach_o_build_seg_command): Count zerofill section
vma additions in their logical, rather than physical order.

12 years agocorrect some mach-o section specification nits.
iains [Fri, 10 Feb 2012 11:07:33 +0000 (10 11:07 +0000)]
correct some mach-o section specification nits.

bfd:

* mach-o.c (mach_o_section_name_xlat): Correct eh-frame section
parameters.
* mach-o-x86-64.c (text_section_names_xlat): New.
(mach_o_x86_64_segsec_names_xlat): New.
(bfd_mach_o_tgt_seg_table): Define to mach_o_x86_64_segsec_names_xlat.
* mach-o-i386.c (text_section_names_xlat): Correct section parameters.

12 years ago2012-02-10 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 10 Feb 2012 10:09:14 +0000 (10 10:09 +0000)]
2012-02-10  Tristan Gingold  <gingold@adacore.com>

* elfnn-ia64.c (elfNN_vms_object_p): Change comparison operator
to avoid infinite loop.  Add comments.

12 years agodaily update
Alan Modra [Thu, 9 Feb 2012 23:00:06 +0000 (9 23:00 +0000)]
daily update

12 years agoDon't use multi byte nop instructions for i386
H.J. Lu [Thu, 9 Feb 2012 22:51:57 +0000 (9 22:51 +0000)]
Don't use multi byte nop instructions for i386

bfd/

2012-02-09  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13675
* cpu-i386.c (bfd_arch_i386_fill): Updated to support multi byte
nop instructions.
(bfd_arch_i386_short_nop_fill): New.
(bfd_arch_i386_long_nop_fill): Likewise.
Use bfd_arch_i386_short_nop_fill in 32bit bfd_arch_info
initializers.  Use bfd_arch_i386_long_nop_fill on 64bit
bfd_arch_info initializers.

* cpu-k1om.c (bfd_arch_i386_fill): Renamed to ...
(bfd_arch_i386_short_nop_fill): This.
Update bfd_arch_info initializers.
* cpu-l1om.c: Likewise.

ld/testsuite/

2012-02-09  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13675
* ld-i386/tlsnopic.dd: Update no-op padding.
* ld-i386/tlspic.dd: Likewise.

12 years ago * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.binutils_latest_snapshot
Alan Modra [Thu, 9 Feb 2012 05:26:13 +0000 (9 05:26 +0000)]
* ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.

12 years ago * sysdep.h: Include sys/stat.h here.
Alan Modra [Thu, 9 Feb 2012 04:51:43 +0000 (9 04:51 +0000)]
* sysdep.h: Include sys/stat.h here.
* ar.c: Don't include headers already included by sysdep.h.
* bucomm.c: Likewise.
* budbg.h: Likewise.
* dlltool.h: Likewise.
* elfedit.c: Likewise.
* nlmconv.c: Likewise.
* objcopy.c: Likewise.
* objdump.c: Likewise.
* objdump.h: Likewise.
* readelf.c: Likewise.
* rename.c: Likewise.
* resrc.c: Likewise.
* strings.c: Likewise.
* windres.c: Likewise.
* od-macho.c: Ensure #include sysdep.h is first.
* od-xcoff.c: Likewise.
* dllwrap.c: Remove alloca pragma handled by sysdep.h, and
remove duplicate headers.
* dlltool.c: Likewise and ensure #include sysdep.h is first.

12 years agodaily update
Alan Modra [Wed, 8 Feb 2012 23:00:05 +0000 (8 23:00 +0000)]
daily update

12 years ago * gas/i386/x86-64-disp32.d: Fix lable-pattern.
Kai Tietz [Wed, 8 Feb 2012 18:46:11 +0000 (8 18:46 +0000)]
    * gas/i386/x86-64-disp32.d: Fix lable-pattern.

12 years agoImplement Intel Transactional Synchronization Extensions
H.J. Lu [Wed, 8 Feb 2012 18:20:34 +0000 (8 18:20 +0000)]
Implement Intel Transactional Synchronization Extensions

gas/

2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (HLE_PREFIX): New.
(check_hle): Likewise.
(_i386_insn): Add have_hle.
(cpu_arch): Add .hle and .rtm.
(md_assemble): Call check_hle if i.have_hle isn't zero.
(parse_insn): Set i.have_hle to 1 for HLE prefix.
(output_jump): Support up to 2 byte opcode.

* doc/c-i386.texi: Document hle/.hle and rtm/.rtm.

gas/testsuite/

2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/hle-intel.d: New.
* gas/i386/hle.d: Likewise.
* gas/i386/hle.s: Likewise.
* gas/i386/hlebad.l: Likewise.
* gas/i386/hlebad.s: Likewise.
* gas/i386/rtm-intel.d: Likewise.
* gas/i386/rtm.d: Likewise.
* gas/i386/rtm.s: Likewise.
* gas/i386/x86-64-hle-intel.d: Likewise.
* gas/i386/x86-64-hle.d: Likewise.
* gas/i386/x86-64-hle.s: Likewise.
* gas/i386/x86-64-hlebad.l: Likewise.
* gas/i386/x86-64-hlebad.s: Likewise.
* gas/i386/x86-64-rtm-intel.d: Likewise.
* gas/i386/x86-64-rtm.d: Likewise.
* gas/i386/x86-64-rtm.s: Likewise.

* gas/i386/i386.exp: Run hle, hle-intel, hlebad x86-64-hle, rtm,
rtm-intel, x86-64-hle-intel, x86-64-hlebad, x86-64-rtm and
x86-64-rtm-intel.

include/opcode/

2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>

* i386.h (XACQUIRE_PREFIX_OPCODE): New.
(XRELEASE_PREFIX_OPCODE): Likewise.

opcodes/

2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (HLE_Fixup1): New.
(HLE_Fixup2): Likewise.
(HLE_Fixup3): Likewise.
(Ebh1): Likewise.
(Evh1): Likewise.
(Ebh2): Likewise.
(Evh2): Likewise.
(Ebh3): Likewise.
(Evh3): Likewise.
(MOD_C6_REG_7): Likewise.
(MOD_C7_REG_7): Likewise.
(RM_C6_REG_7): Likewise.
(RM_C7_REG_7): Likewise.
(XACQUIRE_PREFIX): Likewise.
(XRELEASE_PREFIX): Likewise.
(dis386): Use Ebh1/Evh1 on add, adc, and, btc, btr, bts,
cmpxchg, dec, inc, neg, not, or, sbb, sub, xor and xadd. Use
Ebh2/Evh2 on xchg.  Use Ebh3/Evh3 on mov.
(reg_table): Use Ebh1/Evh1 on add, adc, and, dec, inc, neg,
not, or, sbb, sub and xor.  Use Ebh3/Evh3 on mov.  Use
MOD_C6_REG_7 and MOD_C7_REG_7.
(mod_table): Add MOD_C6_REG_7 and MOD_C7_REG_7.
(rm_table): Add RM_C6_REG_7 and RM_C7_REG_7.  Add xend and
xtest.
(prefix_name): Handle XACQUIRE_PREFIX and XRELEASE_PREFIX.
(CMPXCHG8B_Fixup): Handle HLE prefix on cmpxchg8b.

* i386-gen.c (cpu_flag_init): Add CPU_HLE_FLAGS and
CPU_RTM_FLAGS.
(cpu_flags): Add CpuHLE and CpuRTM.
(opcode_modifiers): Add HLEPrefixOk.

* i386-opc.h (CpuHLE): New.
(CpuRTM): Likewise.
(HLEPrefixOk): Likewise.
(i386_cpu_flags): Add cpuhle and cpurtm.
(i386_opcode_modifier): Add hleprefixok.

* i386-opc.tbl: Add HLEPrefixOk=3 to mov.  Add HLEPrefixOk to
add, adc, and, btc, btr, bts, cmpxchg, dec, inc, neg, not, or,
sbb, sub, xor and xadd.  Add HLEPrefixOk=2 to xchg with memory
operand.  Add xacquire, xrelease, xabort, xbegin, xend and
xtest.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.

12 years ago * elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too.
Alan Modra [Wed, 8 Feb 2012 10:12:19 +0000 (8 10:12 +0000)]
* elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too.
(_bfd_elf_fix_symbol_flags): When a weakdef is def_regular, clear
the correct h->u.weakdef.

12 years agodaily update
Alan Modra [Tue, 7 Feb 2012 23:00:05 +0000 (7 23:00 +0000)]
daily update

12 years ago * elf.c (elf_find_function): Don't use internal_elf_sym.
Alan Modra [Tue, 7 Feb 2012 07:04:02 +0000 (7 07:04 +0000)]
* elf.c (elf_find_function): Don't use internal_elf_sym.
(_bfd_elf_maybe_function_sym): Likewise.  Replace elf_symbol_type
parameter with asymbol.
* elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
* elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype.
(struct elf_backend_data <maybe_function_sym>): Likewise.

12 years agodaily update
Alan Modra [Mon, 6 Feb 2012 23:00:06 +0000 (6 23:00 +0000)]
daily update

12 years ago * po/sr.po: New Serbian translation.
Nick Clifton [Mon, 6 Feb 2012 13:42:32 +0000 (6 13:42 +0000)]
* po/sr.po: New Serbian translation.
* configure.in (ALL_LINGUAS): Add sr.
* configure: Regenerate.

12 years agodaily update
Alan Modra [Sun, 5 Feb 2012 23:00:05 +0000 (5 23:00 +0000)]
daily update

12 years agodaily update
Alan Modra [Sat, 4 Feb 2012 23:00:06 +0000 (4 23:00 +0000)]
daily update

12 years agoAdd support to GDB for the Renesas rl78 architecture.
Kevin Buettner [Sat, 4 Feb 2012 06:05:50 +0000 (4 06:05 +0000)]
Add support to GDB for the Renesas rl78 architecture.

12 years agodaily update
Alan Modra [Fri, 3 Feb 2012 23:00:06 +0000 (3 23:00 +0000)]
daily update

12 years ago2012-02-03 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 3 Feb 2012 20:01:01 +0000 (3 20:01 +0000)]
2012-02-03  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_relocate_functions::abs8,
Arm_relocate_functions::abs16): Use
Bits::has_signed_unsigned_overflow32.
(Arm_relocate_functions::thm_abs8): Correct range of
overflow check.
* reloc.h (Bits class): Change minimum number of bits from 0 to 1
in assertions.

12 years agodaily update
Alan Modra [Thu, 2 Feb 2012 23:00:06 +0000 (2 23:00 +0000)]
daily update

12 years ago2012-02-02 Doug Kwan <dougkwan@google.com>
Doug Kwan [Thu, 2 Feb 2012 20:21:17 +0000 (2 20:21 +0000)]
2012-02-02  Doug Kwan  <dougkwan@google.com>

* arm.cc (Reloc_stub::stub_type_for_reloc): Use PIC stubs in all
position independent outputs, not just shared objects.

12 years ago2012-02-02 Vidya Praveen (vidya.praveen@atmel.com)
Eric B. Weddington [Thu, 2 Feb 2012 18:02:09 +0000 (2 18:02 +0000)]
2012-02-02  Vidya Praveen (vidya.praveen@atmel.com)

PR bfd/13410
* bfd/elf32-avr.c (elf32_avr_relax_section): Correct the
condition that qualifies the candidates for relaxation.

12 years ago2012-02-02 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 2 Feb 2012 15:36:44 +0000 (2 15:36 +0000)]
2012-02-02  Tristan Gingold  <gingold@adacore.com>

* bfdio.c (real_fopen): Remove unused vms_modes variable.

12 years agobfd/
Tristan Gingold [Thu, 2 Feb 2012 11:55:42 +0000 (2 11:55 +0000)]
bfd/
2012-02-02  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_read_header): Silent uninitialized
variable warning.

gas/
2012-02-02  Tristan Gingold  <gingold@adacore.com>

* config/obj-macho.c (obj_mach_o_zerofill): Silent
uninitialized variable warning.

12 years ago2012-02-02 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 2 Feb 2012 11:35:31 +0000 (2 11:35 +0000)]
2012-02-02  Tristan Gingold  <gingold@adacore.com>

* archive.c (bfd_slurp_armap): Fix thinko in cast.

12 years ago PR gas/13224
Nick Clifton [Thu, 2 Feb 2012 09:26:04 +0000 (2 09:26 +0000)]
PR gas/13224
* config/obj-elf.c (obj_elf_parse_section_letters): Rename 'clone'
to 'is_clone' to avoid shadowing a gloabl.
(obj_elf_section): Likewise.

12 years ago * binutils-all/readelf.n: Add #pass to cope with targets that add
Nick Clifton [Thu, 2 Feb 2012 08:45:03 +0000 (2 08:45 +0000)]
* binutils-all/readelf.n: Add #pass to cope with targets that add
their own notes.

12 years agodaily update
Alan Modra [Wed, 1 Feb 2012 23:00:06 +0000 (1 23:00 +0000)]
daily update

12 years ago PR binutils/13493
Nick Clifton [Wed, 1 Feb 2012 16:49:25 +0000 (1 16:49 +0000)]
PR binutils/13493
* ar.c (ranlib_main): Process --plugin option.
* doc/binutils.texi: Document --plugin support for ranlib.

12 years agooops - accidentally omitted from previous delta.
Nick Clifton [Wed, 1 Feb 2012 16:13:55 +0000 (1 16:13 +0000)]
oops - accidentally omitted from previous delta.

12 years ago PR binutils/13482
Nick Clifton [Wed, 1 Feb 2012 15:44:29 +0000 (1 15:44 +0000)]
PR binutils/13482
* readelf.c (process_corefile_note_segment): Fix off-by-one errors
verifying the contents of a note.

* binutils-all/version.s: New test source file.
* binutils-all/readelf.n: New file: expected readelf output.
* binutils-all/readelf.exp: Add test of .note section contents.

12 years agodaily update
Alan Modra [Tue, 31 Jan 2012 23:00:06 +0000 (31 23:00 +0000)]
daily update

12 years agoMove ELF header entries to elf/ChangeLog
H.J. Lu [Tue, 31 Jan 2012 20:00:16 +0000 (31 20:00 +0000)]
Move ELF header entries to elf/ChangeLog