Date: Thu, 11 Dec 2008 08:18:45 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r185923 - head/gnu/usr.bin/binutils/ld Message-ID: <200812110818.mBB8IjpT059169@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Thu Dec 11 08:18:45 2008 New Revision: 185923 URL: http://svn.freebsd.org/changeset/base/185923 Log: Push mips support for ld into the tree. Added: head/gnu/usr.bin/binutils/ld/Makefile.mips (contents, props changed) head/gnu/usr.bin/binutils/ld/elf32btsmip_fbsd.sh (contents, props changed) head/gnu/usr.bin/binutils/ld/elf32ltsmip_fbsd.sh (contents, props changed) head/gnu/usr.bin/binutils/ld/elf64btsmip_fbsd.sh (contents, props changed) head/gnu/usr.bin/binutils/ld/elf64ltsmip_fbsd.sh (contents, props changed) Added: head/gnu/usr.bin/binutils/ld/Makefile.mips ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/gnu/usr.bin/binutils/ld/Makefile.mips Thu Dec 11 08:18:45 2008 (r185923) @@ -0,0 +1,24 @@ +# $FreeBSD$ + +#xxxIMPxxx: size? +#xxxIMPxxx: TARGET_BIG_ENDIAN is lame. We should use the netbsd convention +# of mipsel and mips. +_sz?=32 +.if defined(TARGET_BIG_ENDIAN) +NATIVE_EMULATION=elf${_sz}btsmip_fbsd +.else +NATIVE_EMULATION=elf${_sz}ltsmip_fbsd +.endif + +SRCS+= e${NATIVE_EMULATION}.c +CLEANFILES+= e${NATIVE_EMULATION}.c + +# nb: elf32 handles both elf32 and elf64 targets +e${NATIVE_EMULATION}.c: ${.CURDIR}/${NATIVE_EMULATION}.sh emultempl/elf32.em \ + scripttempl/elf.sc genscripts.sh stringify.sed + sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSERACHPATH} \ + ${TOOLS_PREFIX}/usr \ + ${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \ + ${NATIVE_EMULATION} "" no ${NATIVE_EMULATION} ${TARGET_TUPLE} \ + ${.CURDIR}/${NATIVE_EMULATION}.sh + Added: head/gnu/usr.bin/binutils/ld/elf32btsmip_fbsd.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/gnu/usr.bin/binutils/ld/elf32btsmip_fbsd.sh Thu Dec 11 08:18:45 2008 (r185923) @@ -0,0 +1,4 @@ +# $FreeBSD$ +. ${srcdir}/emulparams/elf32btsmip.sh +. ${srcdir}/emulparams/elf_fbsd.sh +GENERATE_PIE_SCRIPT=yes Added: head/gnu/usr.bin/binutils/ld/elf32ltsmip_fbsd.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/gnu/usr.bin/binutils/ld/elf32ltsmip_fbsd.sh Thu Dec 11 08:18:45 2008 (r185923) @@ -0,0 +1,4 @@ +# $FreeBSD$ +. ${srcdir}/emulparams/elf32ltsmip.sh +. ${srcdir}/emulparams/elf_fbsd.sh +GENERATE_PIE_SCRIPT=yes Added: head/gnu/usr.bin/binutils/ld/elf64btsmip_fbsd.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/gnu/usr.bin/binutils/ld/elf64btsmip_fbsd.sh Thu Dec 11 08:18:45 2008 (r185923) @@ -0,0 +1,4 @@ +# $FreeBSD$ +. ${srcdir}/emulparams/elf64btsmip.sh +. ${srcdir}/emulparams/elf_fbsd.sh +GENERATE_PIE_SCRIPT=yes Added: head/gnu/usr.bin/binutils/ld/elf64ltsmip_fbsd.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/gnu/usr.bin/binutils/ld/elf64ltsmip_fbsd.sh Thu Dec 11 08:18:45 2008 (r185923) @@ -0,0 +1,4 @@ +# $FreeBSD$ +. ${srcdir}/emulparams/elf64ltsmip.sh +. ${srcdir}/emulparams/elf_fbsd.sh +GENERATE_PIE_SCRIPT=yes
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812110818.mBB8IjpT059169>