diff options
author | K. Richard Pixley <rich@cygnus> | 1991-04-04 18:19:55 +0000 |
---|---|---|
committer | K. Richard Pixley <rich@cygnus> | 1991-04-04 18:19:55 +0000 |
commit | eb4edf5df2ec5960a3b7ad76f5be23ddd7278516 (patch) | |
tree | c2b553eba1b81d7cc4ff83a9b3131417bf394a92 /gas/config | |
parent | 3a69b3aca678a3caf3ade7f9d42d18233b097ec6 (diff) | |
download | gdb-eb4edf5df2ec5960a3b7ad76f5be23ddd7278516.zip gdb-eb4edf5df2ec5960a3b7ad76f5be23ddd7278516.tar.gz gdb-eb4edf5df2ec5960a3b7ad76f5be23ddd7278516.tar.bz2 |
new gas main line
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/obj-generic.c | 27 | ||||
-rw-r--r-- | gas/config/obj-generic.h | 61 | ||||
-rw-r--r-- | gas/config/te-dpx2.h | 10 |
3 files changed, 98 insertions, 0 deletions
diff --git a/gas/config/obj-generic.c b/gas/config/obj-generic.c new file mode 100644 index 0000000..86eac73 --- /dev/null +++ b/gas/config/obj-generic.c @@ -0,0 +1,27 @@ +/* + * This file is obj-generic.c and is intended to be a template for + * object format specific source files. + * + * Last Mod Thu Jan 3 19:30:50 PST 1991, by rich@sendai + */ + +/* Chars that can be used to separate mant from exp in floating point nums */ +char EXP_CHARS[] = "eE"; + +/* Chars that mean this number is a floating point constant */ +/* As in 0f12.456 */ +/* or 0d1.2345e12 */ +char FLT_CHARS[] = "rRsSfFdDxXpP"; + +/* These chars start a comment anywhere in a source file (except inside + another comment */ +const char comment_chars[] = "#"; + +/* + * Local Variables: + * comment-column: 0 + * fill-column: 131 + * End: + */ + +/* end of obj-generic.c */ diff --git a/gas/config/obj-generic.h b/gas/config/obj-generic.h new file mode 100644 index 0000000..d9e03dc --- /dev/null +++ b/gas/config/obj-generic.h @@ -0,0 +1,61 @@ +/* + * This file is obj-generic.h and is intended to be a template for + * object format specific header files. + */ + + /* define an obj specific macro off which target cpu back ends may key. */ +#define OBJ_GENERIC 1 + + /* include whatever target cpu is appropriate. */ +#include "targ-cpu.h" + +/* + * SYMBOLS + */ + +/* + * If your object format needs to reorder symbols, define this. When + * defined, symbols are kept on a doubly linked list and functions are + * made available for push, insert, append, and delete. If not defined, + * symbols are kept on a singly linked list, only the append and clear + * facilities are available, and they are macros. + */ + + /* #define SYMBOLS_NEED_PACKPOINTERS */ + + /* */ +typedef struct { + void *nothing; +} obj_symbol_type; /* should be the format's symbol structure */ + +typedef void *object_headers; + + /* symbols have names */ +#define S_GET_NAME(s) ("foo") /* get the name of a symbolP */ +#define S_SET_NAME(s,v) ; + /* symbols have segments */ +#define S_GET_SEGMENT(s) (SEG_UNKNOWN) +#define S_SET_SEGMENT(s,v) ; + /* symbols have a value */ +#define S_GET_VALUE(s) (0) +#define S_SET_VALUE(s,v) ; + /* symbols may be external */ +#define S_IS_EXTERNAL(s) (0) +#define S_SET_EXTERNAL(s) ; + + /* symbols may or may not be defined */ +#define S_IS_DEFINED(s) (0) + + +#define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE (0) /* your magic number */ + +#define OBJ_EMIT_LINENO(a,b,c) /* must be *something*. This no-op's it out. */ + +/* + * Local Variables: + * comment-column: 0 + * fill-column: 131 + * End: + */ + +/* end of obj-generic.h */ diff --git a/gas/config/te-dpx2.h b/gas/config/te-dpx2.h new file mode 100644 index 0000000..00ca020 --- /dev/null +++ b/gas/config/te-dpx2.h @@ -0,0 +1,10 @@ +/* Machine specific defines for the dpx2 machine */ +#define dpx2 +#define TC_M68K + +/* Preserve leading underscore in symbol names. */ +#define STRIP_UNDERSCORE 0 + +/* The magic number is not the usual MC68MAGIC. */ +#define FILE_HEADER_MAGIC MC68KBCSMAGIC + |