diff options
author | Ian Lance Taylor <ian@airs.com> | 1998-02-02 22:49:54 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1998-02-02 22:49:54 +0000 |
commit | e8f2efef4d8222c0a60be544399b6edeea156734 (patch) | |
tree | a13b5c1bb94adf6835f1fcf85272408ccee5a42f /bfd/coffcode.h | |
parent | 5de944588a26c3e04ecee36e0c2f09d087676c4d (diff) | |
download | gdb-e8f2efef4d8222c0a60be544399b6edeea156734.zip gdb-e8f2efef4d8222c0a60be544399b6edeea156734.tar.gz gdb-e8f2efef4d8222c0a60be544399b6edeea156734.tar.bz2 |
* Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force
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.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r-- | bfd/coffcode.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 1172f57..fe89a1d 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -1604,6 +1604,12 @@ coff_set_arch_mach_hook (abfd, filehdr) break; #endif +#ifdef TIC30MAGIC + case TIC30MAGIC: + arch = bfd_arch_tic30; + break; +#endif + /* start-sanitize-tic80 */ #ifdef TIC80_ARCH_MAGIC case TIC80_ARCH_MAGIC: @@ -1982,6 +1988,12 @@ coff_set_flags (abfd, magicp, flagsp) } break; #endif + +#ifdef TIC30MAGIC + case bfd_arch_tic30: + *magicp = TIC30MAGIC; + return true; +#endif /* start-sanitize-tic80 */ #ifdef TIC80_ARCH_MAGIC case bfd_arch_tic80: @@ -2168,6 +2180,15 @@ coff_set_arch_mach (abfd, arch, machine) /* 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; @@ -2276,7 +2297,7 @@ coff_compute_section_file_positions (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 @@ -2327,7 +2348,7 @@ coff_compute_section_file_positions (abfd) 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) { |