From owner-cvs-all Mon Sep 7 16:32:11 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA29272 for cvs-all-outgoing; Mon, 7 Sep 1998 16:32:11 -0700 (PDT) (envelope-from owner-cvs-all) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA29142; Mon, 7 Sep 1998 16:32:01 -0700 (PDT) (envelope-from jdp@FreeBSD.org) From: John Polstra Received: (from jdp@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id QAA06254; Mon, 7 Sep 1998 16:32:00 -0700 (PDT) Date: Mon, 7 Sep 1998 16:32:00 -0700 (PDT) Message-Id: <199809072332.QAA06254@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/contrib/gcc/config/i386 freebsd.h src/lib/csu/i386-elf Makefile crt1.c src/usr.bin/gprof aout.c elf.c Makefile gprof.1 gprof.c gprof.h src/usr.bin/gprof4 Makefile src/sys/i386/include profile.h Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jdp 1998/09/07 16:32:00 PDT Modified files: contrib/gcc/config/i386 freebsd.h lib/csu/i386-elf Makefile crt1.c usr.bin/gprof Makefile gprof.1 gprof.c gprof.h usr.bin/gprof4 Makefile sys/i386/include profile.h Added files: usr.bin/gprof aout.c elf.c Log: Make profiling work for ELF. gprof now autodetects the format of the executable file, so it will work for both a.out and ELF format files. I have split the object format specific code into separate source files. It's cleaner than it was before, but it's still pretty crufty. Don't cheat on your make world for this update. A lot of things have to be rebuilt for it to work, including the compiler and all of the profiled libraries. Revision Changes Path 1.19 +7 -4 src/contrib/gcc/config/i386/freebsd.h 1.2 +5 -1 src/lib/csu/i386-elf/Makefile 1.2 +20 -1 src/lib/csu/i386-elf/crt1.c 1.4 +1 -1 src/usr.bin/gprof/Makefile 1.8 +9 -2 src/usr.bin/gprof/gprof.1 1.8 +22 -195 src/usr.bin/gprof/gprof.c 1.7 +6 -10 src/usr.bin/gprof/gprof.h 1.3 +1 -1 src/usr.bin/gprof4/Makefile 1.18 +5 -1 src/sys/i386/include/profile.h