make to reexamine the file timestamp.
($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise.
Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
Add tms320c30 support:
* cpu-tic30.c: New file.
* aout-tic30.c: New file.
* coff-tic30.c: New file.
* archures.c (bfd_arch_tic30): Define.
(bfd_tic30_arch): Declare.
(bfd_archures_list): Add bfd_tic30_arch.
* targets.c (bfd_target_vector): Add tic30_aout_vec and
tic30_coff_vec.
* reloc.c (BFD_RELOC_TIC30_LDP): Define.
* coffcode.h (coff_set_arch_mach_hook): Add tic30 case.
(coff_set_flags): Likewise.
* config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets.
* configure.in (tic30_aout_vec, tic30_coff_vec): New vectors.
* Makefile.am: Rebuild dependencies.
(ALL_MACHINES): Add cpu-tic30.lo.
(ALL_MACHINES_CFILES): Add cpu-tic30.c.
(BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo.
(BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c.
* configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
aout-ns32k.c
aout-sparcle.c
aout-target.h
+aout-tic30.c
aout0.c
aout32.c
aout64.c
coff-sparc.c
coff-stgo32.c
coff-svm68k.c
+coff-tic30.c
coff-u68k.c
coff-we32k.c
coff-w65.c
cpu-rs6000.c
cpu-sh.c
cpu-sparc.c
+cpu-tic30.c
cpu-v850.c
cpu-vax.c
cpu-we32k.c
break;
#endif
+#ifdef TIC30MAGIC
+ case TIC30MAGIC:
+ arch = bfd_arch_tic30;
+ break;
+#endif
+
/* start-sanitize-tic80 */
#ifdef TIC80_ARCH_MAGIC
case TIC80_ARCH_MAGIC:
}
break;
#endif
+
+#ifdef TIC30MAGIC
+ case bfd_arch_tic30:
+ *magicp = TIC30MAGIC;
+ return true;
+#endif
/* start-sanitize-tic80 */
#ifdef TIC80_ARCH_MAGIC
case bfd_arch_tic80:
/* Calculate the file position for each section. */
+#ifndef I960
+#define ALIGN_SECTIONS_IN_FILE
+#endif
+/* start-sanitize-tic80 */
+#ifdef TIC80COFF
+#undef ALIGN_SECTIONS_IN_FILE
+#endif
+/* end-sanitize-tic80 */
+
static boolean
coff_compute_section_file_positions (abfd)
bfd * abfd;
which they are aligned in virtual memory. I960 doesn't
do this (FIXME) so we can stay in sync with Intel. 960
doesn't yet page from files... */
-#ifndef I960
+#ifdef ALIGN_SECTIONS_IN_FILE
if ((abfd->flags & EXEC_P) != 0)
{
/* make sure this section is aligned on the right boundary - by
sofar += current->_raw_size;
-#ifndef I960
+#ifdef ALIGN_SECTIONS_IN_FILE
/* make sure that this section is of the right size too */
if ((abfd->flags & EXEC_P) == 0)
{
--- /dev/null
+/* BFD support for the Texas Instruments TMS320C30 architecture.
+ Copyright 1998 Free Software Foundation, Inc.
+
+ This file is part of BFD, the Binary File Descriptor library.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA. */
+
+#include "bfd.h"
+#include "sysdep.h"
+#include "libbfd.h"
+
+const bfd_arch_info_type bfd_tic30_arch =
+{
+ 32, /* 32 bits in a word */
+ 32, /* 32 bits in an address */
+ 8, /* 8 bits in a byte */
+ bfd_arch_tic30,
+ 0, /* only 1 machine */
+ "tic30",
+ "tms320c30",
+ 2,
+ true, /* the one and only */
+ bfd_default_compatible,
+ bfd_default_scan,
+ 0,
+};
This is a 16bit pcrel reloc for the mn10300, offset by two bytes in the
instruction.
+ENUM
+ BFD_RELOC_TIC30_LDP
+ENUMDOC
+ This is a 8bit DP reloc for the tms320c30, where the most
+ significant 8 bits of a 24 bit word are placed into the least
+ significant 8 bits of the opcode.
+
ENDSENUM
BFD_RELOC_UNUSED
CODE_FRAGMENT
extern const bfd_target sparccoff_vec;
extern const bfd_target sunos_big_vec;
extern const bfd_target tekhex_vec;
+extern const bfd_target tic30_aout_vec;
+extern const bfd_target tic30_coff_vec;
/* start-sanitize-tic80 */
extern const bfd_target tic80coff_vec;
/* end-sanitize-tic80 */
&sunos_big_vec,
&aout0_big_vec,
&tekhex_vec,
+ &tic30_aout_vec,
+ &tic30_coff_vec,
/* start-sanitize-tic80 */
&tic80coff_vec,
/* end-sanitize-tic80 */