Updated Bmake framework for Binutils 2.15.

This commit is contained in:
David E. O'Brien 2004-06-16 07:09:44 +00:00
parent 6311b38fee
commit e223c68bfc
42 changed files with 5617 additions and 3927 deletions

View File

@ -1,7 +1,7 @@
# $FreeBSD$
SUBDIR= libiberty libbfd libopcodes libbinutils \
addr2line ar as gasp ld nm objcopy objdump ranlib readelf \
addr2line ar as ld nm objcopy objdump ranlib readelf \
size strings strip doc
TARGET_ARCH?= ${MACHINE_ARCH}

View File

@ -4,10 +4,15 @@
# use the normal "Makefile.inc" mechanism, because we need some of these
# definitions before the sub-Makefile is processed.
VERSION= "2.13.2 [FreeBSD] 2002-11-27"
VERSION_DATE= 20021127
VERSION= "2.15 [FreeBSD] 2004-05-23"
TARGET_ARCH?= ${MACHINE_ARCH}
.if ${TARGET_ARCH} == "amd64"
BINUTILS_ARCH=x86_64
.else
BINUTILS_ARCH=${TARGET_ARCH}
.endif
TARGET_TUPLE?= ${BINUTILS_ARCH}-obrien-freebsd
# RELTOP is the relative path to this point in the source or object
# tree, from any subdirectory of same. It gets extra "../" prefixes
@ -17,13 +22,13 @@ RELTOP:= ..
RELSRC= ${RELTOP}/../../../contrib/binutils
SRCDIR= ${.CURDIR}/${RELSRC}
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I.
.if exists(${.CURDIR}/${TARGET_ARCH})
CFLAGS+= -I${.CURDIR}/${TARGET_ARCH}
.endif
CFLAGS+= -I${.CURDIR}
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${TARGET_ARCH}
CFLAGS+= -I${.OBJDIR}/${RELTOP}/libbfd
CFLAGS+= -I${SRCDIR}/include
.if exists(${.CURDIR}/${TARGET_ARCH})

View File

@ -7,6 +7,7 @@
PROG= addr2line
SRCS= addr2line.c
WARNS?= 2
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
DPADD= ${RELTOP}/libbinutils/libbinutils.a

View File

@ -6,6 +6,7 @@
PROG= ar
SRCS= ar.c not-ranlib.c
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
CFLAGS+= -I${SRCDIR}/bfd

View File

@ -12,12 +12,21 @@ SRCS+= app.c as.c atof-generic.c atof-ieee.c bignum-copy.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
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}/..
CFLAGS+= -DVERSION=\"${VERSION:C/[ ]?${VERSION_DATE}[ ]?//g}\"
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
NOSHARED?= yes
DPADD= ${RELTOP}/libbfd/libbfd.a
DPADD+= ${RELTOP}/libiberty/libiberty.a

View File

@ -2,7 +2,7 @@
#define HAVE_DECL_GETOPT 1
/* config.h. Generated automatically by configure. */
/* config.h. Generated by configure. */
/* config.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */
@ -30,9 +30,6 @@
/* 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 */
@ -142,16 +139,16 @@
#define HAVE_UNISTD_H 1
/* Define if you have the <values.h> header file. */
/* #undef HAVE_VALUES_H */
#define HAVE_VALUES_H 1
/* Define if you have the <varargs.h> header file. */
#define HAVE_VARARGS_H 1
/* #undef HAVE_VARARGS_H */
/* Name of package */
#define PACKAGE "gas"
/* Version number of package */
/* #define VERSION "2.13.2" */
/* #define VERSION "2.15" */
/* Define if defaulting to ELF on SCO 5. */
/* #undef SCO_ELF */
@ -165,6 +162,18 @@
/* 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 */
@ -214,10 +223,10 @@
/* #undef USE_EMULATIONS */
/* Supported emulations. */
#define EMULATIONS
/* #define EMULATIONS */
/* Default emulation. */
#define DEFAULT_EMULATION ""
/* #define DEFAULT_EMULATION "" */
/* old COFF support? */
/* #undef MANY_SEGMENTS */
@ -226,19 +235,19 @@
#define BFD_ASSEMBLER 1
/* Target alias. */
#define TARGET_ALIAS "alpha-obrien-freebsd5"
/* #define TARGET_ALIAS "alpha-obrien-freebsd5.2" */
/* Canonical target. */
#define TARGET_CANONICAL "alpha-obrien-freebsd5"
/* #define TARGET_CANONICAL "alpha-obrien-freebsd5.2" */
/* Target CPU. */
#define TARGET_CPU "alpha"
/* #define TARGET_CPU "alpha" */
/* Target vendor. */
#define TARGET_VENDOR "obrien"
/* #define TARGET_VENDOR "obrien" */
/* Target OS. */
#define TARGET_OS "freebsd5"
/* #define TARGET_OS "freebsd5.2" */
/* Define if you have the stpcpy function */
#define HAVE_STPCPY 1

View File

@ -2,7 +2,7 @@
#define HAVE_DECL_GETOPT 1
/* config.h. Generated automatically by configure. */
/* config.h. Generated by configure. */
/* config.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */
@ -30,9 +30,6 @@
/* 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 */
@ -142,16 +139,16 @@
#define HAVE_UNISTD_H 1
/* Define if you have the <values.h> header file. */
/* #undef HAVE_VALUES_H */
#define HAVE_VALUES_H 1
/* Define if you have the <varargs.h> header file. */
#define HAVE_VARARGS_H 1
/* #undef HAVE_VARARGS_H */
/* Name of package */
#define PACKAGE "gas"
/* Version number of package */
/* #define VERSION "2.13.2" */
/* #define VERSION "2.15" */
/* Define if defaulting to ELF on SCO 5. */
/* #undef SCO_ELF */
@ -165,8 +162,20 @@
/* 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 "x86_64"
/* #undef DEFAULT_ARCH */
/* Using cgen code? */
/* #undef USING_CGEN */
@ -214,10 +223,10 @@
/* #undef USE_EMULATIONS */
/* Supported emulations. */
#define EMULATIONS &i386elf,
/* #define EMULATIONS */
/* Default emulation. */
#define DEFAULT_EMULATION "i386elf"
/* #define DEFAULT_EMULATION "" */
/* old COFF support? */
/* #undef MANY_SEGMENTS */
@ -226,19 +235,19 @@
#define BFD_ASSEMBLER 1
/* Target alias. */
#define TARGET_ALIAS "x86_64-obrien-freebsd5"
/* #define TARGET_ALIAS "amd64-obrien-freebsd5.2.1" */
/* Canonical target. */
#define TARGET_CANONICAL "x86_64-obrien-freebsd5"
/* #define TARGET_CANONICAL "amd64-obrien-freebsd5.2.1" */
/* Target CPU. */
#define TARGET_CPU "x86_64"
/* #define TARGET_CPU "amd64" */
/* Target vendor. */
#define TARGET_VENDOR "obrien"
/* #define TARGET_VENDOR "obrien" */
/* Target OS. */
#define TARGET_OS "freebsd5"
/* #define TARGET_OS "freebsd5.2.1" */
/* Define if you have the stpcpy function */
#define HAVE_STPCPY 1

View File

@ -2,7 +2,7 @@
#define HAVE_DECL_GETOPT 1
/* config.h. Generated automatically by configure. */
/* config.h. Generated by configure. */
/* config.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */
@ -30,9 +30,6 @@
/* 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 */
@ -142,16 +139,16 @@
#define HAVE_UNISTD_H 1
/* Define if you have the <values.h> header file. */
/* #undef HAVE_VALUES_H */
#define HAVE_VALUES_H 1
/* Define if you have the <varargs.h> header file. */
#define HAVE_VARARGS_H 1
/* #undef HAVE_VARARGS_H */
/* Name of package */
#define PACKAGE "gas"
/* Version number of package */
/* #define VERSION "2.13.2" */
/* #define VERSION "2.15" */
/* Define if defaulting to ELF on SCO 5. */
/* #undef SCO_ELF */
@ -165,6 +162,18 @@
/* 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 "i386" */
@ -214,10 +223,10 @@
/* #undef USE_EMULATIONS */
/* Supported emulations. */
#define EMULATIONS &i386elf,
/* #define EMULATIONS &i386elf, */
/* Default emulation. */
#define DEFAULT_EMULATION "i386elf"
/* #define DEFAULT_EMULATION "i386elf" */
/* old COFF support? */
/* #undef MANY_SEGMENTS */
@ -226,19 +235,19 @@
#define BFD_ASSEMBLER 1
/* Target alias. */
#define TARGET_ALIAS "i386-obrien-freebsd5"
/* #define TARGET_ALIAS "i386-obrien-freebsd5.2" */
/* Canonical target. */
#define TARGET_CANONICAL "i386-obrien-freebsd5"
/* #define TARGET_CANONICAL "i386-obrien-freebsd5.2" */
/* Target CPU. */
#define TARGET_CPU "i386"
/* #define TARGET_CPU "i386" */
/* Target vendor. */
#define TARGET_VENDOR "obrien"
/* Target OS. */
#define TARGET_OS "freebsd5"
/* #define TARGET_OS "freebsd5.2" */
/* Define if you have the stpcpy function */
#define HAVE_STPCPY 1
@ -275,4 +284,3 @@
/* Define if errno is not declared in system header files. */
/* #undef NEED_DECLARATION_ERRNO */

View File

@ -278,4 +278,3 @@
/* Define if errno is not declared in system header files. */
/* #undef NEED_DECLARATION_ERRNO */

View File

@ -278,4 +278,3 @@
/* Define if errno is not declared in system header files. */
/* #undef NEED_DECLARATION_ERRNO */

View File

@ -30,9 +30,6 @@
/* 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 */
@ -151,7 +148,7 @@
#define PACKAGE "gas"
/* Version number of package */
/* #define VERSION "2.13.2" */
/* #define VERSION "2.15" */
/* Define if defaulting to ELF on SCO 5. */
/* #undef SCO_ELF */
@ -164,9 +161,20 @@
/* 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"
/* #define DEFAULT_ARCH "v9-64" */
/* Using cgen code? */
/* #undef USING_CGEN */
@ -226,19 +234,19 @@
#define BFD_ASSEMBLER 1
/* Target alias. */
#define TARGET_ALIAS "sparc64-obrien-freebsd5"
/* #define TARGET_ALIAS "sparc64-obrien-freebsd5" */
/* Canonical target. */
#define TARGET_CANONICAL "sparc64-obrien-freebsd5"
/* #define TARGET_CANONICAL "sparc64-obrien-freebsd5" */
/* Target CPU. */
#define TARGET_CPU "sparc64"
/* #define TARGET_CPU "sparc64" */
/* Target vendor. */
#define TARGET_VENDOR "obrien"
/* #define TARGET_VENDOR "obrien" */
/* Target OS. */
#define TARGET_OS "freebsd5"
/* #define TARGET_OS "freebsd5" */
/* Define if you have the stpcpy function */
#define HAVE_STPCPY 1
@ -275,4 +283,3 @@
/* Define if errno is not declared in system header files. */
/* #undef NEED_DECLARATION_ERRNO */

View File

@ -120,7 +120,10 @@ init.c: ${XSRCS}
.PRECIOUS: init.c
tm.h:
ln -sf ${.CURDIR}/fbsd-kgdb-${TARGET_ARCH}.h ${.TARGET}
echo '#include "${GDB_CPU}/tm-fbsd.h"' > ${.TARGET}
.if exists(${.CURDIR}/fbsd-kgdb-${TARGET_ARCH}.h)
echo '#include "fbsd-kgdb-${TARGET_ARCH}.h"' >> ${.TARGET}
.endif
.for H in nm-fbsd xm-${GDB_CPU}
${H:C/-.*$//}.h:

View File

@ -10,9 +10,12 @@ SRCS+= ldcref.c ldctor.c ldemul.c ldemul-list.h ldexp.c ldfile.c \
ldgram.y ldlang.c ldlex.l ldmain.c ldmisc.c \
ldver.c ldwrite.c lexsup.c mri.c
WARNS?= 1
WARNS?= 0 # ldemul.h problem (`struct option' declared inside parameter list)
CFLAGS+= -DSCRIPTDIR=\"${TOOLS_PREFIX}/usr/libdata\"
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
CFLAGS+= -DBINDIR=\"${BINDIR}\" -DTARGET_SYSTEM_ROOT=\"${DESTDIR}\"
CFLAGS+= -DTOOLBINDIR=\"${DESTDIR}/${BINDIR}/libexec\"
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${SRCDIR}/ld -I${SRCDIR}/bfd
NOSHARED?= yes
DPADD= ${RELTOP}/libbfd/libbfd.a

View File

@ -1,7 +1,5 @@
# $FreeBSD$
TARGET_TUPLE?= alpha-unknown-freebsd
.if ${TARGET_ARCH} == "alpha"
NATIVE_EMULATION= elf64alpha_fbsd
HOST= ${TARGET_TUPLE}
@ -14,24 +12,32 @@ _alpha_path= \"/usr/cross/alpha-freebsd/usr/lib\"
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 \
alpha.xn alpha.xr alpha.xu ${NATIVE_EMULATION}.xc ${NATIVE_EMULATION}.xsc
${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
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} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
${NATIVE_EMULATION} "" ${NATIVE_EMULATION} ${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} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
elf64alpha "" elf64alpha ${TARGET_TUPLE}
${NATIVE_EMULATION} "" no elf64alpha ${TARGET_TUPLE}
ealpha.c: emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em scripttempl/elf.sc \
ealpha.c: emulparams/alpha.sh emultempl/generic.em scripttempl/alpha.sc \
genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_alpha_path} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
${NATIVE_EMULATION} "" alpha ${TARGET_TUPLE}
${NATIVE_EMULATION} "" no alpha ${TARGET_TUPLE}

View File

@ -1,7 +1,5 @@
# $FreeBSD$
TARGET_TUPLE?= x86_64-obrien-freebsd
NATIVE_EMULATION= elf_x86_64_fbsd
HOST= ${TARGET_TUPLE}
CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
@ -9,26 +7,30 @@ 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}.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 ${_amd64_path} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
"${NATIVE_EMULATION}" "" ${NATIVE_EMULATION} "${TARGET_TUPLE}"
"${NATIVE_EMULATION}" "" no ${NATIVE_EMULATION} "${TARGET_TUPLE}"
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}.xs ${X86_EMULATION}.xu ${X86_EMULATION}.xc ${X86_EMULATION}.xsc \
${X86_EMULATION}.xd ${X86_EMULATION}.xdc
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
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_i386_path} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
"${X86_EMULATION}" "" ${X86_EMULATION} "${TARGET_TUPLE}"
"${X86_EMULATION}" "" no ${X86_EMULATION} "${TARGET_TUPLE}"

View File

@ -1,7 +1,5 @@
# $FreeBSD$
TARGET_TUPLE?= i386-unknown-freebsd
.if ${TARGET_ARCH} == "i386"
NATIVE_EMULATION= elf_i386_fbsd
HOST= ${TARGET_TUPLE}
@ -13,15 +11,17 @@ _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}.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 ${_i386_path} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
"${NATIVE_EMULATION}" "" ${NATIVE_EMULATION} "${TARGET_TUPLE}"
"${NATIVE_EMULATION}" "" no ${NATIVE_EMULATION} "${TARGET_TUPLE}"
.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
EMS+= i386pe
@ -36,7 +36,7 @@ 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 ${HOST} ${TARGET_TUPLE}winnt \
${TARGET_TUPLE}winnt i386pe "" i386pe \
${TARGET_TUPLE}winnt
/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,7 +1,5 @@
# $FreeBSD$
TARGET_TUPLE?= ia64-unknown-freebsd
.if ${TARGET_ARCH} == "ia64"
NATIVE_EMULATION= elf64_ia64_fbsd
HOST= ${TARGET_TUPLE}
@ -14,20 +12,23 @@ _ia64_path= \"/usr/cross/ia64-freebsd/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}.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 ${_ia64_path} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
"${NATIVE_EMULATION}" "" ${NATIVE_EMULATION} "${TARGET_TUPLE}"
"${NATIVE_EMULATION}" "" no ${NATIVE_EMULATION} "${TARGET_TUPLE}"
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} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
"elf64_ia64" "" elf64_ia64 ${TARGET_TUPLE}
"elf64_ia64" "" no elf64_ia64 ${TARGET_TUPLE}

View File

@ -1,7 +1,5 @@
# $FreeBSD$
TARGET_TUPLE?= powerpc-unknown-freebsd
.if ${TARGET_ARCH} == "powerpc"
NATIVE_EMULATION= elf32ppc
HOST= ${TARGET_TUPLE}
@ -18,12 +16,15 @@ LDSCRIPTS+= ${NATIVE_EMULATION}.x \
${NATIVE_EMULATION}.xr \
${NATIVE_EMULATION}.xs \
${NATIVE_EMULATION}.xu \
${NATIVE_EMULATION}.xsc
${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} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
${NATIVE_EMULATION} "" ${NATIVE_EMULATION} ${TARGET_TUPLE}
${NATIVE_EMULATION} "" no ${NATIVE_EMULATION} ${TARGET_TUPLE}

View File

@ -1,7 +1,5 @@
# $FreeBSD$
TARGET_TUPLE?= sparc64-unknown-freebsd
.if ${TARGET_ARCH} == "sparc64"
NATIVE_EMULATION= elf64_sparc_fbsd
HOST= ${TARGET_TUPLE}
@ -14,15 +12,17 @@ _sparc_path= \"/usr/cross/sparc-freebsd/usr/lib\"
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}.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} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
${NATIVE_EMULATION} "" ${NATIVE_EMULATION} ${TARGET_TUPLE}
${NATIVE_EMULATION} "" no ${NATIVE_EMULATION} ${TARGET_TUPLE}
.for BITS in 64 32
@ -37,7 +37,8 @@ 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} \
${TOOLS_PREFIX}/usr \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
elf${BITS}_sparc "" elf${BITS}_sparc ${TARGET_TUPLE}
elf${BITS}_sparc "" no elf${BITS}_sparc ${TARGET_TUPLE}
.endfor # BITS

View File

@ -73,6 +73,9 @@
/* Define if you have the putenv function. */
#define HAVE_PUTENV 1
/* Define if you have the realpath function. */
#define HAVE_REALPATH 1
/* Define if you have the sbrk function. */
#define HAVE_SBRK 1
@ -130,12 +133,6 @@
/* Define if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_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
@ -146,7 +143,7 @@
#define PACKAGE "ld"
/* Version number of package */
/* #define VERSION "2.13.2" */
/* #define VERSION "2.15" */
/* Define if you have the stpcpy function */
#define HAVE_STPCPY 1

View File

@ -15,20 +15,32 @@
# hoops for all possible combinations of paths, just use the libdir
# argument in place of LIB_PATH.
#
# The host, target and target_alias arguments are not used in this version.
# The exec_prefix, target_alias, use_sysroot, NATIVE_LIB_DIRS, TOOL_LIB, CUSTOMIZER_SCRIPT
# arguments are not used in this version.
#
srcdir=$1
libdir=$2
host=$3
target=$4
target_alias=$5
EMULATION_LIBPATH=$6
NATIVE_LIB_DIRS=$7
EMULATION_NAME=$8
exec_prefix=$3
host=$4
target=$5
target_alias=$6
EMULATION_LIBPATH=$7
NATIVE_LIB_DIRS=$8
use_sysroot=$9
shift 9
EMULATION_NAME=$1
TOOL_LIB=$2
CUSTOMIZER_SCRIPT=$3
# Create the 'CUSTOMIZER_SCRIPT' knob to better sync this script with
# FSF BU ver 2.15 which allows for a more generic emulparams processing.
# To reduce the diff, I also include the ${EMULATION_NAME} parameter in uses
# of 'CUSTOMIZER_SCRIPT'.
CUSTOMIZER_SCRIPT="${srcdir}/emulparams/${EMULATION_NAME}.sh"
# Include the emulation-specific parameters:
. ${srcdir}/emulparams/${EMULATION_NAME}.sh
. ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME}
if test -d ldscripts; then
true
@ -36,6 +48,10 @@ else
mkdir ldscripts
fi
# Set some flags for the emultempl scripts. USE_LIBPATH will
# be set for any libpath-using emulation.
USE_LIBPATH=yes
# Set the library search path, for libraries named by -lfoo.
# If LIB_PATH is defined (e.g., by Makefile) and non-empty, it is used.
# Otherwise, the default is set here.
@ -44,7 +60,7 @@ fi
# To force a logically empty LIB_PATH, do LIBPATH=":".
LIB_SEARCH_DIRS=`echo ${libdir} | sed -e 's/:/ /g' -e 's/\([^ ][^ ]*\)/SEARCH_DIR(\1);/g'`
#2.13 LIB_SEARCH_DIRS=`echo ${libdir} | sed -e 's/:/ /g' -e 's/\([^ ][^ ]*\)/SEARCH_DIR(\\"\1\\");/g'`
#2.13: LIB_SEARCH_DIRS=`echo ${libdir} | sed -e 's/:/ /g' -e 's/\([^ ][^ ]*\)/SEARCH_DIR(\\"\1\\");/g'`
# Generate 5 or 6 script files from a master script template in
# ${srcdir}/scripttempl/${SCRIPT_NAME}.sh. Which one of the 5 or 6
@ -71,7 +87,8 @@ if [ "x$SCRIPT_NAME" = "xelf" ]; then
GENERATE_COMBRELOC_SCRIPT=yes
fi
SEGMENT_SIZE=${SEGMENT_SIZE-${TARGET_PAGE_SIZE}}
#2.13: SEGMENT_SIZE=${SEGMENT_SIZE-${TARGET_PAGE_SIZE}}
SEGMENT_SIZE=${SEGMENT_SIZE-${MAXPAGESIZE-${TARGET_PAGE_SIZE}}}
# Determine DATA_ALIGNMENT for the 5 variants, using
# values specified in the emulparams/<emulation>.sh file or default.
@ -86,7 +103,7 @@ LD_FLAG=r
DATA_ALIGNMENT=${DATA_ALIGNMENT_r}
DEFAULT_DATA_ALIGNMENT="ALIGN(${SEGMENT_SIZE})"
( echo "/* Script for ld -r: link without relocation */"
. ${srcdir}/emulparams/${EMULATION_NAME}.sh
. ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME}
. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xr
@ -94,7 +111,7 @@ LD_FLAG=u
DATA_ALIGNMENT=${DATA_ALIGNMENT_u}
CONSTRUCTING=" "
( echo "/* Script for ld -Ur: link w/out relocation, do create constructors */"
. ${srcdir}/emulparams/${EMULATION_NAME}.sh
. ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME}
. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xu
@ -102,7 +119,7 @@ LD_FLAG=
DATA_ALIGNMENT=${DATA_ALIGNMENT_}
RELOCATING=" "
( echo "/* Default linker script, for normal executables */"
. ${srcdir}/emulparams/${EMULATION_NAME}.sh
. ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME}
. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.x
@ -110,14 +127,14 @@ LD_FLAG=n
DATA_ALIGNMENT=${DATA_ALIGNMENT_n}
TEXT_START_ADDR=${NONPAGED_TEXT_START_ADDR-${TEXT_START_ADDR}}
( echo "/* Script for -n: mix text and data on same page */"
. ${srcdir}/emulparams/${EMULATION_NAME}.sh
. ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME}
. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xn
LD_FLAG=N
DATA_ALIGNMENT=${DATA_ALIGNMENT_N}
( echo "/* Script for -N: mix text and data on same page; don't align data */"
. ${srcdir}/emulparams/${EMULATION_NAME}.sh
. ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME}
. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xbn
@ -126,7 +143,7 @@ if test -n "$GENERATE_COMBRELOC_SCRIPT"; then
LD_FLAG=c
COMBRELOC=ldscripts/${EMULATION_NAME}.xc.tmp
( echo "/* Script for -z combreloc: combine and sort reloc sections */"
. ${srcdir}/emulparams/${EMULATION_NAME}.sh
. ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME}
. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xc
rm -f ${COMBRELOC}
@ -140,7 +157,7 @@ if test -n "$GENERATE_SHLIB_SCRIPT"; then
# Note that TEXT_START_ADDR is set to NONPAGED_TEXT_START_ADDR.
(
echo "/* Script for ld --shared: link shared library */"
. ${srcdir}/emulparams/${EMULATION_NAME}.sh
. ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME}
. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xs
if test -n "$GENERATE_COMBRELOC_SCRIPT"; then
@ -148,12 +165,37 @@ if test -n "$GENERATE_SHLIB_SCRIPT"; then
DATA_ALIGNMENT=${DATA_ALIGNMENT_sc-${DATA_ALIGNMENT}}
COMBRELOC=ldscripts/${EMULATION_NAME}.xc.tmp
( echo "/* Script for --shared -z combreloc: shared library, combine & sort relocs */"
. ${srcdir}/emulparams/${EMULATION_NAME}.sh
. ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME}
. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xsc
rm -f ${COMBRELOC}
COMBRELOC=
fi
unset CREATE_SHLIB
fi
if test -n "$GENERATE_PIE_SCRIPT"; then
LD_FLAG=pie
DATA_ALIGNMENT=${DATA_ALIGNMENT_s-${DATA_ALIGNMENT_}}
CREATE_PIE=" "
# Note that TEXT_START_ADDR is set to NONPAGED_TEXT_START_ADDR.
(
echo "/* Script for ld -pie: link position independent executable */"
. ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME}
. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xd
if test -n "$GENERATE_COMBRELOC_SCRIPT"; then
LD_FLAG=cpie
DATA_ALIGNMENT=${DATA_ALIGNMENT_sc-${DATA_ALIGNMENT}}
COMBRELOC=ldscripts/${EMULATION_NAME}.xc.tmp
( echo "/* Script for -pie -z combreloc: position independent executable, combine & sort relocs */"
. ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME}
. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xdc
rm -f ${COMBRELOC}
COMBRELOC=
fi
unset CREATE_PIE
fi
case " $EMULATION_LIBPATH " in

View File

@ -9,17 +9,16 @@ SRCS+= archive.c archive64.c archures.c bfd.c binary.c cache.c \
coffgen.c corefile.c elf.c elf-eh-frame.c elf-strtab.c format.c \
hash.c ihex.c init.c libbfd.c linker.c merge.c opncls.c reloc.c \
section.c srec.c stab-syms.c stabs.c syms.c targets.c tekhex.c \
targmatch.h dwarf1.c dwarf2.c config.h
targmatch.h dwarf1.c dwarf2.c config.h bfdver.h bfdio.c simple.c
WARNS?= 0
.if (${TARGET_ARCH} == "alpha" || ${TARGET_ARCH} == "ia64" || \
${TARGET_ARCH} == "sparc64")
WARNS?= 2
.endif
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${SRCDIR}/bfd
CFLAGS+= -DBFD_VERSION=\"${VERSION_DATE}\" -DBFD_VERSION_DATE=${VERSION_DATE}
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
INTERNALLIB= true
CLEANFILES+= config.h targmatch.h
CLEANFILES+= bfdver.h config.h targmatch.h
SELARCH=
.if ${TARGET_ARCH} == "amd64"
@ -48,6 +47,12 @@ SELVEC+= ,&${_v}
.endfor
CFLAGS+= -DSELECT_VECS="${SELVEC}"
# XXX:DEO should grab BFD_VERSION_DATE from ${VERSION}...
bfdver.h: Makefile
echo '#define BFD_VERSION 214920000' > ${.TARGET}
echo '#define BFD_VERSION_DATE 20040510' >> ${.TARGET}
echo '#define BFD_VERSION_STRING ${VERSION}' >> ${.TARGET}
targmatch.h: targmatch.sed config.bfd
sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} > ${.TARGET}

View File

@ -2,7 +2,7 @@
DEFAULT_VECTOR= bfd_elf64_alpha_freebsd_vec
SRCS+= coff-alpha.c cpu-alpha.c ecoff.c ecofflink.c elf64-alpha-fbsd.c \
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"

View File

@ -2,12 +2,17 @@
DEFAULT_VECTOR= bfd_elf32_i386_freebsd_vec
SRCS+= cpu-i386.c elf32-i386-fbsd.c elf32-i386.c elf32-target.h elf32.c elflink.c
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
.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
SRCS+= pe-i386.c pei-i386.c
VECS+= i386pe_vec i386pei_vec
.endif
CLEANFILES+= elf32-target.h
elf32-target.h: elfxx-target.h
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}

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

View File

@ -9,13 +9,9 @@ SRCS+= arlex.l arparse.y arsup.c bucomm.c debug.c filemode.c \
ieee.c rdcoff.c rddbg.c rename.c stabs.c unwind-ia64.c \
wrstabs.c version.c binemul.c budemang.c emul_vanilla.c
WARNS?= 0
.if ${TARGET_ARCH} == "amd64"
BINUTILS_ARCH=x86_64
.else
BINUTILS_ARCH=${TARGET_ARCH}
.endif
CFLAGS+= -DTARGET=\"${BINUTILS_ARCH}-unknown-freebsd\"
CFLAGS+= -DTARGET=\"${BINUTILS_ARCH}-obrien-freebsd\"
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${SRCDIR}/binutils
CFLAGS+= -I${SRCDIR}/bfd
INTERNALLIB= true

View File

@ -34,9 +34,6 @@
/* 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 */
@ -68,7 +65,7 @@
/* #undef HAVE_DCGETTEXT */
/* Define if you have the getc_unlocked function. */
/* #undef HAVE_GETC_UNLOCKED */
#define HAVE_GETC_UNLOCKED 1
/* Define if you have the getcwd function. */
#define HAVE_GETCWD 1
@ -142,12 +139,6 @@
/* Define if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_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
@ -158,7 +149,7 @@
#define PACKAGE "binutils"
/* Version number of package */
/* #define VERSION "2.13.2" */
/* #define VERSION "2.15" */
/* Define if you have the stpcpy function */
#define HAVE_STPCPY 1
@ -212,5 +203,8 @@
/* #undef USE_BINARY_FOPEN */
/* Configured target name. */
/* #define TARGET "alpha-obrien-freebsd5.0" */
/* #define TARGET "amd64-unknown-freebsd5.2" */
/* Define to 1 if user symbol names have a leading underscore, 0 if not. */
#define TARGET_PREPENDS_UNDERSCORE 0

View File

@ -6,6 +6,7 @@
LIB= iberty
SRCS= argv.c choose-temp.c concat.c cp-demangle.c cplus-dem.c \
cp-demint.c lrealpath.c make-relative-prefix.c \
dyn-string.c getpwd.c getruntime.c \
hex.c floatformat.c hashtab.c lbasename.c make-temp-file.c \
objalloc.c obstack.c safe-ctype.c xatexit.c xexit.c xmalloc.c \

View File

@ -1,257 +1,387 @@
/* $FreeBSD$ */
/* config.h. Generated automatically by configure. */
/* config.in. Generated automatically from configure.in by autoheader 2.13. */
/* config.h. Generated by configure. */
/* config.in. Generated from configure.ac by autoheader. */
/* Define to `unsigned long' if <sys/types.h> doesn't define. */
/* #undef uintptr_t */
/* Define to empty if the keyword does not work. */
/* #undef const */
/* Define if you have a working `mmap' system call. */
#define HAVE_MMAP 1
/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
#ifdef __sparc64__
#define BYTEORDER 4321
#else
#define BYTEORDER 1234
#endif
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
#define HAVE_SYS_WAIT_H 1
/* 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 <vfork.h>. */
/* #undef HAVE_VFORK_H */
/* Define as __inline if that's what the C compiler calls it. */
/* #undef inline */
/* Define to `int' if <sys/types.h> doesn't define. */
/* #undef pid_t */
/* Define if you need to in order for stat and other things to work. */
/* #undef _POSIX_SOURCE */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if you can safely include both <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME 1
/* Define vfork as fork if vfork does not work. */
/* #undef vfork */
/* Define if you have the _doprnt function. */
/* #undef HAVE__DOPRNT */
/* Define if you have the asprintf function. */
#define HAVE_ASPRINTF 1
/* Define if you have the atexit function. */
#define HAVE_ATEXIT 1
/* Define if you have the basename function. */
#define HAVE_BASENAME 1
/* Define if you have the bcmp function. */
#define HAVE_BCMP 1
/* Define if you have the bcopy function. */
#define HAVE_BCOPY 1
/* Define if you have the bsearch function. */
#define HAVE_BSEARCH 1
/* Define if you have the bzero function. */
#define HAVE_BZERO 1
/* Define if you have the calloc function. */
#define HAVE_CALLOC 1
/* Define if you have the clock function. */
#define HAVE_CLOCK 1
/* Define if you have the ffs function. */
#define HAVE_FFS 1
/* 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 getrusage function. */
#define HAVE_GETRUSAGE 1
/* Define if you have the gettimeofday function. */
#define HAVE_GETTIMEOFDAY 1
/* Define if you have the index function. */
#define HAVE_INDEX 1
/* Define if you have the insque function. */
#define HAVE_INSQUE 1
/* Define if you have the memchr function. */
#define HAVE_MEMCHR 1
/* Define if you have the memcmp function. */
#define HAVE_MEMCMP 1
/* Define if you have the memcpy function. */
#define HAVE_MEMCPY 1
/* Define if you have the memmove function. */
#define HAVE_MEMMOVE 1
/* Define if you have the memset function. */
#define HAVE_MEMSET 1
/* Define if you have the mkstemps function. */
#define HAVE_MKSTEMPS 1
/* Define if you have the on_exit function. */
/* #undef HAVE_ON_EXIT */
/* Define if you have the psignal function. */
#define HAVE_PSIGNAL 1
/* Define if you have the putenv function. */
#define HAVE_PUTENV 1
/* Define if you have the random function. */
#define HAVE_RANDOM 1
/* Define if you have the rename function. */
#define HAVE_RENAME 1
/* Define if you have the rindex function. */
#define HAVE_RINDEX 1
/* 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 sigsetmask function. */
#define HAVE_SIGSETMASK 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 strdup function. */
#define HAVE_STRDUP 1
/* Define if you have the strerror function. */
#define HAVE_STRERROR 1
/* Define if you have the strncasecmp function. */
#define HAVE_STRNCASECMP 1
/* Define if you have the strrchr function. */
#define HAVE_STRRCHR 1
/* Define if you have the strsignal function. */
#define HAVE_STRSIGNAL 1
/* Define if you have the strstr function. */
#define HAVE_STRSTR 1
/* Define if you have the strtod function. */
#define HAVE_STRTOD 1
/* Define if you have the strtol function. */
#define HAVE_STRTOL 1
/* Define if you have the strtoul function. */
#define HAVE_STRTOUL 1
/* Define if you have the sysconf function. */
#define HAVE_SYSCONF 1
/* Define if you have the times function. */
#define HAVE_TIMES 1
/* Define if you have the tmpnam function. */
#define HAVE_TMPNAM 1
/* Define if you have the vasprintf function. */
#define HAVE_VASPRINTF 1
/* Define if you have the vfprintf function. */
#define HAVE_VFPRINTF 1
/* Define if you have the vprintf function. */
#define HAVE_VPRINTF 1
/* Define if you have the vsprintf function. */
#define HAVE_VSPRINTF 1
/* Define if you have the waitpid function. */
#define HAVE_WAITPID 1
/* Define if you have the <alloca.h> header file. */
/* Define to 1 if you have the <alloca.h> header file. */
/* #undef HAVE_ALLOCA_H */
/* Define if you have the <fcntl.h> header file. */
/* 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 <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define if you have the <limits.h> header file. */
/* 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 <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you have the <stdlib.h> header file. */
/* Define to 1 if you have the <machine/hal_sysinfo.h> header file. */
/* #undef HAVE_MACHINE_HAL_SYSINFO_H */
/* Define to 1 if you have the <malloc.h> 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 `memmove' function. */
#define HAVE_MEMMOVE 1
/* Define to 1 if you have the <memory.h> 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 <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 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 to 1 if you have the `stpcpy' function. */
#define HAVE_STPCPY 1
/* Define if you have the <strings.h> header file. */
/* 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 <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define if you have the <sys/file.h> header file. */
#define HAVE_SYS_FILE_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define if you have the <sys/mman.h> header file. */
#define HAVE_SYS_MMAN_H 1
/* Define to 1 if you have the `strncasecmp' function. */
#define HAVE_STRNCASECMP 1
/* Define if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define to 1 if you have the `strrchr' function. */
#define HAVE_STRRCHR 1
/* Define if you have the <sys/resource.h> header file. */
#define HAVE_SYS_RESOURCE_H 1
/* Define to 1 if you have the `strsignal' function. */
#define HAVE_STRSIGNAL 1
/* Define if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the `strstr' function. */
#define HAVE_STRSTR 1
/* Define if you have the <sys/time.h> header file. */
#define HAVE_SYS_TIME_H 1
/* Define to 1 if you have the `strtod' function. */
#define HAVE_STRTOD 1
/* Define if you have the <time.h> header file. */
#define HAVE_TIME_H 1
/* Define to 1 if you have the `strtol' function. */
#define HAVE_STRTOL 1
/* Define if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to 1 if you have the `strtoul' function. */
#define HAVE_STRTOUL 1
/* Define if errno must be declared even when <errno.h> is included. */
/* #undef NEED_DECLARATION_ERRNO */
/* Define to 1 if you have the `sysconf' function. */
#define HAVE_SYSCONF 1
/* Define if you have the `uintptr_t' type. */
#define HAVE_UINTPTR_T 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 <sys/file.h> header file. */
#define HAVE_SYS_FILE_H 1
/* Define to 1 if you have the <sys/mman.h> 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 <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define to 1 if you have the <sys/pstat.h> header file. */
/* #undef HAVE_SYS_PSTAT_H */
/* Define to 1 if you have the <sys/resource.h> header file. */
#define HAVE_SYS_RESOURCE_H 1
/* Define if you have the sys_siglist variable. */
#define HAVE_SYS_SIGLIST 1
/* 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 <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* 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 to 1 if you have the <sys/sysctl.h> header file. */
#define HAVE_SYS_SYSCTL_H 1
/* Define to 1 if you have the <sys/sysinfo.h> header file. */
/* #undef HAVE_SYS_SYSINFO_H */
/* Define to 1 if you have the <sys/sysmp.h> header file. */
/* #undef HAVE_SYS_SYSMP_H */
/* Define to 1 if you have the <sys/systemcfg.h> header file. */
/* #undef HAVE_SYS_SYSTEMCFG_H */
/* Define to 1 if you have the <sys/table.h> header file. */
/* #undef HAVE_SYS_TABLE_H */
/* Define to 1 if you have the <sys/time.h> header file. */
#define HAVE_SYS_TIME_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have <sys/wait.h> 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 <time.h> 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 <unistd.h> 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 <vfork.h> 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 `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 if the host machine stores words of multi-word integers in
big-endian order. */
#ifdef __sparc64__
#define HOST_WORDS_BIG_ENDIAN 1
#endif
/* 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 <errno.h> 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 version of this package. */
/* #define PACKAGE_VERSION "" */
/* 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 <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME 1
/* whether byteorder is bigendian */
#ifdef __sparc64__
#define WORDS_BIGENDIAN 1
#endif
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define as `__inline' if that's what the C compiler calls it, or to nothing
if it is not supported. */
/* #undef inline */
/* Define to `int' if <sys/types.h> does not define. */
/* #undef pid_t */
/* Define to `unsigned long' if <sys/types.h> does not define. */
/* #undef uintptr_t */
/* Define as `fork' if `vfork' does not work. */
/* #undef vfork */

View File

@ -5,7 +5,8 @@
.PATH: ${SRCDIR}/opcodes
LIB= opcodes
SRCS+= dis-buf.c disassemble.c
SRCS+= dis-buf.c dis-init.c disassemble.c
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${SRCDIR}/opcodes -I${SRCDIR}/bfd
INTERNALLIB= true

View File

@ -28,9 +28,6 @@
/* 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 */
@ -112,12 +109,6 @@
/* Define if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_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
@ -128,7 +119,7 @@
#define PACKAGE "opcodes"
/* Version number of package */
/* #define VERSION "2.13.2" */
/* #define VERSION "2.15" */
/* Define if you have the stpcpy function */
#define HAVE_STPCPY 1

View File

@ -7,6 +7,7 @@
PROG= nm
SRCS= nm.c
WARNS?= 2
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/bfd
CFLAGS+= -I${SRCDIR}/binutils

View File

@ -7,8 +7,9 @@
PROG= objcopy
SRCS= objcopy.c not-strip.c
WARNS?= 2
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
CFLAGS+= -I${SRCDIR}/binutils -I${SRCDIR}/bfd
DPADD= ${RELTOP}/libbinutils/libbinutils.a
DPADD+= ${RELTOP}/libbfd/libbfd.a
DPADD+= ${RELTOP}/libiberty/libiberty.a

View File

@ -7,6 +7,7 @@
PROG= objdump
SRCS= objdump.c prdbg.c
WARNS?= 2
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"

View File

@ -6,6 +6,7 @@
PROG= ranlib
SRCS= ar.c is-ranlib.c
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
CFLAGS+= -I${SRCDIR}/bfd

View File

@ -10,6 +10,7 @@ BINDIR=/usr/bin
PROG= readelf
SRCS= ${PROG}.c
WARNS?= 0
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils -I${SRCDIR}/binutils
DPADD= ${RELTOP}/libbinutils/libbinutils.a

View File

@ -7,6 +7,7 @@
PROG= size
SRCS= size.c
WARNS?= 2
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
DPADD= ${RELTOP}/libbinutils/libbinutils.a

View File

@ -7,6 +7,7 @@
PROG= strings
SRCS= strings.c
WARNS?= 2
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
DPADD= ${RELTOP}/libbinutils/libbinutils.a

View File

@ -7,8 +7,9 @@
PROG= strip
SRCS= objcopy.c is-strip.c
WARNS?= 2
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
CFLAGS+= -I${SRCDIR}/binutils -I${SRCDIR}/bfd
DPADD= ${RELTOP}/libbinutils/libbinutils.a
DPADD+= ${RELTOP}/libbfd/libbfd.a
DPADD+= ${RELTOP}/libiberty/libiberty.a