summaryrefslogtreecommitdiff
path: root/usr.bin/nm
AgeCommit message (Collapse)Author
2014-04-28Ignore IRIX6-compatible archive map on mips64 platform, since the mips64Miod Vallat
toolchain creates them. This lets nm -w correctly return 0 for valid archives. ok jasper@ deraadt@
2014-04-09tweak STANDARDS; ok millert sobradoJason McIntyre
2013-11-26unsigned char casts for ctypeTheo de Raadt
ok krw
2013-11-13proto and such cleanupTheo de Raadt
ok guenther
2013-11-12avoid math on void * pointers; delete an unused variableTheo de Raadt
2013-11-12remove more code accidentally left behind during the a.out purgeTheo de Raadt
2013-10-24Redo 1.34+1.35, but ignore incorrect files in show_file() as done in 1.33.Miod Vallat
Fixes nm output on archives on mips.
2013-10-24back out to 1.33, subtle bug being hunted...Theo de Raadt
2013-10-21remove a space that snuck into the outputTheo de Raadt
2013-10-20catch up with elf(5)/stab(5) removal;Jason McIntyre
ok miod
2013-10-19Remove a.out/stab knowledge from nm.Theo de Raadt
(As a side effect of this repair, the -e option no longer reports that all weak objects are functions) ok miod
2013-03-30Correctly report `weak' status of non-function symbols. Makes nm agree withMiod Vallat
objdump -t on, say, _DYNAMIC in libpthread.
2011-09-28Support symbols in .tbss and .tdata ELF sectionsUwe Stuehler
With this change nm(1) prints the expected symbol type ('B' or 'D') for variables in the .tbss and .tdata sections respectively, instead of '?'. This would be what binutils do for non-automatic variables that are marked as thread-local with the __thread attribute in GCC. help and ok miod@, guenther@
2011-02-06- nm -s omitted the symbol list for first object file in an archive. fix thisJasper Lievisse Adriaanse
by forcing show_symtab() to restore its original file offset after processing. fix from pr #6385. ok miod@
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