--- paxtest-0.9.5.old/Makefile.Gentoo-hardened	2004-07-29 14:56:20.261505592 -0400
+++ paxtest-0.9.5/Makefile.Gentoo-hardened	2004-07-29 14:57:04.160831880 -0400
@@ -77,8 +77,6 @@
 paxtest: $(TESTS) genpaxtest
 	sh genpaxtest $(TESTS)
 
-crt1S.o: crt1S.S
-
 anonmap: body.o anonmap.o
 
 execbss: body.o execbss.o
@@ -92,8 +90,8 @@
 getheap1: getheap.o
 	$(CC) $(LDFLAGS) -o $@ $+
 
-getheap2: crt1S.o interp.o getheap.o
-	$(CC) -shared -o $@ $+
+getheap2: interp.o getheap.o
+	$(CC) -fPIE -o $@ $+
 
 getheap.o: getheap.c
 	$(CC) $(CFLAGS) -fPIC -DPIC -o $@ -c $<
@@ -104,8 +102,8 @@
 	$(CC) $(LDFLAGS) -o $@ $+
 	chpax -X $@
 
-getmain2: crt1S.o interp.o getmain2.o
-	$(CC) -shared -o $@ $+
+getmain2: interp.o getmain2.o
+	$(CC) -fPIE -o $@ $+
 
 getmain2.o: getmain.c
 	$(CC) $(CFLAGS) -fPIC -DPIC -o $@ -c $<
