diff options
author | obrien <obrien@FreeBSD.org> | 2002-12-05 18:25:09 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-12-05 18:25:09 +0000 |
commit | 187ddd39e8429072ceafd4013812b10225477a09 (patch) | |
tree | f0a0cf603278f9c6a2725e4ba4a8bcad4a2bb16b /gnu | |
parent | 670a91274050342e0fca295828a9396076e87703 (diff) | |
download | FreeBSD-src-187ddd39e8429072ceafd4013812b10225477a09.zip FreeBSD-src-187ddd39e8429072ceafd4013812b10225477a09.tar.gz |
Change the default emulation to elf64_sparc_fbsd. This emulation knows the
correct spelling of our rtld.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils/ld/Makefile.sparc64 | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile.sparc64 b/gnu/usr.bin/binutils/ld/Makefile.sparc64 index 07016e1..2b5f711 100644 --- a/gnu/usr.bin/binutils/ld/Makefile.sparc64 +++ b/gnu/usr.bin/binutils/ld/Makefile.sparc64 @@ -3,7 +3,7 @@ TARGET_TUPLE?= sparc64-unknown-freebsd .if ${TARGET_ARCH} == "sparc64" -NATIVE_EMULATION= elf64_sparc +NATIVE_EMULATION= elf64_sparc_fbsd HOST= ${TARGET_TUPLE} CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\" CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\" @@ -12,26 +12,32 @@ _sparc_path= \"${TOOLS_PREFIX}/usr/lib\" _sparc_path= \"/usr/cross/sparc-freebsd/usr/lib\" .endif -EMS+= ${NATIVE_EMULATION} +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 SRCS+= e${NATIVE_EMULATION}.c CLEANFILES+= e${NATIVE_EMULATION}.c -EMS+= elf32_sparc -LDSCRIPTS+= elf32_sparc.x elf32_sparc.xbn elf32_sparc.xn elf32_sparc.xr \ - elf32_sparc.xs elf32_sparc.xu elf32_sparc.xc elf32_sparc.xsc -SRCS+= eelf32_sparc.c -CLEANFILES+= eelf32_sparc.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} \ ${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \ ${NATIVE_EMULATION} "" ${NATIVE_EMULATION} ${TARGET_TUPLE} -eelf32_sparc.c: emulparams/elf32_sparc.sh emultempl/elf32.em \ +.for BITS in 64 32 + +EMS+= elf${BITS}_sparc +LDSCRIPTS+= elf${BITS}_sparc.x elf${BITS}_sparc.xbn elf${BITS}_sparc.xn \ + elf${BITS}_sparc.xr \ + elf${BITS}_sparc.xs elf${BITS}_sparc.xu elf${BITS}_sparc.xc \ + elf${BITS}_sparc.xsc +SRCS+= eelf${BITS}_sparc.c +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} \ ${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \ - elf32_sparc "" elf32_sparc ${TARGET_TUPLE} + elf${BITS}_sparc "" elf${BITS}_sparc ${TARGET_TUPLE} + +.endfor # BITS |