svn commit: r195899 - projects/ppc64/gnu/usr.bin/binutils/ld

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sun Jul 26 20:47:49 UTC 2009


Author: nwhitehorn
Date: Sun Jul 26 20:47:48 2009
New Revision: 195899
URL: http://svn.freebsd.org/changeset/base/195899

Log:
  Add bits for generating 32-bit PPC binaries.

Modified:
  projects/ppc64/gnu/usr.bin/binutils/ld/Makefile.powerpc64

Modified: projects/ppc64/gnu/usr.bin/binutils/ld/Makefile.powerpc64
==============================================================================
--- projects/ppc64/gnu/usr.bin/binutils/ld/Makefile.powerpc64	Sun Jul 26 20:47:14 2009	(r195898)
+++ projects/ppc64/gnu/usr.bin/binutils/ld/Makefile.powerpc64	Sun Jul 26 20:47:48 2009	(r195899)
@@ -10,3 +10,20 @@ e${NATIVE_EMULATION}.c: emulparams/${NAT
 	    ${TOOLS_PREFIX}/usr \
 	    ${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
 	    ${NATIVE_EMULATION} ""  no ${NATIVE_EMULATION} ${TARGET_TUPLE}
+
+PPC32_EMULATION= elf32ppc
+_ppc32_path=	\"${TOOLS_PREFIX}/usr/lib/powerpc\"
+EMS+=		${PPC32_EMULATION}
+.for ext in ${ELF_SCR_EXT}
+LDSCRIPTS+=	${PPC32_EMULATION}.${ext}
+.endfor
+
+SRCS+=		e${PPC32_EMULATION}.c
+CLEANFILES+=	e${PPC32_EMULATION}.c
+e${PPC32_EMULATION}.c: emulparams/${PPC32_EMULATION}.sh emultempl/elf32.em \
+    scripttempl/elf.sc genscripts.sh stringify.sed
+	sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_ppc32_path} \
+	    ${TOOLS_PREFIX}/usr \
+	    ${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
+	    ${PPC32_EMULATION} "" no ${PPC32_EMULATION} ${TARGET_TUPLE}
+


More information about the svn-src-projects mailing list