summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-03-09 00:33:28 +0000
committerjb <jb@FreeBSD.org>1998-03-09 00:33:28 +0000
commit78ec3b77f6779fc3656c19ec4e805a7b634384f1 (patch)
treea3c4798a267820217feb1310e41619332fe22309 /gnu
parent7c6e96080c4fb49bf912942804477d202a53396c (diff)
downloadFreeBSD-src-78ec3b77f6779fc3656c19ec4e805a7b634384f1.zip
FreeBSD-src-78ec3b77f6779fc3656c19ec4e805a7b634384f1.tar.gz
Import of alpha specific bits to configure binutils for FreeBSD/Alpha.
Other changes that affect the i386-elf work are on hold to avoid stuffing up other work in progress.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/alpha-elf/Makefile9
-rw-r--r--gnu/usr.bin/binutils/alpha-elf/Makefile.inc5
-rw-r--r--gnu/usr.bin/binutils/alpha-elf/Makefile.inc07
-rw-r--r--gnu/usr.bin/binutils/alpha-elf/as/Makefile24
-rw-r--r--gnu/usr.bin/binutils/alpha-elf/as/config.h133
-rw-r--r--gnu/usr.bin/binutils/alpha-elf/as/obj-format.h1
-rw-r--r--gnu/usr.bin/binutils/alpha-elf/as/targ-cpu.h1
-rw-r--r--gnu/usr.bin/binutils/alpha-elf/as/targ-env.h1
-rw-r--r--gnu/usr.bin/binutils/alpha-elf/ld/Makefile51
-rw-r--r--gnu/usr.bin/binutils/alpha-elf/ld/config.h44
-rw-r--r--gnu/usr.bin/binutils/alpha-elf/ld/ldemul-list.h6
11 files changed, 282 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/alpha-elf/Makefile b/gnu/usr.bin/binutils/alpha-elf/Makefile
new file mode 100644
index 0000000..6939dab
--- /dev/null
+++ b/gnu/usr.bin/binutils/alpha-elf/Makefile
@@ -0,0 +1,9 @@
+#
+# $Id: Makefile,v 1.1.1.1 1998/03/01 23:40:57 jdp Exp $
+#
+
+.include "../Makefile.inc0"
+
+SUBDIR= as ld
+
+.include <bsd.subdir.mk>
diff --git a/gnu/usr.bin/binutils/alpha-elf/Makefile.inc b/gnu/usr.bin/binutils/alpha-elf/Makefile.inc
new file mode 100644
index 0000000..bb2e877
--- /dev/null
+++ b/gnu/usr.bin/binutils/alpha-elf/Makefile.inc
@@ -0,0 +1,5 @@
+#
+# $Id: Makefile.inc,v 1.1.1.1 1998/03/01 23:40:57 jdp Exp $
+#
+
+BINDIR?= /usr/bin
diff --git a/gnu/usr.bin/binutils/alpha-elf/Makefile.inc0 b/gnu/usr.bin/binutils/alpha-elf/Makefile.inc0
new file mode 100644
index 0000000..dccbd5a
--- /dev/null
+++ b/gnu/usr.bin/binutils/alpha-elf/Makefile.inc0
@@ -0,0 +1,7 @@
+#
+# $Id: Makefile.inc0,v 1.1.1.1 1998/03/01 23:40:58 jdp Exp $
+#
+
+.include "../Makefile.inc0"
+
+RELTOP:= ../${RELTOP}
diff --git a/gnu/usr.bin/binutils/alpha-elf/as/Makefile b/gnu/usr.bin/binutils/alpha-elf/as/Makefile
new file mode 100644
index 0000000..e74baac
--- /dev/null
+++ b/gnu/usr.bin/binutils/alpha-elf/as/Makefile
@@ -0,0 +1,24 @@
+#
+# $Id: Makefile,v 1.1.1.1 1998/03/01 23:40:59 jdp Exp $
+#
+
+.include "../Makefile.inc0"
+
+.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config
+
+PROG= as
+MAN1= doc/as.1
+SRCS= app.c as.c atof-generic.c atof-ieee.c bignum-copy.c \
+ cond.c ecoff.c expr.c flonum-copy.c flonum-konst.c \
+ flonum-mult.c frags.c hash.c input-file.c \
+ input-scrub.c listing.c literal.c macro.c messages.c \
+ obj-elf.c output-file.c read.c sb.c stabs.c \
+ subsegs.c symbols.c tc-alpha.c write.c
+CFLAGS+= -I${SRCDIR}/gas
+CFLAGS+= -I${SRCDIR}/gas/config
+CFLAGS+= -I${SRCDIR}
+LDADD+= -L${RELTOP}/libbfd -lbfd
+LDADD+= -L${RELTOP}/libiberty -liberty
+LDADD+= -L${RELTOP}/libopcodes -lopcodes
+
+.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/binutils/alpha-elf/as/config.h b/gnu/usr.bin/binutils/alpha-elf/as/config.h
new file mode 100644
index 0000000..37991d9
--- /dev/null
+++ b/gnu/usr.bin/binutils/alpha-elf/as/config.h
@@ -0,0 +1,133 @@
+/* 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 "alpha-unknown-freebsdelf"
+#define TARGET_CPU "alpha"
+#define TARGET_CANONICAL "alpha-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/alpha-elf/as/obj-format.h b/gnu/usr.bin/binutils/alpha-elf/as/obj-format.h
new file mode 100644
index 0000000..69c64aa
--- /dev/null
+++ b/gnu/usr.bin/binutils/alpha-elf/as/obj-format.h
@@ -0,0 +1 @@
+#include "obj-elf.h"
diff --git a/gnu/usr.bin/binutils/alpha-elf/as/targ-cpu.h b/gnu/usr.bin/binutils/alpha-elf/as/targ-cpu.h
new file mode 100644
index 0000000..2738848
--- /dev/null
+++ b/gnu/usr.bin/binutils/alpha-elf/as/targ-cpu.h
@@ -0,0 +1 @@
+#include "tc-alpha.h"
diff --git a/gnu/usr.bin/binutils/alpha-elf/as/targ-env.h b/gnu/usr.bin/binutils/alpha-elf/as/targ-env.h
new file mode 100644
index 0000000..032e7ac
--- /dev/null
+++ b/gnu/usr.bin/binutils/alpha-elf/as/targ-env.h
@@ -0,0 +1 @@
+#include "te-freebsd.h"
diff --git a/gnu/usr.bin/binutils/alpha-elf/ld/Makefile b/gnu/usr.bin/binutils/alpha-elf/ld/Makefile
new file mode 100644
index 0000000..781c258
--- /dev/null
+++ b/gnu/usr.bin/binutils/alpha-elf/ld/Makefile
@@ -0,0 +1,51 @@
+#
+# $Id: Makefile,v 1.1.1.1 1998/03/01 23:41:02 jdp Exp $
+#
+
+.include "../Makefile.inc0"
+
+.PATH: ${SRCDIR}/ld
+
+EMULATION= elf64alpha
+LDSCRIPTS= elf64alpha.x elf64alpha.xbn elf64alpha.xn elf64alpha.xr \
+ elf64alpha.xs elf64alpha.xu alpha.x alpha.xbn \
+ alpha.xn alpha.xr alpha.xu
+
+PROG= ld
+BINDIR= /usr/libexec/elf
+SCRIPTDIR= /usr/libdata/ldscripts
+SRCS= ldgram.c eelf64alpha.c ealpha.c ldcref.c \
+ ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
+ ldlex.l ldmain.c ldmisc.c ldver.c ldwrite.c \
+ lexsup.c mri.c
+CFLAGS+= -DDEFAULT_EMULATION=\"${EMULATION}\"
+CFLAGS+= -DSCRIPTDIR=\"${DESTDIR}/usr/libdata\"
+CFLAGS+= -DTARGET=\"${TARGET}\"
+CFLAGS+= -I${SRCDIR}/ld
+LDADD+= -L${RELTOP}/libbfd -lbfd
+LDADD+= -L${RELTOP}/libiberty -liberty
+CLEANFILES+= eelf64alpha.c ealpha.c ldgram.c ldgram.h ldlex.c
+CLEANDIRS+= ldscripts
+
+beforedepend: eelf64alpha.c ealpha.c ldgram.c ldgram.h ldlex.c
+
+eelf64alpha.c: emulparams/elf64alpha.sh emultempl/elf32.em \
+ scripttempl/elf.sc genscripts.sh emultempl/stringify.sed
+ sh ${SRCDIR}/ld/genscripts.sh ${SRCDIR}/ld ${DESTDIR}/usr/lib \
+ ${HOST} ${TARGET} ${TARGET} ${EMULATION} "" \
+ ${EMULATION} ${TARGET}
+
+ealpha.c: emulparams/elf64alpha.sh emultempl/elf32.em \
+ scripttempl/elf.sc genscripts.sh emultempl/stringify.sed
+ sh ${SRCDIR}/ld/genscripts.sh ${SRCDIR}/ld ${DESTDIR}/usr/lib \
+ ${HOST} ${TARGET} ${TARGET} ${EMULATION} "" \
+ alpha alpha-unknown-freebsd
+
+ldgram.c ldgram.h: ldgram.y
+ ${YACC} ${YFLAGS} -o ${.TARGET:S/.h$/.c/} ${.ALLSRC}
+
+afterinstall:
+ ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
+ ${LDSCRIPTS:S|^|ldscripts/|} ${DESTDIR}${SCRIPTDIR}
+
+.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/binutils/alpha-elf/ld/config.h b/gnu/usr.bin/binutils/alpha-elf/ld/config.h
new file mode 100644
index 0000000..545731e
--- /dev/null
+++ b/gnu/usr.bin/binutils/alpha-elf/ld/config.h
@@ -0,0 +1,44 @@
+/* config.h. Generated automatically by configure. */
+/* config.in. Generated automatically from configure.in by autoheader. */
+
+/* Whether strstr must be declared even if <string.h> is included. */
+/* #undef NEED_DECLARATION_STRSTR */
+
+/* Whether free must be declared even if <stdlib.h> is included. */
+/* #undef NEED_DECLARATION_FREE */
+
+/* Whether sbrk must be declared even if <unistd.h> is included. */
+/* #undef NEED_DECLARATION_SBRK */
+
+/* Whether getenv must be declared even if <stdlib.h> is included. */
+/* #undef NEED_DECLARATION_GETENV */
+
+/* Do we need to use the b modifier when opening binary files? */
+/* #undef USE_BINARY_FOPEN */
+
+/* Define if you have the sbrk function. */
+#define HAVE_SBRK 1
+
+/* Define if you have the <dirent.h> header file. */
+#define HAVE_DIRENT_H 1
+
+/* Define if you have the <ndir.h> header file. */
+/* #undef HAVE_NDIR_H */
+
+/* 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/dir.h> header file. */
+/* #undef HAVE_SYS_DIR_H */
+
+/* Define if you have the <sys/ndir.h> header file. */
+/* #undef HAVE_SYS_NDIR_H */
+
+/* Define if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
diff --git a/gnu/usr.bin/binutils/alpha-elf/ld/ldemul-list.h b/gnu/usr.bin/binutils/alpha-elf/ld/ldemul-list.h
new file mode 100644
index 0000000..3ffb583
--- /dev/null
+++ b/gnu/usr.bin/binutils/alpha-elf/ld/ldemul-list.h
@@ -0,0 +1,6 @@
+/* This file is automatically generated. DO NOT EDIT! */
+extern ld_emulation_xfer_type ld_elf64alpha_emulation;
+
+#define EMULATION_LIST \
+ &ld_elf64alpha_emulation, \
+ 0
OpenPOWER on IntegriCloud