From 8a6f53e91bfd4d460f28f95a48809b668382391e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 14 Feb 1996 21:37:16 +0000 Subject: [PATCH] Wed Feb 14 16:33:12 1996 Martin Anantharaman * read.c (s_mri_sect): Don't return '\0' in type. Set all appropriate flags in BFD section. * configure.in (m68k-*-psos*): New target. * configure: Rebuild. * config/te-psos.h: New file. * config/tc-m68k.c (comment_chars): Don't include '#' if TE_PSOS is defined. --- gas/ChangeLog | 11 +++++++++++ gas/config/.Sanitize | 1 + gas/config/tc-m68k.c | 2 +- gas/config/te-psos.h | 22 ++++++++++++++++++++++ gas/configure.in | 3 ++- 5 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 gas/config/te-psos.h diff --git a/gas/ChangeLog b/gas/ChangeLog index 40d4f6f9f30..04e5f3c8222 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,14 @@ +Wed Feb 14 16:33:12 1996 Martin Anantharaman + + * read.c (s_mri_sect): Don't return '\0' in type. Set all + appropriate flags in BFD section. + + * configure.in (m68k-*-psos*): New target. + * configure: Rebuild. + * config/te-psos.h: New file. + * config/tc-m68k.c (comment_chars): Don't include '#' if TE_PSOS + is defined. + Wed Feb 14 13:43:24 1996 Ian Lance Taylor * config/tc-mips.c (mips_big_got): New static variable. diff --git a/gas/config/.Sanitize b/gas/config/.Sanitize index a24eb30f8c2..9f251b28df5 100644 --- a/gas/config/.Sanitize +++ b/gas/config/.Sanitize @@ -146,6 +146,7 @@ te-nbsd532.h te-pc532mach.h te-pe.h te-ppcnw.h +te-psos.h te-sco386.h te-sun3.h te-sysv32.h diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index dc82c138a5b..d9694e09be2 100644 --- a/gas/config/tc-m68k.c +++ b/gas/config/tc-m68k.c @@ -28,7 +28,7 @@ /* This array holds the chars that always start a comment. If the pre-processor is disabled, these aren't very useful */ -#if defined (OBJ_ELF) || defined (TE_DELTA) +#if (defined (OBJ_ELF) && ! defined (TE_PSOS)) || defined (TE_DELTA) const char comment_chars[] = "|#"; #else const char comment_chars[] = "|"; diff --git a/gas/config/te-psos.h b/gas/config/te-psos.h new file mode 100644 index 00000000000..2ad4153b81a --- /dev/null +++ b/gas/config/te-psos.h @@ -0,0 +1,22 @@ +/* + * This file is te-psos.h for embedded systems running pSOS. + * Contributed by Martin Anantharaman (martin@mail.imech.uni-duisburg.de) + */ + +#define TE_PSOS + +/* Added these, because if we don't know what we're targetting we may + need an assembler version of libgcc, and that will use local + labels. */ + +#define LOCAL_LABELS_DOLLAR 1 +#define LOCAL_LABELS_FB 1 + +/* This makes GAS more versatile and blocks some ELF'isms in + tc-m68k.h. */ + +#define REGISTER_PREFIX_OPTIONAL 1 + +#include "obj-format.h" + +/* end of te-psos.h */ diff --git a/gas/configure.in b/gas/configure.in index a8a967689aa..d8d0356a13a 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -226,7 +226,8 @@ changequote([,])dnl m68k-*-lynxos*) fmt=coff targ=m68kcoff em=lynx ;; m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;; - m68*-apple-aux*) fmt=coff targ=m68kcoff em=aux ;; + m68k-apple-aux*) fmt=coff targ=m68kcoff em=aux ;; + m68k-*-psos*) fmt=elf em=psos;; m88k-motorola-sysv3*) fmt=coff targ=m88kcoff em=delt88 ;; m88k-*-coff*) fmt=coff targ=m88kcoff ;; -- 2.30.2