1. 01 Feb, 2017 1 commit
  2. 15 Aug, 2016 1 commit
  3. 17 Nov, 2013 1 commit
    • H.J. Lu's avatar
      Add R_X86_64_PC32_BND and R_X86_64_PLT32_BND · 01dec1ff
      H.J. Lu authored
      bfd/
      
      	* elf64-x86-64.c (x86_64_elf_howto_table): Add R_X86_64_PC32_BND
      	and R_X86_64_PLT32_BND.
      	(R_X86_64_standard): Replace R_X86_64_RELATIVE64 with
      	R_X86_64_PLT32_BND.
      	(IS_X86_64_PCREL_TYPE): Add R_X86_64_PLT32_BND.
      	(x86_64_reloc_map): Add BFD_RELOC_X86_64_PC32_BND and
      	BFD_RELOC_X86_64_PLT32_BND.
      	(elf_x86_64_check_relocs): Handle R_X86_64_PC32_BND and
      	R_X86_64_PLT32_BND.
      	(elf_x86_64_gc_sweep_hook): Likewise.
      	(elf_x86_64_relocate_section): Likewise.
      	* reloc.c (bfd_reloc_code_real): Add BFD_RELOC_X86_64_PC32_BND
      	and BFD_RELOC_X86_64_PLT32_BND.
      	* bfd-in2.h: Regenerated.
      	* libbfd.h: Likewise.
      
      gas/
      
      	* config/tc-i386.c (reloc): Add an argument, bnd_prefix, to
      	indicate if instruction has the BND prefix.  Return
      	BFD_RELOC_X86_64_PC32_BND instead of BFD_RELOC_32_PCREL if
      	bnd_prefix isn't zero.
      	(output_branch): Pass BFD_RELOC_X86_64_PC32_BND to frag_var
      	if needed.
      	(output_jump): Update reloc call.
      	(output_interseg_jump): Likewise.
      	(output_disp): Likewise.
      	(output_imm): Likewise.
      	(x86_cons_fix_new): Likewise.
      	(lex_got): Add an argument, bnd_prefix, to indicate if
      	instruction has the BND prefix.  Use BFD_RELOC_X86_64_PLT32_BND
      	if needed.
      	(x86_cons): Update lex_got call.
      	(i386_immediate): Likewise.
      	(i386_displacement): Likewise.
      	(md_apply_fix): Handle BFD_RELOC_X86_64_PC32_BND and
      	BFD_RELOC_X86_64_PLT32_BND.
      	(tc_gen_reloc): Likewise.
      	* config/tc-i386-intel.c (i386_operator): Update lex_got call.
      
      gas/testsuite/
      
      	* gas/i386/i386.exp: Run x86-64-mpx-branch-1 and
      	x86-64-mpx-branch-2 on 64-bit ELF targets.
      	* gas/i386/x86-64-mpx-branch-1.d: New file.
      	* gas/i386/x86-64-mpx-branch-1.s: Likewise.
      	* gas/i386/x86-64-mpx-branch-2.d: Likewise.
      	* gas/i386/x86-64-mpx-branch-2.s: Likewise.
      
      include/elf/
      
      	* x86-64.h: Add R_X86_64_PC32_BND and R_X86_64_PLT32_BND.
      
      ld/testsuite/
      
      	* ld-x86-64/mpx.exp: New file.
      	* ld-x86-64/mpx1.out: Likewise.
      	* ld-x86-64/mpx1a.c: Likewise.
      	* ld-x86-64/mpx1a.rd: Likewise.
      	* ld-x86-64/mpx1b.c: Likewise.
      	* ld-x86-64/mpx1c.c: Likewise.
      	* ld-x86-64/mpx1c.rd: Likewise.
      01dec1ff
  4. 15 Nov, 2013 1 commit
  5. 07 Nov, 2013 1 commit
    • Roland McGrath's avatar
      Set CPU type in BFD backend for x86_64-nacl* and i?86-nacl* targets · 26812141
      Roland McGrath authored
      bfd/
      	* archures.c (bfd_mach_i386_nacl): Fix definition so it doesn't
      	collide with bfd_mach_l1om.
      	* bfd-in2.h: Regenerate.
      
      	* elf32-i386.c (elf32_i386_nacl_elf_object_p): New function.
      	(elf_backend_object_p): Use that in elf32-i386-nacl definition.
      	* elf64-x86-64.c (elf64_x86_64_nacl_elf_object_p): New function.
      	(elf_backend_object_p): Use that in elf64-x86-64-nacl definition.
      	(elf32_x86_64_nacl_elf_object_p): New function.
      	(elf_backend_object_p): Use that in elf32-x86-64-nacl definition.
      
      binutils/
      	* objdump.c (dump_dwarf): Grok bfd_mach_x86_64_nacl and
      	bfd_mach_x64_32_nacl as equivalent to bfd_mach_x86_64.
      
      ld/testsuite/
      	* ld-x86-64/x86-64.exp (mixed1, mixed2): Loosen error string match
      	so it accepts "i386:nacl" in place of "i386".
      	* ld-x86-64/ilp32-2.d: Likewise.
      	* ld-x86-64/ilp32-3.d: Likewise.
      	* ld-x86-64/lp64-2.d: Likewise.
      	* ld-x86-64/lp64-3.d: Likewise.
      
      (cherry picked from commit 64b384e1e821cedccefa24f6d5bb82d353546ca1)
      26812141
  6. 26 Aug, 2013 1 commit
    • Roland McGrath's avatar
      bfd/ · 1098fd41
      Roland McGrath authored
      	* archures.c (bfd_mach_i386_nacl, bfd_mach_i386_i386_nacl): New macros.
      	(bfd_mach_x86_64_nacl, bfd_mach_x64_32_nacl): New macros.
      	* cpu-i386.c (bfd_arch_i386_onebyte_nop_fill): New function.
      	(bfd_i386_nacl_arch): New variable.
      	(bfd_x86_64_nacl_arch, bfd_x64_32_nacl_arch): New variables.
      	(bfd_x64_32_arch_intel_syntax): Link them into the list.
      	* bfd-in2.h: Regenerate.
      
      ld/
      	* emulparams/elf_i386_nacl.sh (ARCH): Set to i386:nacl.
      	* emulparams/elf_x86_64_nacl.sh (ARCH): Set to i386:x86-64:nacl.
      	* emulparams/elf32_x86_64_nacl.sh (ARCH): Set to i386:x64-32:nacl.
      
      ld/testsuite/
      	* ld-x86-64/x86-64.exp (Mixed x86_64 and i386 input test 1):
      	Loosen string match to admit i386:x86-64*.
      	(Mixed x86_64 and i386 input test 2): Likewise.
      	* ld-x86-64/ilp32-2.d: Likewise.
      	* ld-x86-64/ilp32-3.d: Likewise.
      	* ld-x86-64/lp64-2.d: Likewise.
      	* ld-x86-64/lp64-3.d: Likewise.
      	* ld-x86-64/ia32-2.d: Likewise, and i386.* too.
      	* ld-x86-64/ia32-3.d: Likewise.
      1098fd41
  7. 18 Jul, 2013 1 commit
    • Nick Clifton's avatar
      * elf32-arm.c (elf32_arm_stub_long_branch_arm_nacl): New variable. · 7a89b94e
      Nick Clifton authored
      	(elf32_arm_stub_long_branch_arm_nacl_pic): New variable.
      	(arm_build_one_stub): Increase MAXRELOCS to 3.
      	(arm_type_of_stub): Use them if GLOBALS->nacl_p.
      	(struct elf32_arm_link_hash_table): Give add_stub_section member's
      	pointee type a third argument.
      	(elf32_arm_create_or_find_stub_sec): Update caller.
      	(elf32_arm_size_stubs): Update argument type.
      	* bfd-in.h (elf32_arm_size_stubs): Update decl.
      	* bfd-in2.h: Regenerate.
      	* libbfd.h: Regenerate.
      
      	* emultempl/armelf.em (elf32_arm_add_stub_section): Take third
      	argument ALIGNMENT_POWER, use it instead of constant 3.
      
      	* ld-arm/farcall-arm-nacl.d: New file.
      	* ld-arm/farcall-arm-nacl-pic.d: New file.
      	* ld-arm/farcall-data-nacl.d: New file.
      	* ld-arm/arm-elf.exp (armeabitests_common): Add extra element to
      	"action" lists for those cases to use a different dump file for NaCl
      	targets.
      	Massage $armeabitests_common to drop the extra element or the one
      	before it, depending on [istarget "arm*-*-nacl*"].
      
      	* ld-arm/arm-elf.exp (armelftests_common): Move all "Cortex-A8
      	erratum fix", Thumb-only and interworking cases to ...
      	(armelftests_nonacl): ... here.
      	(armeabitests_common): Move all "erratum 760522 fix", Thumb-only
      	and interworking cases to ...
      	(armeabitests_nonacl): ... here.
      7a89b94e
  8. 05 Jul, 2013 1 commit
    • Andreas Krebbel's avatar
      2013-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> · fb798c50
      Andreas Krebbel authored
      opcodes/
      	    * s390-opc.c (J12_12, J24_24): New macros.
      	    (INSTR_MII_UPI): Rename to INSTR_MII_UPP.
      	    (MASK_MII_UPI): Rename to MASK_MII_UPP.
      	    * s390-opc.txt: Rename MII_UPI to MII_UPP for bprp instruction.
      
      include/elf/
      	    * s390.h: Add new relocs R_390_PC12DBL, R_390_PLT12DBL,
      	    R_390_PC24DBL, and R_390_PLT24DBL.
      
      gas/testsuite/
      	    * gas/s390/zarch-zEC12.s: Change bprp second operand and add
      	    variants requiring relocations.
      	    * gas/s390/zarch-zEC12.d: Likewise.
      
      gas/
      	    * config/tc-s390.c (md_gather_operands, md_apply_fix): Support new
      	    relocs.
      bfd/
      	    * elf32-s390.c: Add new relocation definitions R_390_PC12DBL,
      	    R_390_PLT12DBL, R_390_PC24DBL, and R_390_PLT24DBL.
      	    (elf_s390_reloc_type_lookup, elf_s390_check_relocs)
      	    (elf_s390_gc_sweep_hook, elf_s390_relocate_section): Support new
      	    relocations.
      	    * elf64-s390.c: See elf32-s390.c
      	    * bfd-in2.h: Add new relocs to enum bfd_reloc_code_real.
      	    * libbfd.h: Add new reloc strings.
      fb798c50
  9. 26 Jun, 2013 2 commits
    • Yufeng Zhang's avatar
      [AArch64, ILP32] 3/6 Support for ELF32 relocs and refactor reloc handling · a6bb11b2
      Yufeng Zhang authored
      bfd/
      
      	* bfd-in2.h: Re-generated.
      	* elfnn-aarch64.c (HOWTO64, HOWTO32): New define.
      	(IS_AARCH64_TLS_RELOC): Change to be based on the
      	bfd reloc enumerators.
      	(IS_AARCH64_TLSDESC_RELOC): Likewise.
      	(PG, PG_OFFSET): Cast literal to bfd_vma.
      	(elf64_aarch64_howto_table): Removed.
      	(elf64_aarch64_howto_dynrelocs): Removed.
      	(elf64_aarch64_tls_howto_table): Removed.
      	(elf64_aarch64_tlsdesc_howto_table): Removed.
      	(elfNN_aarch64_howto_table): New table to host all howto entires..
      	(R_AARCH64_*): Replaced by AARCH64_R (*) and AARCH64_R_STR (*).
      	(elfNN_aarch64_bfd_reloc_from_howto): New function.
      	(elfNN_aarch64_bfd_reloc_from_type): Ditto.
      	(struct elf_aarch64_reloc_map): New.
      	(elf_aarch64_reloc_map): New table.
      	(elfNN_aarch64_howto_from_bfd_reloc): New function.
      	(elfNN_aarch64_howto_from_type): Update to look up the new table
      	elfNN_aarch64_howto_table.
      	(struct elf64_aarch64_reloc_map): Remove.
      	(elf64_aarch64_reloc_map): Remove.
      	(elfNN_aarch64_reloc_type_lookup): Change to call
      	elfNN_aarch64_howto_from_bfd_reloc.
      	(elfNN_aarch64_reloc_name_lookup): Change to look up the new table
      	elfNN_aarch64_howto_table.
      	(aarch64_resolve_relocation): Refactor to switch on the bfd
      	reloc enumerators.
      	(bfd_elf_aarch64_put_addend): Likewise.
      	(elfNN_aarch64_final_link_relocate): Likewise.
      	(aarch64_tls_transition_without_check): Likewise.
      	(aarch64_reloc_got_type): Likewise.
      	(aarch64_can_relax_tls): Likewise.
      	(aarch64_tls_transition): Likewise.
      	(elfNN_aarch64_tls_relax): Likewise.
      	(elfNN_aarch64_final_link_relocate): Likewise.
      	(elfNN_aarch64_relocate_section): Likewise.
      	(elfNN_aarch64_gc_sweep_hook): Likewise.
      	(elfNN_aarch64_check_relocs): Likewise.
      	(aarch64_tls_transition): Change to return a bfd reloc enumerator.
      	* libbfd.h: Re-generated.
      	* reloc.c: Re-order the AArch64 bfd reloc enumerators.
      	(BFD_RELOC_AARCH64_RELOC_START)
      	(BFD_RELOC_AARCH64_RELOC_END)
      	(BFD_RELOC_AARCH64_LD_GOT_LO12_NC)
      	(BFD_RELOC_AARCH64_LD32_GOT_LO12_NC)
      	(BFD_RELOC_AARCH64_TLSDESC_LD_LO12_NC)
      	(BFD_RELOC_AARCH64_TLSDESC_LD32_LO12_NC)
      	(BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_LO12_NC)
      	(BFD_RELOC_AARCH64_TLSIE_LD32_GOTTPREL_LO12_NC)
      	(BFD_RELOC_AARCH64_IRELATIVE): New relocs.
      
      gas/
      
      	* config/tc-aarch64.c (reloc_table): Replace
      	BFD_RELOC_AARCH64_LD64_GOT_LO12_NC with
      	BFD_RELOC_AARCH64_LD_GOT_LO12_NC; likewise to
      	BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC and
      	BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_LO12_NC.
      	(md_apply_fix): Handle BFD_RELOC_AARCH64_LD_GOT_LO12_NC,
      	BFD_RELOC_AARCH64_LD32_GOT_LO12_NC,
      	BFD_RELOC_AARCH64_TLSDESC_LD_LO12_NC,
      	BFD_RELOC_AARCH64_TLSDESC_LD32_LO12_NC,
      	BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_LO12_NC and
      	BFD_RELOC_AARCH64_TLSIE_LD32_GOTTPREL_LO12_NC.
      	(aarch64_force_relocation): Likewise.
      
      gas/testsuite/
      
      	* gas/aarch64/ilp32-basic.d: New file.
      	* gas/aarch64/ilp32-basic.s: New file.
      
      include/elf/
      
      	* aarch64.h: Add ELF32 reloc codes and remove fake ELF64 ones.
      	(R_AARCH64_IRELATIVE): New reloc.
      a6bb11b2
    • Yufeng Zhang's avatar
      [AArch64, ILP32] 2/6 Parametrize elfnn-aarch64.c and add basic support in ld · cec5225b
      Yufeng Zhang authored
      and gas.
      
      bfd/
      
      	* Makefile.am (BFD64_BACKENDS): Add elf32-aarch64.lo.
      	(BUILD_CFILES): Add elf32-aarch64.c.
      	(elf32-aarch64.c): New rule for generating from elfnn-aarch64.c.
      	* Makefile.in: Re-generated.
      	* archures.c (bfd_mach_aarch64_ilp32): New define.
      	* bfd-in.h (bfd_elf32_aarch64_init_maps): New declaration.
      	(bfd_elf32_aarch64_set_options): Ditto.
      	(elf32_aarch64_setup_section_lists): Ditto.
      	(elf32_aarch64_next_input_section): Ditto.
      	(elf32_aarch64_size_stubs): Ditto.
      	(elf32_aarch64_build_stubs): Ditto.
      	* bfd-in2.h: Re-generated.
      	* config.bfd (aarch64-*-elf): Add bfd_elf32_littleaarch64_vec
      	and bfd_elf32_bigaarch64_vec.
      	(aarch64-*-linux*): Likewise.
      	(aarch64_be-*-elf): Likewise.
      	(aarch64_be-*-linux*): Likewise.
      	* configure.in (bfd_elf32_bigaarch64_vec)
      	(bfd_elf32_littleaarch64_vec): New.
      	* configure: Re-generated.
      	* cpu-aarch64.c (compatible): Don't allow mixing ilp32 objects with
      	lp64 ones.
      	(bfd_aarch64_arch_ilp32): New.
      	(bfd_aarch64_arch): Link to bfd_aarch64_arch_ilp32.
      	* elfnn-aarch64.c (ARCH_SIZE): New define.
      	(AARCH64_R, AARCH64_R_STR, LOG_FILE_ALIGN): New defines.
      	(GOT_ENTRY_SIZE): Re-define as (ARCH_SIZE / 8).
      	(elf64_aarch64_*): Rename to elfNN_aarch64_*.
      	(ELF64_R_*): Rename to ELFNN_R_*.
      	Plus other paramaterization.
      	* targets.c (bfd_elf32_bigaarch64_vec, bfd_elf32_littleaarch64_vec):
      	New declarations.
      	(_bfd_target_vector): Add bfd_elf32_bigaarch64_vec and
      	bfd_elf32_littleaarch64_vec.
      
      gas/
      
      	* config/tc-aarch64.c (ilp32_p): New static variable.
      	(elf64_aarch64_target_format): Return the target according to the
      	value of 'ilp32_p'.
      	(md_begin): Determine 'mach' according to the value of 'ilp32_p'.
      	(aarch64_opts): Add support for options '-milp32' and '-mlp64'.
      	(aarch64_dwarf2_addr_size): New function.
      	* config/tc-aarch64.h (aarch64_dwarf2_addr_size): New declaration.
      	(DWARF2_ADDR_SIZE): New define.
      
      ld/
      
      	* Makefile.am (ALL_64_EMULATION_SOURCES): Add eaarch64elf32.c.
      	(eaarch64elf32.c): New dependency and rule.
      	* Makefile.in: Re-generated.
      	* configure.tgt (aarch64-*-elf): Add aarch64elf32.
      	(aarch64_be-*-elf, aarch64_be-*-linux*, aarch64-*-linux*): Likewise.
      	* emulparams/aarch64elf32.sh: New file.
      cec5225b
  10. 20 Jun, 2013 1 commit
    • Yufeng Zhang's avatar
      bfd/ · b9eead84
      Yufeng Zhang authored
      	* bfd-in.h (bfd_elf64_aarch64_set_options): Add 'extern'.
      	* bfd-in2.h: Re-generated.
      	* elf64-aarch64.c (RELOC_SECTION): Removed.
      	(SWAP_RELOC_IN, SWAP_RELOC_OUT): Ditto.
      	(AARCH64_ELF_OS_ABI_VERSION): Ditto.
      	(elf64_aarch64_link_hash_traverse): Ditto.
      	(elf64_aarch64_size_stubs): Change 'Aarch64' to 'AArch64' in the
      	comment.
      
      opcodes/
      
      	* aarch64-dis.c (EMBEDDED_ENV): Remove the check on it.
      	(SYMTAB_AVAILABLE): Removed.
      	(#include "elf/aarch64.h): Ditto.
      b9eead84
  11. 30 May, 2013 1 commit
    • Catherine Moore's avatar
      2013-05-30 Paul Brook <paul@codesourcery.com> · 067ec077
      Catherine Moore authored
      	bfd/
      	* bfd-in2.h: Regenerate.
      	* elf32-mips.c (elf_mips_eh_howto): New.
      	(bfd_elf32_bfd_reloc_type_lookup ): Support BFD_RELOC_MIPS_EH.
      	(bfd_elf32_bfd_reloc_name_lookup): Likewise.
      	(mips_elf32_rtype_to_howto): Support R_MIPS_EH.
      	* elf64-mips.c (elf_mips_eh_howto): New.
      	(bfd_elf64_bfd_reloc_type_lookup): Support BFD_RELOC_MIPS_EH.
      	(bfd_elf64_bfd_reloc_name_lookup): Likewise.
      	(mips_elf64_rtype_to_howto): Support R_MIPS_EH.
      	* libbfd.h: Regenerate.
      	* reloc.c (BFD_RELOC_MIPS_EH): New.
      
      	gas/
      	* config/tc-mips.c (md_apply_fix): Support BFD_RELOC_MIPS_EH.
      
      	include/elf
      	* mips.h (R_MIPS_EH): New.
      067ec077
  12. 29 May, 2013 1 commit
    • Nick Clifton's avatar
      * dwarf2.c (struct dwarf2_debug): Add fields for handling · 95e34fb4
      Nick Clifton authored
      	alternate debug info source.
      	(dwarf_debug_sections): Add entries for alternate .debug_str and
      	.debug_info sections.
      	(dwarf_debug_section_enum): Likewise.
      	(read_alt_indirect_string): New function.  Handles a
      	DW_FORM_GNU_strp_alt attribute.
      	(read_alt_indirect_ref): New function.  Handles a
      	DW_FORM_GNU_ref_alt attribute.
      	(read_attribute_value): Process DW_FORM_GNU_ref_alt and
      	DW_FORM_GNU_strp_alt.
      	(find_abstract_instance_name): Handle DW_FORM_GNU_ref_alt
      	attributes.
      	(_bfd_dwarf2_cleanup_debug_info): Free alternate debug info
      	sources.
      	* opncls.c (GNU_DEBUGALTLINK): Define.
      	(bfd_get_alt_debug_link_info): New function.
      	(separate_alt_debug_file_exists): New function.
      	(find_separate_debug_file): Add parameters for fetch and check
      	functions.
      	(bfd_follow_gnu_debugaltlink): New function.
      	* bfd-in2.h: Regenerate.
      95e34fb4
  13. 28 May, 2013 1 commit
  14. 02 May, 2013 1 commit
    • Nick Clifton's avatar
      * archures.c: Add some more MSP430 machine numbers. · 13761a11
      Nick Clifton authored
      	* config.bfd (msp430): Define targ_selvecs.
      	* configure.in: Add bfd_elf32_msp430_ti_vec.
      	* cpu-msp430.c: Add some more MSP430 machine numbers.
      	* elf32-msp430.c Add support for MSP430X relocations.
      	Add support for TI compiler generated relocations.
      	Add support for sym_diff relocations.
      	Add support for relaxing out of range short branches into long
      	branches.
      	Add support for MSP430 attribute section.
      	* reloc.c: Add MSP430X relocations.
      	* targets.c: Add bfd_elf32_msp430_ti_vec.
      	* bfd-in2.h: Regenerate.
      	* configure: Regenerate.
      	* libbfd.h: Regenerate.
      
      	* readelf.c: Add support for MSP430X architecture.
      
      	* readelf.exp: Expect -wi test to fail for the MSP430.
      
      	* config/tc-msp430.c: Add support for the MSP430X architecture.
      	Add code to insert a NOP instruction after any instruction that
      	might change the interrupt state.
      	Add support for the LARGE memory model.
      	Add code to initialise the .MSP430.attributes section.
      	* config/tc-msp430.h: Add support for the MSP430X architecture.
      	* doc/c-msp430.texi: Document the new -mL and -mN command line
      	options.
      	* NEWS: Mention support for the MSP430X architecture.
      
      	* gas/all/gas.exp: Skip the DIFF1 test for the MSP430.
      	Expect the FORWARD test to pass for the MSP430.
      	Skip the REDEF tests for the MSP430.
      	Expect the 930509A test to fail for the MSP430.
      	* gas/all/sleb128-4.d: Skip for the MSP430.
      	* gas/elf/elf.exp: Set target_machine to msp430 for the MSP430.
      	Skip the EHOPT0 test for the MSP430.
      	Skip the REDEF and EQU-RELOC tests for the MSP430.
      	* gas/elf/section2.e-msp430: New file.
      	* gas/lns/lns-big-delta.d: Remove expectation of 20-bit
      	addresses.
      	* gas/lns/lns.exp: Use alternate LNS COMMON test for the MSP430.
      	* gas/msp430/msp430x.s: New test.
      	* gas/msp430/msp430x.d: Expected disassembly.
      	* gas/msp430/msp430.exp: Run new test.
      	* gas/msp430/opcode.d: Update expected disassembly.
      
      	* msp430.h: Add MSP430X relocs.
      	Add some more MSP430 machine numbers.
      	Add values used by .MSP430.attributes section.
      
      	* msp430.h: Add patterns for MSP430X instructions.
      
      	* Makefile.am: Add emsp430X.c
      	* Makefine.in: Regenerate.
      	* configure.tgt (msp430): Add msp430X emulation.
      	* ldmain.c (multiple_definition): Only disable relaxation if it
      	was enabled by the user.
      	* ldmain.h (RELAXATION_ENABLED_BY_USER): New macro.
      	* emulparams/msp430all.sh: Add support for MSP430X.
      	* emultempl/generic.em: (before_parse): Enable relaxation for the
      	MSP430.
      	* scripttempl/msp430.sc: Reorganize sections.  Add .rodata
      	section.
      	* scripttempl/msp430_3.sc: Likewise.
      	* NEWS: Mention support for MSP430X.
      
      	* ld-elf/flags1.d: Expect this test to pass on the MSP430.
      	* ld-elf/init-fini-arrays.d: Expect this test to fail on the
      	MSP430.
      	* ld-elf/merge.d: Expect this test to pass on the MSP430.
      	* ld-elf/sec64k.exp: Skip these tests for the MSP430.
      	* ld-gc/pr13683.d: Expect this test to fail on the MSP430.
      	* ld-srec/srec.exp: Expect these tests to fail on the MSP430.
      	* ld-undefined/undefined.exp: Expect the UNDEFINED LINE test to
      	fail on the MSP430.
      
      	* msp430-dis.c: Add support for MSP430X instructions.
      13761a11
  15. 04 Apr, 2013 1 commit
  16. 21 Mar, 2013 1 commit
    • Nick Clifton's avatar
      * elf32-h8300 (h8_relax_section): Add new relaxation of mov · 81f5558e
      Nick Clifton authored
      	@(disp:32,ERx) to mov @(disp:16,ERx).
      	(R_H8_DISP32A16): New reloc.
      	Comments added and corrected.
      	* reloc.c (BFD_RELOC_H8_DISP32A16): New reloc.
      	* bfd-in2.h: Regenerate.
      	* libbfd.h: Regenerate.
      
      	* ld.texinfo (H8/300): Add description of relaxation of
      	mov @(disp:32,ERx) to mov @(disp:16,ERx).
      
      	* ld-h8300/h8300.exp: Add new relax-7 test on ELF.
      	* ld-h8300/relax-2.s: Add other direction and .w/.l variants of
      	mov insns.
      	* ld-h8300/relax-2.d: Update expected disassembly.
      	* ld-h8300/relax-7a.s: New: tests for mov @(disp:32,ERx) -> mov
      	@(disp:16,ERx).
      	* ld-h8300/relax-7b.s: New: Likewise.
      	* ld-h8300/relax-7.d: New: expected disassembly.
      
      	* config/tc-h8300.c (do_a_fix_imm): Add relaxation of mov
      	@(disp:32,ERx) to mov @(disp:16,ERx) insns by new reloc
      	R_H8_DISP32A16.
      	* config/tc-h8300.h: Remove duplicated defines.
      81f5558e
  17. 14 Mar, 2013 1 commit
    • Tom Tromey's avatar
      gdb · cc0ea93c
      Tom Tromey authored
      	* symfile.c (get_debug_link_info): Remove.
      	(find_separate_debug_file_by_debuglink): Use
      	bfd_get_debug_link_info.
      bfd
      	* opncls.c (bfd_get_debug_link_info): Rename from
      	get_debug_link_info.  Export.  Update comment.
      	(find_separate_debug_file): Update.
      	* bfd-in2.h: Rebuild.
      cc0ea93c
  18. 27 Feb, 2013 1 commit
    • DJ Delorie's avatar
      * reloc.c (BFD_RELOC_RL78_CODE): Add. · 4107ae22
      DJ Delorie authored
      * libbfd.h: Regenerate.
      * bfd-in2.h: Regenerate.
      * elf32-rl78.c (rl78_elf_relocate_section): Handle weak code
      references in compuated relocs.
      
      * config/tc-rl78.c (reloc_function): Add %code -> BFD_RELOC_RL78_CODE.
      (rl78_op): Handle %code().
      (rl78_cons_fix_new): Likewise, but ignore for 20-bit operands.
      (tc_gen_reloc): Likwise; convert to a computed reloc.
      (md_apply_fix): Likewise.
      4107ae22
  19. 06 Feb, 2013 1 commit
    • Sandra Loosemore's avatar
      2013-02-06 Sandra Loosemore <sandra@codesourcery.com> · 36591ba1
      Sandra Loosemore authored
                  Andrew Jenner <andrew@codesourcery.com>
      
      	Based on patches from Altera Corporation.
      
      	bfd/
      	* Makefile.am (ALL_MACHINES): Add cpu-nios2.lo.
      	(ALL_MACHINES_CFILES): Add cpu-nios2.c.
      	(BFD_BACKENDS): Add elf32-nios2.lo.
      	(BFD32_BACKENDS_CFILES): Add elf32-nios2.c.
      	* Makefile.in: Regenerated.
      	* configure.in: Add entries for bfd_elf32_bignios2_vec and
      	bfd_elf32_littlenios2_vec.
      	* configure: Regenerated.
      	* config.bfd: Add cases for nios2.
      	* archures.c (enum bfd_architecture): Add bfd_arch_nios2.
      	(bfd_mach_nios2): Define.
      	(bfd_nios2_arch): Declare.
      	(bfd_archures_list): Add bfd_nios2_arch.
      	* targets.c (bfd_elf32_bignios2_vec): Declare.
      	(bfd_elf32_littlenios2_vec): Declare.
      	(_bfd_target_vector): Add entries for bfd_elf32_bignios2_vec and
      	bfd_elf32_littlenios2_vec.
      	* elf-bfd.h (enum elf_target_id): Add NIOS2_ELF_DATA.
      	* reloc.c (enum bfd_reloc_code_real): Add Nios II relocations.
      	* bfd-in2.h: Regenerated.
      	* libbfd.h: Regenerated.
      	* cpu-nios2.c: New file.
      	* elf32-nios2.c: New file.
      
      	opcodes/
      	* Makefile.am (TARGET_LIBOPCODES_CFILES): Add nios2-dis.c and
      	nios2-opc.c.
      	* Makefile.in: Regenerated.
      	* configure.in: Add case for bfd_nios2_arch.
      	* configure: Regenerated.
      	* disassemble.c (ARCH_nios2): Define.
      	(disassembler): Add case for bfd_arch_nios2.
      	* nios2-dis.c: New file.
      	* nios2-opc.c: New file.
      
      	include/
      	* dis-asm.h (print_insn_big_nios2): Declare.
      	(print_insn_little_nios2): Declare.
      
      	include/elf
      	* nios2.h: New file.
      
      	include/opcode/
      	* nios2.h: New file.
      
      	gas/
      	* Makefile.am (TARGET_CPU_CFILES): Add config/tc-nios2.c.
      	(TARGET_CPU_HFILES): Add config/tc-nios2.h.
      	* Makefile.in: Regenerated.
      	* configure.tgt: Add case for nios2*-linux*.
      	* config/obj-elf.c: Conditionally include elf/nios2.h.
      	* config/tc-nios2.c: New file.
      	* config/tc-nios2.h: New file.
      	* doc/Makefile.am (CPU_DOCS): Add c-nios2.texi.
      	* doc/Makefile.in: Regenerated.
      	* doc/all.texi: Set NIOSII.
      	* doc/as.texinfo (Overview): Add Nios II options.
      	(Machine Dependencies): Include c-nios2.texi.
      	* doc/c-nios2.texi: New file.
      	* NEWS: Note Altera Nios II support.
      
      	gas/testsuite/
      	* gas/nios2/add.d: New.
      	* gas/nios2/add.s: New.
      	* gas/nios2/align_fill.d: New.
      	* gas/nios2/align_fill.s: New.
      	* gas/nios2/align_text.d: New.
      	* gas/nios2/align_text.s: New.
      	* gas/nios2/and.d: New.
      	* gas/nios2/and.s: New.
      	* gas/nios2/branch.d: New.
      	* gas/nios2/branch.s: New.
      	* gas/nios2/break.d: New.
      	* gas/nios2/break.s: New.
      	* gas/nios2/bret.d: New.
      	* gas/nios2/bret.s: New.
      	* gas/nios2/cache.d: New.
      	* gas/nios2/cache.s: New.
      	* gas/nios2/call26.d: New.
      	* gas/nios2/call26.s: New.
      	* gas/nios2/call.d: New.
      	* gas/nios2/call.s: New.
      	* gas/nios2/cmp.d: New.
      	* gas/nios2/cmp.s: New.
      	* gas/nios2/comments.d: New.
      	* gas/nios2/comments.s: New.
      	* gas/nios2/complex.d: New.
      	* gas/nios2/complex.s: New.
      	* gas/nios2/ctl.d: New.
      	* gas/nios2/ctl.s: New.
      	* gas/nios2/custom.d: New.
      	* gas/nios2/custom.s: New.
      	* gas/nios2/etbt.d: New.
      	* gas/nios2/etbt.s: New.
      	* gas/nios2/flushda.d: New.
      	* gas/nios2/flushda.s: New.
      	* gas/nios2/illegal.l: New.
      	* gas/nios2/illegal.s: New.
      	* gas/nios2/jmp.d: New.
      	* gas/nios2/jmp.s: New.
      	* gas/nios2/ldb.d: New.
      	* gas/nios2/ldb.s: New.
      	* gas/nios2/ldh.d: New.
      	* gas/nios2/ldh.s: New.
      	* gas/nios2/ldw.d: New.
      	* gas/nios2/ldw.s: New.
      	* gas/nios2/lineseparator.d: New.
      	* gas/nios2/lineseparator.s: New.
      	* gas/nios2/mov.d: New.
      	* gas/nios2/movia.d: New.
      	* gas/nios2/movia.s: New.
      	* gas/nios2/movi.d: New.
      	* gas/nios2/movi.s: New.
      	* gas/nios2/mov.s: New.
      	* gas/nios2/mul.d: New.
      	* gas/nios2/mul.s: New.
      	* gas/nios2/nios2.exp: New.
      	* gas/nios2/nor.d: New.
      	* gas/nios2/nor.s: New.
      	* gas/nios2/or.d: New.
      	* gas/nios2/or.s: New.
      	* gas/nios2/ret.d: New.
      	* gas/nios2/ret.s: New.
      	* gas/nios2/rol.d: New.
      	* gas/nios2/rol.s: New.
      	* gas/nios2/rotate.d: New.
      	* gas/nios2/rotate.s: New.
      	* gas/nios2/stb.d: New.
      	* gas/nios2/stb.s: New.
      	* gas/nios2/sth.d: New.
      	* gas/nios2/sth.s: New.
      	* gas/nios2/stw.d: New.
      	* gas/nios2/stw.s: New.
      	* gas/nios2/sub.d: New.
      	* gas/nios2/sub.s: New.
      	* gas/nios2/sync.d: New.
      	* gas/nios2/sync.s: New.
      	* gas/nios2/trap.d: New.
      	* gas/nios2/trap.s: New.
      	* gas/nios2/tret.d: New.
      	* gas/nios2/tret.s: New.
      	* gas/nios2/warn_noat.l: New.
      	* gas/nios2/warn_noat.s: New.
      	* gas/nios2/warn_nobreak.l: New.
      	* gas/nios2/warn_nobreak.s: New.
      	* gas/nios2/xor.d: New.
      	* gas/nios2/xor.s: New.
      
      	ld/
      	* Makefile.am (enios2elf.c): New rule.
      	* Makefile.in: Regenerated.
      	* configure.tgt: Add case for nios2*-*-*.
      	* emulparams/nios2elf.sh: New file.
      	* NEWS: Note Altera Nios II support.
      
      	ld/testsuite/
      	* ld-nios2/emit-relocs-1a.s: New.
      	* ld-nios2/emit-relocs-1b.s: New.
      	* ld-nios2/emit-relocs-1.d: New.
      	* ld-nios2/emit-relocs-1.ld: New.
      	* ld-nios2/gprel.d: New.
      	* ld-nios2/gprel.s: New.
      	* ld-nios2/hilo16.d: New.
      	* ld-nios2/hilo16.s: New.
      	* ld-nios2/hilo16_symbol.s: New.
      	* ld-nios2/imm5.d: New.
      	* ld-nios2/imm5.s: New.
      	* ld-nios2/imm5_symbol.s: New.
      	* ld-nios2/nios2.exp: New.
      	* ld-nios2/pcrel16.d: New.
      	* ld-nios2/pcrel16_label.s: New.
      	* ld-nios2/pcrel16.s: New.
      	* ld-nios2/relax_callr.d: New.
      	* ld-nios2/relax_callr.ld: New.
      	* ld-nios2/relax_callr.s: New.
      	* ld-nios2/relax_cjmp.d: New.
      	* ld-nios2/relax_cjmp.s: New.
      	* ld-nios2/relax_jmp.ld: New.
      	* ld-nios2/relax_section.d: New.
      	* ld-nios2/relax_section.s: New.
      	* ld-nios2/relax_ujmp.d: New.
      	* ld-nios2/relax_ujmp.s: New.
      	* ld-nios2/reloc.d: New.
      	* ld-nios2/reloc.s: New.
      	* ld-nios2/reloc_symbol.s: New.
      	* ld-nios2/s16.d: New.
      	* ld-nios2/s16.s: New.
      	* ld-nios2/s16_symbol.s: New.
      	* ld-nios2/u16.d: New.
      	* ld-nios2/u16.s: New.
      	* ld-nios2/u16_symbol.s: New.
      	* ld-elf/indirect.exp: Skip on targets that don't support
      	-shared -fPIC.
      	* ld-elfcomm/elfcomm.exp: Build with -G0 for nios2.
      	* ld-plugin/lto.exp: Skip shared library tests on targets that
      	don't support them.  Skip execution tests on non-native targets.
      
      	binutils/
      	* readelf.c: Include elf/nios2.h.
      	(dump_relocations): Add case for EM_ALTERA_NIOS2.
      	(get_nios2_dynamic_type): New.
      	(get_dynamic_type): Add case for EM_ALTERA_NIOS2.
      	(is_32bit_abs_reloc): Fix EM_ALTERA_NIOS2 case.
      	(is_16bit_abs_reloc): Likewise.
      	(is_none_reloc): Add EM_ALTERA_NIOS2 and EM_NIOS32 cases.
      	* NEWS: Note Altera Nios II support.
      	* MAINTAINERS: Add Nios II maintainers.
      36591ba1
  20. 26 Jan, 2013 1 commit
    • Alan Modra's avatar
      * bfd.c (struct bfd_preserve, bfd_preserve_save, bfd_preserve_restore, · c9ba0c87
      Alan Modra authored
      	bfd_preserve_finish): Move to..
      	* format.c: ..here, splitting out..
      	(bfd_reinit): ..this.  New function.
      	(bfd_check_format_matches): Use bfd_preserve_save/restore to
      	keep bfd state for a match.
      	* elfcode.h (elf_object_p): Don't use bfd_preserve_save/restore.
      	* elfcore.h (elf_core_file_p): Likewise.
      	* mach-o.c (bfd_mach_o_header_p): Likewise.
      	* pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
      	* xsym.c (bfd_sym_object_p): Likewise.
      	* mmo.c (mmo_scan): Clear abfd->symcount.
      	* opncls.c (_bfd_new_bfd): Use a smaller section hash table.
      	* section.c (bfd_section_list_clear): Clear section_htab.count.
      	* bfd-in2.h: Regenerate.
      c9ba0c87
  21. 24 Jan, 2013 1 commit
  22. 16 Jan, 2013 1 commit
    • H.J. Lu's avatar
      Add x86 size relocation support to bfd · 1788fc08
      H.J. Lu authored
      	* bfd-in2.h: Regenerated.
      	* libbfd.h: Likewise.
      
      	* elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry.
      	(elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32.
      	(elf_i386_check_relocs): Handle R_386_SIZE32.
      	(elf_i386_gc_sweep_hook): Likewise.
      	(elf_i386_relocate_section): Likewise.
      
      	* elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32
      	and R_X86_64_SIZE64 entries.
      	(x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64,
      	(elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32.
      	(elf_x86_64_reloc_name_lookup): Likewise.
      	(elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and
      	R_X86_64_SIZE64.
      	(elf_x86_64_gc_sweep_hook): Likewise.
      	(elf_x86_64_relocate_section): Likewise.
      
      	* reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and
      	BFD_RELOC_SIZE64.
      1788fc08
  23. 10 Jan, 2013 2 commits
    • H.J. Lu's avatar
      Remove trailing white spaces in bfd · 68ffbac6
      H.J. Lu authored
      	* aout0.c: Remove trailing white spaces.
      	* archive.c: Likewise.
      	* archures.c: Likewise.
      	* bfd-in.h: Likewise.
      	* bfd-in2.h: Likewise.
      	* coff-alpha.c: Likewise.
      	* coff-i860.c: Likewise.
      	* coff-mips.c: Likewise.
      	* coff-ppc.c: Likewise.
      	* coff-tic80.c: Likewise.
      	* coff-x86_64.c: Likewise.
      	* coff-z80.c: Likewise.
      	* coffcode.h: Likewise.
      	* coffgen.c: Likewise.
      	* cofflink.c: Likewise.
      	* compress.c: Likewise.
      	* corefile.c: Likewise.
      	* cpu-arm.c: Likewise.
      	* cpu-avr.c: Likewise.
      	* cpu-bfin.c: Likewise.
      	* cpu-cr16.c: Likewise.
      	* cpu-cr16c.c: Likewise.
      	* cpu-crx.c: Likewise.
      	* cpu-h8300.c: Likewise.
      	* cpu-i386.c: Likewise.
      	* cpu-lm32.c: Likewise.
      	* cpu-m68k.c: Likewise.
      	* cpu-moxie.c: Likewise.
      	* cpu-msp430.c: Likewise.
      	* cpu-sh.c: Likewise.
      	* cpu-xc16x.c: Likewise.
      	* dwarf2.c: Likewise.
      	* ecofflink.c: Likewise.
      	* ecoffswap.h: Likewise.
      	* elf-ifunc.c: Likewise.
      	* elf-m10300.c: Likewise.
      	* elf-vxworks.c: Likewise.
      	* elf32-avr.c: Likewise.
      	* elf32-avr.h: Likewise.
      	* elf32-cr16.c: Likewise.
      	* elf32-cr16c.c: Likewise.
      	* elf32-cris.c: Likewise.
      	* elf32-crx.c: Likewise.
      	* elf32-frv.c: Likewise.
      	* elf32-hppa.c: Likewise.
      	* elf32-i860.c: Likewise.
      	* elf32-ip2k.c: Likewise.
      	* elf32-iq2000.c: Likewise.
      	* elf32-m32c.c: Likewise.
      	* elf32-m68hc1x.c: Likewise.
      	* elf32-msp430.c: Likewise.
      	* elf32-mt.c: Likewise.
      	* elf32-ppc.c: Likewise.
      	* elf32-rl78.c: Likewise.
      	* elf32-s390.c: Likewise.
      	* elf32-score.h: Likewise.
      	* elf32-sh-symbian.c: Likewise.
      	* elf32-sh.c: Likewise.
      	* elf32-spu.c: Likewise.
      	* elf32-tic6x.c: Likewise.
      	* elf32-v850.c: Likewise.
      	* elf32-xc16x.c: Likewise.
      	* elf32-xtensa.c: Likewise.
      	* elf64-alpha.c: Likewise.
      	* elf64-hppa.c: Likewise.
      	* elf64-ppc.c: Likewise.
      	* elf64-s390.c: Likewise.
      	* elfcore.h: Likewise.
      	* elflink.c: Likewise.
      	* elfxx-mips.c: Likewise.
      	* elfxx-sparc.c: Likewise.
      	* elfxx-tilegx.c: Likewise.
      	* ieee.c: Likewise.
      	* libcoff.h: Likewise.
      	* libpei.h: Likewise.
      	* libxcoff.h: Likewise.
      	* linker.c: Likewise.
      	* mach-o-i386.c: Likewise.
      	* mach-o-target.c: Likewise.
      	* mach-o.c: Likewise.
      	* mach-o.h: Likewise.
      	* mmo.c: Likewise.
      	* opncls.c: Likewise.
      	* pdp11.c: Likewise.
      	* pe-x86_64.c: Likewise.
      	* peXXigen.c: Likewise.
      	* pef-traceback.h: Likewise.
      	* pei-x86_64.c: Likewise.
      	* peicode.h: Likewise.
      	* plugin.c: Likewise.
      	* reloc.c: Likewise.
      	* riscix.c: Likewise.
      	* section.c: Likewise.
      	* som.c: Likewise.
      	* syms.c: Likewise.
      	* tekhex.c: Likewise.
      	* ticoff.h: Likewise.
      	* vaxbsd.c: Likewise.
      	* xcofflink.c: Likewise.
      	* xtensa-isa.c: Likewise.
      68ffbac6
    • Nick Clifton's avatar
      * common.h: Fix case of "Meta". · a3c62988
      Nick Clifton authored
      	* metag.h: New file.
      
      	* dis-asm.h (print_insn_metag): New declaration.
      
      	* metag.h: New file.
      
      	* Makefile.am: Add Meta.
      	* Makefile.in: Regenerate.
      	* configure: Regenerate.
      	* configure.in: Add Meta.
      	* disassemble.c: Add Meta support.
      	* metag-dis.c: New file.
      
      	* Makefile.am: Add Meta.
      	* Makefile.in: Regenerate.
      	* archures.c (bfd_mach_metag): New.
      	* bfd-in2.h: Regenerate.
      	* config.bfd: Add Meta.
      	* configure: Regenerate.
      	* configure.in: Add Meta.
      	* cpu-metag.c: New file.
      	* elf-bfd.h: Add Meta.
      	* elf32-metag.c: New file.
      	* elf32-metag.h: New file.
      	* libbfd.h: Regenerate.
      	* reloc.c: Add Meta relocations.
      	* targets.c: Add Meta.
      
      	* Makefile.am: Add Meta.
      	* Makefile.in: Regenerate.
      	* config/tc-metag.c: New file.
      	* config/tc-metag.h: New file.
      	* configure.tgt: Add Meta.
      	* doc/Makefile.am: Add Meta.
      	* doc/Makefile.in: Regenerate.
      	* doc/all.texi: Add Meta.
      	* doc/as.texiinfo: Document Meta options.
      	* doc/c-metag.texi: New file.
      
      	* gas/metag/labelarithmetic.d: New file.
      	* gas/metag/labelarithmetic.s: New file.
      	* gas/metag/metacore12.d: New file.
      	* gas/metag/metacore12.s: New file.
      	* gas/metag/metacore21-invalid.l: New file.
      	* gas/metag/metacore21-invalid.s: New file.
      	* gas/metag/metacore21.d: New file.
      	* gas/metag/metacore21.s: New file.
      	* gas/metag/metacore21ext.d: New file.
      	* gas/metag/metacore21ext.s: New file.
      	* gas/metag/metadsp21-invalid.l: New file.
      	* gas/metag/metadsp21-invalid.s: New file.
      	* gas/metag/metadsp21.d: New file.
      	* gas/metag/metadsp21.s: New file.
      	* gas/metag/metadsp21ext.d: New file.
      	* gas/metag/metadsp21ext.s: New file.
      	* gas/metag/metafpu21.d: New file.
      	* gas/metag/metafpu21.s: New file.
      	* gas/metag/metafpu21ext.d: New file.
      	* gas/metag/metafpu21ext.s: New file.
      	* gas/metag/metag.exp: New file.
      	* gas/metag/tls.d: New file.
      	* gas/metag/tls.s: New file.
      
      	* Makefile.am: Add Meta.
      	* Makefile.in: Regenerate.
      	* configure.tgt: Add Meta.
      	* emulparams/elf32metag.sh: New file.
      	* emultempl/metagelf.em: New file.
      
      	* ld-elf/merge.d: Mark Meta as xfail.
      	* ld-gc/start.d: Skip this test on Meta.
      	* ld-gc/personality.d: Skip this test on Meta.
      	* ld-metag/external.s: New file.
      	* ld-metag/metag.exp: New file.
      	* ld-metag/pcrel.d: New file.
      	* ld-metag/pcrel.s: New file.
      	* ld-metag/shared.d: New file.
      	* ld-metag/shared.r: New file.
      	* ld-metag/shared.s: New file.
      	* ld-metag/stub.d: New file.
      	* ld-metag/stub.s: New file.
      	* ld-metag/stub_pic_app.d: New file.
      	* ld-metag/stub_pic_app.r: New file.
      	* ld-metag/stub_pic_app.s: New file.
      	* ld-metag/stub_pic_shared.d: New file.
      	* ld-metag/stub_pic_shared.s: New file.
      	* ld-metag/stub_shared.d: New file.
      	* ld-metag/stub_shared.r: New file.
      	* ld-metag/stub_shared.s: New file.
      
      	* binutils/readelf.c: (guess_is_rela): Add EM_METAG.
      	(dump_relocations): Add EM_METAG.
      	(get_machine_name): Correct case for Meta.
      	(is_32bit_abs_reloc): Add support for Meta ADDR32 reloc.
      	(is_none_reloc): Add support for Meta NONE reloc.
      a3c62988
  24. 07 Jan, 2013 1 commit
  25. 04 Jan, 2013 1 commit
    • Nick Clifton's avatar
      * archures.c: Add support for MIPS r5900 · e407c74b
      Nick Clifton authored
      	* bfd-in2.h: Add support for MIPS r5900
      	* config.bfd: Add support for Sony Playstation 2
      	* cpu-mips.c: Add support for MIPS r5900
      	* elfxx-mips.c: Add support for MIPS r5900 (extension of r4000)
      
      	* config/tc-mips.c: Add support for MIPS r5900
      	Add M_LQ_AB and M_SQ_AB to support large values for instructions lq and sq.
      	* config/tc-mips.c (can_swap_branch_p, get_append_method): Detect some conditional short loops to fix a bug on the r5900 by NOP in the branch delay slot.
      	* config/tc-mips.c (M_MUL): Support 3 operands in multu on r5900.
      	* config/tc-mips.c (M_TRUNCWS): Support trunc.w.s on r5900 in MIPS ISA I.
      	* config/tc-mips.c (s_mipsset): Force 32 bit floating point on r5900.
      	* configure.in: Detect CPU type when target string contains r5900 (e.g. mips64r5900el-linux-gnu).
      
      	* config/tc-mips.c (mips_ip): Check parameter range of instructions mfps and mtps on r5900.
      
      	* elf/mips.h: Add MIPS machine variant number for r5900 which is compatible with old Playstation 2 software.
      	* opcode/mips.h: Add support for r5900 instructions including lq and sq.
      
      	* configure.tgt: Support ELF files for Sony Playstation 2 (for ps2dev and ps2sdk).
      	* emulparams/elf32lr5900n32.sh: Create linker script for Sony Playstation 2 ELF files using MIPS ABI n32.
      	* emulparams/elf32lr5900.sh: Create linker script for Sony Playstation 2 ELF files using MIPS ABI o32.
      	* Makefile.am: Add linker scripts for Sony Playstation 2 ELF files.
      
      	* opcodes/mips-dis.c: Add names for CP0 registers of r5900.
      	* opcodes/mips-opc.c: Add M_SQ_AB and M_LQ_AB to support larger range for instructions sq and lq.
      
      	* opcodes/mips-opc.c: Add support for MIPS r5900 CPU.
      	Add support for 128 bit MMI (Multimedia Instructions).
      	Add support for EE instructions (Emotion Engine).
      	Disable unsupported floating point instructions (64 bit and undefined compare operations).
      	Enable instructions of MIPS ISA IV which are supported by r5900.
      	Disable 64 bit co processor instructions.
      	Disable 64 bit multiplication and division instructions.
      	Disable instructions for co-processor 2 and 3, because these are not supported (preparation for later VU0 support (Vector Unit)).
      	Disable cvt.w.s because this behaves like trunc.w.s and the correct execution can't be ensured on r5900.
      	Add trunc.w.s using the opcode encoding of cvt.w.s on r5900. This will confuse less developers and compilers.
      e407c74b
  26. 11 Dec, 2012 1 commit
    • Michael Eager's avatar
      Microblaze: Add support for handling TLS symbol suffixes and generating · 69b06cc8
      Michael Eager authored
      TLS relocs for General Dynamic and Local Dynamic models.
      
      bfd/Changelog
                * reloc.c: Add new relocations
                * bfd-in2.h: Regenerated
                * libbfd.h: Regenerated
                * elf32-microblaze.c (microblaze_elf_howto_raw):
                  Add TLS relocations
                  (microblaze_elf_reloc_type_lookup): Likewise
                  (elf32_mb_link_hash_entry): define TLS reference types
                  (elf32_mb_link_hash_table): add TLS Local dynamic GOT entry
                  #define has_tls_reloc if section has TLS relocs
                  (dtprel_base), (check_unique_offset): New
                  (microblaze_elf_output_dynamic_relocation): output simple
                  dynamic relocation into SRELOC.
                  (microblaze_elf_relocate_section): Accommodate TLS relocations.
                  (microblaze_elf_check_relocs): Likewise
                  (update_local_sym_info): New
                  (microblaze_elf_copy_indirect_symbol): Add tls_mask.
                  (allocate_dynrelocs): Handle TLS symbol
                  (microblaze_elf_size_dynamic_sections): Set size and offset
                  (microblaze_elf_finish_dynamic_symbol): Use
                   microblaze_elf_output_dynamic_relocation
      
      gas/Changelog
                * config/tc-microblaze.c: Define TLS offsets
                  (md_relax_table): Add TLS offsets
                  (imm_types), (match_imm), (get_imm_otype): New to support
                  TLS offsets.
                  (tc_microblaze_fix_adjustable): Add TLS relocs.
                  (md_convert_frag): Support TLS offsets.
                  (md_apply_fix), (md_estimate_size_before_relax), (tc_gen_reloc):
                  Add TLS relocs
      
      include/Changelog
                * elf/microblaze.h: Add TLS relocs to START_RELOC_NUMBERS
      69b06cc8
  27. 09 Nov, 2012 1 commit
    • Nick Clifton's avatar
      2012-11-09 Nick Clifton <nickc@redhat.com> · de863c74
      Nick Clifton authored
      	* Makefile.am (ALL_MACHINES): Add cpu-v850-rh850.lo.
      	(ALL_MACHINES_CFILES): Add cpu-v850-rh850.c.
      	* archures.c (bfd_arch_info): Add bfd_v850_rh850_arch.
      	* config.bfd: Likewise.
      	* configure.in: Add bfd_elf32_v850_rh850_vec.
      	* cpu-v850.c: Update printed description.
      	* cpu-v850_rh850.c: New file.
      	* elf32-v850.c (v850_elf_check_relocs): Add support for RH850 ABI
      	relocs.
      	(v850_elf_perform_relocation): Likewise.
      	(v850_elf_final_link_relocate): Likewise.
      	(v850_elf_relocate_section): Likewise.
      	(v850_elf_relax_section): Likewise.
      	(v800_elf_howto_table): New.
      	(v850_elf_object_p): Add support for RH850 ABI values.
      	(v850_elf_final_write_processing): Likewise.
      	(v850_elf_merge_private_bfd_data): Likewise.
      	(v850_elf_print_private_bfd_data): Likewise.
      	(v800_elf_reloc_map): New.
      	(v800_elf_reloc_type_lookup): New.
      	(v800_elf_reloc_name_lookup): New.
      	(v800_elf_info_to_howto): New.
      	(bfd_elf32_v850_rh850_vec): New.
      	(bfd_arch_v850_rh850): New.
      	* targets.c (_bfd_targets): Add bfd_elf32_v850_rh850_vec.
      	* Makefile.in: Regenerate.
      	* bfd-in2.h: Regenerate.
      	* configure: Regenerate.
      
      	* readelf.c (get_machine_flags): Add support for E_FLAG_RX_ABI.
      	(guess_is_rela): Add EM_V800.
      	(dump_relocations): Likewise.
      	(get_machine_name): Update EM_V800.
      	(get_machine_flags): Add support for RH850 ABI flags.
      	(is_32bit_abs_reloc): Add support for RH850 ABI reloc.
      
      	* config/tc-v850.c (v850_target_arch): New.
      	(v850_target_format): New.
      	(set_machine): Use v850_target_arch.
      	(md_begin): Likewise.
      	(md_show_usage): Document new switches.
      	(md_parse_option): Add -mgcc-abi, -mrh850-abi, -m8byte-align and
      	-m4byte-align.
      	* config/tc-v850.c (TARGET_ARCH) Use v850_target_arch.
      	(TARGET_FORMAT): Use v850_target_format.
      	* doc/c-v850.texi: Document new options.
      
      	* v850.h: Add RH850 ABI values.
      
      	* Makefile.am: (ALL_EMULATION_SOURCES): Add ev850_rh850.c.
      	* Makefile.in: Regenerate.
      	* configure.tgt (v850*-*-*): Make v850_rh850 the default
      	emulation. Add vanilla v850 as an extra emulation.
      	* emulparams/v850_rh850.sh: New file.
      	* scripttempl/v850_rh850.sc: New file.
      
      	* configure.in: Add bfd_v850_rh850_arch.
      	* configure: Regenerate.
      	* disassemble.c (disassembler): Likewise.
      de863c74
  28. 23 Oct, 2012 1 commit
    • Nathan Sidwell's avatar
      bfd/ · 04c3a755
      Nathan Sidwell authored
      	* bfd-in.h (bfd_elf_stack_segment_size): Declare.
      	* bfd-in2.h: Rebuilt.
      	* elfxx-target.h (elf_backend_stack_align): New.
      	(elfNN_bed): Add it.
      	* elf-bfd.h (struct elf_backend_data): Add stack_align field.
      	* elf.c (bfd_elf_map_sections_to_segments): Pay attention to
      	stack_align and stacksize for PT_GNU_STACK segment.
      	(assign_file_positions_for_non_load_sections): Set p_memsz for
      	PT_GNU_STACK segment.
      	(copy_elf_program_header): Copy PT_GNU_STACK size.
      	* elflink.c (bfd_elf_stack_segment_size): New function, taken from
      	uclinux backends.
      	(bfd_elf_size_dynamic_sections): Determine
      	PT_GNU_STACK requirements after calling backend.  Pay attention to
      	stacksize.
      	* elf32-bfin.c (elf32_bfinfdpic_always_size_sections): Call
      	bfd_elf_stack_segment_size.
      	(elf32_bfinfdpic_modify_program_headers): Delete.
      	(elf32_bfingfdpic_copy_private_bfd_data): Don't copy PT_GNU_STACK
      	here.
      	(elf_backend_stack_align): Override.
      	(elf_backend_modify_program_headers): Don't override.
      	* elf32-frv.c (frvfdpic_always_size_sections): Call
      	bfd_elf_stack_segment_size.
      	(elf32_frvfdpic_modify_program_headers): Delete.
      	(elf32_frvfdpic_copy_private_bfd_data): Don't copy PT_GNU_STACK
      	here.
      	(elf_backend_stack_align): Override.
      	(elf_backend_modify_program_headers): Don't override.
      	* elf32-lm32.c (lm32_elf_always_size_sections): Leave
      	PT_GNU_STACK creation to underlying elf support.  Check
      	__stacksize here for backwards compatibility, and set it if
      	needed.
      	(lm32_elf_modify_segment_map): Delete.
      	(lm32_elf_modify_program_headers): Delete.
      	(elf_backend_stack_align): Override.
      	(elf_backend_modify_segment_map): Don't override.
      	(elf_backend_modify_program_headers): Don't override.
      	* elf32-sh.c (sh_elf_always_size_sections): Call
      	bfd_elf_stack_segment_size.
      	(sh_elf_modify_program_headers): Delete.
      	(sh_elf_copy_private_data): Don't copy PT_GNU_STACK
      	here.
      	(elf_backend_stack_align): Override.
      	(elf_backend_modify_program_headers): Don't override.
      	* elf32-tic6x.c (elf32_tic6x_always_size_sections): Call
      	bfd_elf_stack_segment_size.
      	(elf32_tic6x_modify_program_headers): Delete.
      	(elf32_tic6x_copy_private_data): Delete.
      	(elf_backend_stack_align): Override.
      	(bfd_elf32_bfd_copy_private_bfd_data): Don't override.
      	(elf_backend_modify_program_headers): Don't override.
      
      	include/
      	* bfdlink.h (struct bfd_link_info): Add stacksize option.
      
      	ld/
      	* ld.texinfo (stack-size): New option.
      	* emultempl/elf32.em: Add stack-size option.
      
      	ld/testsuite/
      	* ld-elf/binutils.exp: Add -z stack-size=0.
      	* ld-elf/elf.exp: Add stack-exec and stack-size tests.
      	* ld-elf/orphan-region.d: Add stack-size option. Remove xfail.
      	* ld-elf/stack-exec.rd: New.
      	* ld-elf/stack-size.rd: New.
      	* ld-elf/stack.s: New.
      	* ld-scripts/empty-aligned.d: Add stack-size option.
      	* ld-sh/fdpic-stack-set.d: New.
      	* ld-tic6x/shlib-1.rd: Remove __stacksize symbol.
      	* ld-tic6x/shlib-1b.rd: Likewise.
      	* ld-tic6x/shlib-1r.rd: Likewise.
      	* ld-tic6x/shlib-1rb.rd: Likewise.
      	* ld-tic6x/shlib-app-1.rd: Likewise.
      	* ld-tic6x/shlib-app-1b.rd: Likewise.
      	* ld-tic6x/shlib-app-1r.rd: Likewise.
      	* ld-tic6x/shlib-app-1rb.rd: Likewise.
      	* ld-tic6x/shlib-noindex.rd: Likewise.
      	* ld-tic6x/static-app-1.rd: Likewise.
      	* ld-tic6x/static-app-1b.rd: Likewise.
      	* ld-tic6x/static-app-1r.rd: Likewise.
      	* ld-tic6x/static-app-1rb.rd: Likewise.
      04c3a755
  29. 21 Oct, 2012 1 commit
    • Alan Modra's avatar
      bfd/ · 8a72cc6e
      Alan Modra authored
      	* compress.c (bfd_cache_section_contents): New function.
      	* bfd-in2.h: Regenerate.
      binutils/
      	* objdump.c (load_specific_debug_section): Use
      	bfd_cache_section_contents.
      8a72cc6e
  30. 13 Sep, 2012 1 commit
  31. 28 Aug, 2012 1 commit
    • Walter Lee's avatar
      Add support for constructing pc-relative addresses to the plt, by · e5b95258
      Walter Lee authored
      adding the necessary assembly operators and relocations.
      
      bfd:
      	* reloc.c (Add BFD_RELOC_TILEGX_IMM16_X0_HW0_PLT_PCREL,
      	BFD_RELOC_TILEGX_IMM16_X1_HW0_PLT_PCREL,
      	BFD_RELOC_TILEGX_IMM16_X0_HW1_PLT_PCREL,
      	BFD_RELOC_TILEGX_IMM16_X1_HW1_PLT_PCREL,
      	BFD_RELOC_TILEGX_IMM16_X0_HW2_PLT_PCREL,
      	BFD_RELOC_TILEGX_IMM16_X1_HW2_PLT_PCREL,
      	BFD_RELOC_TILEGX_IMM16_X0_HW3_PLT_PCREL,
      	BFD_RELOC_TILEGX_IMM16_X1_HW3_PLT_PCREL,
      	BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL,
      	BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL,
      	BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL,
      	BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL,
      	BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL,
      	BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL): new relocations.
      	* elfxx-tilegx.c (tilegx_elf_howto_table): Handle new relocations.
      	(tilegx_reloc_map): Ditto.
      	(reloc_to_create_func): Ditto.
      	(tilegx_elf_check_relocs): Ditto.
      	(tilegx_elf_gc_sweep_hook): Ditto.
      	(tilegx_elf_relocate_section): Ditto.
      	* libbfd.h: Regenerate.
      	* bfd-in2.h: Regenerate.
      
      gas:
      	* tc-tilegx.c (O_hw0_plt): Define operator.
      	(O_hw1_plt): Ditto.
      	(O_hw1_last_plt): Ditto.
      	(O_hw2_last_plt): Ditto.
      	(md_begin): Handle new operators.
      	(emit_tilegx_instruction): Ditto.
      	(md_apply_fix): Ditto.
      	* doc/c-tilegx.texi: Document new operators.
      
      include/elf:
      	* tilegx.h (R_TILEGX_IMM16_X0_HW0_PLT_PCREL): New relocation.
      	(R_TILEGX_IMM16_X1_HW0_PLT_PCREL): Ditto.
      	(R_TILEGX_IMM16_X0_HW1_PLT_PCREL): Ditto.
      	(R_TILEGX_IMM16_X1_HW1_PLT_PCREL): Ditto.
      	(R_TILEGX_IMM16_X0_HW2_PLT_PCREL): Ditto.
      	(R_TILEGX_IMM16_X1_HW2_PLT_PCREL): Ditto.
      	(R_TILEGX_IMM16_X0_HW3_PLT_PCREL): Ditto.
      	(R_TILEGX_IMM16_X1_HW3_PLT_PCREL): Ditto.
      	(R_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL): Ditto.
      	(R_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL): Ditto.
      	(R_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL): Ditto.
      	(R_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL): Ditto.
      	(R_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL	): Ditto.
      	(R_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL): Ditto.
      e5b95258
  32. 13 Aug, 2012 1 commit
  33. 24 Jul, 2012 1 commit
    • Cary Coutant's avatar
      2012-07-24 Teresa Johnson <tejohnson@google.com> · 9b8d1a36
      Cary Coutant authored
      bfd/
      	* bfd.c (bfd_find_nearest_line_discriminator): New macro.
      	* coff-rs6000.c: Init _bfd_find_nearest_line_discriminator.
      	* coff64-rs6000.c: Likewise.
      	* dwarf2.c (struct line_info): Add discriminator field.
      	(add_line_info): Fill in new discriminator field.
      	(decode_line_info): Record discriminator information instead
              of ignoring it.
      	(lookup_address_in_line_info_table): Return discriminator field if
              requested.
      	(comp_unit_find_nearest_line): Add discriminator argument.
      	(find_line): Likewise.
      	(_bfd_dwarf2_find_nearest_line): Likewise.
      	(_bfd_dwarf2_find_line): Likewise.
      	* elf-bfd.h (_bfd_elf_find_nearest_line_discriminator): New.
              (_bfd_elf_find_line_discriminator): Likewise.
              (_bfd_generic_find_nearest_line_discriminator): Likewise. Defined.
      	* elf.c (_bfd_elf_find_nearest_line): Change to a wrapper
              that invokes _bfd_elf_find_nearest_line_discriminator with correct
              arguments.
      	(_bfd_elf_find_nearest_line_discriminator): New.
      	(_bfd_elf_find_line): Change to a wrapper
              that invokes _bfd_elf_find_line_discriminator with correct
              arguments.
      	(_bfd_elf_find_line_discriminator): New.
      	* coffgen.c (coff_find_nearest_line_with_names): Handle
              new discriminator argument.
      	* elf32-arm.c (elf32_arm_find_nearest_line): Likewise.
      	* elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise.
      	* elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
      	* mach-o.c (bfd_mach_o_find_nearest_line): Likewise.
      	* libbfd-in.h (_bfd_dwarf2_find_nearest_line): Add discriminator
              argument.
              (_bfd_dwarf2_find_line): Likewise.
              (_bfd_generic_find_nearest_line_discriminator): New.
      	* libbfd.c (_bfd_generic_find_nearest_line_discriminator): New.
      	* bfd-in2.h: Regenerated.
      	* libbfd.h: Likewise.
      	* targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize
              _bfd_find_nearest_line_discriminator with
              _bfd_generic_find_nearest_line_discriminator.
              (bfd_target): Add _bfd_find_nearest_line_discriminator.
      
      binutils/
      	* addr2line.c (find_address_in_section): Invoke
              bfd_find_nearest_line_discriminator to get the discriminator.
      	(find_offset_in_section): Likewise.
      	(translate_addresses): Print discriminator if it is non-zero.
      	* objdump.c (show_line): Invoke
              bfd_find_nearest_line_discriminator to get the discriminator,
              and keep track of prev_discriminator. Print discriminator
              if it is non-zero.
      	(disassemble_data): Initialize prev_discriminator.
      	(dump_reloc_set): Invoke bfd_find_nearest_line_discriminator
              to get the discriminator, and keep track of last_discriminator.
              Print discriminator if it is non-zero.
      9b8d1a36
  34. 18 Jul, 2012 1 commit
  35. 13 Jul, 2012 1 commit
    • Andreas Krebbel's avatar
      2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> · 470b557a
      Andreas Krebbel authored
      	* elf64-s390.c: Include elf-s390-common.c.
      	(R_390_IRELATIVE): New reloc.
      	(elf_s390_reloc_type_lookup): Support R_390_IRELATIVE.
      	(RELA_ENTRY_SIZE): New macro.
      	(elf_s390_link_hash_entry): New fields ifunc_resolver_address and
      	*ifunc_resolver_section.
      	(struct plt_entry): New struct.
      	(struct elf_s390_obj_tdata): New field local_plt.
      	(elf_s390_local_plt): New macro.
      	(struct elf_s390_link_hash_table): New field irelifunc.
      	(ELF64): New macro.
      	(link_hash_newfunc): Initialize new fields.
      	(elf_s390_check_relocs): Handle IFUNC symbols.
      	(elf_s390_adjust_dynamic_symbol): Don't do anything for IFUNC
      	symbols.
      	(allocate_dynrelocs): Call s390_elf_allocate_ifunc_dyn_relocs for
      	IFUNC symbols.
      	(elf_s390_size_dynamic_sections): Handle IFUNC symbols.
      	(elf_s390_relocate_section): Likewise.
      	(elf_s390_finish_dynamic_symbol): Likewise.
      	(elf_s390_finish_dynamic_sections): Handle local IFUNC symbols.
      	(elf_s390_finish_ifunc_symbol): New function.
      	(elf_s390_gc_sweep_hook): Handle local plt entries.
      	(elf_backend_add_symbol_hook): Define.
      	* elf32-s390.c: See elf64-s390.c changes.
      	* elf-s390-common.c: New file.
      	* bfd-in2.h (BFD_RELOC_390_IRELATIVE): New enum field.
      	* libbfd.h (BFD_RELOC_390_IRELATIVE): New entry for
      	BFD_RELOC_390_IRELATIVE.
      	* reloc.c (BFD_RELOC_390_IRELATIVE): Document new relocation.
      
      2012-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
      
      	* elf/s390.h (START_RELOC_NUMBERS): Define R_390_IRELATIVE reloc.
      
      2012-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
      
      	* emulparams/elf_s390.sh (IREL_IN_PLT): Define.
      	* emulparams/elf64_s390.sh (IREL_IN_PLT): Define.
      470b557a
  36. 29 Jun, 2012 1 commit
    • Alan Modra's avatar
      * section.c (bfd_get_linker_section): New function. · 3d4d4302
      Alan Modra authored
      	* elf32-arm.c: When retrieving SEC_LINKER_CREATED sections, use
      	the above throughout rather than bfd_get_section_by_name.  Use
      	bfd_make_section_anyway rather than bfd_make_section when creating
      	them.
      	* elf32-bfin.c: Likewise.
      	* elf32-cr16.c: Likewise.
      	* elf32-cris.c: Likewise.
      	* elf32-frv.c: Likewise.
      	* elf32-hppa.c: Likewise.
      	* elf32-i370.c: Likewise.
      	* elf32-i386.c: Likewise.
      	* elf32-lm32.c: Likewise.
      	* elf32-m32c.c: Likewise.
      	* elf32-m32r.c: Likewise.
      	* elf32-m68k.c: Likewise.
      	* elf32-microblaze.c: Likewise.
      	* elf32-ppc.c: Likewise.
      	* elf32-rl78.c: Likewise.
      	* elf32-s390.c: Likewise.
      	* elf32-score.c: Likewise.
      	* elf32-score7.c: Likewise.
      	* elf32-sh.c: Likewise.
      	* elf32-tic6x.c: Likewise.
      	* elf32-tilepro.c: Likewise.
      	* elf32-vax.c: Likewise.
      	* elf32-xstormy16.c: Likewise.
      	* elf32-xtensa.c: Likewise.
      	* elf64-alpha.c: Likewise.
      	* elf64-hppa.c: Likewise.
      	* elf64-ia64-vms.c: Likewise.
      	* elf64-ppc.c: Likewise.
      	* elf64-s390.c: Likewise.
      	* elf64-sh64.c: Likewise.
      	* elf64-sparc.c: Likewise.
      	* elf64-x86-64.c: Likewise.
      	* elfnn-ia64.c: Likewise.
      	* elfxx-mips.c: Likewise.
      	* elfxx-sparc.c: Likewise.
      	* elfxx-tilegx.c: Likewise.
      	* elflink.c: Likewise.
      	* elf-vxworks.c: Likewise.
      	* elf-m10300.c: Likewise.  Also make use of htab plt, got and
      	gotplt shortcuts.
      	* bfd-in2.h: Regenerate.
      	* elf32-lm32.c (lm32_elf_check_relocs): Use the correct bfd when
      	calling create_rofixup_section.
      	* elflink.c (bfd_elf_final_link): Simplify test for .dynstr.
      3d4d4302
  37. 04 Jun, 2012 1 commit
    • Jan Kratochvil's avatar
      bfd/ · fe78531d
      Jan Kratochvil authored
      	* bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
      	of target_read_memory as bfd_size_type.
      	* bfd-in2.h: Regenerate.
      	* elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
      	argument of target_read_memory as bfd_size_type.
      	(_bfd_elf32_bfd_from_remote_memory): Likewise.
      	(_bfd_elf64_bfd_from_remote_memory): Likewise.
      	* elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
      	* elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise.
      
      gdb/
      	* symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
      	parameters.
      	(target_read_memory_bfd): New function.
      	(symbol_file_add_from_memory): Use it.
      fe78531d
  38. 01 Jun, 2012 1 commit
    • Jan Kratochvil's avatar
      bfd/ · 5299c1c4
      Jan Kratochvil authored
      	* bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
      	of target_read_memory as size_t.
      	* bfd-in2.h: Regenerate.
      	* elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
      	argument of target_read_memory as size_t.
      	(_bfd_elf32_bfd_from_remote_memory): Likewise.
      	(_bfd_elf64_bfd_from_remote_memory): Likewise.
      	* elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
      	* elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise.
      
      gdb/
      	* target.c (target_read_memory): Make LEN argument as size_t.
      	* target.h (target_read_memory): Likewise.
      5299c1c4