diff options
author | jilles <jilles@FreeBSD.org> | 2010-03-20 22:58:54 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-03-20 22:58:54 +0000 |
commit | ff5a1c96eaae61fb37592a8393cfb3e305c7bd4d (patch) | |
tree | 946cc6c3d9a4d3cd64481a9b33d78b79add0983c | |
parent | 2fa96a801df7acbfdcb0103a9fcb6e54000bab0d (diff) | |
download | FreeBSD-src-ff5a1c96eaae61fb37592a8393cfb3e305c7bd4d.zip FreeBSD-src-ff5a1c96eaae61fb37592a8393cfb3e305c7bd4d.tar.gz |
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
Reviewed by: kib
MFC after: 3 days
-rw-r--r-- | lib/csu/i386-elf/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csu/i386-elf/Makefile b/lib/csu/i386-elf/Makefile index 8e6f50d..b4d78c2 100644 --- a/lib/csu/i386-elf/Makefile +++ b/lib/csu/i386-elf/Makefile @@ -23,7 +23,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 |