From: Simon Schubert Date: Wed, 28 Oct 2009 11:47:52 +0000 (+0100) Subject: binutils220: add our build infrastructure X-Git-Url: https://gitweb.dragonflybsd.org/~syl/dragonfly.git/commitdiff_plain/2ef93bd879b10e0f88ce0cfe72dfccd0ffd62aa9 binutils220: add our build infrastructure --- diff --git a/gnu/usr.bin/binutils220/Makefile b/gnu/usr.bin/binutils220/Makefile new file mode 100644 index 0000000000..d5dbe7d89b --- /dev/null +++ b/gnu/usr.bin/binutils220/Makefile @@ -0,0 +1,10 @@ +SUBDIR= libiberty libbfd libopcodes libbinutils \ + addr2line ar as ld nm objcopy objdump ranlib readelf \ + size strings strip doc + +TARGET_ARCH?= ${MACHINE_ARCH} + +# interdependant header files +.ORDER: ${SUBDIR} + +.include diff --git a/gnu/usr.bin/binutils220/Makefile.bu b/gnu/usr.bin/binutils220/Makefile.bu new file mode 100644 index 0000000000..b64c0c7013 --- /dev/null +++ b/gnu/usr.bin/binutils220/Makefile.bu @@ -0,0 +1,5 @@ +.include "Makefile.inc0" + +CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils +CFLAGS+= -I${SRCDIR}/binutils +CFLAGS+= -I${SRCDIR}/bfd -I${.OBJDIR}/../libbfd diff --git a/gnu/usr.bin/binutils220/Makefile.inc b/gnu/usr.bin/binutils220/Makefile.inc new file mode 100644 index 0000000000..15cb8b8444 --- /dev/null +++ b/gnu/usr.bin/binutils220/Makefile.inc @@ -0,0 +1 @@ +BINDIR?= /usr/libexec/binutils220/elf diff --git a/gnu/usr.bin/binutils220/Makefile.inc0 b/gnu/usr.bin/binutils220/Makefile.inc0 new file mode 100644 index 0000000000..13e2b2e597 --- /dev/null +++ b/gnu/usr.bin/binutils220/Makefile.inc0 @@ -0,0 +1,48 @@ +# This is included explicitly at the top of each sub-Makefile. We can't +# use the normal "Makefile.inc" mechanism, because we need some of these +# definitions before the sub-Makefile is processed. + +TARGET_ARCH?= ${MACHINE_ARCH} +BINUTIL_ARCH= ${TARGET_ARCH} + +# RELTOP is the relative path to this point in the source or object +# tree, from any subdirectory of same. It gets extra "../" prefixes +# added to it as we descend into subdirectories. +RELTOP:= .. + +RELSRC= ${RELTOP}/../../../contrib/binutils-2.20 +SRCDIR= ${.CURDIR}/${RELSRC} + +CFLAGS+= -I. +.if exists(${.CURDIR}/${BINUTIL_ARCH}) +CFLAGS+= -I${.CURDIR}/${BINUTIL_ARCH} +.endif +CFLAGS+= -I${.CURDIR} +CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH} +CFLAGS+= -I${SRCDIR}/include + +DPADD= ${RELTOP}/libbinutils/libbinutils.a +DPADD+= ${RELTOP}/libbfd/libbfd.a +DPADD+= ${RELTOP}/libiberty/libiberty.a +LDADD= ${DPADD} + +DPADD+= ${LIBZ} +LDADD+= -lz + +.if exists(${.CURDIR}/${BINUTIL_ARCH}) +.PATH: ${.CURDIR}/${BINUTIL_ARCH} +.endif + +ARCHS= ${BINUTIL_ARCH} + +.for _arch in ${CROSS_ARCH} +.if (${ARCHS:R:M${_arch:R}} == "") +ARCHS+= $(_arch) +.endif +.endfor + +.for _arch in ${ARCHS} +.if exists(${.CURDIR}/Makefile.${_arch}) +.include "${.CURDIR}/Makefile.${_arch}" +.endif +.endfor diff --git a/gnu/usr.bin/binutils220/addr2line/Makefile b/gnu/usr.bin/binutils220/addr2line/Makefile new file mode 100644 index 0000000000..3a6696ede8 --- /dev/null +++ b/gnu/usr.bin/binutils220/addr2line/Makefile @@ -0,0 +1,9 @@ +.include "../Makefile.bu" + +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc + +PROG= addr2line +SRCS= addr2line.c +WARNS= 2 + +.include diff --git a/gnu/usr.bin/binutils220/ar/Makefile b/gnu/usr.bin/binutils220/ar/Makefile new file mode 100644 index 0000000000..4df43e80d3 --- /dev/null +++ b/gnu/usr.bin/binutils220/ar/Makefile @@ -0,0 +1,9 @@ +.include "../Makefile.bu" + +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc + +PROG= ar +SRCS= ar.c not-ranlib.c +NOSHARED?= yes + +.include diff --git a/gnu/usr.bin/binutils220/as/Makefile b/gnu/usr.bin/binutils220/as/Makefile new file mode 100644 index 0000000000..aad29ed3bc --- /dev/null +++ b/gnu/usr.bin/binutils220/as/Makefile @@ -0,0 +1,32 @@ +.include "${.CURDIR}/../Makefile.inc0" + +GASES= ${BINUTIL_ARCH} +FORMATS=dragonfly + +# 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 +.endif + +.for _g in ${GASES} +.for _f in ${FORMATS} +.if exists(${.CURDIR}/${_g}-${_f}) +SUBDIR+= ${_g}-${_f} +.endif +.endfor +.endfor + +.include diff --git a/gnu/usr.bin/binutils220/as/Makefile.inc b/gnu/usr.bin/binutils220/as/Makefile.inc new file mode 100644 index 0000000000..228dbdfb6b --- /dev/null +++ b/gnu/usr.bin/binutils220/as/Makefile.inc @@ -0,0 +1,2 @@ +# BINDIR +.include "${.CURDIR}/../../Makefile.inc" diff --git a/gnu/usr.bin/binutils220/as/Makefile.inc0 b/gnu/usr.bin/binutils220/as/Makefile.inc0 new file mode 100644 index 0000000000..db4dfc3b6d --- /dev/null +++ b/gnu/usr.bin/binutils220/as/Makefile.inc0 @@ -0,0 +1,32 @@ +.include "${.CURDIR}/../../Makefile.inc0" + +RELTOP:= ../${RELTOP} +.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config ${.CURDIR}/.. + +TARGET_OS?= dragonfly + +PROG= as +MAN= doc/as.1 +SRCS+= app.c as.c atof-generic.c atof-ieee.c \ + cond.c depend.c dwarf2dbg.c dw2gencfi.c ecoff.c ehopt.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 remap.c sb.c stabs.c \ + subsegs.c symbols.c write.c + +WARNS= 1 +CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/gas/config -I${SRCDIR} -I${.CURDIR}/.. +CFLAGS+= -I${SRCDIR}/bfd -I${.OBJDIR}/../../libbfd +CFLAGS+= -DTARGET_ALIAS=\"${TARGET_ALIAS}\" +CFLAGS+= -DTARGET_CANONICAL=\"${TARGET_CANONICAL}\" +CFLAGS+= -DTARGET_CPU=\"${TARGET_CPU}\" +CFLAGS+= -DDEFAULT_ARCH=\"${DEFAULT_ARCH}\" +CFLAGS+= -DTARGET_OS=\"${TARGET_OS}\" +CFLAGS+= "-DEMULATIONS=${EMULATIONS}" +CFLAGS+= -DDEFAULT_EMULATION=\"${DEFAULT_EMULATION}\" +CFLAGS+= -DTE_DragonFly +NOSHARED?= yes + +DPADD+= ${RELTOP}/libopcodes/libopcodes.a +LDADD+= ${RELTOP}/libopcodes/libopcodes.a diff --git a/gnu/usr.bin/binutils220/as/amd64-dragonfly/Makefile b/gnu/usr.bin/binutils220/as/amd64-dragonfly/Makefile new file mode 100644 index 0000000000..6008d83141 --- /dev/null +++ b/gnu/usr.bin/binutils220/as/amd64-dragonfly/Makefile @@ -0,0 +1,17 @@ +DEFAULT_ARCH= x86_64 +EMULATIONS= &i386elf, +DEFAULT_EMULATION= i386elf +TARGET_ALIAS= x86_64-just-dragonfly +TARGET_CANONICAL= x86_64-just-dragonfly +TARGET_CPU= x86_64 + +.include "${.CURDIR}/../Makefile.inc0" + +CFLAGS += -I${.OBJDIR}/../../libbfd +.if ${TARGET_ARCH} != "amd64" +BINDIR= /usr/libexec/cross/amd64-dragonfly +.endif +SRCS+= obj-elf.c tc-i386.c + +.include + diff --git a/gnu/usr.bin/binutils220/as/amd64-dragonfly/itbl-cpu.h b/gnu/usr.bin/binutils220/as/amd64-dragonfly/itbl-cpu.h new file mode 100644 index 0000000000..54880214c7 --- /dev/null +++ b/gnu/usr.bin/binutils220/as/amd64-dragonfly/itbl-cpu.h @@ -0,0 +1 @@ +#include "itbl-i386.h" diff --git a/gnu/usr.bin/binutils220/as/amd64-dragonfly/obj-format.h b/gnu/usr.bin/binutils220/as/amd64-dragonfly/obj-format.h new file mode 100644 index 0000000000..69c64aac88 --- /dev/null +++ b/gnu/usr.bin/binutils220/as/amd64-dragonfly/obj-format.h @@ -0,0 +1 @@ +#include "obj-elf.h" diff --git a/gnu/usr.bin/binutils220/as/amd64-dragonfly/targ-cpu.h b/gnu/usr.bin/binutils220/as/amd64-dragonfly/targ-cpu.h new file mode 100644 index 0000000000..f4be0e50bd --- /dev/null +++ b/gnu/usr.bin/binutils220/as/amd64-dragonfly/targ-cpu.h @@ -0,0 +1 @@ +#include "tc-i386.h" diff --git a/gnu/usr.bin/binutils220/as/amd64-dragonfly/targ-env.h b/gnu/usr.bin/binutils220/as/amd64-dragonfly/targ-env.h new file mode 100644 index 0000000000..9f3c21235d --- /dev/null +++ b/gnu/usr.bin/binutils220/as/amd64-dragonfly/targ-env.h @@ -0,0 +1,9 @@ +/* + * Default target format spec for the assembler + */ + +#define LOCAL_LABELS_DOLLAR 1 +#define LOCAL_LABELS_FB 1 + +#include "obj-format.h" + diff --git a/gnu/usr.bin/binutils220/as/config.h b/gnu/usr.bin/binutils220/as/config.h new file mode 100644 index 0000000000..1059799db4 --- /dev/null +++ b/gnu/usr.bin/binutils220/as/config.h @@ -0,0 +1,319 @@ +/* config.h. Generated from config.in by configure. */ +/* config.in. Generated from configure.in by autoheader. */ + +/* Define if building universal (internal helper macro) */ +/* #undef AC_APPLE_UNIVERSAL_BUILD */ + +/* Define if using AIX 5.2 value for C_WEAKEXT. */ +/* #undef AIX_WEAK_SUPPORT */ + +/* assert broken? */ +/* #undef BROKEN_ASSERT */ + +/* 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 */ + +/* Compiling cross-assembler? */ +/* #undef CROSS_COMPILE */ + +/* Define to 1 if using `alloca.c'. */ +/* #undef C_ALLOCA */ + +/* Default architecture. */ +/* #define DEFAULT_ARCH "i386" */ + +/* Default CRIS architecture. */ +/* #undef DEFAULT_CRIS_ARCH */ + +/* Default emulation. */ +/* #define DEFAULT_EMULATION "i386elf" */ + +/* Supported emulations. */ +/* #define EMULATIONS &i386elf, */ + +/* Define if you want run-time sanity checks. */ +#define ENABLE_CHECKING 1 + +/* Define to 1 if translation of program messages to the user's native + language is requested. */ +/* #undef ENABLE_NLS */ + +/* Define to 1 if you have `alloca', as a function or macro. */ +#define HAVE_ALLOCA 1 + +/* Define to 1 if you have and it should be used (not on Ultrix). + */ +/* #undef HAVE_ALLOCA_H */ + +/* Is the prototype for getopt in in the expected format? */ +#define HAVE_DECL_GETOPT 1 + +/* Define to 1 if you have the declaration of `vsnprintf', and to 0 if you + don't. */ +#define HAVE_DECL_VSNPRINTF 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_ERRNO_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_LIMITS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `remove' function. */ +/* #undef HAVE_REMOVE */ + +/* Define to 1 if you have the `sbrk' function. */ +#define HAVE_SBRK 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDARG_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define if has struct stat.st_mtim.tv_nsec */ +#define HAVE_ST_MTIM_TV_NSEC 1 + +/* Define if has struct stat.st_mtim.tv_sec */ +#define HAVE_ST_MTIM_TV_SEC 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_TIME_H 1 + +/* Define if has struct tm.tm_gmtoff. */ +#define HAVE_TM_GMTOFF 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the `unlink' function. */ +#define HAVE_UNLINK 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_VARARGS_H 1 + +/* Using i386 COFF? */ +/* #undef I386COFF */ + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LT_OBJDIR ".libs/" + +/* Using m68k COFF? */ +/* #undef M68KCOFF */ + +/* Using m88k COFF? */ +/* #undef M88KCOFF */ + +/* Default CPU for MIPS targets. */ +/* #undef MIPS_CPU_STRING_DEFAULT */ + +/* Generate 64-bit code by default on MIPS targets. */ +/* #undef MIPS_DEFAULT_64BIT */ + +/* Choose a default ABI for MIPS targets. */ +/* #undef MIPS_DEFAULT_ABI */ + +/* 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 */ + +/* Define if ffs is not declared in system header files. */ +/* #undef NEED_DECLARATION_FFS */ + +/* Define if free is not declared in system header files. */ +/* #undef NEED_DECLARATION_FREE */ + +/* Define if malloc is not declared in system header files. */ +/* #undef NEED_DECLARATION_MALLOC */ + +/* Define if sbrk is not declared in system header files. */ +/* #undef NEED_DECLARATION_SBRK */ + +/* Define if strstr is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRSTR */ + +/* 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 */ + +/* SOM support? */ +/* #undef OBJ_MAYBE_SOM */ + +/* Name of package */ +#define PACKAGE "gas" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "" + +/* Define if defaulting to ELF on SCO 5. */ +/* #undef SCO_ELF */ + +/* 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 runtime. + 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 to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Using strict COFF? */ +/* #undef STRICTCOFF */ + +/* Target alias. */ +/* #define TARGET_ALIAS "" */ + +/* Define as 1 if big endian. */ +/* #undef TARGET_BYTES_BIG_ENDIAN */ + +/* Canonical target. */ +/* #define TARGET_CANONICAL "i386-unknown-dragonfly1.9.0" */ + +/* Target CPU. */ +/* #define TARGET_CPU "i386" */ + +/* Target OS. */ +/* #define TARGET_OS "dragonfly1.9.0" */ + +/* Define if default target is PowerPC Solaris. */ +/* #undef TARGET_SOLARIS_COMMENT */ + +/* Define if target is Symbian OS. */ +/* #undef TARGET_SYMBIAN */ + +/* Target vendor. */ +#define TARGET_VENDOR "unknown" + +/* Use b modifier when opening binary files? */ +/* #undef USE_BINARY_FOPEN */ + +/* Use emulation support? */ +/* #undef USE_EMULATIONS */ + +/* Allow use of E_MIPS_ABI_O32 on MIPS targets. */ +/* #undef USE_E_MIPS_ABI_O32 */ + +/* Enable extensions on AIX 3, Interix. */ +#ifndef _ALL_SOURCE +# define _ALL_SOURCE 1 +#endif +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif +/* Enable threading extensions on Solaris. */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# define _POSIX_PTHREAD_SEMANTICS 1 +#endif +/* Enable extensions on HP NonStop. */ +#ifndef _TANDEM_SOURCE +# define _TANDEM_SOURCE 1 +#endif +/* Enable general extensions on Solaris. */ +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 +#endif + + +/* Using cgen code? */ +/* #undef USING_CGEN */ + +/* Version number of package */ +#define VERSION "2.20.0" + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +/* # undef WORDS_BIGENDIAN */ +# endif +#endif + +/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a + `char[]'. */ +#define YYTEXT_POINTER 1 + +/* Number of bits in a file offset, on hosts where this is settable. */ +/* #undef _FILE_OFFSET_BITS */ + +/* Define for large files, on AIX-style hosts. */ +/* #undef _LARGE_FILES */ + +/* Define to 1 if on MINIX. */ +/* #undef _MINIX */ + +/* Define to 2 if the system does not provide POSIX.1 features except with + this defined. */ +/* #undef _POSIX_1_SOURCE */ + +/* Define to 1 if you need to in order for `stat' and other things to work. */ +/* #undef _POSIX_SOURCE */ + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +/* #undef inline */ +#endif diff --git a/gnu/usr.bin/binutils220/as/i386-dragonfly/Makefile b/gnu/usr.bin/binutils220/as/i386-dragonfly/Makefile new file mode 100644 index 0000000000..601d152d8f --- /dev/null +++ b/gnu/usr.bin/binutils220/as/i386-dragonfly/Makefile @@ -0,0 +1,16 @@ +DEFAULT_ARCH= i386 +EMULATIONS= &i386elf, +DEFAULT_EMULATION= i386elf +TARGET_ALIAS= i386-just-dragonfly +TARGET_CANONICAL= i386-just-dragonfly +TARGET_CPU= i386 + +.include "${.CURDIR}/../Makefile.inc0" + +CFLAGS += -I${.OBJDIR}/../../libbfd +.if ${TARGET_ARCH} != "i386" +BINDIR= /usr/libexec/cross/i386-dragonfly +.endif +SRCS+= obj-elf.c tc-i386.c + +.include diff --git a/gnu/usr.bin/binutils220/as/i386-dragonfly/obj-format.h b/gnu/usr.bin/binutils220/as/i386-dragonfly/obj-format.h new file mode 100644 index 0000000000..69c64aac88 --- /dev/null +++ b/gnu/usr.bin/binutils220/as/i386-dragonfly/obj-format.h @@ -0,0 +1 @@ +#include "obj-elf.h" diff --git a/gnu/usr.bin/binutils220/as/i386-dragonfly/targ-cpu.h b/gnu/usr.bin/binutils220/as/i386-dragonfly/targ-cpu.h new file mode 100644 index 0000000000..f4be0e50bd --- /dev/null +++ b/gnu/usr.bin/binutils220/as/i386-dragonfly/targ-cpu.h @@ -0,0 +1 @@ +#include "tc-i386.h" diff --git a/gnu/usr.bin/binutils220/as/i386-dragonfly/targ-env.h b/gnu/usr.bin/binutils220/as/i386-dragonfly/targ-env.h new file mode 100644 index 0000000000..9f3c21235d --- /dev/null +++ b/gnu/usr.bin/binutils220/as/i386-dragonfly/targ-env.h @@ -0,0 +1,9 @@ +/* + * Default target format spec for the assembler + */ + +#define LOCAL_LABELS_DOLLAR 1 +#define LOCAL_LABELS_FB 1 + +#include "obj-format.h" + diff --git a/gnu/usr.bin/binutils220/doc/Makefile b/gnu/usr.bin/binutils220/doc/Makefile new file mode 100644 index 0000000000..a7242e8bd3 --- /dev/null +++ b/gnu/usr.bin/binutils220/doc/Makefile @@ -0,0 +1,40 @@ +.include "../Makefile.inc0" + +CONTRIBDIR= ${.CURDIR}/../../../../contrib + +.PATH: ${SRCDIR}/gas/doc ${SRCDIR}/ld ${SRCDIR}/bfd/doc + +# GASP removed +INFO = as ld binutils +INFOSECTION= "Programming & development tools." +INFOENTRY_as= "* As: (as). The GNU assembler." +INFOENTRY_gasp= "* Gasp: (gasp). The GNU Assembler Macro Preprocessor." +INFOENTRY_ld= "* Ld: (ld). The GNU linker." +INFOENTRY_binutils= "* Binutils: (binutils). The GNU Binary Utilities." + +MAKEINFOFLAGS+= --no-validate +MAKEINFOFLAGS+= -I ${SRCDIR}/gas/doc -I ${SRCDIR}/ld -I ${SRCDIR}/bfd/doc +MAKEINFOFLAGS+= -I ${SRCDIR}/binutils -I ${SRCDIR}/libiberty +MAKEINFOFLAGS+= -I ${CONTRIBDIR}/libreadline/doc + +CLEANFILES= config.texi configdoc.texi inc-hist.texi \ + inc-hist.texi.orig gasver.texi ldver.texi + +as.info: as.texinfo asconfig.texi c-i386.texi gasver.texi +ld.info: ld.texinfo bfdsumm.texi ldver.texi configdoc.texi + +configdoc.texi: gen-doc.texi + ${LN} -sf ${.ALLSRC} ${.TARGET} + +.PATH: ${SRCDIR}/binutils/doc +binutils.info: binutils.texi config.texi + +config.texi gasver.texi ldver.texi: + echo "@set VERSION ${VERSION}" > ${.TARGET} + +.PATH: ${CONTRIBDIR}/libreadline/doc +inc-hist.texi: hsuser.texinfo inc-hist.diff + cp ${.ALLSRC:M*.texinfo} ${.TARGET} + patch --suffix=.orig < ${.ALLSRC:M*.diff} + +.include diff --git a/gnu/usr.bin/binutils220/doc/asconfig.texi b/gnu/usr.bin/binutils220/doc/asconfig.texi new file mode 100644 index 0000000000..2a7b652f83 --- /dev/null +++ b/gnu/usr.bin/binutils220/doc/asconfig.texi @@ -0,0 +1,70 @@ +@c Copyright 1992, 1993 Free Software Foundation, Inc. +@c This file is part of the documentation for the GAS manual + +@c Configuration settings for all-inclusive version of manual + +@c switches:------------------------------------------------------------ +@c Properties of the manual +@c ======================== +@c Discuss all architectures? +@clear ALL-ARCH +@c A generic form of manual (not tailored to specific target)? +@clear GENERIC +@c Include text on assembler internals? +@set INTERNALS +@c Many object formats supported in this config? +@clear MULTI-OBJ + +@c Object formats of interest +@c ========================== +@clear AOUT +@clear BOUT +@clear COFF +@set ELF +@clear SOM + +@c CPUs of interest +@c ================ +@clear A29K +@clear ARC +@clear ARM +@clear D10V +@clear H8/300 +@clear H8/500 +@clear SH +@set I80386 +@clear I960 +@clear MIPS +@clear M32R +@clear M680X0 +@clear Z8000 +@clear SPARC +@clear VAX +@clear VXWORKS +@clear HPPA +@clear V850 + +@c Does this version of the assembler use the difference-table kluge? +@clear DIFF-TBL-KLUGE + +@c Do all machines described use IEEE floating point? +@set IEEEFLOAT + +@c Is a word 32 bits, or 16? +@set W32 +@clear W16 + +@c Do symbols have different characters than usual? +@clear SPECIAL-SYMS + +@c strings:------------------------------------------------------------ +@c Name of the assembler: +@set AS as +@c Name of C compiler: +@set GCC gcc +@c Name of linker: +@set LD ld +@c Text for target machine (best not used in generic case; but just in case...) +@set TARGET i386 +@c Name of object format (NOT SET in generic version) +@set OBJ-NAME ELF diff --git a/gnu/usr.bin/binutils220/ld/Makefile b/gnu/usr.bin/binutils220/ld/Makefile new file mode 100644 index 0000000000..c285f1fcf8 --- /dev/null +++ b/gnu/usr.bin/binutils220/ld/Makefile @@ -0,0 +1,45 @@ +ELF_SCR_EXT= x xbn xc xd xdc xdw xn xr xs xsc xsw xu xw + +.include "../Makefile.inc0" + +.PATH: ${SRCDIR}/ld + +PROG= ld +LIBEXEC_BINUTILS= ${BINDIR}/.. +SCRIPTDIR= ${LIBEXEC_BINUTILS}/ldscripts +SRCS+= ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \ + ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c + +SRCS+= ldemul-list.h + +WARNS= 1 +CFLAGS+= -DSCRIPTDIR=\"${TOOLS_PREFIX}${LIBEXEC_BINUTILS}\" +CFLAGS+= -I${SRCDIR}/ld -I${SRCDIR}/bfd -I${.OBJDIR}/../libbfd +CFLAGS+= -DBINDIR=\"${TOOLS_PREFIX}${LIBEXEC_BINUTILS}\" +CFLAGS+= -DTOOLBINDIR=\"${TOOLS_PREFIX}${LIBEXEC_BINUTILS}\" +NOSHARED?= yes + +CLEANDIRS+= ldscripts tmpdir +CLEANFILES+= ldemul-list.h stringify.sed + +EMXFR= +EMLST= +.for _e in ${EMS} +EMXFR+= extern ld_emulation_xfer_type ld_${_e}_emulation; +EMLST+= &ld_${_e}_emulation, +.endfor + +ldemul-list.h: + echo "${EMXFR}" > ${.TARGET} + echo "#define EMULATION_LIST ${EMLST} 0" >> ${.TARGET} + +stringify.sed: + ${LN} -sf ${SRCDIR}/ld/emultempl/astring.sed ${.TARGET} + +afterinstall: install-ldscripts + +install-ldscripts: ${LDSCRIPTS:S|^|ldscripts/|} + ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${.ALLSRC} ${DESTDIR}${SCRIPTDIR} + +.include diff --git a/gnu/usr.bin/binutils220/ld/Makefile.amd64 b/gnu/usr.bin/binutils220/ld/Makefile.amd64 new file mode 100644 index 0000000000..a9155deaf5 --- /dev/null +++ b/gnu/usr.bin/binutils220/ld/Makefile.amd64 @@ -0,0 +1,50 @@ +TARGET_TUPLE?= x86_64-just-dragonfly + +NATIVE_EMULATION= elf_x86_64 +HOST= ${TARGET_TUPLE} +CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\" +CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\" +_amd64_path= ${USRDATA_PREFIX}/usr/lib +EMS+= ${NATIVE_EMULATION} +.for ext in ${ELF_SCR_EXT} +LDSCRIPTS_${NATIVE_EMULATION}+= ${NATIVE_EMULATION}.${ext} +.endfor +LDSCRIPTS+= ${LDSCRIPTS_${NATIVE_EMULATION}} +SRCS+= e${NATIVE_EMULATION}.c +CLEANFILES+= e${NATIVE_EMULATION}.c + +e${NATIVE_EMULATION}.c ${LDSCRIPTS_${NATIVE_EMULATION}}: \ + emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em \ + scripttempl/elf.sc genscripts.sh stringify.sed + sh ${SRCDIR}/ld/genscripts.sh \ + ${SRCDIR:Q}/ld \ + ${_amd64_path:Q} \ + "" \ + "" \ + ${HOST} \ + ${TARGET_TUPLE:Q} \ + ${TARGET_TUPLE:Q} \ + ${NATIVE_EMULATION:Q} \ + "" \ + no \ + ${NATIVE_EMULATION:Q} \ + ${TARGET_TUPLE:Q} + +X86_EMULATION= elf_i386 +# XXX adjust path +_i386_path= ${USRDATA_PREFIX}/usr/lib/i386 +EMS+= ${X86_EMULATION} +.for ext in ${ELF_SCR_EXT} +LDSCRIPTS_${X86_EMULATION}+= ${X86_EMULATION}.${ext} +.endfor +LDSCRIPTS+= ${LDSCRIPTS_${X86_EMULATION}} + +SRCS+= e${X86_EMULATION}.c +CLEANFILES+= e${X86_EMULATION}.c +e${X86_EMULATION}.c ${LDSCRIPTS_${X86_EMULATION}}: \ + emulparams/${X86_EMULATION}.sh emultempl/elf32.em \ + scripttempl/elf.sc genscripts.sh stringify.sed + sh ${SRCDIR}/ld/genscripts.sh ${SRCDIR:Q}/ld ${_i386_path:Q} \ + "" "" \ + ${HOST} ${TARGET_TUPLE:Q} ${TARGET_TUPLE:Q} \ + ${X86_EMULATION:Q} "" no ${X86_EMULATION:Q} ${TARGET_TUPLE:Q} diff --git a/gnu/usr.bin/binutils220/ld/Makefile.i386 b/gnu/usr.bin/binutils220/ld/Makefile.i386 new file mode 100644 index 0000000000..9b0490e499 --- /dev/null +++ b/gnu/usr.bin/binutils220/ld/Makefile.i386 @@ -0,0 +1,35 @@ +TARGET_TUPLE?= i386-just-dragonfly + +.if ${TARGET_ARCH} == "i386" +NATIVE_EMULATION= elf_i386 +HOST= ${TARGET_TUPLE} +CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\" +CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\" +_i386_path= ${USRDATA_PREFIX}/usr/lib +.else +_i386_path= /usr/cross/i386-dragonfly/usr/lib +.endif +EMS+= ${NATIVE_EMULATION} +.for ext in ${ELF_SCR_EXT} +LDSCRIPTS_${NATIVE_EMULATION}+= ${NATIVE_EMULATION}.${ext} +.endfor +LDSCRIPTS+= ${LDSCRIPTS_${NATIVE_EMULATION}} +SRCS+= e${NATIVE_EMULATION}.c +CLEANFILES+= e${NATIVE_EMULATION}.c + +e${NATIVE_EMULATION}.c ${LDSCRIPTS_${NATIVE_EMULATION}}: \ + emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em \ + scripttempl/elf.sc genscripts.sh stringify.sed + sh ${SRCDIR}/ld/genscripts.sh \ + ${SRCDIR:Q}/ld \ + ${_i386_path:Q} \ + "" \ + "" \ + ${HOST} \ + ${TARGET_TUPLE:Q} \ + ${TARGET_TUPLE:Q} \ + ${NATIVE_EMULATION:Q} \ + "" \ + no \ + ${NATIVE_EMULATION:Q} \ + ${TARGET_TUPLE:Q} diff --git a/gnu/usr.bin/binutils220/ld/config.h b/gnu/usr.bin/binutils220/ld/config.h new file mode 100644 index 0000000000..156aab219c --- /dev/null +++ b/gnu/usr.bin/binutils220/ld/config.h @@ -0,0 +1,186 @@ +/* config.h. Generated from config.in by configure. */ +/* config.in. Generated from configure.in by autoheader. */ + +/* Define to 1 if translation of program messages to the user's native + language is requested. */ +/* #undef ENABLE_NLS */ + +/* Additional extension a shared object might have. */ +/* #undef EXTRA_SHLIB_EXTENSION */ + +/* Define to choose default GOT handling scheme */ +#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT + +/* Define to 1 if you have the declaration of `environ', and to 0 if you + don't. */ +#define HAVE_DECL_ENVIRON 0 + +/* Define to 1 if you have the declaration of `free', and to 0 if you don't. + */ +#define HAVE_DECL_FREE 1 + +/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. + */ +#define HAVE_DECL_GETENV 1 + +/* Is the prototype for getopt in in the expected format? */ +#define HAVE_DECL_GETOPT 1 + +/* Define to 1 if you have the declaration of `sbrk', and to 0 if you don't. + */ +#define HAVE_DECL_SBRK 1 + +/* Define to 1 if you have the declaration of `strstr', and to 0 if you don't. + */ +#define HAVE_DECL_STRSTR 1 + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +#define HAVE_DIRENT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_ELF_HINTS_H 1 + +/* Define to 1 if you have the `glob' function. */ +#define HAVE_GLOB 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_LIMITS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `mkstemp' function. */ +#define HAVE_MKSTEMP 1 + +/* Define to 1 if you have the header file, and it defines `DIR'. */ +/* #undef HAVE_NDIR_H */ + +/* Define to 1 if you have the `realpath' function. */ +#define HAVE_REALPATH 1 + +/* Define to 1 if you have the `sbrk' function. */ +#define HAVE_SBRK 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the `waitpid' function. */ +#define HAVE_WAITPID 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_ZLIB_H 1 + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "ld" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "" + +/* The size of `long', as computed by sizeof. */ +/* #undef SIZEOF_LONG */ + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Use b modifier when opening binary files? */ +/* #undef USE_BINARY_FOPEN */ + +/* Enable extensions on AIX 3, Interix. */ +#ifndef _ALL_SOURCE +# define _ALL_SOURCE 1 +#endif +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif +/* Enable threading extensions on Solaris. */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# define _POSIX_PTHREAD_SEMANTICS 1 +#endif +/* Enable extensions on HP NonStop. */ +#ifndef _TANDEM_SOURCE +# define _TANDEM_SOURCE 1 +#endif +/* Enable general extensions on Solaris. */ +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 +#endif + + +/* Version number of package */ +#define VERSION "2.20.0" + +/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a + `char[]'. */ +#define YYTEXT_POINTER 1 + +/* Number of bits in a file offset, on hosts where this is settable. */ +/* #undef _FILE_OFFSET_BITS */ + +/* Define for large files, on AIX-style hosts. */ +/* #undef _LARGE_FILES */ + +/* Define to 1 if on MINIX. */ +/* #undef _MINIX */ + +/* Define to 2 if the system does not provide POSIX.1 features except with + this defined. */ +/* #undef _POSIX_1_SOURCE */ + +/* Define to 1 if you need to in order for `stat' and other things to work. */ +/* #undef _POSIX_SOURCE */ diff --git a/gnu/usr.bin/binutils220/libbfd/Makefile b/gnu/usr.bin/binutils220/libbfd/Makefile new file mode 100644 index 0000000000..856ee8de3e --- /dev/null +++ b/gnu/usr.bin/binutils220/libbfd/Makefile @@ -0,0 +1,79 @@ +.include "../Makefile.inc0" + +LIB= bfd +INTERNALLIB= true + +CONTRIBDIR= ${SRCDIR}/bfd +.PATH: ${CONTRIBDIR} + +CFLAGS+= -I${SRCDIR}/include -I${CONTRIBDIR} -I${.CURDIR} -I${.OBJDIR} +# XXX no clue what DEBUGDIR is for +CFLAGS+= -DDEBUGDIR='"/usr/lib/debug"' + +SRCS= archive.c archures.c bfd.c bfdio.c bfdwin.c \ + cache.c coffgen.c corefile.c format.c init.c libbfd.c \ + opncls.c reloc.c section.c syms.c targets.c hash.c \ + linker.c srec.c binary.c tekhex.c ihex.c stabs.c \ + stab-syms.c merge.c dwarf2.c simple.c compress.c \ + verilog.c + +SRCS+= targmatch.h elf32-target.h elf64-target.h +CLEANFILES+= elf64-target.h elf32-target.h targmatch.h + +targmatch.h: config.bfd targmatch.sed + sed -f ${CONTRIBDIR}/targmatch.sed < ${CONTRIBDIR}/config.bfd > ${.TARGET} + +elf32-target.h: elfxx-target.h + sed -e s/NN/32/g < ${CONTRIBDIR}/elfxx-target.h > ${.TARGET} +elf64-target.h: elfxx-target.h + sed -e s/NN/64/g < ${CONTRIBDIR}/elfxx-target.h > ${.TARGET} + +TARGET_ARCH?= ${MACHINE_ARCH} +.include "Makefile.${TARGET_ARCH}" + +.for _v in ${VECTORS} +CFLAGS+= -DHAVE_${_v} +.endfor +CFLAGS+= -DSELECT_VECS='${VECTORS:S/^/\&/:S/$/,/} NULL' +CFLAGS+= -DSELECT_ARCHITECTURES='${ARCHITECTURES:S/^/\&/:S/$/,/} NULL' +CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR} + + +SRCS+= bfd.h bfdver.h +CLEANFILES+= bfd.h bfdver.h + +# Used to do keyword replacement in bfd-X.h +# +BFD_HOST_64_BIT_DEFINED?=1 +BFD_HOST_LONG_LONG?=1 +.include "Makefile.host.${MACHINE_ARCH}" + +bfd.h: ${CONTRIBDIR}/bfd-in2.h + sed -e "s/@supports_plugins@/0/g" \ + -e "s/@wordsize@/${BFD_ARCH_SIZE}/g" \ + -e "s/@bfd_default_target_size@/${BFD_DEFAULT_TARGET_SIZE}/g" \ + -e "s/@BFD_HOST_64BIT_LONG@/${BFD_HOST_64BIT_LONG}/g" \ + -e "s/@BFD_HOST_64BIT_LONG_LONG@/${BFD_HOST_64BIT_LONG_LONG}/g" \ + -e "s/@BFD_HOST_64_BIT@/${BFD_HOST_64_BIT}/g" \ + -e "s/@BFD_HOST_U_64_BIT@/${BFD_HOST_U_64_BIT}/g" \ + -e "s/@BFD_HOST_64_BIT_DEFINED@/${BFD_HOST_64_BIT_DEFINED}/g" \ + -e "s/@bfd_file_ptr@/${BFD_HOST_64_BIT}/g" \ + -e "s/@BFD_HOSTPTR_T@/${BFD_HOSTPTR_T}/g" \ + < ${CONTRIBDIR}/bfd-in2.h > bfd.h.new + mv -f bfd.h.new bfd.h + +bfdver.h: ${CONTRIBDIR}/version.h + sed -e "s/@bfd_version_string@/\"2.20.0\"/g" \ + -e "s/@bfd_version_package@/\"(GNU Binutils) \"/g" \ + -e "s/@bfd_version@/220000000/g" \ + -e "s/@report_bugs_to@/\"\"/g" \ + < ${CONTRIBDIR}/version.h > bfdver.h.new + mv -f bfdver.h.new bfdver.h + +SRCS+= bfd_stdint.h +CLEANFILES+= bfd_stdint.h + +bfd_stdint.h: + touch ${.TARGET} + +.include diff --git a/gnu/usr.bin/binutils220/libbfd/Makefile.amd64 b/gnu/usr.bin/binutils220/libbfd/Makefile.amd64 new file mode 100644 index 0000000000..0116283f5d --- /dev/null +++ b/gnu/usr.bin/binutils220/libbfd/Makefile.amd64 @@ -0,0 +1,23 @@ +# from Makefile, BFD_BACKENDS/BFD_MACHINES +SRCS+= elf64-x86-64.c elf-ifunc.c elf64.c elf.c elflink.c elf-attrs.c \ + elf-strtab.c elf-eh-frame.c dwarf1.c elf32-i386.c elf-vxworks.c \ + elf32.c elf64-gen.c elf32-gen.c +SRCS+= cpu-i386.c cpu-l1om.c + +# BFD64_LIBS +SRCS+= archive64.c + +VECTORS= bfd_elf64_x86_64_vec \ + bfd_elf32_i386_vec \ + bfd_elf64_l1om_vec \ + bfd_elf64_little_generic_vec \ + bfd_elf64_big_generic_vec \ + bfd_elf32_little_generic_vec \ + bfd_elf32_big_generic_vec + +DEFAULT_VECTOR= bfd_elf64_x86_64_vec + +ARCHITECTURES= bfd_i386_arch bfd_l1om_arch + +BFD_DEFAULT_TARGET_SIZE?= 64 +BFD_ARCH_SIZE= 64 diff --git a/gnu/usr.bin/binutils220/libbfd/Makefile.host.amd64 b/gnu/usr.bin/binutils220/libbfd/Makefile.host.amd64 new file mode 100644 index 0000000000..0604dde437 --- /dev/null +++ b/gnu/usr.bin/binutils220/libbfd/Makefile.host.amd64 @@ -0,0 +1,8 @@ +# Used to do keyword replacement in bfd-X.h +# +BFD_HOST_64BIT_LONG?=1 +BFD_HOST_64BIT_LONG_LONG?=0 +BFD_HOST_64_BIT?=long +BFD_HOST_U_64_BIT?=unsigned long +BFD_HOSTPTR_T?=unsigned long +BFD_ARCH_SIZE=64 diff --git a/gnu/usr.bin/binutils220/libbfd/Makefile.host.i386 b/gnu/usr.bin/binutils220/libbfd/Makefile.host.i386 new file mode 100644 index 0000000000..044ae550b5 --- /dev/null +++ b/gnu/usr.bin/binutils220/libbfd/Makefile.host.i386 @@ -0,0 +1,7 @@ +# Used to do keyword replacement in bfd-X.h +# +BFD_HOST_64BIT_LONG?=0 +BFD_HOST_64BIT_LONG_LONG?=1 +BFD_HOST_64_BIT?=long long +BFD_HOST_U_64_BIT?=unsigned long long +BFD_HOSTPTR_T?=unsigned long diff --git a/gnu/usr.bin/binutils220/libbfd/Makefile.i386 b/gnu/usr.bin/binutils220/libbfd/Makefile.i386 new file mode 100644 index 0000000000..069ec5e082 --- /dev/null +++ b/gnu/usr.bin/binutils220/libbfd/Makefile.i386 @@ -0,0 +1,17 @@ +# from Makefile, BFD_BACKENDS/BFD_MACHINES +SRCS+= elf32-i386.c elf-ifunc.c elf-vxworks.c elf32.c elf.c \ + elflink.c elf-attrs.c elf-strtab.c elf-eh-frame.c dwarf1.c elf32-gen.c +SRCS+= cpu-i386.c + +SRCS+= elf32-target.h + +VECTORS= bfd_elf32_i386_vec \ + bfd_elf32_little_generic_vec \ + bfd_elf32_big_generic_vec + +DEFAULT_VECTOR= bfd_elf32_i386_vec + +ARCHITECTURES= bfd_i386_arch + +BFD_DEFAULT_TARGET_SIZE?= 32 +BFD_ARCH_SIZE?= 32 diff --git a/gnu/usr.bin/binutils220/libbfd/config.h b/gnu/usr.bin/binutils220/libbfd/config.h new file mode 100644 index 0000000000..3efe6f84b8 --- /dev/null +++ b/gnu/usr.bin/binutils220/libbfd/config.h @@ -0,0 +1,343 @@ +/* config.h. Generated from config.in by configure. */ +/* config.in. Generated from configure.in by autoheader. */ + +/* Define to 1 if translation of program messages to the user's native + language is requested. */ +/* #undef ENABLE_NLS */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_ALLOCA_H */ + +/* Define to 1 if you have the declaration of `basename', and to 0 if you + don't. */ +#define HAVE_DECL_BASENAME 0 + +/* Define to 1 if you have the declaration of `ffs', and to 0 if you don't. */ +#define HAVE_DECL_FFS 1 + +/* Define to 1 if you have the declaration of `free', and to 0 if you don't. + */ +#define HAVE_DECL_FREE 1 + +/* Define to 1 if you have the declaration of `fseeko', and to 0 if you don't. + */ +#define HAVE_DECL_FSEEKO 1 + +/* Define to 1 if you have the declaration of `fseeko64', and to 0 if you + don't. */ +#define HAVE_DECL_FSEEKO64 0 + +/* Define to 1 if you have the declaration of `ftello', and to 0 if you don't. + */ +#define HAVE_DECL_FTELLO 1 + +/* Define to 1 if you have the declaration of `ftello64', and to 0 if you + don't. */ +#define HAVE_DECL_FTELLO64 0 + +/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. + */ +#define HAVE_DECL_GETENV 1 + +/* Define to 1 if you have the declaration of `malloc', and to 0 if you don't. + */ +#define HAVE_DECL_MALLOC 1 + +/* Define to 1 if you have the declaration of `realloc', and to 0 if you + don't. */ +#define HAVE_DECL_REALLOC 1 + +/* Define to 1 if you have the declaration of `snprintf', and to 0 if you + don't. */ +#define HAVE_DECL_SNPRINTF 1 + +/* Define to 1 if you have the declaration of `stpcpy', and to 0 if you don't. + */ +#define HAVE_DECL_STPCPY 1 + +/* Define to 1 if you have the declaration of `strstr', and to 0 if you don't. + */ +#define HAVE_DECL_STRSTR 1 + +/* Define to 1 if you have the declaration of `vsnprintf', and to 0 if you + don't. */ +#define HAVE_DECL_VSNPRINTF 1 + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +#define HAVE_DIRENT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the `fcntl' function. */ +#define HAVE_FCNTL 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_FCNTL_H 1 + +/* Define to 1 if you have the `fdopen' function. */ +#define HAVE_FDOPEN 1 + +/* Define to 1 if you have the `fileno' function. */ +#define HAVE_FILENO 1 + +/* Define to 1 if you have the `fopen64' function. */ +/* #undef HAVE_FOPEN64 */ + +/* Define to 1 if you have the `fseeko' function. */ +#define HAVE_FSEEKO 1 + +/* Define to 1 if you have the `fseeko64' function. */ +/* #undef HAVE_FSEEKO64 */ + +/* Define to 1 if you have the `ftello' function. */ +#define HAVE_FTELLO 1 + +/* Define to 1 if you have the `ftello64' function. */ +/* #undef HAVE_FTELLO64 */ + +/* Define to 1 if you have the `getgid' function. */ +#define HAVE_GETGID 1 + +/* Define to 1 if you have the `getpagesize' function. */ +#define HAVE_GETPAGESIZE 1 + +/* Define to 1 if you have the `getuid' function. */ +#define HAVE_GETUID 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define if has lwpstatus_t. */ +/* #undef HAVE_LWPSTATUS_T */ + +/* Define if has lwpstatus_t.pr_context. */ +/* #undef HAVE_LWPSTATUS_T_PR_CONTEXT */ + +/* Define if has lwpstatus_t.pr_reg. */ +/* #undef HAVE_LWPSTATUS_T_PR_REG */ + +/* Define if has lwpxstatus_t. */ +/* #undef HAVE_LWPXSTATUS_T */ + +/* Define to 1 if you have the `madvise' function. */ +#define HAVE_MADVISE 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have a working `mmap' system call. */ +#define HAVE_MMAP 1 + +/* Define to 1 if you have the `mprotect' function. */ +#define HAVE_MPROTECT 1 + +/* Define to 1 if you have the header file, and it defines `DIR'. */ +/* #undef HAVE_NDIR_H */ + +/* Define if has prpsinfo32_t. */ +/* #undef HAVE_PRPSINFO32_T */ + +/* Define if has prpsinfo_t. */ +#define HAVE_PRPSINFO_T 1 + +/* Define if has prstatus32_t. */ +/* #undef HAVE_PRSTATUS32_T */ + +/* Define if has prstatus32_t.pr_who. */ +/* #undef HAVE_PRSTATUS32_T_PR_WHO */ + +/* Define if has prstatus_t. */ +#define HAVE_PRSTATUS_T 1 + +/* Define if has prstatus_t.pr_who. */ +/* #undef HAVE_PRSTATUS_T_PR_WHO */ + +/* Define if has psinfo32_t. */ +/* #undef HAVE_PSINFO32_T */ + +/* Define if has psinfo_t. */ +/* #undef HAVE_PSINFO_T */ + +/* Define if has pstatus32_t. */ +/* #undef HAVE_PSTATUS32_T */ + +/* Define if has pstatus_t. */ +/* #undef HAVE_PSTATUS_T */ + +/* Define if has pxstatus_t. */ +/* #undef HAVE_PXSTATUS_T */ + +/* Define to 1 if you have the `setitimer' function. */ +#define HAVE_SETITIMER 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDDEF_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strtoull' function. */ +#define HAVE_STRTOULL 1 + +/* Define if struct core_dumpx has member c_impl */ +/* #undef HAVE_ST_C_IMPL */ + +/* Define to 1 if you have the `sysconf' function. */ +#define HAVE_SYSCONF 1 + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_FILE_H 1 + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_PROCFS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_TIME_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define if has win32_pstatus_t. */ +/* #undef HAVE_WIN32_PSTATUS_T */ + +/* Define to 1 if you have the header file. */ +#define HAVE_ZLIB_H 1 + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "bfd" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "" + +/* The size of `char', as computed by sizeof. */ +/* #undef SIZEOF_CHAR */ + +/* The size of `int', as computed by sizeof. */ +/* #undef SIZEOF_INT */ + +/* The size of `long', as computed by sizeof. */ +/* #define SIZEOF_LONG 4 */ + +/* The size of `long long', as computed by sizeof. */ +#define SIZEOF_LONG_LONG 8 + +/* The size of `off_t', as computed by sizeof. */ +#define SIZEOF_OFF_T 8 + +/* The size of `short', as computed by sizeof. */ +/* #undef SIZEOF_SHORT */ + +/* The size of `void *', as computed by sizeof. */ +/* #define SIZEOF_VOID_P 4 */ + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define if you can safely include both and . */ +#define STRING_WITH_STRINGS 1 + +/* Define to 1 if you can safely include both and . */ +#define TIME_WITH_SYS_TIME 1 + +/* Name of host specific header file to include in trad-core.c. */ +/* #undef TRAD_HEADER */ + +/* Use b modifier when opening binary files? */ +/* #undef USE_BINARY_FOPEN */ + +/* Use mmap if it's available? */ +/* #undef USE_MMAP */ + +/* Define if we should default to creating read-only plt entries */ +/* #undef USE_SECUREPLT */ + +/* Define if we may generate symbols with ELF's STT_COMMON type */ +/* #undef USE_STT_COMMON */ + +/* Enable extensions on AIX 3, Interix. */ +#ifndef _ALL_SOURCE +# define _ALL_SOURCE 1 +#endif +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif +/* Enable threading extensions on Solaris. */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# define _POSIX_PTHREAD_SEMANTICS 1 +#endif +/* Enable extensions on HP NonStop. */ +#ifndef _TANDEM_SOURCE +# define _TANDEM_SOURCE 1 +#endif +/* Enable general extensions on Solaris. */ +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 +#endif + + +/* Version number of package */ +#define VERSION "2.20.0" + +/* Number of bits in a file offset, on hosts where this is settable. */ +/* #undef _FILE_OFFSET_BITS */ + +/* Define for large files, on AIX-style hosts. */ +/* #undef _LARGE_FILES */ + +/* Define to 1 if on MINIX. */ +/* #undef _MINIX */ + +/* Define to 2 if the system does not provide POSIX.1 features except with + this defined. */ +/* #undef _POSIX_1_SOURCE */ + +/* Define to 1 if you need to in order for `stat' and other things to work. */ +/* #undef _POSIX_SOURCE */ diff --git a/gnu/usr.bin/binutils220/libbinutils/Makefile b/gnu/usr.bin/binutils220/libbinutils/Makefile new file mode 100644 index 0000000000..3da8fb7c9c --- /dev/null +++ b/gnu/usr.bin/binutils220/libbinutils/Makefile @@ -0,0 +1,18 @@ +.include "../Makefile.bu" + +.PATH: ${SRCDIR}/binutils + +LIB= binutils + +SRCS+= bucomm.c version.c filemode.c +SRCS+= arparse.y arlex.l arsup.c rename.c binemul.c emul_vanilla.c +SRCS+= rddbg.c debug.c stabs.c ieee.c rdcoff.c +SRCS+= wrstabs.c +SRCS+= dwarf.c prdbg.c unwind-ia64.c + +WARNS= 0 +CFLAGS+= -DTARGET=\"${TARGET_ARCH}-just-dragonfly\" +CFLAGS+= -Dbin_dummy_emulation=bin_vanilla_emulation +INTERNALLIB= true + +.include diff --git a/gnu/usr.bin/binutils220/libbinutils/config.h b/gnu/usr.bin/binutils220/libbinutils/config.h new file mode 100644 index 0000000000..77b3a176f7 --- /dev/null +++ b/gnu/usr.bin/binutils220/libbinutils/config.h @@ -0,0 +1,249 @@ +/* config.h. Generated from config.in by configure. */ +/* config.in. Generated from configure.in by autoheader. */ + +/* 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 to 1 if using `alloca.c'. */ +/* #undef C_ALLOCA */ + +/* Define to 1 if translation of program messages to the user's native + language is requested. */ +/* #undef ENABLE_NLS */ + +/* Suffix used for executables, if any. */ +#define EXECUTABLE_SUFFIX "" + +/* Define to 1 if you have `alloca', as a function or macro. */ +#define HAVE_ALLOCA 1 + +/* Define to 1 if you have and it should be used (not on Ultrix). + */ +/* #undef HAVE_ALLOCA_H */ + +/* Define to 1 if you have the declaration of `environ', and to 0 if you + don't. */ +#define HAVE_DECL_ENVIRON 0 + +/* Define to 1 if you have the declaration of `fprintf', and to 0 if you + don't. */ +#define HAVE_DECL_FPRINTF 1 + +/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you + don't. */ +#define HAVE_DECL_GETC_UNLOCKED 1 + +/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. + */ +#define HAVE_DECL_GETENV 1 + +/* Is the prototype for getopt in in the expected format? */ +#define HAVE_DECL_GETOPT 1 + +/* Define to 1 if you have the declaration of `sbrk', and to 0 if you don't. + */ +#define HAVE_DECL_SBRK 1 + +/* Define to 1 if you have the declaration of `snprintf', and to 0 if you + don't. */ +#define HAVE_DECL_SNPRINTF 1 + +/* Define to 1 if you have the declaration of `stpcpy', and to 0 if you don't. + */ +#define HAVE_DECL_STPCPY 1 + +/* Define to 1 if you have the declaration of `strstr', and to 0 if you don't. + */ +#define HAVE_DECL_STRSTR 1 + +/* Define to 1 if you have the declaration of `vsnprintf', and to 0 if you + don't. */ +#define HAVE_DECL_VSNPRINTF 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Does the platform use an executable suffix? */ +/* #undef HAVE_EXECUTABLE_SUFFIX */ + +/* Define to 1 if you have the header file. */ +#define HAVE_FCNTL_H 1 + +/* Is fopen64 available? */ +/* #undef HAVE_FOPEN64 */ + +/* Define to 1 if you have the `getc_unlocked' function. */ +#define HAVE_GETC_UNLOCKED 1 + +/* Does define struct utimbuf? */ +#define HAVE_GOOD_UTIME_H 1 + +/* Define if you have the iconv() function. */ +#define HAVE_ICONV 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_LIMITS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `mkdtemp' function. */ +#define HAVE_MKDTEMP 1 + +/* Define to 1 if you have the `mkstemp' function. */ +#define HAVE_MKSTEMP 1 + +/* Define to 1 if you have the `sbrk' function. */ +#define HAVE_SBRK 1 + +/* Define to 1 if you have the `setmode' function. */ +#define HAVE_SETMODE 1 + +/* Is stat64 available? */ +/* #undef HAVE_STAT64 */ + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the `strcoll' function. */ +#define HAVE_STRCOLL 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_FILE_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have that is POSIX.1 compatible. */ +#define HAVE_SYS_WAIT_H 1 + +/* Is the type time_t defined in ? */ +#define HAVE_TIME_T_IN_TIME_H 1 + +/* Is the type time_t defined in ? */ +#define HAVE_TIME_T_IN_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the `utimes' function. */ +#define HAVE_UTIMES 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_ZLIB_H 1 + +/* Define as const if the declaration of iconv() needs const. */ +#define ICONV_CONST + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "binutils" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "" + +/* 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 runtime. + 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 to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Configured target name. */ +/* #define TARGET "i386-unknown-dragonfly1.9.0" */ + +/* Define to 1 if user symbol names have a leading underscore, 0 if not. */ +#define TARGET_PREPENDS_UNDERSCORE 0 + +/* Use b modifier when opening binary files? */ +/* #undef USE_BINARY_FOPEN */ + +/* Enable extensions on AIX 3, Interix. */ +#ifndef _ALL_SOURCE +# define _ALL_SOURCE 1 +#endif +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif +/* Enable threading extensions on Solaris. */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# define _POSIX_PTHREAD_SEMANTICS 1 +#endif +/* Enable extensions on HP NonStop. */ +#ifndef _TANDEM_SOURCE +# define _TANDEM_SOURCE 1 +#endif +/* Enable general extensions on Solaris. */ +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 +#endif + + +/* Version number of package */ +#define VERSION "2.20.0" + +/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a + `char[]'. */ +#define YYTEXT_POINTER 1 + +/* Number of bits in a file offset, on hosts where this is settable. */ +/* #undef _FILE_OFFSET_BITS */ + +/* Enable LFS */ +/* #undef _LARGEFILE64_SOURCE */ + +/* Define for large files, on AIX-style hosts. */ +/* #undef _LARGE_FILES */ + +/* Define to 1 if on MINIX. */ +/* #undef _MINIX */ + +/* Define to 2 if the system does not provide POSIX.1 features except with + this defined. */ +/* #undef _POSIX_1_SOURCE */ + +/* Define to 1 if you need to in order for `stat' and other things to work. */ +/* #undef _POSIX_SOURCE */ diff --git a/gnu/usr.bin/binutils220/libiberty/Makefile b/gnu/usr.bin/binutils220/libiberty/Makefile new file mode 100644 index 0000000000..9db9705fa7 --- /dev/null +++ b/gnu/usr.bin/binutils220/libiberty/Makefile @@ -0,0 +1,17 @@ +.include "../Makefile.inc0" + +.PATH: ${SRCDIR}/libiberty + +LIB= iberty +SRCS= argv.c choose-temp.c concat.c cp-demangle.c cp-demint.c cplus-dem.c \ + dyn-string.c filename_cmp.c getopt.c getopt1.c getpwd.c getruntime.c \ + hex.c floatformat.c hashtab.c lbasename.c lrealpath.c \ + make-temp-file.c make-relative-prefix.c md5.c \ + objalloc.c obstack.c safe-ctype.c sha1.c stpcpy.c unlink-if-ordinary.c \ + xatexit.c xexit.c xmalloc.c \ + xstrdup.c xstrerror.c +WARNS= 1 +CFLAGS+= -DHAVE_CONFIG_H +INTERNALLIB= true + +.include diff --git a/gnu/usr.bin/binutils220/libiberty/config.h b/gnu/usr.bin/binutils220/libiberty/config.h new file mode 100644 index 0000000000..204cdaab24 --- /dev/null +++ b/gnu/usr.bin/binutils220/libiberty/config.h @@ -0,0 +1,471 @@ +/* config.h. Generated from config.in by configure. */ +/* config.in. Generated from configure.ac by autoheader. */ + +/* Define if building universal (internal helper macro) */ +/* #undef AC_APPLE_UNIVERSAL_BUILD */ + +/* 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 to 1 if you have the header file. */ +/* #undef HAVE_ALLOCA_H */ + +/* Define to 1 if you have the `asprintf' function. */ +#define HAVE_ASPRINTF 1 + +/* Define to 1 if you have the `atexit' function. */ +#define HAVE_ATEXIT 1 + +/* Define to 1 if you have the `basename' function. */ +#define HAVE_BASENAME 1 + +/* Define to 1 if you have the `bcmp' function. */ +#define HAVE_BCMP 1 + +/* Define to 1 if you have the `bcopy' function. */ +#define HAVE_BCOPY 1 + +/* Define to 1 if you have the `bsearch' function. */ +#define HAVE_BSEARCH 1 + +/* Define to 1 if you have the `bzero' function. */ +#define HAVE_BZERO 1 + +/* Define to 1 if you have the `calloc' function. */ +#define HAVE_CALLOC 1 + +/* Define to 1 if you have the `canonicalize_file_name' function. */ +/* #undef HAVE_CANONICALIZE_FILE_NAME */ + +/* Define to 1 if you have the `clock' function. */ +#define HAVE_CLOCK 1 + +/* Define to 1 if you have the declaration of `asprintf', and to 0 if you + don't. */ +#define HAVE_DECL_ASPRINTF 1 + +/* Define to 1 if you have the declaration of `basename', and to 0 if you + don't. */ +#define HAVE_DECL_BASENAME 0 + +/* Define to 1 if you have the declaration of `calloc', and to 0 if you don't. + */ +#define HAVE_DECL_CALLOC 1 + +/* Define to 1 if you have the declaration of `ffs', and to 0 if you don't. */ +#define HAVE_DECL_FFS 1 + +/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. + */ +#define HAVE_DECL_GETENV 1 + +/* Define to 1 if you have the declaration of `getopt', and to 0 if you don't. + */ +#define HAVE_DECL_GETOPT 1 + +/* Define to 1 if you have the declaration of `malloc', and to 0 if you don't. + */ +#define HAVE_DECL_MALLOC 1 + +/* Define to 1 if you have the declaration of `realloc', and to 0 if you + don't. */ +#define HAVE_DECL_REALLOC 1 + +/* Define to 1 if you have the declaration of `sbrk', and to 0 if you don't. + */ +#define HAVE_DECL_SBRK 1 + +/* Define to 1 if you have the declaration of `snprintf', and to 0 if you + don't. */ +#define HAVE_DECL_SNPRINTF 1 + +/* Define to 1 if you have the declaration of `strverscmp', and to 0 if you + don't. */ +#define HAVE_DECL_STRVERSCMP 0 + +/* Define to 1 if you have the declaration of `vasprintf', and to 0 if you + don't. */ +#define HAVE_DECL_VASPRINTF 1 + +/* Define to 1 if you have the declaration of `vsnprintf', and to 0 if you + don't. */ +#define HAVE_DECL_VSNPRINTF 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_FCNTL_H 1 + +/* Define to 1 if you have the `ffs' function. */ +#define HAVE_FFS 1 + +/* Define to 1 if you have the `fork' function. */ +#define HAVE_FORK 1 + +/* Define to 1 if you have the `getcwd' function. */ +#define HAVE_GETCWD 1 + +/* Define to 1 if you have the `getpagesize' function. */ +#define HAVE_GETPAGESIZE 1 + +/* Define to 1 if you have the `getrusage' function. */ +#define HAVE_GETRUSAGE 1 + +/* Define to 1 if you have the `getsysinfo' function. */ +/* #undef HAVE_GETSYSINFO */ + +/* Define to 1 if you have the `gettimeofday' function. */ +#define HAVE_GETTIMEOFDAY 1 + +/* Define to 1 if you have the `index' function. */ +#define HAVE_INDEX 1 + +/* Define to 1 if you have the `insque' function. */ +#define HAVE_INSQUE 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_LIMITS_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_MACHINE_HAL_SYSINFO_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_MALLOC_H */ + +/* Define to 1 if you have the `memchr' function. */ +#define HAVE_MEMCHR 1 + +/* Define to 1 if you have the `memcmp' function. */ +#define HAVE_MEMCMP 1 + +/* Define to 1 if you have the `memcpy' function. */ +#define HAVE_MEMCPY 1 + +/* Define to 1 if you have the `memmem' function. */ +#define HAVE_MEMMEM 1 + +/* Define to 1 if you have the `memmove' function. */ +#define HAVE_MEMMOVE 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `mempcpy' function. */ +/* #undef HAVE_MEMPCPY */ + +/* Define to 1 if you have the `memset' function. */ +#define HAVE_MEMSET 1 + +/* Define to 1 if you have the `mkstemps' function. */ +#define HAVE_MKSTEMPS 1 + +/* Define to 1 if you have a working `mmap' system call. */ +#define HAVE_MMAP 1 + +/* Define to 1 if you have the `on_exit' function. */ +/* #undef HAVE_ON_EXIT */ + +/* Define to 1 if you have the `psignal' function. */ +#define HAVE_PSIGNAL 1 + +/* Define to 1 if you have the `pstat_getdynamic' function. */ +/* #undef HAVE_PSTAT_GETDYNAMIC */ + +/* Define to 1 if you have the `pstat_getstatic' function. */ +/* #undef HAVE_PSTAT_GETSTATIC */ + +/* Define to 1 if you have the `putenv' function. */ +#define HAVE_PUTENV 1 + +/* Define to 1 if you have the `random' function. */ +#define HAVE_RANDOM 1 + +/* Define to 1 if you have the `realpath' function. */ +#define HAVE_REALPATH 1 + +/* Define to 1 if you have the `rename' function. */ +#define HAVE_RENAME 1 + +/* Define to 1 if you have the `rindex' function. */ +#define HAVE_RINDEX 1 + +/* Define to 1 if you have the `sbrk' function. */ +#define HAVE_SBRK 1 + +/* Define to 1 if you have the `setenv' function. */ +#define HAVE_SETENV 1 + +/* Define to 1 if you have the `sigsetmask' function. */ +#define HAVE_SIGSETMASK 1 + +/* Define to 1 if you have the `snprintf' function. */ +#define HAVE_SNPRINTF 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_STDIO_EXT_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the `stpcpy' function. */ +#define HAVE_STPCPY 1 + +/* Define to 1 if you have the `stpncpy' function. */ +/* #undef HAVE_STPNCPY */ + +/* Define to 1 if you have the `strcasecmp' function. */ +#define HAVE_STRCASECMP 1 + +/* Define to 1 if you have the `strchr' function. */ +#define HAVE_STRCHR 1 + +/* Define to 1 if you have the `strdup' function. */ +#define HAVE_STRDUP 1 + +/* Define to 1 if you have the `strerror' function. */ +#define HAVE_STRERROR 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strncasecmp' function. */ +#define HAVE_STRNCASECMP 1 + +/* Define to 1 if you have the `strndup' function. */ +#define HAVE_STRNDUP 1 + +/* Define to 1 if you have the `strrchr' function. */ +#define HAVE_STRRCHR 1 + +/* Define to 1 if you have the `strsignal' function. */ +#define HAVE_STRSIGNAL 1 + +/* Define to 1 if you have the `strstr' function. */ +#define HAVE_STRSTR 1 + +/* Define to 1 if you have the `strtod' function. */ +#define HAVE_STRTOD 1 + +/* Define to 1 if you have the `strtol' function. */ +#define HAVE_STRTOL 1 + +/* Define to 1 if you have the `strtoul' function. */ +#define HAVE_STRTOUL 1 + +/* Define to 1 if you have the `strverscmp' function. */ +/* #undef HAVE_STRVERSCMP */ + +/* Define to 1 if you have the `sysconf' function. */ +#define HAVE_SYSCONF 1 + +/* Define to 1 if you have the `sysctl' function. */ +#define HAVE_SYSCTL 1 + +/* Define to 1 if you have the `sysmp' function. */ +/* #undef HAVE_SYSMP */ + +/* Define if you have the sys_errlist variable. */ +#define HAVE_SYS_ERRLIST 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_FILE_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_MMAN_H 1 + +/* Define if you have the sys_nerr variable. */ +#define HAVE_SYS_NERR 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_PSTAT_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_RESOURCE_H 1 + +/* Define if you have the sys_siglist variable. */ +#define HAVE_SYS_SIGLIST 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_SYSCTL_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_SYSINFO_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_SYSMP_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_SYSTEMCFG_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_TABLE_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have that is POSIX.1 compatible. */ +#define HAVE_SYS_WAIT_H 1 + +/* Define to 1 if you have the `table' function. */ +/* #undef HAVE_TABLE */ + +/* Define to 1 if you have the `times' function. */ +#define HAVE_TIMES 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_TIME_H 1 + +/* Define to 1 if you have the `tmpnam' function. */ +#define HAVE_TMPNAM 1 + +/* Define if you have the \`uintptr_t' type. */ +#define HAVE_UINTPTR_T 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the `vasprintf' function. */ +#define HAVE_VASPRINTF 1 + +/* Define to 1 if you have the `vfork' function. */ +#define HAVE_VFORK 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_VFORK_H */ + +/* Define to 1 if you have the `vfprintf' function. */ +#define HAVE_VFPRINTF 1 + +/* Define to 1 if you have the `vprintf' function. */ +#define HAVE_VPRINTF 1 + +/* Define to 1 if you have the `vsnprintf' function. */ +#define HAVE_VSNPRINTF 1 + +/* Define to 1 if you have the `vsprintf' function. */ +#define HAVE_VSPRINTF 1 + +/* Define to 1 if you have the `wait3' function. */ +#define HAVE_WAIT3 1 + +/* Define to 1 if you have the `wait4' function. */ +#define HAVE_WAIT4 1 + +/* Define to 1 if you have the `waitpid' function. */ +#define HAVE_WAITPID 1 + +/* Define to 1 if `fork' works. */ +#define HAVE_WORKING_FORK 1 + +/* Define to 1 if `vfork' works. */ +#define HAVE_WORKING_VFORK 1 + +/* Define to 1 if you have the `_doprnt' function. */ +/* #undef HAVE__DOPRNT */ + +/* Define if you have the _system_configuration variable. */ +/* #undef HAVE__SYSTEM_CONFIGURATION */ + +/* Define to 1 if you have the `__fsetlocking' function. */ +/* #undef HAVE___FSETLOCKING */ + +/* Define if canonicalize_file_name is not declared in system header files. */ +#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1 + +/* Define if errno must be declared even when is included. */ +/* #undef NEED_DECLARATION_ERRNO */ + +/* Define to 1 if your C compiler doesn't accept -c and -o together. */ +/* #undef NO_MINUS_C_MINUS_O */ + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "" + +/* The size of `int', as computed by sizeof. */ +#define SIZEOF_INT 4 + +/* 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 */ +#define STACK_DIRECTION -1 + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define to 1 if you can safely include both and . */ +#define TIME_WITH_SYS_TIME 1 + +/* Define to an unsigned 64-bit type available in the compiler. */ +#define UNSIGNED_64BIT_TYPE uint64_t + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +/* # undef WORDS_BIGENDIAN */ +# endif +#endif + +/* Number of bits in a file offset, on hosts where this is settable. */ +/* #undef _FILE_OFFSET_BITS */ + +/* Define for large files, on AIX-style hosts. */ +/* #undef _LARGE_FILES */ + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +/* #undef inline */ +#endif + +/* Define to `long' if does not define. */ +/* #undef intptr_t */ + +/* Define to `int' if does not define. */ +/* #undef pid_t */ + +/* Define to `unsigned long' if does not define. */ +/* #undef uintptr_t */ + +/* Define as `fork' if `vfork' does not work. */ +/* #undef vfork */ diff --git a/gnu/usr.bin/binutils220/libopcodes/Makefile b/gnu/usr.bin/binutils220/libopcodes/Makefile new file mode 100644 index 0000000000..fbf29d8649 --- /dev/null +++ b/gnu/usr.bin/binutils220/libopcodes/Makefile @@ -0,0 +1,15 @@ +.include "../Makefile.inc0" + +LIB= opcodes +INTERNALLIB= true + +CONTRIBDIR= ${SRCDIR}/opcodes +.PATH: ${CONTRIBDIR} + +CFLAGS+= -I${SRCDIR}/include -I${.CURDIR} -I${.CURDIR}/../libbfd -I${.OBJDIR}/../libbfd + +SRCS= dis-buf.c dis-init.c disassemble.c + +.include "Makefile.${MACHINE_ARCH}" + +.include diff --git a/gnu/usr.bin/binutils220/libopcodes/Makefile.amd64 b/gnu/usr.bin/binutils220/libopcodes/Makefile.amd64 new file mode 100644 index 0000000000..a1621b106b --- /dev/null +++ b/gnu/usr.bin/binutils220/libopcodes/Makefile.amd64 @@ -0,0 +1,2 @@ +SRCS+= i386-dis.c i386-opc.c +CFLAGS+= -DARCH_i386 diff --git a/gnu/usr.bin/binutils220/libopcodes/Makefile.i386 b/gnu/usr.bin/binutils220/libopcodes/Makefile.i386 new file mode 100644 index 0000000000..a1621b106b --- /dev/null +++ b/gnu/usr.bin/binutils220/libopcodes/Makefile.i386 @@ -0,0 +1,2 @@ +SRCS+= i386-dis.c i386-opc.c +CFLAGS+= -DARCH_i386 diff --git a/gnu/usr.bin/binutils220/libopcodes/config.h b/gnu/usr.bin/binutils220/libopcodes/config.h new file mode 100644 index 0000000000..7b045b7b3d --- /dev/null +++ b/gnu/usr.bin/binutils220/libopcodes/config.h @@ -0,0 +1,110 @@ +/* config.h. Generated from config.in by configure. */ +/* config.in. Generated from configure.in by autoheader. */ + +/* Define to 1 if translation of program messages to the user's native + language is requested. */ +/* #undef ENABLE_NLS */ + +/* Define to 1 if you have the declaration of `basename', and to 0 if you + don't. */ +#define HAVE_DECL_BASENAME 1 + +/* Define to 1 if you have the declaration of `stpcpy', and to 0 if you don't. + */ +#define HAVE_DECL_STPCPY 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_LIMITS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "opcodes" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "" + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Enable extensions on AIX 3, Interix. */ +#ifndef _ALL_SOURCE +# define _ALL_SOURCE 1 +#endif +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif +/* Enable threading extensions on Solaris. */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# define _POSIX_PTHREAD_SEMANTICS 1 +#endif +/* Enable extensions on HP NonStop. */ +#ifndef _TANDEM_SOURCE +# define _TANDEM_SOURCE 1 +#endif +/* Enable general extensions on Solaris. */ +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 +#endif + + +/* Version number of package */ +#define VERSION "2.20.0" + +/* Define to 1 if on MINIX. */ +/* #undef _MINIX */ + +/* Define to 2 if the system does not provide POSIX.1 features except with + this defined. */ +/* #undef _POSIX_1_SOURCE */ + +/* Define to 1 if you need to in order for `stat' and other things to work. */ +/* #undef _POSIX_SOURCE */ diff --git a/gnu/usr.bin/binutils220/nm/Makefile b/gnu/usr.bin/binutils220/nm/Makefile new file mode 100644 index 0000000000..79f7b1af38 --- /dev/null +++ b/gnu/usr.bin/binutils220/nm/Makefile @@ -0,0 +1,8 @@ +.include "../Makefile.bu" + +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc + +PROG= nm +WARNS= 2 + +.include diff --git a/gnu/usr.bin/binutils220/objcopy/Makefile b/gnu/usr.bin/binutils220/objcopy/Makefile new file mode 100644 index 0000000000..5220a63a99 --- /dev/null +++ b/gnu/usr.bin/binutils220/objcopy/Makefile @@ -0,0 +1,9 @@ +.include "../Makefile.bu" + +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc + +PROG= objcopy +SRCS= not-strip.c objcopy.c +WARNS= 1 + +.include diff --git a/gnu/usr.bin/binutils220/objdump/Makefile b/gnu/usr.bin/binutils220/objdump/Makefile new file mode 100644 index 0000000000..369027487b --- /dev/null +++ b/gnu/usr.bin/binutils220/objdump/Makefile @@ -0,0 +1,12 @@ +.include "../Makefile.bu" + +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc + +PROG= objdump +SRCS= objdump.c +WARNS= 1 + +DPADD+= ${.OBJDIR}/../libopcodes/libopcodes.a +LDADD+= ${.OBJDIR}/../libopcodes/libopcodes.a + +.include diff --git a/gnu/usr.bin/binutils220/ranlib/Makefile b/gnu/usr.bin/binutils220/ranlib/Makefile new file mode 100644 index 0000000000..41c34d8a31 --- /dev/null +++ b/gnu/usr.bin/binutils220/ranlib/Makefile @@ -0,0 +1,10 @@ +.include "../Makefile.bu" + +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc + +PROG= ranlib +SRCS= ar.c is-ranlib.c + +NOSHARED?= yes + +.include diff --git a/gnu/usr.bin/binutils220/readelf/Makefile b/gnu/usr.bin/binutils220/readelf/Makefile new file mode 100644 index 0000000000..f229387fee --- /dev/null +++ b/gnu/usr.bin/binutils220/readelf/Makefile @@ -0,0 +1,11 @@ +.include "../Makefile.bu" + +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc + +# No a.out vs. ELF version so don't install in /usr/libexec/elf +BINDIR=/usr/bin + +PROG= readelf +WARNS= 1 + +.include diff --git a/gnu/usr.bin/binutils220/size/Makefile b/gnu/usr.bin/binutils220/size/Makefile new file mode 100644 index 0000000000..04d745aead --- /dev/null +++ b/gnu/usr.bin/binutils220/size/Makefile @@ -0,0 +1,8 @@ +.include "../Makefile.bu" + +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc + +PROG= size +WARNS= 2 + +.include diff --git a/gnu/usr.bin/binutils220/strings/Makefile b/gnu/usr.bin/binutils220/strings/Makefile new file mode 100644 index 0000000000..ea68abac17 --- /dev/null +++ b/gnu/usr.bin/binutils220/strings/Makefile @@ -0,0 +1,8 @@ +.include "../Makefile.bu" + +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc + +PROG= strings +WARNS= 2 + +.include diff --git a/gnu/usr.bin/binutils220/strip/Makefile b/gnu/usr.bin/binutils220/strip/Makefile new file mode 100644 index 0000000000..2a06029278 --- /dev/null +++ b/gnu/usr.bin/binutils220/strip/Makefile @@ -0,0 +1,25 @@ +.include "../Makefile.bu" + +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc + +PROG= strip +SRCS= objcopy.c is-strip.c +WARNS= 1 + +CLEANFILES+= maybe_stripped + +all: maybe_stripped + +maybe_stripped: strip + cp strip maybe_stripped +.if defined(STRIP) +.if ${STRIP:M-s} != "" + -strip maybe_stripped +.endif +.endif + +realinstall: + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + maybe_stripped ${DESTDIR}${BINDIR}/strip + +.include