diff options
author | John Birrell <jb@FreeBSD.org> | 1999-11-06 22:12:24 +0000 |
---|---|---|
committer | John Birrell <jb@FreeBSD.org> | 1999-11-06 22:12:24 +0000 |
commit | 9daea63040c4b7cb2c2fbe7e3b374ef80fb80a8f (patch) | |
tree | c44f38866579576838107346cd4cd8f7cb1566c6 | |
parent | 1009ce833e3b47cb11f48347a351aa7871b79396 (diff) | |
download | src-9daea63040c4b7cb2c2fbe7e3b374ef80fb80a8f.tar.gz src-9daea63040c4b7cb2c2fbe7e3b374ef80fb80a8f.zip |
gas for sparc targeted to FreeBSD as ELF32 for a start (suject to change).
Notes
Notes:
svn path=/head/; revision=52933
-rw-r--r-- | gnu/usr.bin/binutils/as/sparc-freebsd/Makefile | 14 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/as/sparc-freebsd/config.h | 134 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/as/sparc-freebsd/obj-format.h | 2 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/as/sparc-freebsd/targ-cpu.h | 2 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/as/sparc-freebsd/targ-env.h | 2 |
5 files changed, 154 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/as/sparc-freebsd/Makefile b/gnu/usr.bin/binutils/as/sparc-freebsd/Makefile new file mode 100644 index 000000000000..b243493eb0fa --- /dev/null +++ b/gnu/usr.bin/binutils/as/sparc-freebsd/Makefile @@ -0,0 +1,14 @@ +# +# $FreeBSD$ +# + +.include "${.CURDIR}/../Makefile.inc0" + +PROG= as +.if ${MACHINE_ARCH} != "sparc" +NOMAN= 1 +BINDIR= /usr/libexec/cross/sparc-freebsdelf +.endif +SRCS+= obj-elf.c tc-sparc.c + +.include <bsd.prog.mk> diff --git a/gnu/usr.bin/binutils/as/sparc-freebsd/config.h b/gnu/usr.bin/binutils/as/sparc-freebsd/config.h new file mode 100644 index 000000000000..0a3d72c1b05a --- /dev/null +++ b/gnu/usr.bin/binutils/as/sparc-freebsd/config.h @@ -0,0 +1,134 @@ +/* $FreeBSD$ */ +/* config.h. Generated automatically by make. */ +#ifndef GAS_VERSION +#define GAS_VERSION "2.8.1" + +/* conf. Generated automatically by configure. */ +/* conf.in. Generated automatically from configure.in by autoheader. */ + +/* Define if using alloca.c. */ +/* #undef C_ALLOCA */ + +/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. + This function is required for alloca.c support on those systems. */ +/* #undef CRAY_STACKSEG_END */ + +/* Define if you have alloca, as a function or macro. */ +#define HAVE_ALLOCA 1 + +/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ +/* #undef HAVE_ALLOCA_H */ + +/* Define as __inline if that's what the C compiler calls it. */ +/* #undef inline */ + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown + */ +/* #undef STACK_DIRECTION */ + +/* Should gas use high-level BFD interfaces? */ +#define BFD_ASSEMBLER 1 + +/* Some assert/preprocessor combinations are incapable of handling + certain kinds of constructs in the argument of assert. For example, + quoted strings (if requoting isn't done right) or newlines. */ +/* #undef BROKEN_ASSERT */ + +/* If we aren't doing cross-assembling, some operations can be optimized, + since byte orders and value sizes don't need to be adjusted. */ +/* #undef CROSS_COMPILE */ + +/* Some gas code wants to know these parameters. */ +#define TARGET_ALIAS "i386-unknown-freebsdelf" +#define TARGET_CPU "i386" +#define TARGET_CANONICAL "i386-unknown-freebsdelf" +#define TARGET_OS "freebsdelf" +#define TARGET_VENDOR "unknown" + +/* Sometimes the system header files don't declare strstr. */ +/* #undef NEED_DECLARATION_STRSTR */ + +/* Sometimes the system header files don't declare malloc and realloc. */ +/* #undef NEED_DECLARATION_MALLOC */ + +/* Sometimes the system header files don't declare free. */ +/* #undef NEED_DECLARATION_FREE */ + +/* Sometimes the system header files don't declare sbrk. */ +/* #undef NEED_DECLARATION_SBRK */ + +/* Sometimes errno.h doesn't declare errno itself. */ +/* #undef NEED_DECLARATION_ERRNO */ + +/* #undef MANY_SEGMENTS */ + +/* Needed only for sparc configuration. */ +/* #undef SPARC_V9 */ +/* #undef SPARC_ARCH64 */ + +/* Defined if using CGEN. */ +/* #undef USING_CGEN */ + +/* Needed only for some configurations that can produce multiple output + formats. */ +#define DEFAULT_EMULATION "" +#define EMULATIONS +/* #undef USE_EMULATIONS */ +/* #undef OBJ_MAYBE_AOUT */ +/* #undef OBJ_MAYBE_BOUT */ +/* #undef OBJ_MAYBE_COFF */ +/* #undef OBJ_MAYBE_ECOFF */ +/* #undef OBJ_MAYBE_ELF */ +/* #undef OBJ_MAYBE_GENERIC */ +/* #undef OBJ_MAYBE_HP300 */ +/* #undef OBJ_MAYBE_IEEE */ +/* #undef OBJ_MAYBE_SOM */ +/* #undef OBJ_MAYBE_VMS */ + +/* Used for some of the COFF configurations, when the COFF code needs + to select something based on the CPU type before it knows it... */ +/* #undef I386COFF */ +/* #undef M68KCOFF */ +/* #undef M88KCOFF */ + +/* Define if you have the remove function. */ +/* #undef HAVE_REMOVE */ + +/* Define if you have the sbrk function. */ +#define HAVE_SBRK 1 + +/* Define if you have the unlink function. */ +#define HAVE_UNLINK 1 + +/* Define if you have the <errno.h> header file. */ +#define HAVE_ERRNO_H 1 + +/* Define if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define if you have the <stdarg.h> header file. */ +#define HAVE_STDARG_H 1 + +/* Define if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Define if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define if you have the <sys/types.h> header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Define if you have the <varargs.h> header file. */ +#define HAVE_VARARGS_H 1 +#endif /* GAS_VERSION */ diff --git a/gnu/usr.bin/binutils/as/sparc-freebsd/obj-format.h b/gnu/usr.bin/binutils/as/sparc-freebsd/obj-format.h new file mode 100644 index 000000000000..95f2014d7ea2 --- /dev/null +++ b/gnu/usr.bin/binutils/as/sparc-freebsd/obj-format.h @@ -0,0 +1,2 @@ +/* $FreeBSD$ */ +#include "obj-elf.h" diff --git a/gnu/usr.bin/binutils/as/sparc-freebsd/targ-cpu.h b/gnu/usr.bin/binutils/as/sparc-freebsd/targ-cpu.h new file mode 100644 index 000000000000..a703946c2204 --- /dev/null +++ b/gnu/usr.bin/binutils/as/sparc-freebsd/targ-cpu.h @@ -0,0 +1,2 @@ +/* $FreeBSD$ */ +#include "tc-sparc.h" diff --git a/gnu/usr.bin/binutils/as/sparc-freebsd/targ-env.h b/gnu/usr.bin/binutils/as/sparc-freebsd/targ-env.h new file mode 100644 index 000000000000..f8f050edc681 --- /dev/null +++ b/gnu/usr.bin/binutils/as/sparc-freebsd/targ-env.h @@ -0,0 +1,2 @@ +/* $FreeBSD$ */ +#include "te-freebsd.h" |