bfd:
commit05186a7b8c467ec8b03729ad8a032d4021fa3b66
authorJoseph Myers <joseph@codesourcery.com>
Thu, 25 Mar 2010 21:12:25 +0000 (25 21:12 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 25 Mar 2010 21:12:25 +0000 (25 21:12 +0000)
treebcd544b2016fbf4a1750dd6f5df192fb1833146e
parentfdc6820af393e3bc63570cd9f36262979a54a871
bfd:
* Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
(ALL_MACHINES_CFILES): Add cpu-tic6x.c.
(BFD32_BACKENDS): Add elf32-tic6x.lo.
(BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
* Makefile.in: Regenerate.
* archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
(bfd_archures_list): Update.
* config.bfd (tic6x-*-elf): New.
* configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
New.
* configure: Regenerate.
* cpu-tic6x.c, elf32-tic6x.c: New.
* reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
* targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
(_bfd_target_vector): Update.
* bfd-in2.h, libbfd.h: Regenerate.

binutils:
* MAINTAINERS: Add self as TI C6X maintainer.
* NEWS: Add news entry for TI C6X support.
* readelf.c: Include elf/tic6x.h.
(guess_is_rela): Handle EM_TI_C6000.
(dump_relocations): Likewise.
(get_tic6x_dynamic_type): New.
(get_dynamic_type): Call it.
(get_machine_flags): Handle EF_C6000_REL.
(get_osabi_name): Handle machine-specific values only for relevant
machines.  Handle C6X values.
(get_tic6x_segment_type): New.
(get_segment_type): Call it.
(get_tic6x_section_type_name): New.
(get_section_type_name): Call it.
(is_32bit_abs_reloc, is_16bit_abs_reloc, is_none_reloc): Handle
EM_TI_C6000.

gas:
* Makefile.am (TARGET_CPU_CFILES): Add config/tc-tic6x.c.
(TARGET_CPU_HFILES): Add config/tc-tic6x.h.
* Makefile.in: Regenerate.
* NEWS: Add news entry for TI C6X support.
* app.c (do_scrub_chars): Handle "||^" for TI C6X.  Handle
TC_PREDICATE_START_CHAR and TC_PREDICATE_END_CHAR.  Keep spaces in
operands if TC_KEEP_OPERAND_SPACES.
* configure.tgt (tic6x-*-*): New.
* config/tc-ia64.h (TC_PREDICATE_START_CHAR,
TC_PREDICATE_END_CHAR): Define.
* config/tc-tic6x.c, config/tc-tic6x.h: New.
* doc/Makefile.am (CPU_DOCS): Add c-tic6x.texi.
* doc/Makefile.in: Regenerate.
* doc/all.texi (TIC6X): Define.
* doc/as.texinfo: Add TI C6X documentation.  Include c-tic6x.texi.
* doc/c-tic6x.texi: New.

gas/testsuite:
* gas/tic6x: New directory and testcases.

include:
* dis-asm.h (print_insn_tic6x): Declare.

include/elf:
* common.h (ELFOSABI_C6000_ELFABI, ELFOSABI_C6000_LINUX): Define.
* tic6x.h: New.

include/opcode:
* tic6x-control-registers.h, tic6x-insn-formats.h,
tic6x-opcode-table.h, tic6x.h: New.

ld:
* Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
eelf32_tic6x_le.o.
(eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
* NEWS: Add news entry for TI C6X support.
* configure.tgt (tic6x-*-*): New.
* emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.

ld/testsuite:
* ld-elf/flags1.d, ld-elf/merge.d: XFAIL for tic6x-*-*.
* ld-elf/sec-to-seg.exp: Set B_test_same_seg to 0 for tic6x-*-*.
* ld-tic6x: New directory and testcases.

opcodes:
* Makefile.am (TARGET_LIBOPCODES_CFILES): Add tic6x-dis.c.
* Makefile.in: Regenerate.
* configure.in (bfd_tic6x_arch): New.
* configure: Regenerate.
* disassemble.c (ARCH_tic6x): Define if ARCH_all.
(disassembler): Handle TI C6X.
* tic6x-dis.c: New.
223 files changed:
bfd/ChangeLog
bfd/Makefile.am
bfd/Makefile.in
bfd/archures.c
bfd/bfd-in2.h
bfd/config.bfd
bfd/configure
bfd/configure.in
bfd/cpu-tic6x.c [new file with mode: 0644]
bfd/elf32-tic6x.c [new file with mode: 0644]
bfd/libbfd.h
bfd/reloc.c
bfd/targets.c
binutils/ChangeLog
binutils/MAINTAINERS
binutils/NEWS
binutils/readelf.c
gas/ChangeLog
gas/Makefile.am
gas/Makefile.in
gas/NEWS
gas/app.c
gas/config/tc-ia64.h
gas/config/tc-tic6x.c [new file with mode: 0644]
gas/config/tc-tic6x.h [new file with mode: 0644]
gas/configure.tgt
gas/doc/Makefile.am
gas/doc/Makefile.in
gas/doc/all.texi
gas/doc/as.texinfo
gas/doc/c-tic6x.texi [new file with mode: 0644]
gas/testsuite/ChangeLog
gas/testsuite/gas/tic6x/arch-invalid-1.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/arch-invalid-1.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/arch-invalid-2.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/arch-invalid-2.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/arch-invalid-2.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/data-reloc.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/data-reloc.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/dir-junk.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/dir-junk.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/dir-junk.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/dummy.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/endian-1.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/endian-2.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/endian-3.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-atomic.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-atomic.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-bad-1.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-bad-1.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-bad-1.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-bad-2.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-bad-2.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-bad-2.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-c674x-bad.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-c674x-bad.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-c674x-bad.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-c674x-pcrel.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-c674x-pcrel.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-c674x-reloc.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-c674x-reloc.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-c674x-sploop.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-c674x-sploop.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-c674x.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-c674x.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-parallel-be.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-parallel-le.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-parallel-multi.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-parallel-multi.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-parallel.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-predicate.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/insns-predicate.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/parallel-bad-1.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/parallel-bad-1.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/parallel-bad-1.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/parallel-bad-2.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/parallel-bad-2.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/parallel-bad-2.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/parallel-bad-3.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/parallel-bad-3.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/parallel-bad-3.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/parallel-bad-4.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/parallel-bad-4.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/parallel-bad-4.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/predicate-bad-1.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/predicate-bad-1.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/predicate-bad-1.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/predicate-bad-2.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/predicate-bad-2.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/predicate-bad-2.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/predicate-bad-3.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/predicate-bad-3.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/predicate-bad-3.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-1.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-1.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-1.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-2.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-2.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-2.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-3.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-3.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-3.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-4.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-4.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-4.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-5.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-5.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-5.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-6.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-6.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/reloc-bad-6.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-1.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-1.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-1.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-2.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-2.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-2.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-3.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-3.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-3.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-4.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-4.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-4.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-5.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-5.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-5.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-6.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-6.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-6.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-7.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-7.l [new file with mode: 0644]
gas/testsuite/gas/tic6x/sploop-bad-7.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/syntax.d [new file with mode: 0644]
gas/testsuite/gas/tic6x/syntax.s [new file with mode: 0644]
gas/testsuite/gas/tic6x/tic6x.exp [new file with mode: 0644]
include/ChangeLog
include/dis-asm.h
include/elf/ChangeLog
include/elf/common.h
include/elf/tic6x.h [new file with mode: 0644]
include/opcode/ChangeLog
include/opcode/tic6x-control-registers.h [new file with mode: 0644]
include/opcode/tic6x-insn-formats.h [new file with mode: 0644]
include/opcode/tic6x-opcode-table.h [new file with mode: 0644]
include/opcode/tic6x.h [new file with mode: 0644]
ld/ChangeLog
ld/Makefile.am
ld/Makefile.in
ld/NEWS
ld/configure.tgt
ld/emulparams/elf32_tic6x_be.sh [new file with mode: 0644]
ld/emulparams/elf32_tic6x_le.sh [new file with mode: 0644]
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/flags1.d
ld/testsuite/ld-elf/merge.d
ld/testsuite/ld-elf/sec-to-seg.exp
ld/testsuite/ld-tic6x/data-reloc-global.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/data-reloc-global.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/data-reloc-local-1.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/data-reloc-local-2.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/data-reloc-local-r.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/data-reloc-local.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/generic.ld [new file with mode: 0644]
ld/testsuite/ld-tic6x/mvk-reloc-global.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/mvk-reloc-global.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/mvk-reloc-local-1.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/mvk-reloc-local-2.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/mvk-reloc-local-r.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/mvk-reloc-local.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/pcrel-reloc-global.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/pcrel-reloc-global.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/pcrel-reloc-local-1.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/pcrel-reloc-local-2.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/pcrel-reloc-local-r.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/pcrel-reloc-local.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-abs-s16-1.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-abs-s16-2.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-abs-s16.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-abs16-1.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-abs16-2.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-abs16.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-abs8-1.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-abs8-2.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-abs8.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-pcr-s10-1.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-pcr-s10-2.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-pcr-s10.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-pcr-s12-1.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-pcr-s12-2.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-pcr-s12.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-pcr-s21-1.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-pcr-s21-2.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-pcr-s21.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-pcr-s7-1.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-pcr-s7-2.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-pcr-s7.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-sbr-s16-1.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-sbr-s16-2.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-sbr-s16.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-sbr-u15-b-1.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-sbr-u15-b-2.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-sbr-u15-b.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-sbr-u15-h-1.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-sbr-u15-h-2.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-sbr-u15-h.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-sbr-u15-w-1.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-sbr-u15-w-2.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/reloc-overflow-sbr-u15-w.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/sbr-reloc-global.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/sbr-reloc-global.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/sbr-reloc-local-1.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/sbr-reloc-local-2.s [new file with mode: 0644]
ld/testsuite/ld-tic6x/sbr-reloc-local-r.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/sbr-reloc-local.d [new file with mode: 0644]
ld/testsuite/ld-tic6x/sbr.ld [new file with mode: 0644]
ld/testsuite/ld-tic6x/tic6x.exp [new file with mode: 0644]
opcodes/ChangeLog
opcodes/Makefile.am
opcodes/Makefile.in
opcodes/configure
opcodes/configure.in
opcodes/disassemble.c
opcodes/tic6x-dis.c [new file with mode: 0644]