aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1991-04-04 18:19:55 +0000
committerK. Richard Pixley <rich@cygnus>1991-04-04 18:19:55 +0000
commit3c0c9328b9c299580bcf8cb6fdb3b71d5a0525ff (patch)
treed95154220031e77faae82ee15cc075e4f53e7f23 /gas
parentfecd2382e77b89f12c9d630ed4e42e9a54ba6953 (diff)
parenteb4edf5df2ec5960a3b7ad76f5be23ddd7278516 (diff)
downloadgdb-3c0c9328b9c299580bcf8cb6fdb3b71d5a0525ff.zip
gdb-3c0c9328b9c299580bcf8cb6fdb3b71d5a0525ff.tar.gz
gdb-3c0c9328b9c299580bcf8cb6fdb3b71d5a0525ff.tar.bz2
This commit was generated by cvs2svn to track changes on a CVS vendor
branch.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/obj-generic.c27
-rw-r--r--gas/config/obj-generic.h61
-rw-r--r--gas/config/te-dpx2.h10
-rw-r--r--gas/link.cmd10
4 files changed, 108 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
+
diff --git a/gas/link.cmd b/gas/link.cmd
new file mode 100644
index 0000000..a035ca8
--- /dev/null
+++ b/gas/link.cmd
@@ -0,0 +1,10 @@
+ALIGN=1024
+RESNUM 0x0000, 0x8000
+; Putting in .lit1 gives errors.
+ORDER .data=0x80002000, .data1, .lit, .bss
+; Let's put this on the command line so it goes first, which is what
+; GDB expects.
+; LOAD /s2/amd/29k/lib/crt0.o
+LOAD /s2/amd/29k/lib/libqcb0h.lib
+LOAD /s2/amd/29k/lib/libscb0h.lib
+LOAD /s2/amd/29k/lib/libacb0h.lib