svn commit: r207538 - stable/7/lib/csu/i386-elf

Jilles Tjoelker jilles at
Sun May 2 20:12:21 UTC 2010

Author: jilles
Date: Sun May  2 20:12:20 2010
New Revision: 207538

  MFC r205398: Do not create *.gmon files for PIE executables on i386.
  Scrt1_c.o was accidentally compiled with -DGCRT (profiling), like gcrt1_c.o.
  This problem is i386-specific, the other architectures are OK.
  If you have problems with PIE executables such as samba and cups leaving
  behind gmon files, rebuild them after installing this change.
  PR:		ports/143924

Directory Properties:
  stable/7/lib/csu/   (props changed)

Modified: stable/7/lib/csu/i386-elf/Makefile
--- stable/7/lib/csu/i386-elf/Makefile	Sun May  2 19:38:17 2010	(r207537)
+++ stable/7/lib/csu/i386-elf/Makefile	Sun May  2 20:12:20 2010	(r207538)
@@ -24,7 +24,7 @@ crt1.o:	crt1_c.o crt1_s.o
 	objcopy --localize-symbol _start1 crt1.o
 Scrt1_c.o:	crt1_c.c
-	${CC} ${CFLAGS} -DGCRT -fPIC -DPIC -c -o Scrt1_c.o ${.CURDIR}/crt1_c.c
+	${CC} ${CFLAGS} -fPIC -DPIC -c -o Scrt1_c.o ${.CURDIR}/crt1_c.c
 Scrt1.o: Scrt1_c.o crt1_s.o
 	${LD} ${LDFLAGS} -o Scrt1.o -r crt1_s.o Scrt1_c.o

More information about the svn-src-stable-7 mailing list