summaryrefslogtreecommitdiffstats
path: root/usr.bin/nm/elf.c
AgeCommit message (Expand)AuthorFilesLines
2020-11-22fix typo; from Kris Katterjohnjsg1-2/+2
2018-12-14Delete unused phdr functions; move declarations for functions internal toguenther1-56/+12
2017-12-09recognize .openbsd.randomdata section and indicate it roughly, soderaadt1-1/+3
2017-10-27Use <elf.h> instead of <elf_abi.h>mpi1-2/+2
2015-12-09Remove NULL-checks before free(). ok tb@mmcc1-5/+3
2015-08-13Grow -P (POSIX output) and -t (POSIX output radix) support. Several 3rd-partymiod1-30/+33
2015-06-23This patch ensure that when an error is detected, the freed variables insemarie1-1/+7
2015-06-23This patch ensure that e_shentsize (sections header's size in bytes) issemarie1-2/+7
2015-06-23corrects a read after bound that occurs in strcmp (line justsemarie1-4/+8
2015-06-23add some check before accessing data:semarie1-1/+11
2015-05-17Add -D option for displaying the dynamic symbol tableguenther1-3/+5
2015-04-09ELF weak symbols are _not_ like a.out indirect symbols. Nothing in ELF is,guenther1-2/+1
2015-02-06SIZE_MAX is standard, we should be using it in preference to themillert1-3/+3
2015-01-19Missing initialization; tjenahej@speedmail.semiod1-2/+2
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt1-2/+2
2013-11-26unsigned char casts for ctypederaadt1-2/+2
2013-11-13proto and such cleanupderaadt1-2/+5
2013-03-30Correctly report `weak' status of non-function symbols. Makes nm agree withmiod1-3/+6
2011-09-28Support symbols in .tbss and .tdata ELF sectionsuwe1-2/+9
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-5/+1
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt1-5/+5
2007-04-18Fix a NULL dereference if the symbol table size is zero; ok millert@ deraadt@miod1-2/+7
2007-02-08Do all allocation and deallocation of shstr in elf_symload() toray1-12/+3
2007-02-07check st_name validity also check for overflow and not only for zero; found by Charles Longeau <chl@tuxfamily.org>mickey1-3/+4
2006-09-30Some fixes for running nm on ELF binaries.kettenis1-30/+49
2005-01-19Add elf{32,64}_load_phdrs() for loading program headers.grange1-2/+30
2004-10-11add rcisd[]mickey1-1/+5
2004-10-10parse the cpu-specific ids based on the e_machinemickey1-22/+55
2004-10-09move out elf code into elf.c and generate 32 and 64 versions of it;mickey1-3/+203
2004-10-09factor out code for mapping section index into nlist typemickey1-69/+79
2004-08-20grok STT_SECTION and beautify STT_OBJECTmickey1-12/+30
2004-08-19STT_FUNC can be an absolute toomickey1-2/+4
2004-05-04dig .plt*, .got*, .init, .fini sectionsmickey1-4/+16
2004-03-30no need to force N_EXT as deducted later from typemickey1-3/+3
2004-03-30there is more than one way to define symbol type in elf...; kill a debugging printf toomickey1-3/+4
2004-03-30translate names in .sbss section as static N_BSS; found by drahn@mickey1-1/+5
2004-01-13kill unused local vars; from deraadt@mickey1-2/+1
2004-01-05nm digs elf and merges w/ size; millert@ okmickey1-0/+236