summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof/elf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Prefer <elf.h> to the non portable <sys/exec_elf.h>.mpi2017-10-291-1/+1
| | | | ok jca@, deraadt@
* Do not cast result of malloc/calloc/realloc* if stdlib.h is in scopederaadt2015-08-201-1/+1
| | | | ok krw millert
* Ignore "mapping symbols" like $a and $t. They seem to be an ARM-onlyckuethe2007-01-091-0/+9
| | | | | | | | | | | | feature, used to indicate whether code is ARM or Thumb. Unfortunately they confuse gprof, which outputs call graphs where every other function is named "$a"... not very useful. Rather than enumerating the different symbols, binutils ignores anything beginning with '$', and that is what we will do here. Thanks to Dale Rahn for useful tips along the way. ok miod
* Add ELFDEBUG to mirror the a.out debug that already exists.marc2004-07-201-0/+12
| | | | OK art@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-5/+1
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Split out symbol handling into a separate file.art2002-05-081-0/+140
Implement symbol handling for ELF (based on FreeBSD). Implement dummy support for alpha, hppa, powerpc and sparc64. Tested during the last 2 months on various archs (never comitted because other stuff got in the way). Some fixups to i386 support from mickey@ This lets us switch all elf archs to this gprof.