diff options
| author | tv <tv@NetBSD.org> | 1998-08-27 20:47:21 +0000 |
|---|---|---|
| committer | tv <tv@NetBSD.org> | 1998-08-27 20:47:21 +0000 |
| commit | f8a44cb095900bc1cb44c9210d0b40d88b5dc654 (patch) | |
| tree | f664436fdac462a88604858c17a8b51494e82a91 /gnu/usr.bin | |
| parent | e340b4da076f8886e36108b72612f113a07b2bfd (diff) | |
Addition of binutils (gnu/dist) based ld. Turns out the "arch" subdir is
not really needed.
Diffstat (limited to 'gnu/usr.bin')
| -rw-r--r-- | gnu/usr.bin/ld.new/Makefile | 41 | ||||
| -rw-r--r-- | gnu/usr.bin/ld.new/_alpha.mk | 4 | ||||
| -rw-r--r-- | gnu/usr.bin/ld.new/alpha.mk | 4 | ||||
| -rw-r--r-- | gnu/usr.bin/ld.new/config.h | 46 | ||||
| -rw-r--r-- | gnu/usr.bin/ld.new/ldemul-list.h | 3 |
5 files changed, 98 insertions, 0 deletions
diff --git a/gnu/usr.bin/ld.new/Makefile b/gnu/usr.bin/ld.new/Makefile new file mode 100644 index 00000000000..6857e6d6d60 --- /dev/null +++ b/gnu/usr.bin/ld.new/Makefile @@ -0,0 +1,41 @@ +# $NetBSD: Makefile,v 1.1 1998/08/27 20:47:21 tv Exp $ + +PROG= ld + +SRCS= ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c ldmain.c ldmisc.c \ + ldver.c ldwrite.c lexsup.c mri.c ldcref.c ldgram.y ldlex.l + +CPPFLAGS+= -I. -I${.CURDIR} -I${BFDOBJ} -I${DIST}/ld \ + -I${DIST}/bfd -I${DIST}/include \ + -DDEFAULT_EMULATION='"${DEFAULT_EMUL}"' \ + -DSCRIPTDIR='"/usr/libdata"' \ + -DTARGET='"${MACHINE_GNU_ARCH}--netbsd"' \ + -DEMULATION_LIST='${EMULS:S/^/\&ld_/:S/$/_emulation,/} 0' +YHEADER=1 +DPADD+= ${BFDOBJ}/libbfd_pic.a +LDADD+= -L${BFDOBJ} -lbfd + +DIST= ${.CURDIR}/../../dist +BFDOBJ!= cd ${.CURDIR}/../../lib/bfd; ${MAKE} print-objdir + +.PATH: ${DIST}/ld + +.include "${MACHINE_ARCH}.mk" + +LIB_PATH= ${LIBDIR} # passed to genscripts.sh + +.for _EMUL_ in ${EMULS} +SRCS+= e${_EMUL_}.c +CLEANFILES+= e${_EMUL_}.c ${_EMUL_}.x* +e${_EMUL_}.c: ${DIST}/ld/genscripts.sh ${DIST}/ld/emulparams/${_EMUL_}.sh + sh ${DIST}/ld/genscripts.sh ${DIST}/ld /usr/lib \ + ${MACHINE_GNU_ARCH}-netbsd ${MACHINE_GNU_ARCH}-netbsd \ + ${MACHINE_GNU_ARCH}-netbsd ${DEFAULT_EMUL} \ + "" ${_EMUL_} +.endfor + +cleanprog: __cleanldscripts +__cleanldscripts: + rm -rf ldscripts + +.include <bsd.prog.mk> diff --git a/gnu/usr.bin/ld.new/_alpha.mk b/gnu/usr.bin/ld.new/_alpha.mk new file mode 100644 index 00000000000..19554b1b9d5 --- /dev/null +++ b/gnu/usr.bin/ld.new/_alpha.mk @@ -0,0 +1,4 @@ +# $NetBSD: _alpha.mk,v 1.1 1998/08/27 20:47:21 tv Exp $ + +EMULS= elf64alpha +DEFAULT_EMUL= elf64alpha diff --git a/gnu/usr.bin/ld.new/alpha.mk b/gnu/usr.bin/ld.new/alpha.mk new file mode 100644 index 00000000000..14f57df1081 --- /dev/null +++ b/gnu/usr.bin/ld.new/alpha.mk @@ -0,0 +1,4 @@ +# $NetBSD: alpha.mk,v 1.1 1998/08/27 20:47:21 tv Exp $ + +EMULS= elf64alpha +DEFAULT_EMUL= elf64alpha diff --git a/gnu/usr.bin/ld.new/config.h b/gnu/usr.bin/ld.new/config.h new file mode 100644 index 00000000000..1d6a25633cb --- /dev/null +++ b/gnu/usr.bin/ld.new/config.h @@ -0,0 +1,46 @@ +/* $NetBSD: config.h,v 1.1 1998/08/27 20:47:21 tv Exp $ */ + +/* config.h. Generated automatically by configure. */ +/* config.in. Generated automatically from configure.in by autoheader. */ + +/* Whether strstr must be declared even if <string.h> is included. */ +/* #undef NEED_DECLARATION_STRSTR */ + +/* Whether free must be declared even if <stdlib.h> is included. */ +/* #undef NEED_DECLARATION_FREE */ + +/* Whether sbrk must be declared even if <unistd.h> is included. */ +/* #undef NEED_DECLARATION_SBRK */ + +/* Whether getenv must be declared even if <stdlib.h> is included. */ +/* #undef NEED_DECLARATION_GETENV */ + +/* Do we need to use the b modifier when opening binary files? */ +/* #undef USE_BINARY_FOPEN */ + +/* Define if you have the sbrk function. */ +#define HAVE_SBRK 1 + +/* Define if you have the <dirent.h> header file. */ +#define HAVE_DIRENT_H 1 + +/* Define if you have the <ndir.h> header file. */ +/* #undef HAVE_NDIR_H */ + +/* Define if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Define if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define if you have the <sys/dir.h> header file. */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define if you have the <sys/ndir.h> header file. */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 diff --git a/gnu/usr.bin/ld.new/ldemul-list.h b/gnu/usr.bin/ld.new/ldemul-list.h new file mode 100644 index 00000000000..4b73be9f547 --- /dev/null +++ b/gnu/usr.bin/ld.new/ldemul-list.h @@ -0,0 +1,3 @@ +/* $NetBSD: ldemul-list.h,v 1.1 1998/08/27 20:47:21 tv Exp $ */ + +extern ld_emulation_xfer_type ld_elf64alpha_emulation; |
