diff options
author | Kurt Miller <kurt@cvs.openbsd.org> | 2008-11-11 23:49:47 +0000 |
---|---|---|
committer | Kurt Miller <kurt@cvs.openbsd.org> | 2008-11-11 23:49:47 +0000 |
commit | 56888cdeb929ca9f9a3b2ab8d52b73f109928ac2 (patch) | |
tree | 46437f955137fe43939779e7e0b01e025d426d99 /lib/csu/sparc64 | |
parent | a4e8ae897a00a6b29ae13ab751075ecfff835303 (diff) |
Compile crt0.o, crtbegin.o and crtend.o with -fpie/-fPIE. This requires
gcc with pie support to be built first.
ok kettenis@
Diffstat (limited to 'lib/csu/sparc64')
-rw-r--r-- | lib/csu/sparc64/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/csu/sparc64/Makefile b/lib/csu/sparc64/Makefile index d8b03db3bc5..af8202d6d14 100644 --- a/lib/csu/sparc64/Makefile +++ b/lib/csu/sparc64/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.6 2008/10/06 14:17:49 kurt Exp $ +# $OpenBSD: Makefile,v 1.7 2008/11/11 23:49:46 kurt Exp $ # $NetBSD: Makefile,v 1.6 1996/10/18 05:27:38 thorpej Exp $ CFLAGS+= -DLIBC_SCCS -DELFSIZE=64 @@ -14,8 +14,8 @@ CFLAGS+= -I${ELFDIR} -I${.CURDIR} all: ${OBJS} crt0.o: crt0.c - @echo ${COMPILE.c} -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET} - @${COMPILE.c} -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}.o + @echo ${COMPILE.c} -DCRT0 -fPIC ${.CURDIR}/crt0.c -o ${.TARGET} + @${COMPILE.c} -DCRT0 -fPIC ${.CURDIR}/crt0.c -o ${.TARGET}.o @${LD} -x -r -o ${.TARGET} ${.TARGET}.o @rm -f ${.TARGET}.o @@ -26,8 +26,8 @@ gcrt0.o: crt0.c @rm -f ${.TARGET}.o crtbegin.o: crtbegin.c - @echo ${COMPILE.c} ${ELFDIR}/crtbegin.c -o ${.TARGET} - @${COMPILE.c} ${ELFDIR}/crtbegin.c -o ${.TARGET}.o + @echo ${COMPILE.c} -fPIC ${ELFDIR}/crtbegin.c -o ${.TARGET} + @${COMPILE.c} -fPIC ${ELFDIR}/crtbegin.c -o ${.TARGET}.o @${LD} -x -r -o ${.TARGET} ${.TARGET}.o @rm -f ${.TARGET}.o @@ -38,8 +38,8 @@ crtbeginS.o: crtbeginS.c @rm -f ${.TARGET}.o crtend.o: crtend.c - @echo ${COMPILE.c} ${ELFDIR}/crtend.c -o ${.TARGET} - @${COMPILE.c} ${ELFDIR}/crtend.c -o ${.TARGET}.o + @echo ${COMPILE.c} -fPIC ${ELFDIR}/crtend.c -o ${.TARGET} + @${COMPILE.c} -fPIC ${ELFDIR}/crtend.c -o ${.TARGET}.o @${LD} -x -r -o ${.TARGET} ${.TARGET}.o @rm -f ${.TARGET}.o |