MAJOR cleanup of the Bmake framework.

This includes removing all vestiges of the old not-really supported
ability to build cross tools targeting non-FreeBSD systems, such as
m68k Lynx and NetBSD.  Move as much duplicated code from platform
Makefiles into the shared Makefiles.  Add a simple mechanism for
specifying ELF 'ldscripts'.  Also share as many .h files as possible
(now a single bfd.h vs. one per platform).
This commit is contained in:
David E. O'Brien 2004-07-08 17:05:34 +00:00
parent 01480e3c80
commit 7d0fc2f49e
37 changed files with 161 additions and 23474 deletions

View file

@ -27,7 +27,7 @@ CFLAGS+= -I.
CFLAGS+= -I${.CURDIR}/${TARGET_ARCH}
.endif
CFLAGS+= -I${.CURDIR}
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${TARGET_ARCH}
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd
CFLAGS+= -I${.OBJDIR}/${RELTOP}/libbfd
CFLAGS+= -I${SRCDIR}/include

View file

@ -1,34 +1,52 @@
# $FreeBSD$
# BINDIR
.include "${.CURDIR}/../../Makefile.inc"
WARNS?= 2
.include "${.CURDIR}/../Makefile.inc0"
GASES= ${TARGET_ARCH}
FORMATS=freebsd
.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config
# Only build the cross tools when not cross-compiling.
.if ${TARGET_ARCH} == ${MACHINE_ARCH}
.if defined(CROSS_ARCH)
.for _g in ${CROSS_ARCH}
.if (${GASES:R:M${_g:R}} == "")
GASES+= $(_g)
.endif
.endfor
.endif
.if defined(CROSS_FORMATS)
.for _f in ${CROSS_FORMATS}
.if (${FORMATS:R:M${_f:R}} == "")
FORMATS+= $(_f)
.endif
.endfor
.endif
PROG= as
MAN= doc/as.1
SRCS+= app.c as.c atof-generic.c atof-ieee.c bignum-copy.c \
cond.c dwarf2dbg.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 write.c depend.c ehopt.c dw2gencfi.c
# DEO: why not used?
#SRCS+= itbl-ops.c
.if ${TARGET_ARCH} == "amd64"
SRCS+= tc-i386.c
.elif ${TARGET_ARCH} == "powerpc"
SRCS+= tc-ppc.c
.elif ${TARGET_ARCH} == "sparc64"
SRCS+= tc-sparc.c
.else
SRCS+= tc-${TARGET_ARCH}.c
.endif
.for _g in ${GASES}
.for _f in ${FORMATS}
.if exists(${.CURDIR}/${_g}-${_f})
SUBDIR+= ${_g}-${_f}
.if ${TARGET_ARCH} == "sparc64"
CFLAGS+= -DDEFAULT_ARCH=\"v9-64\"
.else
CFLAGS+= -DDEFAULT_ARCH=\"${BINUTILS_ARCH}\"
.endif
.endfor
.endfor
CFLAGS+= -DTARGET_CPU=\"${BINUTILS_ARCH}\"
CFLAGS+= -DTARGET_CANONICAL=\"${TARGET_TUPLE}\"
CFLAGS+= -DTARGET_ALIAS=\"${TARGET_TUPLE}\"
CFLAGS+= -DVERSION=\"${VERSION}\"
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/gas/config -I${SRCDIR}
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${TARGET_ARCH}-freebsd
.include <bsd.subdir.mk>
NOSHARED?= yes
DPADD= ${RELTOP}/libbfd/libbfd.a
DPADD+= ${RELTOP}/libiberty/libiberty.a
DPADD+= ${RELTOP}/libopcodes/libopcodes.a
LDADD= ${DPADD}
.include <bsd.prog.mk>

View file

@ -1,6 +0,0 @@
# $FreeBSD$
WARNS?= 2
# BINDIR
.include "${.CURDIR}/../../Makefile.inc"

View file

@ -1,46 +0,0 @@
# $FreeBSD$
.include "${.CURDIR}/../../Makefile.inc0"
RELTOP:= ../${RELTOP}
.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config
PROG= as
MAN= doc/as.1
SRCS+= app.c as.c atof-generic.c atof-ieee.c bignum-copy.c \
cond.c dwarf2dbg.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 \
output-file.c read.c sb.c stabs.c \
subsegs.c symbols.c write.c depend.c ehopt.c dw2gencfi.c
# DEO: why not used?
#SRCS+= itbl-ops.c
.if ${TARGET_ARCH} == "sparc64"
CFLAGS+= -DDEFAULT_ARCH=\"v9-64\"
.else
CFLAGS+= -DDEFAULT_ARCH=\"${BINUTILS_ARCH}\"
.endif
CFLAGS+= -DTARGET_CPU=\"${BINUTILS_ARCH}\"
CFLAGS+= -DTARGET_CANONICAL=\"${TARGET_TUPLE}\"
CFLAGS+= -DTARGET_ALIAS=\"${TARGET_TUPLE}\"
CFLAGS+= -DVERSION=\"${VERSION}\"
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/gas/config -I${SRCDIR} -I${.CURDIR}/..
NOSHARED?= yes
DPADD= ${RELTOP}/libbfd/libbfd.a
DPADD+= ${RELTOP}/libiberty/libiberty.a
DPADD+= ${RELTOP}/libopcodes/libopcodes.a
LDADD= ${DPADD}
# If set, BINUTILSDISTDIR is the path to a directory containing the full GNU
# binutils release. FreeBSD only distributes the bits that are required to
# build native architectures. BINUTILSDISTDIR is needed to build cross tools.
.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
.PATH: ${BINUTILSDISTDIR}/gas ${BINUTILSDISTDIR}/gas/config
CFLAGS+= -I${BINUTILSDISTDIR}/gas
CFLAGS+= -I${BINUTILSDISTDIR}/gas/config
CFLAGS+= -I${BINUTILSDISTDIR}/bfd
CFLAGS+= -I${BINUTILSDISTDIR}/include
CFLAGS+= -I${BINUTILSDISTDIR}
.endif

View file

@ -1,11 +0,0 @@
# $FreeBSD$
.include "${.CURDIR}/../Makefile.inc0"
.if ${TARGET_ARCH} != "alpha"
NOMAN= true
BINDIR= /usr/libexec/cross/alpha-freebsd
.endif
SRCS+= obj-elf.c tc-alpha.c
.include <bsd.prog.mk>

View file

@ -1,286 +0,0 @@
/* $FreeBSD$ */
#define HAVE_DECL_GETOPT 1
/* config.h. Generated by configure. */
/* config.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */
/* #undef C_ALLOCA */
/* Define to empty if the keyword does not work. */
/* #undef const */
/* 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 if you have a working `mmap' system call. */
#define HAVE_MMAP 1
/* Define as __inline if that's what the C compiler calls it. */
/* #undef inline */
/* Define to `long' if <sys/types.h> doesn't define. */
/* #undef off_t */
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */
/* 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 */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if lex declares yytext as a char * by default, not a char[]. */
#define YYTEXT_POINTER 1
/* Define if you have the __argz_count function. */
/* #undef HAVE___ARGZ_COUNT */
/* Define if you have the __argz_next function. */
/* #undef HAVE___ARGZ_NEXT */
/* Define if you have the __argz_stringify function. */
/* #undef HAVE___ARGZ_STRINGIFY */
/* Define if you have the dcgettext function. */
/* #undef HAVE_DCGETTEXT */
/* Define if you have the getcwd function. */
#define HAVE_GETCWD 1
/* Define if you have the getpagesize function. */
#define HAVE_GETPAGESIZE 1
/* Define if you have the munmap function. */
#define HAVE_MUNMAP 1
/* Define if you have the putenv function. */
#define HAVE_PUTENV 1
/* 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 setenv function. */
#define HAVE_SETENV 1
/* Define if you have the setlocale function. */
#define HAVE_SETLOCALE 1
/* Define if you have the stpcpy function. */
#define HAVE_STPCPY 1
/* Define if you have the strcasecmp function. */
#define HAVE_STRCASECMP 1
/* Define if you have the strchr function. */
#define HAVE_STRCHR 1
/* Define if you have the unlink function. */
#define HAVE_UNLINK 1
/* Define if you have the <argz.h> header file. */
/* #undef HAVE_ARGZ_H */
/* Define if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define if you have the <malloc.h> header file. */
/* #undef HAVE_MALLOC_H */
/* Define if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define if you have the <nl_types.h> header file. */
#define HAVE_NL_TYPES_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/param.h> header file. */
#define HAVE_SYS_PARAM_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 <values.h> header file. */
#define HAVE_VALUES_H 1
/* Define if you have the <varargs.h> header file. */
/* #undef HAVE_VARARGS_H */
/* Name of package */
#define PACKAGE "gas"
/* Version number of package */
/* #define VERSION "2.15" */
/* Define if defaulting to ELF on SCO 5. */
/* #undef SCO_ELF */
/* Using strict COFF? */
/* #undef STRICTCOFF */
/* Define if default target is PowerPC Solaris. */
/* #undef TARGET_SOLARIS_COMMENT */
/* Define as 1 if big endian. */
/* #undef TARGET_BYTES_BIG_ENDIAN */
/* Default CPU for MIPS targets. */
/* #undef MIPS_CPU_STRING_DEFAULT */
/* Allow use of E_MIPS_ABI_O32 on MIPS targets. */
/* #undef USE_E_MIPS_ABI_O32 */
/* Generate 64-bit code by default on MIPS targets. */
/* #undef MIPS_DEFAULT_64BIT */
/* Choose a default ABI for MIPS targets. */
/* #undef MIPS_DEFAULT_ABI */
/* Default architecture. */
/* #undef DEFAULT_ARCH */
/* Using cgen code? */
/* #undef USING_CGEN */
/* Using i386 COFF? */
/* #undef I386COFF */
/* Using m68k COFF? */
/* #undef M68KCOFF */
/* Using m88k COFF? */
/* #undef M88KCOFF */
/* a.out support? */
/* #undef OBJ_MAYBE_AOUT */
/* b.out support? */
/* #undef OBJ_MAYBE_BOUT */
/* COFF support? */
/* #undef OBJ_MAYBE_COFF */
/* ECOFF support? */
/* #undef OBJ_MAYBE_ECOFF */
/* ELF support? */
/* #undef OBJ_MAYBE_ELF */
/* generic support? */
/* #undef OBJ_MAYBE_GENERIC */
/* HP300 support? */
/* #undef OBJ_MAYBE_HP300 */
/* IEEE support? */
/* #undef OBJ_MAYBE_IEEE */
/* SOM support? */
/* #undef OBJ_MAYBE_SOM */
/* VMS support? */
/* #undef OBJ_MAYBE_VMS */
/* Use emulation support? */
/* #undef USE_EMULATIONS */
/* Supported emulations. */
/* #define EMULATIONS */
/* Default emulation. */
/* #define DEFAULT_EMULATION "" */
/* old COFF support? */
/* #undef MANY_SEGMENTS */
/* Use BFD interface? */
#define BFD_ASSEMBLER 1
/* Target alias. */
/* #define TARGET_ALIAS "alpha-obrien-freebsd5.2" */
/* Canonical target. */
/* #define TARGET_CANONICAL "alpha-obrien-freebsd5.2" */
/* Target CPU. */
/* #define TARGET_CPU "alpha" */
/* Target vendor. */
/* #define TARGET_VENDOR "obrien" */
/* Target OS. */
/* #define TARGET_OS "freebsd5.2" */
/* Define if you have the stpcpy function */
#define HAVE_STPCPY 1
/* Define if your locale.h file contains LC_MESSAGES. */
#define HAVE_LC_MESSAGES 1
/* Define to 1 if NLS is requested */
/* #define ENABLE_NLS 1 */
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
/* #undef HAVE_GETTEXT */
/* Compiling cross-assembler? */
/* #undef CROSS_COMPILE */
/* assert broken? */
/* #undef BROKEN_ASSERT */
/* Define if strstr is not declared in system header files. */
/* #undef NEED_DECLARATION_STRSTR */
/* Define if malloc is not declared in system header files. */
/* #undef NEED_DECLARATION_MALLOC */
/* Define if free is not declared in system header files. */
/* #undef NEED_DECLARATION_FREE */
/* Define if sbrk is not declared in system header files. */
/* #undef NEED_DECLARATION_SBRK */
/* Define if environ is not declared in system header files. */
#define NEED_DECLARATION_ENVIRON 1
/* Define if errno is not declared in system header files. */
/* #undef NEED_DECLARATION_ERRNO */

View file

@ -1,7 +0,0 @@
# $FreeBSD$
.include "${.CURDIR}/../Makefile.inc0"
SRCS+= obj-elf.c tc-i386.c
.include <bsd.prog.mk>

View file

@ -1,286 +0,0 @@
/* $FreeBSD$ */
#define HAVE_DECL_GETOPT 1
/* config.h. Generated by configure. */
/* config.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */
/* #undef C_ALLOCA */
/* Define to empty if the keyword does not work. */
/* #undef const */
/* 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 if you have a working `mmap' system call. */
#define HAVE_MMAP 1
/* Define as __inline if that's what the C compiler calls it. */
/* #undef inline */
/* Define to `long' if <sys/types.h> doesn't define. */
/* #undef off_t */
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */
/* 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 */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if lex declares yytext as a char * by default, not a char[]. */
#define YYTEXT_POINTER 1
/* Define if you have the __argz_count function. */
/* #undef HAVE___ARGZ_COUNT */
/* Define if you have the __argz_next function. */
/* #undef HAVE___ARGZ_NEXT */
/* Define if you have the __argz_stringify function. */
/* #undef HAVE___ARGZ_STRINGIFY */
/* Define if you have the dcgettext function. */
/* #undef HAVE_DCGETTEXT */
/* Define if you have the getcwd function. */
#define HAVE_GETCWD 1
/* Define if you have the getpagesize function. */
#define HAVE_GETPAGESIZE 1
/* Define if you have the munmap function. */
#define HAVE_MUNMAP 1
/* Define if you have the putenv function. */
#define HAVE_PUTENV 1
/* 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 setenv function. */
#define HAVE_SETENV 1
/* Define if you have the setlocale function. */
#define HAVE_SETLOCALE 1
/* Define if you have the stpcpy function. */
#define HAVE_STPCPY 1
/* Define if you have the strcasecmp function. */
#define HAVE_STRCASECMP 1
/* Define if you have the strchr function. */
#define HAVE_STRCHR 1
/* Define if you have the unlink function. */
#define HAVE_UNLINK 1
/* Define if you have the <argz.h> header file. */
/* #undef HAVE_ARGZ_H */
/* Define if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define if you have the <malloc.h> header file. */
/* #undef HAVE_MALLOC_H */
/* Define if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define if you have the <nl_types.h> header file. */
#define HAVE_NL_TYPES_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/param.h> header file. */
#define HAVE_SYS_PARAM_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 <values.h> header file. */
#define HAVE_VALUES_H 1
/* Define if you have the <varargs.h> header file. */
/* #undef HAVE_VARARGS_H */
/* Name of package */
#define PACKAGE "gas"
/* Version number of package */
/* #define VERSION "2.15" */
/* Define if defaulting to ELF on SCO 5. */
/* #undef SCO_ELF */
/* Using strict COFF? */
/* #undef STRICTCOFF */
/* Define if default target is PowerPC Solaris. */
/* #undef TARGET_SOLARIS_COMMENT */
/* Define as 1 if big endian. */
/* #undef TARGET_BYTES_BIG_ENDIAN */
/* Default CPU for MIPS targets. */
/* #undef MIPS_CPU_STRING_DEFAULT */
/* Allow use of E_MIPS_ABI_O32 on MIPS targets. */
/* #undef USE_E_MIPS_ABI_O32 */
/* Generate 64-bit code by default on MIPS targets. */
/* #undef MIPS_DEFAULT_64BIT */
/* Choose a default ABI for MIPS targets. */
/* #undef MIPS_DEFAULT_ABI */
/* Default architecture. */
/* #undef DEFAULT_ARCH */
/* Using cgen code? */
/* #undef USING_CGEN */
/* Using i386 COFF? */
/* #undef I386COFF */
/* Using m68k COFF? */
/* #undef M68KCOFF */
/* Using m88k COFF? */
/* #undef M88KCOFF */
/* a.out support? */
/* #undef OBJ_MAYBE_AOUT */
/* b.out support? */
/* #undef OBJ_MAYBE_BOUT */
/* COFF support? */
/* #undef OBJ_MAYBE_COFF */
/* ECOFF support? */
/* #undef OBJ_MAYBE_ECOFF */
/* ELF support? */
/* #undef OBJ_MAYBE_ELF */
/* generic support? */
/* #undef OBJ_MAYBE_GENERIC */
/* HP300 support? */
/* #undef OBJ_MAYBE_HP300 */
/* IEEE support? */
/* #undef OBJ_MAYBE_IEEE */
/* SOM support? */
/* #undef OBJ_MAYBE_SOM */
/* VMS support? */
/* #undef OBJ_MAYBE_VMS */
/* Use emulation support? */
/* #undef USE_EMULATIONS */
/* Supported emulations. */
/* #define EMULATIONS */
/* Default emulation. */
/* #define DEFAULT_EMULATION "" */
/* old COFF support? */
/* #undef MANY_SEGMENTS */
/* Use BFD interface? */
#define BFD_ASSEMBLER 1
/* Target alias. */
/* #define TARGET_ALIAS "amd64-obrien-freebsd5.2.1" */
/* Canonical target. */
/* #define TARGET_CANONICAL "amd64-obrien-freebsd5.2.1" */
/* Target CPU. */
/* #define TARGET_CPU "amd64" */
/* Target vendor. */
/* #define TARGET_VENDOR "obrien" */
/* Target OS. */
/* #define TARGET_OS "freebsd5.2.1" */
/* Define if you have the stpcpy function */
#define HAVE_STPCPY 1
/* Define if your locale.h file contains LC_MESSAGES. */
#define HAVE_LC_MESSAGES 1
/* Define to 1 if NLS is requested */
/* #define ENABLE_NLS 1 */
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
/* #undef HAVE_GETTEXT */
/* Compiling cross-assembler? */
/* #undef CROSS_COMPILE */
/* assert broken? */
/* #undef BROKEN_ASSERT */
/* Define if strstr is not declared in system header files. */
/* #undef NEED_DECLARATION_STRSTR */
/* Define if malloc is not declared in system header files. */
/* #undef NEED_DECLARATION_MALLOC */
/* Define if free is not declared in system header files. */
/* #undef NEED_DECLARATION_FREE */
/* Define if sbrk is not declared in system header files. */
/* #undef NEED_DECLARATION_SBRK */
/* Define if environ is not declared in system header files. */
#define NEED_DECLARATION_ENVIRON 1
/* Define if errno is not declared in system header files. */
/* #undef NEED_DECLARATION_ERRNO */

View file

@ -2,6 +2,7 @@
#define HAVE_DECL_GETOPT 1
/* config.h. Generated by configure. */
/* config.in. Generated automatically from configure.in by autoheader. */
@ -139,7 +140,7 @@
#define HAVE_UNISTD_H 1
/* Define if you have the <values.h> header file. */
#define HAVE_VALUES_H 1
/* #undef HAVE_VALUES_H */
/* Define if you have the <varargs.h> header file. */
/* #undef HAVE_VARARGS_H */
@ -247,7 +248,7 @@
#define TARGET_VENDOR "obrien"
/* Target OS. */
/* #define TARGET_OS "freebsd5.2" */
#define TARGET_OS "freebsd5"
/* Define if you have the stpcpy function */
#define HAVE_STPCPY 1

View file

@ -1,11 +0,0 @@
# $FreeBSD$
.include "${.CURDIR}/../Makefile.inc0"
.if ${TARGET_ARCH} != "i386"
NOMAN= true
BINDIR= /usr/libexec/cross/i386-freebsd
.endif
SRCS+= obj-elf.c tc-i386.c
.include <bsd.prog.mk>

View file

@ -1,13 +0,0 @@
# $FreeBSD$
.include "${.CURDIR}/../Makefile.inc0"
WARNS?= 0
.if ${TARGET_ARCH} != "ia64"
NOMAN= true
BINDIR= /usr/libexec/cross/ia64-freebsd
.endif
SRCS+= obj-elf.c tc-ia64.c
.include <bsd.prog.mk>

View file

@ -1,285 +0,0 @@
/* $FreeBSD$ */
/* config.h. Generated by configure. */
/* config.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */
/* #undef C_ALLOCA */
/* Define to empty if the keyword does not work. */
/* #undef const */
/* 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 if you have a working `mmap' system call. */
#define HAVE_MMAP 1
/* Define as __inline if that's what the C compiler calls it. */
/* #undef inline */
/* Define to `long' if <sys/types.h> doesn't define. */
/* #undef off_t */
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */
/* 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 */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if lex declares yytext as a char * by default, not a char[]. */
#define YYTEXT_POINTER 1
/* Define if you have the __argz_count function. */
/* #undef HAVE___ARGZ_COUNT */
/* Define if you have the __argz_next function. */
/* #undef HAVE___ARGZ_NEXT */
/* Define if you have the __argz_stringify function. */
/* #undef HAVE___ARGZ_STRINGIFY */
/* Define if you have the dcgettext function. */
/* #undef HAVE_DCGETTEXT */
/* Define if you have the getcwd function. */
#define HAVE_GETCWD 1
/* Define if you have the getpagesize function. */
#define HAVE_GETPAGESIZE 1
/* Define if you have the munmap function. */
#define HAVE_MUNMAP 1
/* Define if you have the putenv function. */
#define HAVE_PUTENV 1
/* 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 setenv function. */
#define HAVE_SETENV 1
/* Define if you have the setlocale function. */
#define HAVE_SETLOCALE 1
/* Define if you have the stpcpy function. */
#define HAVE_STPCPY 1
/* Define if you have the strcasecmp function. */
#define HAVE_STRCASECMP 1
/* Define if you have the strchr function. */
#define HAVE_STRCHR 1
/* Define if you have the unlink function. */
#define HAVE_UNLINK 1
/* Define if you have the <argz.h> header file. */
/* #undef HAVE_ARGZ_H */
/* Define if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define if you have the <malloc.h> header file. */
/* #undef HAVE_MALLOC_H */
/* Define if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define if you have the <nl_types.h> header file. */
#define HAVE_NL_TYPES_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/param.h> header file. */
#define HAVE_SYS_PARAM_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 <values.h> header file. */
/* #undef HAVE_VALUES_H */
/* Define if you have the <varargs.h> header file. */
/* #undef HAVE_VARARGS_H */
/* Name of package */
#define PACKAGE "gas"
/* Version number of package */
/* #define VERSION "2.15" */
/* Define if defaulting to ELF on SCO 5. */
/* #undef SCO_ELF */
/* Using strict COFF? */
/* #undef STRICTCOFF */
/* Define if default target is PowerPC Solaris. */
/* #undef TARGET_SOLARIS_COMMENT */
/* Define as 1 if big endian. */
/* #undef TARGET_BYTES_BIG_ENDIAN */
/* Default CPU for MIPS targets. */
/* #undef MIPS_CPU_STRING_DEFAULT */
/* Allow use of E_MIPS_ABI_O32 on MIPS targets. */
/* #undef USE_E_MIPS_ABI_O32 */
/* Generate 64-bit code by default on MIPS targets. */
/* #undef MIPS_DEFAULT_64BIT */
/* Choose a default ABI for MIPS targets. */
/* #undef MIPS_DEFAULT_ABI */
/* Default architecture. */
/* #undef DEFAULT_ARCH */
/* Using cgen code? */
/* #undef USING_CGEN */
/* Using i386 COFF? */
/* #undef I386COFF */
/* Using m68k COFF? */
/* #undef M68KCOFF */
/* Using m88k COFF? */
/* #undef M88KCOFF */
/* a.out support? */
/* #undef OBJ_MAYBE_AOUT */
/* b.out support? */
/* #undef OBJ_MAYBE_BOUT */
/* COFF support? */
/* #undef OBJ_MAYBE_COFF */
/* ECOFF support? */
/* #undef OBJ_MAYBE_ECOFF */
/* ELF support? */
/* #undef OBJ_MAYBE_ELF */
/* generic support? */
/* #undef OBJ_MAYBE_GENERIC */
/* HP300 support? */
/* #undef OBJ_MAYBE_HP300 */
/* IEEE support? */
/* #undef OBJ_MAYBE_IEEE */
/* SOM support? */
/* #undef OBJ_MAYBE_SOM */
/* VMS support? */
/* #undef OBJ_MAYBE_VMS */
/* Use emulation support? */
/* #undef USE_EMULATIONS */
/* Supported emulations. */
#define EMULATIONS
/* Default emulation. */
#define DEFAULT_EMULATION ""
/* old COFF support? */
/* #undef MANY_SEGMENTS */
/* Use BFD interface? */
#define BFD_ASSEMBLER 1
/* Target alias. */
/* #define TARGET_ALIAS "ia64-unknown-freebsd5.2" */
/* Canonical target. */
/* #define TARGET_CANONICAL "ia64-unknown-freebsd5.2" */
/* Target CPU. */
#define TARGET_CPU "ia64"
/* Target vendor. */
#define TARGET_VENDOR "unknown"
/* Target OS. */
#define TARGET_OS "freebsd5.2"
/* Define if you have the stpcpy function */
#define HAVE_STPCPY 1
/* Define if your locale.h file contains LC_MESSAGES. */
#define HAVE_LC_MESSAGES 1
/* Define to 1 if NLS is requested */
/* #define ENABLE_NLS 1 */
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
/* #undef HAVE_GETTEXT */
/* Compiling cross-assembler? */
/* #undef CROSS_COMPILE */
/* assert broken? */
/* #undef BROKEN_ASSERT */
/* Define if strstr is not declared in system header files. */
/* #undef NEED_DECLARATION_STRSTR */
/* Define if malloc is not declared in system header files. */
/* #undef NEED_DECLARATION_MALLOC */
/* Define if free is not declared in system header files. */
/* #undef NEED_DECLARATION_FREE */
/* Define if sbrk is not declared in system header files. */
/* #undef NEED_DECLARATION_SBRK */
/* Define if environ is not declared in system header files. */
#define NEED_DECLARATION_ENVIRON 1
/* Define if errno is not declared in system header files. */
/* #undef NEED_DECLARATION_ERRNO */

View file

@ -1,15 +0,0 @@
# $FreeBSD$
.include "${.CURDIR}/../Makefile.inc0"
.if ${TARGET_ARCH} != "powerpc"
NOMAN= true
BINDIR= /usr/libexec/cross/powerpc-freebsd
# If we aren't doing cross-assembling, some operations can be optimized, since
# byte orders and value sizes don't need to be adjusted.
CFLAGS+= -DCROSS_COMPILE=1
.endif
SRCS+= obj-elf.c tc-ppc.c
.include <bsd.prog.mk>

View file

@ -1,280 +0,0 @@
/* $FreeBSD$ */
#define HAVE_DECL_GETOPT 1
/* config.h. Generated automatically by configure. */
/* config.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */
/* #undef C_ALLOCA */
/* Define to empty if the keyword does not work. */
/* #undef const */
/* 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 if you have a working `mmap' system call. */
#define HAVE_MMAP 1
/* Define as __inline if that's what the C compiler calls it. */
/* #undef inline */
/* Define to `long' if <sys/types.h> doesn't define. */
/* #undef off_t */
/* Define if you need to in order for stat and other things to work. */
/* #undef _POSIX_SOURCE */
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */
/* 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 */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if lex declares yytext as a char * by default, not a char[]. */
#define YYTEXT_POINTER 1
/* Define if you have the __argz_count function. */
/* #undef HAVE___ARGZ_COUNT */
/* Define if you have the __argz_next function. */
/* #undef HAVE___ARGZ_NEXT */
/* Define if you have the __argz_stringify function. */
/* #undef HAVE___ARGZ_STRINGIFY */
/* Define if you have the dcgettext function. */
/* #undef HAVE_DCGETTEXT */
/* Define if you have the getcwd function. */
#define HAVE_GETCWD 1
/* Define if you have the getpagesize function. */
#define HAVE_GETPAGESIZE 1
/* Define if you have the munmap function. */
#define HAVE_MUNMAP 1
/* Define if you have the putenv function. */
#define HAVE_PUTENV 1
/* 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 setenv function. */
#define HAVE_SETENV 1
/* Define if you have the setlocale function. */
#define HAVE_SETLOCALE 1
/* Define if you have the stpcpy function. */
#define HAVE_STPCPY 1
/* Define if you have the strcasecmp function. */
#define HAVE_STRCASECMP 1
/* Define if you have the strchr function. */
#define HAVE_STRCHR 1
/* Define if you have the unlink function. */
#define HAVE_UNLINK 1
/* Define if you have the <argz.h> header file. */
/* #undef HAVE_ARGZ_H */
/* Define if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define if you have the <malloc.h> header file. */
/* #undef HAVE_MALLOC_H */
/* Define if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define if you have the <nl_types.h> header file. */
#define HAVE_NL_TYPES_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/param.h> header file. */
#define HAVE_SYS_PARAM_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 <values.h> header file. */
/* #undef HAVE_VALUES_H */
/* Define if you have the <varargs.h> header file. */
#define HAVE_VARARGS_H 1
/* Name of package */
#define PACKAGE "gas"
/* Version number of package */
/* #define VERSION "2.12" */
/* Define if defaulting to ELF on SCO 5. */
/* #undef SCO_ELF */
/* Using strict COFF? */
/* #undef STRICTCOFF */
/* Define if default target is PowerPC Solaris. */
/* #undef TARGET_SOLARIS_COMMENT */
/* Define as 1 if big endian. */
/* #undef TARGET_BYTES_BIG_ENDIAN */
/* Use ELF stabs for MIPS, not ECOFF stabs */
/* #undef MIPS_STABS_ELF */
/* Default architecture. */
/* #undef DEFAULT_ARCH */
/* Using cgen code? */
/* #undef USING_CGEN */
/* Using i386 COFF? */
/* #undef I386COFF */
/* Using m68k COFF? */
/* #undef M68KCOFF */
/* Using m88k COFF? */
/* #undef M88KCOFF */
/* a.out support? */
/* #undef OBJ_MAYBE_AOUT */
/* b.out support? */
/* #undef OBJ_MAYBE_BOUT */
/* COFF support? */
/* #undef OBJ_MAYBE_COFF */
/* ECOFF support? */
/* #undef OBJ_MAYBE_ECOFF */
/* ELF support? */
/* #undef OBJ_MAYBE_ELF */
/* generic support? */
/* #undef OBJ_MAYBE_GENERIC */
/* HP300 support? */
/* #undef OBJ_MAYBE_HP300 */
/* IEEE support? */
/* #undef OBJ_MAYBE_IEEE */
/* SOM support? */
/* #undef OBJ_MAYBE_SOM */
/* VMS support? */
/* #undef OBJ_MAYBE_VMS */
/* Use emulation support? */
/* #undef USE_EMULATIONS */
/* Supported emulations. */
#define EMULATIONS
/* Default emulation. */
#define DEFAULT_EMULATION ""
/* old COFF support? */
/* #undef MANY_SEGMENTS */
/* Use BFD interface? */
#define BFD_ASSEMBLER 1
/* Target alias. */
#define TARGET_ALIAS "powerpc-obrien-freebsd5"
/* Canonical target. */
#define TARGET_CANONICAL "powerpc-obrien-freebsd5"
/* Target CPU. */
#define TARGET_CPU "powerpc"
/* Target vendor. */
#define TARGET_VENDOR "obrien"
/* Target OS. */
#define TARGET_OS "freebsd5"
/* Define if you have the stpcpy function */
#define HAVE_STPCPY 1
/* Define if your locale.h file contains LC_MESSAGES. */
#define HAVE_LC_MESSAGES 1
/* Define to 1 if NLS is requested */
/* #define ENABLE_NLS 1 */
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
/* #undef HAVE_GETTEXT */
/* Compiling cross-assembler? */
/* #undef CROSS_COMPILE */
/* assert broken? */
/* #undef BROKEN_ASSERT */
/* Define if strstr is not declared in system header files. */
/* #undef NEED_DECLARATION_STRSTR */
/* Define if malloc is not declared in system header files. */
/* #undef NEED_DECLARATION_MALLOC */
/* Define if free is not declared in system header files. */
/* #undef NEED_DECLARATION_FREE */
/* Define if sbrk is not declared in system header files. */
/* #undef NEED_DECLARATION_SBRK */
/* Define if environ is not declared in system header files. */
#define NEED_DECLARATION_ENVIRON 1
/* Define if errno is not declared in system header files. */
/* #undef NEED_DECLARATION_ERRNO */

View file

@ -1,14 +0,0 @@
# $FreeBSD$
.include "${.CURDIR}/../Makefile.inc0"
.if ${TARGET_ARCH} != "sparc64"
NOMAN= true
BINDIR= /usr/libexec/cross/sparc64-freebsd
# If we aren't doing cross-assembling, some operations can be optimized, since
# byte orders and value sizes don't need to be adjusted.
CFLAGS+= -DCROSS_COMPILE=1
.endif
SRCS+= obj-elf.c tc-sparc.c
.include <bsd.prog.mk>

View file

@ -1,285 +0,0 @@
/* $FreeBSD$ */
#define HAVE_DECL_GETOPT 1
/* config.h. Generated automatically by configure. */
/* config.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */
/* #undef C_ALLOCA */
/* Define to empty if the keyword does not work. */
/* #undef const */
/* 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 if you have a working `mmap' system call. */
#define HAVE_MMAP 1
/* Define as __inline if that's what the C compiler calls it. */
/* #undef inline */
/* Define to `long' if <sys/types.h> doesn't define. */
/* #undef off_t */
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */
/* 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 */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if lex declares yytext as a char * by default, not a char[]. */
#define YYTEXT_POINTER 1
/* Define if you have the __argz_count function. */
/* #undef HAVE___ARGZ_COUNT */
/* Define if you have the __argz_next function. */
/* #undef HAVE___ARGZ_NEXT */
/* Define if you have the __argz_stringify function. */
/* #undef HAVE___ARGZ_STRINGIFY */
/* Define if you have the dcgettext function. */
/* #undef HAVE_DCGETTEXT */
/* Define if you have the getcwd function. */
#define HAVE_GETCWD 1
/* Define if you have the getpagesize function. */
#define HAVE_GETPAGESIZE 1
/* Define if you have the munmap function. */
#define HAVE_MUNMAP 1
/* Define if you have the putenv function. */
#define HAVE_PUTENV 1
/* 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 setenv function. */
#define HAVE_SETENV 1
/* Define if you have the setlocale function. */
#define HAVE_SETLOCALE 1
/* Define if you have the stpcpy function. */
#define HAVE_STPCPY 1
/* Define if you have the strcasecmp function. */
#define HAVE_STRCASECMP 1
/* Define if you have the strchr function. */
#define HAVE_STRCHR 1
/* Define if you have the unlink function. */
#define HAVE_UNLINK 1
/* Define if you have the <argz.h> header file. */
/* #undef HAVE_ARGZ_H */
/* Define if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define if you have the <malloc.h> header file. */
/* #undef HAVE_MALLOC_H */
/* Define if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define if you have the <nl_types.h> header file. */
#define HAVE_NL_TYPES_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/param.h> header file. */
#define HAVE_SYS_PARAM_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 <values.h> header file. */
/* #undef HAVE_VALUES_H */
/* Define if you have the <varargs.h> header file. */
#define HAVE_VARARGS_H 1
/* Name of package */
#define PACKAGE "gas"
/* Version number of package */
/* #define VERSION "2.15" */
/* Define if defaulting to ELF on SCO 5. */
/* #undef SCO_ELF */
/* Using strict COFF? */
/* #undef STRICTCOFF */
/* Define if default target is PowerPC Solaris. */
/* #undef TARGET_SOLARIS_COMMENT */
/* Define as 1 if big endian. */
/* #undef TARGET_BYTES_BIG_ENDIAN */
/* Default CPU for MIPS targets. */
/* #undef MIPS_CPU_STRING_DEFAULT */
/* Allow use of E_MIPS_ABI_O32 on MIPS targets. */
/* #undef USE_E_MIPS_ABI_O32 */
/* Generate 64-bit code by default on MIPS targets. */
/* #undef MIPS_DEFAULT_64BIT */
/* Choose a default ABI for MIPS targets. */
/* #undef MIPS_DEFAULT_ABI */
/* Default architecture. */
/* #define DEFAULT_ARCH "v9-64" */
/* Using cgen code? */
/* #undef USING_CGEN */
/* Using i386 COFF? */
/* #undef I386COFF */
/* Using m68k COFF? */
/* #undef M68KCOFF */
/* Using m88k COFF? */
/* #undef M88KCOFF */
/* a.out support? */
/* #undef OBJ_MAYBE_AOUT */
/* b.out support? */
/* #undef OBJ_MAYBE_BOUT */
/* COFF support? */
/* #undef OBJ_MAYBE_COFF */
/* ECOFF support? */
/* #undef OBJ_MAYBE_ECOFF */
/* ELF support? */
/* #undef OBJ_MAYBE_ELF */
/* generic support? */
/* #undef OBJ_MAYBE_GENERIC */
/* HP300 support? */
/* #undef OBJ_MAYBE_HP300 */
/* IEEE support? */
/* #undef OBJ_MAYBE_IEEE */
/* SOM support? */
/* #undef OBJ_MAYBE_SOM */
/* VMS support? */
/* #undef OBJ_MAYBE_VMS */
/* Use emulation support? */
/* #undef USE_EMULATIONS */
/* Supported emulations. */
#define EMULATIONS
/* Default emulation. */
#define DEFAULT_EMULATION ""
/* old COFF support? */
/* #undef MANY_SEGMENTS */
/* Use BFD interface? */
#define BFD_ASSEMBLER 1
/* Target alias. */
/* #define TARGET_ALIAS "sparc64-obrien-freebsd5" */
/* Canonical target. */
/* #define TARGET_CANONICAL "sparc64-obrien-freebsd5" */
/* Target CPU. */
/* #define TARGET_CPU "sparc64" */
/* Target vendor. */
/* #define TARGET_VENDOR "obrien" */
/* Target OS. */
/* #define TARGET_OS "freebsd5" */
/* Define if you have the stpcpy function */
#define HAVE_STPCPY 1
/* Define if your locale.h file contains LC_MESSAGES. */
#define HAVE_LC_MESSAGES 1
/* Define to 1 if NLS is requested */
/* #define ENABLE_NLS 1 */
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
/* #undef HAVE_GETTEXT */
/* Compiling cross-assembler? */
/* #undef CROSS_COMPILE */
/* assert broken? */
/* #undef BROKEN_ASSERT */
/* Define if strstr is not declared in system header files. */
/* #undef NEED_DECLARATION_STRSTR */
/* Define if malloc is not declared in system header files. */
/* #undef NEED_DECLARATION_MALLOC */
/* Define if free is not declared in system header files. */
/* #undef NEED_DECLARATION_FREE */
/* Define if sbrk is not declared in system header files. */
/* #undef NEED_DECLARATION_SBRK */
/* Define if environ is not declared in system header files. */
#define NEED_DECLARATION_ENVIRON 1
/* Define if errno is not declared in system header files. */
/* #undef NEED_DECLARATION_ERRNO */

View file

@ -11,6 +11,8 @@ SRCS+= ldcref.c ldctor.c ldemul.c ldemul-list.h ldexp.c ldfile.c \
ldver.c ldwrite.c lexsup.c mri.c
WARNS?= 0 # ldemul.h problem (`struct option' declared inside parameter list)
CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
CFLAGS+= -DSCRIPTDIR=\"${TOOLS_PREFIX}/usr/libdata\"
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
CFLAGS+= -DBINDIR=\"${BINDIR}\" -DTARGET_SYSTEM_ROOT=\"${TOOLS_PREFIX}\"
@ -24,14 +26,14 @@ LDADD= ${DPADD}
CLEANDIRS+= ldscripts
CLEANFILES+= ldemul-list.h stringify.sed
# If set, BINUTILSDISTDIR is the path to a directory containing the full GNU
# binutils release. FreeBSD only distributes the bits that are required to
# build native architectures. BINUTILSDISTDIR is needed to build cross tools.
.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
.PATH: ${BINUTILSDISTDIR}/ld
CFLAGS+= -I${BINUTILSDISTDIR}/ld
.endif
HOST= ${TARGET_TUPLE}
LIBSERACHPATH= \"${TOOLS_PREFIX}/lib\":\"${TOOLS_PREFIX}/usr/lib\"
ELF_SCR_EXT= x xbn xn xr xs xu xc xsc xd xdc
.for ext in ${ELF_SCR_EXT}
LDSCRIPTS+= ${NATIVE_EMULATION}.${ext}
.endfor
EMS+= ${NATIVE_EMULATION}
EMXFR=
EMLST=
.for _e in ${EMS}

View file

@ -1,43 +1,33 @@
# $FreeBSD$
.if ${TARGET_ARCH} == "alpha"
NATIVE_EMULATION= elf64alpha_fbsd
HOST= ${TARGET_TUPLE}
CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
_alpha_path= \"${TOOLS_PREFIX}/lib\":\"${TOOLS_PREFIX}/usr/lib\"
.else
_alpha_path= \"/usr/cross/alpha-freebsd/usr/lib\"
.endif
EMS+= ${NATIVE_EMULATION} elf64alpha alpha
LDSCRIPTS+= ${NATIVE_EMULATION}.x ${NATIVE_EMULATION}.xbn ${NATIVE_EMULATION}.xn ${NATIVE_EMULATION}.xr \
${NATIVE_EMULATION}.xs ${NATIVE_EMULATION}.xu alpha.x alpha.xbn \
${NATIVE_EMULATION}.xc ${NATIVE_EMULATION}.xsc \
${NATIVE_EMULATION}.xd ${NATIVE_EMULATION}.xdc \
elf64alpha.x elf64alpha.xbn elf64alpha.xc elf64alpha.xd \
elf64alpha.xdc elf64alpha.xn elf64alpha.xr elf64alpha.xs \
elf64alpha.xsc elf64alpha.xu \
alpha.xn alpha.xr alpha.xu alpha.x alpha.xbn
NATIVE_EMULATION= elf64alpha_fbsd
EMS+= elf64alpha alpha
.for ext in ${ELF_SCR_EXT}
LDSCRIPTS+= elf64alpha.${ext}
.endfor
LDSCRIPTS+= alpha.x alpha.xbn alpha.xn alpha.xr alpha.xu
SRCS+= e${NATIVE_EMULATION}.c eelf64alpha.c ealpha.c
CLEANFILES+= e${NATIVE_EMULATION}.c eelf64alpha.c ealpha.c
e${NATIVE_EMULATION}.c: emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em \
scripttempl/elf.sc genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_alpha_path} \
scripttempl/elf.sc genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSERACHPATH} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
${NATIVE_EMULATION} "" no ${NATIVE_EMULATION} ${TARGET_TUPLE}
eelf64alpha.c: emulparams/elf64alpha.sh emultempl/elf32.em \
scripttempl/elf.sc genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_alpha_path} \
eelf64alpha.c: emulparams/elf64alpha.sh emultempl/elf32.em \
scripttempl/elf.sc genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSERACHPATH} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
${NATIVE_EMULATION} "" no elf64alpha ${TARGET_TUPLE}
ealpha.c: emulparams/alpha.sh emultempl/generic.em scripttempl/alpha.sc \
genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_alpha_path} \
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSERACHPATH} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
${NATIVE_EMULATION} "" no alpha ${TARGET_TUPLE}

View file

@ -1,20 +1,12 @@
# $FreeBSD$
NATIVE_EMULATION= elf_x86_64_fbsd
HOST= ${TARGET_TUPLE}
CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
_amd64_path= \"${TOOLS_PREFIX}/lib\":\"${TOOLS_PREFIX}/usr/lib\"
EMS+= ${NATIVE_EMULATION}
LDSCRIPTS+= ${NATIVE_EMULATION}.x ${NATIVE_EMULATION}.xbn ${NATIVE_EMULATION}.xn ${NATIVE_EMULATION}.xr \
${NATIVE_EMULATION}.xs ${NATIVE_EMULATION}.xu ${NATIVE_EMULATION}.xc ${NATIVE_EMULATION}.xsc \
${NATIVE_EMULATION}.xd ${NATIVE_EMULATION}.xdc
SRCS+= e${NATIVE_EMULATION}.c
CLEANFILES+= e${NATIVE_EMULATION}.c
NATIVE_EMULATION= elf_x86_64_fbsd
e${NATIVE_EMULATION}.c: emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em scripttempl/elf.sc \
genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_amd64_path} \
SRCS+= e${NATIVE_EMULATION}.c
CLEANFILES+= e${NATIVE_EMULATION}.c
e${NATIVE_EMULATION}.c: emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em \
scripttempl/elf.sc genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSERACHPATH} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
"${NATIVE_EMULATION}" "" no ${NATIVE_EMULATION} "${TARGET_TUPLE}"
@ -22,14 +14,14 @@ e${NATIVE_EMULATION}.c: emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em scr
X86_EMULATION= elf_i386_fbsd
_i386_path= \"${TOOLS_PREFIX}/usr/lib/i386\"
EMS+= ${X86_EMULATION}
LDSCRIPTS+= ${X86_EMULATION}.x ${X86_EMULATION}.xbn ${X86_EMULATION}.xn ${X86_EMULATION}.xr \
${X86_EMULATION}.xs ${X86_EMULATION}.xu ${X86_EMULATION}.xc ${X86_EMULATION}.xsc \
${X86_EMULATION}.xd ${X86_EMULATION}.xdc
.for ext in ${ELF_SCR_EXT}
LDSCRIPTS+= ${X86_EMULATION}.${ext}
.endfor
SRCS+= e${X86_EMULATION}.c
CLEANFILES+= e${X86_EMULATION}.c
e${X86_EMULATION}.c: emulparams/${X86_EMULATION}.sh emultempl/elf32.em scripttempl/elf.sc \
genscripts.sh stringify.sed
e${X86_EMULATION}.c: emulparams/${X86_EMULATION}.sh emultempl/elf32.em \
scripttempl/elf.sc genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_i386_path} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \

View file

@ -1,42 +1,12 @@
# $FreeBSD$
.if ${TARGET_ARCH} == "i386"
NATIVE_EMULATION= elf_i386_fbsd
HOST= ${TARGET_TUPLE}
CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
_i386_path= \"${TOOLS_PREFIX}/lib\":\"${TOOLS_PREFIX}/usr/lib\"
.else
_i386_path= \"/usr/cross/i386-freebsd/usr/lib\"
.endif
EMS+= ${NATIVE_EMULATION}
LDSCRIPTS+= ${NATIVE_EMULATION}.x ${NATIVE_EMULATION}.xbn ${NATIVE_EMULATION}.xn ${NATIVE_EMULATION}.xr \
${NATIVE_EMULATION}.xs ${NATIVE_EMULATION}.xu ${NATIVE_EMULATION}.xc ${NATIVE_EMULATION}.xsc \
${NATIVE_EMULATION}.xd ${NATIVE_EMULATION}.xdc
SRCS+= e${NATIVE_EMULATION}.c
CLEANFILES+= e${NATIVE_EMULATION}.c
NATIVE_EMULATION= elf_i386_fbsd
e${NATIVE_EMULATION}.c: emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em scripttempl/elf.sc \
genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_i386_path} \
SRCS+= e${NATIVE_EMULATION}.c
CLEANFILES+= e${NATIVE_EMULATION}.c
e${NATIVE_EMULATION}.c: emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em \
scripttempl/elf.sc genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSERACHPATH} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
"${NATIVE_EMULATION}" "" no ${NATIVE_EMULATION} "${TARGET_TUPLE}"
.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
EMS+= i386pe
LDSCRIPTS+= i386pe.x \
i386pe.xbn \
i386pe.xn \
i386pe.xr \
i386pe.xu
SRCS+= ei386pe.c
CLEANFILES+= ei386pe.c
ei386pe.c: emulparams/i386pe.sh emultempl/pe.em scripttempl/pe.sc \
genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
/usr/cross/winnt/lib ${TOOLS_PREFIX}/usr/cross/winnt ${HOST} ${TARGET_TUPLE}-winnt \
${TARGET_TUPLE}-winnt i386pe "" no i386pe \
${TARGET_TUPLE}-winnt
.endif

View file

@ -1,34 +1,23 @@
# $FreeBSD$
.if ${TARGET_ARCH} == "ia64"
NATIVE_EMULATION= elf64_ia64_fbsd
HOST= ${TARGET_TUPLE}
CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
_ia64_path= \"${TOOLS_PREFIX}/lib\":\"${TOOLS_PREFIX}/usr/lib\"
.else
_ia64_path= \"/usr/cross/ia64-freebsd/usr/lib\"
.endif
NATIVE_EMULATION= elf64_ia64_fbsd
EMS+= ${NATIVE_EMULATION}
LDSCRIPTS+= ${NATIVE_EMULATION}.x ${NATIVE_EMULATION}.xbn ${NATIVE_EMULATION}.xn ${NATIVE_EMULATION}.xr \
${NATIVE_EMULATION}.xs ${NATIVE_EMULATION}.xu ${NATIVE_EMULATION}.xc ${NATIVE_EMULATION}.xsc \
${NATIVE_EMULATION}.xd ${NATIVE_EMULATION}.xdc
SRCS+= e${NATIVE_EMULATION}.c
SRCS+= e${NATIVE_EMULATION}.c
CLEANFILES+= e${NATIVE_EMULATION}.c
e${NATIVE_EMULATION}.c: emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em \
scripttempl/elf.sc genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_ia64_path} \
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSERACHPATH} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
"${NATIVE_EMULATION}" "" no ${NATIVE_EMULATION} "${TARGET_TUPLE}"
#XXX EMS+= eelf64_ia64
SRCS+= eelf64_ia64.c
CLEANFILES+= eelf64_ia64.c
eelf64_ia64.c: emulparams/elf64_ia64.sh emultempl/elf32.em \
scripttempl/elf.sc genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_ia64_path} \
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSERACHPATH} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
"elf64_ia64" "" no elf64_ia64 ${TARGET_TUPLE}

View file

@ -1,52 +0,0 @@
# $FreeBSD$
.if ${TARGET_ARCH} == "m68k"
HOST= m68k-unknown-freebsd
CFLAGS+= -DDEFAULT_EMULATION=\"elf_m68k\"
CFLAGS+= -DTARGET=\"m68k-unknown-freebsd\"
_m68k_path= \"${TOOLS_PREFIX}/usr/lib\"
.else
_m68k_path= \"/usr/cross/m68k-freebsd/usr/lib\"
.endif
EMS+= ld_m68kelf_emulation \
ld_m68klynx_emulation \
ld_m68knbsd_emulation
LDSCRIPTS+= m68kelf.x \
m68kelf.xbn \
m68kelf.xn \
m68kelf.xr \
m68kelf.xs \
m68kelf.xu \
m68klynx.x \
m68klynx.xbn \
m68klynx.xn \
m68klynx.xr \
m68klynx.xu \
m68knbsd.x \
m68knbsd.xbn \
m68knbsd.xn \
m68knbsd.xr \
m68knbsd.xu
SRCS+= em68kelf.c \
em68klynx.c \
em68knbsd.c
CLEANFILES+= em68kelf.c \
em68klynx.c \
em68knbsd.c
em68kelf.c: emulparams/m68kelf.sh emultempl/elf32.em scripttempl/elf.sc \
genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
${_m68k_path} notused notused notused m68kelf "" m68kelf
em68klynx.c: emulparams/m68klynx.sh emultempl/generic.em \
scripttempl/m68klynx.sc genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
/usr/cross/m68k-lynx/usr/lib notused notused notused \
m68klynx "" m68klynx
em68knbsd.c: emulparams/m68knbsd.sh emultempl/generic.em scripttempl/aout.sc \
genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
/usr/cross/m68k-netbsdaout/usr/lib notused notused notused \
m68knbsd "" m68knbsd

View file

@ -1,30 +1,12 @@
# $FreeBSD$
.if ${TARGET_ARCH} == "powerpc"
NATIVE_EMULATION= elf32ppc
HOST= ${TARGET_TUPLE}
CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
_powerpc_path= \"${TOOLS_PREFIX}/lib\":\"${TOOLS_PREFIX}/usr/lib\"
.else
_powerpc_path= \"/usr/cross/powerpc-freebsd/usr/lib\"
.endif
EMS+= ${NATIVE_EMULATION}
LDSCRIPTS+= ${NATIVE_EMULATION}.x \
${NATIVE_EMULATION}.xbn \
${NATIVE_EMULATION}.xn \
${NATIVE_EMULATION}.xr \
${NATIVE_EMULATION}.xs \
${NATIVE_EMULATION}.xu \
${NATIVE_EMULATION}.xsc \
${NATIVE_EMULATION}.xd \
${NATIVE_EMULATION}.xdc
SRCS+= e${NATIVE_EMULATION}.c
CLEANFILES+= e${NATIVE_EMULATION}.c
e${NATIVE_EMULATION}.c: emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em \
scripttempl/elf.sc genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_powerpc_path} \
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSERACHPATH} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
${NATIVE_EMULATION} "" no ${NATIVE_EMULATION} ${TARGET_TUPLE}

View file

@ -1,42 +1,29 @@
# $FreeBSD$
.if ${TARGET_ARCH} == "sparc64"
NATIVE_EMULATION= elf64_sparc_fbsd
HOST= ${TARGET_TUPLE}
CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
_sparc_path= \"${TOOLS_PREFIX}/lib\":\"${TOOLS_PREFIX}/usr/lib\"
.else
_sparc_path= \"/usr/cross/sparc-freebsd/usr/lib\"
.endif
NATIVE_EMULATION= elf64_sparc_fbsd
EMS+= ${NATIVE_EMULATION} elf64_sparc
LDSCRIPTS+= ${NATIVE_EMULATION}.x ${NATIVE_EMULATION}.xbn ${NATIVE_EMULATION}.xn ${NATIVE_EMULATION}.xr \
${NATIVE_EMULATION}.xs ${NATIVE_EMULATION}.xu ${NATIVE_EMULATION}.xc ${NATIVE_EMULATION}.xsc \
${NATIVE_EMULATION}.xd ${NATIVE_EMULATION}.xdc
SRCS+= e${NATIVE_EMULATION}.c
CLEANFILES+= e${NATIVE_EMULATION}.c
e${NATIVE_EMULATION}.c: emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em \
scripttempl/elf.sc genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_sparc_path} \
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSERACHPATH} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
${NATIVE_EMULATION} "" no ${NATIVE_EMULATION} ${TARGET_TUPLE}
.for BITS in 64 32
EMS+= elf${BITS}_sparc
LDSCRIPTS+= elf${BITS}_sparc.x elf${BITS}_sparc.xbn elf${BITS}_sparc.xn \
elf${BITS}_sparc.xr \
elf${BITS}_sparc.xs elf${BITS}_sparc.xu elf${BITS}_sparc.xc \
elf${BITS}_sparc.xsc
.for ext in ${ELF_SCR_EXT}
LDSCRIPTS+= elf${BITS}_sparc.${ext}
.endfor
SRCS+= eelf${BITS}_sparc.c
CLEANFILES+= eelf${BITS}_sparc.c
eelf${BITS}_sparc.c: emulparams/elf${BITS}_sparc.sh emultempl/elf32.em \
scripttempl/elf.sc genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_sparc_path} \
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSERACHPATH} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
elf${BITS}_sparc "" no elf${BITS}_sparc ${TARGET_TUPLE}

View file

@ -46,6 +46,7 @@ SELVEC+= ,&${_v}
.endif
.endfor
CFLAGS+= -DSELECT_VECS="${SELVEC}"
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
# XXX:DEO should grab BFD_VERSION_DATE from ${VERSION}...
bfdver.h: Makefile
@ -63,6 +64,7 @@ config.h: config.h.fbsd
sed -e 's,!!TRAD_HEADER!!,,g' ${.ALLSRC} > ${.TARGET}
.endif
CLEANFILES+= elf32-target.h elf64-target.h
elf32-target.h: elfxx-target.h
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}

View file

@ -2,11 +2,15 @@
DEFAULT_VECTOR= bfd_elf64_alpha_freebsd_vec
SRCS+= coff-alpha.c cpu-alpha.c ecoff.c ecofflink.c \
elf64-alpha.c elf64-target.h elf64.c elflink.c
VECS= ${DEFAULT_VECTOR} bfd_elf64_alpha_vec ecoffalpha_little_vec
.if ${TARGET_ARCH} == "alpha"
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
.endif
SRCS+= coff-alpha.c \
cpu-alpha.c \
ecoff.c \
ecofflink.c \
elf64.c \
elf64-alpha.c \
elf64-target.h \
elflink.c
CLEANFILES+= elf64-target.h
VECS= ${DEFAULT_VECTOR} \
bfd_elf64_alpha_vec \
ecoffalpha_little_vec

View file

@ -7,11 +7,13 @@ I386_VECS:= ${DEFAULT_VECTOR} # ${VECS}
DEFAULT_VECTOR= bfd_elf64_x86_64_vec
VECS= bfd_elf64_x86_64_vec ${I386_VECS}
SRCS+= elf64-amd64-fbsd.c \
elf64.c \
elf64-gen.c \
elf64-target.h
SRCS+= elf64-amd64-fbsd.c elf64-target.h elf64-gen.c elf64.c
CLEANFILES+= elf64-target.h
VECS= bfd_elf64_x86_64_vec \
${I386_VECS}
CLEANFILES+= elf64-amd64-fbsd.c

View file

@ -2,15 +2,11 @@
DEFAULT_VECTOR= bfd_elf32_i386_freebsd_vec
SRCS+= cpu-i386.c elf32-i386.c elf32-target.h elf32.c elflink.c
VECS= ${DEFAULT_VECTOR} bfd_elf32_i386_vec
.if ${TARGET_ARCH} == "i386"
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
.endif
SRCS+= cpu-i386.c \
elf32-i386.c \
elf32-target.h \
elf32.c \
elflink.c
.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
SRCS+= pe-i386.c pei-i386.c
VECS+= i386pe_vec i386pei_vec
.endif
CLEANFILES+= elf32-target.h
VECS= ${DEFAULT_VECTOR} \
bfd_elf32_i386_vec

View file

@ -2,8 +2,18 @@
DEFAULT_VECTOR= bfd_elf64_ia64_little_vec
SRCS+= cofflink.c cpu-ia64.c efi-app-ia64.c elf32.c elf32-gen.c elf64.c \
elf64-gen.c elf64-ia64.c elflink.c
SRCS+= cofflink.c \
cpu-ia64.c \
efi-app-ia64.c \
elf32.c \
elf32-gen.c \
elf32-target.h \
elf64.c \
elf64-gen.c \
elf64-ia64.c \
elf64-target.h \
elflink.c \
pepigen.c # peigen.c
VECS+= ${DEFAULT_VECTOR} \
bfd_efi_app_ia64_vec \
@ -11,13 +21,7 @@ VECS+= ${DEFAULT_VECTOR} \
bfd_elf64_little_generic_vec bfd_elf64_big_generic_vec \
bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec
.if ${TARGET_ARCH} == "ia64"
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
.endif
GENSRCS= elf32-target.h elf64-target.h elf64-ia64.c pepigen.c # peigen.c
SRCS+= ${GENSRCS}
CLEANFILES+= ${GENSRCS}
CLEANFILES+= elf64-ia64.c pepigen.c # peigen.c
elf64-ia64.c: elfxx-ia64.c elf-fbsd-brand.c
cat ${.ALLSRC} | sed -e s/NN/64/g > ${.TARGET}

View file

@ -2,8 +2,7 @@
DEFAULT_VECTOR= bfd_elf32_powerpc_vec
SRCS+= \
cpu-powerpc.c \
SRCS+= cpu-powerpc.c \
cpu-rs6000.c \
elf32.c \
elf32-gen.c \
@ -11,13 +10,8 @@ SRCS+= \
elf32-target.h \
elflink.c \
ppcboot.c \
#xcofflink.c
xcofflink.c
VECS+= ${DEFAULT_VECTOR} \
bfd_elf32_powerpcle_vec \
ppcboot_vec
.if ${TARGET_ARCH} == "powerpc"
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
.endif
CLEANFILES+= elf32-target.h

View file

@ -4,19 +4,17 @@ DEFAULT_VECTOR= bfd_elf64_sparc_vec
SRCS+= aout32.c \
cpu-sparc.c \
elf32.c \
elf32-sparc.c \
elf32-target.h \
elf32.c \
elf64.c \
elf64-sparc.c \
elf64-target.h \
elf64.c \
elflink.c \
sparcnetbsd.c \
sunos.c
VECS= ${DEFAULT_VECTOR} bfd_elf32_sparc_vec sparcnetbsd_vec sunos_big_vec
.if ${TARGET_ARCH} == "sparc64"
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
.endif
CLEANFILES+= elf32-target.h elf64-target.h
VECS= ${DEFAULT_VECTOR} \
bfd_elf32_sparc_vec \
sparcnetbsd_vec \
sunos_big_vec

File diff suppressed because it is too large Load diff

View file

@ -56,18 +56,23 @@ extern "C" {
been selected with --enable-targets, or if --enable-64-bit-bfd. */
#define BFD_ARCH_SIZE 64
/* The word size of the default bfd target. */
#define BFD_DEFAULT_TARGET_SIZE 64
#if defined(__i386__) || defined(__powerpc__) || defined(__arm__)
/* The word size of the default bfd target. */
#define BFD_DEFAULT_TARGET_SIZE 32
#define BFD_HOST_64BIT_LONG 0
#define BFD_HOST_64_BIT long long
#define BFD_HOST_U_64_BIT unsigned long long
#else
#elif defined(__alpha__) || defined(__sparc64__) || defined(__amd64__) || defined(__ia64__)
/* The word size of the default bfd target. */
#define BFD_DEFAULT_TARGET_SIZE 64
#define BFD_HOST_64BIT_LONG 1
#define BFD_HOST_64_BIT long
#define BFD_HOST_U_64_BIT unsigned long
#endif /* 32-bit host */
#else
#error Unsupported architecture/platform.
#endif /* 64-bit host */
#define BFD_HOST_LONG_LONG 1
typedef BFD_HOST_64_BIT bfd_int64_t;
typedef BFD_HOST_U_64_BIT bfd_uint64_t;

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff