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.
This commit is contained in:
John Birrell
1998-03-09 00:33:28 +00:00
parent 2b9ede499c
commit 25c5530515
11 changed files with 282 additions and 0 deletions
+9
View File
@@ -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>
@@ -0,0 +1,5 @@
#
# $Id: Makefile.inc,v 1.1.1.1 1998/03/01 23:40:57 jdp Exp $
#
BINDIR?= /usr/bin
@@ -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}
@@ -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>
+133
View File
@@ -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 */
@@ -0,0 +1 @@
#include "obj-elf.h"
@@ -0,0 +1 @@
#include "tc-alpha.h"
@@ -0,0 +1 @@
#include "te-freebsd.h"
@@ -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>
@@ -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
@@ -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