summaryrefslogtreecommitdiff
path: root/usr.bin/nm
AgeCommit message (Collapse)Author
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-10-27nm -V is silly, and prining the rcsid even more soTheo de Raadt
2009-02-10mark these utilities as being largely posix compliant or, in the case ofJason McIntyre
nm, as not being posix compliant;
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-08-06the ellipsis is not an optional argument; while here, sync the usageIgor Sobrado
and synopsis of commands lots of good ideas by jmc@ ok jmc@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-04-18Fix a NULL dereference if the symbol table size is zero; ok millert@ deraadt@Miod Vallat
2007-02-08Do all allocation and deallocation of shstr in elf_symload() toRay Lai
prevent double-freeing shstr. Also don't free known NULL values (*pnames and *psnames). Initially inspired by Charles Longeau's first diff to tech@; he later sent a second diff to tech@ nearly identical to this commit. Freaky. OK mickey@.
2007-02-07check st_name validity also check for overflow and not only for zero; found ↵Michael Shalayeff
by Charles Longeau <chl@tuxfamily.org>
2006-09-30Some fixes for running nm on ELF binaries.Mark Kettenis
- Fix printing the symbol type of undefined symbols. - Fall back onto the dynamic symbol table if the normal symbol table is not available (i.e. if the binary has been stripped). ok mickey@
2005-01-19Add elf{32,64}_load_phdrs() for loading program headers.Alexander Yurchenko
ok mickey@
2005-01-03don't try to demangle C symbols if we're ELF.Marc Espie
looks okay mickey@
2004-10-25describe R type; found by matthieu@Michael Shalayeff
2004-10-11a few more xrefsMichael Shalayeff
2004-10-11add rcisd[]Michael Shalayeff
2004-10-10now that no cpu assumptions are left in -- remove the cross-glueMichael Shalayeff
2004-10-10parse the cpu-specific ids based on the e_machineMichael Shalayeff
2004-10-09My MMAP/MUNMAP macros are too simple to copyright so place this in theTodd C. Miller
public domain. OK mickey@
2004-10-09move out elf code into elf.c and generate 32 and 64 versions of it;Michael Shalayeff
allow operation on size-mixed host-target as well as ensianess for both a.out and elf (though a.out 64bit probably does not exist ;) tested on hppa-sparc64-i386-vax intermixen
2004-10-09factor out code for mapping section index into nlist typeMichael Shalayeff
2004-08-20grok STT_SECTION and beautify STT_OBJECTMichael Shalayeff
2004-08-19STT_FUNC can be an absolute tooMichael Shalayeff
2004-07-19mention weak symbolsMichael Coulter
improvements and ok miod@
2004-07-11need to byteswap string table size before use for the alien endian a.outMichael Shalayeff
2004-05-04spacingTheo de Raadt
2004-05-04dig .plt*, .got*, .init, .fini sectionsMichael Shalayeff
2004-04-29Correctly report empty a.out objects as "no name list" instead of "bad format".Miod Vallat
ok mickey@ millert@
2004-03-30no need to force N_EXT as deducted later from typeMichael Shalayeff
2004-03-30there is more than one way to define symbol type in elf...; kill a debugging ↵Michael Shalayeff
printf too
2004-03-30translate names in .sbss section as static N_BSS; found by drahn@Michael Shalayeff
2004-02-09typo;Jason McIntyre
ok mickey@
2004-01-28knf; millert okTheo de Raadt
2004-01-14Fix the mmap case; inadequate testing on my part!Todd C. Miller
2004-01-14Fallback to malloc + pread if mmap fails; fixes "nm /dev/ksyms". OK mickey@Todd C. Miller
2004-01-13kill unused local vars; from deraadt@Michael Shalayeff
2004-01-06man tweaks;Jason McIntyre
2004-01-05nm digs elf and merges w/ size; millert@ okMichael Shalayeff
2003-11-07hppa is bigendianMichael Shalayeff
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-05snprintf; ok miod ho henningTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-11-19kill more registersMike Pechkin
millert@ ok
2001-08-19Knowledge about sparc68/ppc endianess. Who knows where oldish a.out filesMarc Espie
may come from ?
2001-08-17Some missing protos. Use macros from <link.h> instead of rolling our own.Marc Espie
2001-08-17Show indirect symbols in -e mode.Marc Espie
2001-08-16-e switch, show extra symbol information such as weak symbol status.Marc Espie
2001-06-23Add I for indirect reference (alias to other symbol).Federico G. Schwindt
2001-06-20Add -C flag to synopsis; Brian Poole <raj@cerias.purdue.edu>Todd C. Miller
2001-05-31- remove erealloc() wrapper functionsmart
- standard function prototypes - remove extraneous exit(1) after an err(1,...) Shrinks source by 11 lines and executable by 22 bytes on i386. deraadt@ ok