70cd907e38757283f3696465771f723a342cc3d1 |
|
02-Dec-2015 |
Mark Wielaard <mjw@redhat.com> |
nm: If the file is ET_REL and we need Dwarf use libdwfl to get it relocated. If we need Dwarf and the file is ET_REL use the same trick as in readelf to get a relocated Dwarf. Otherwise lots of references in the debug_info will come out as zero. This also explains the "bogus" Dwarf seen that caused the memory leak in the local_root that was fixed previously. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/nm.c
|
3fbd857267a6bffc57225857690aaa383ac58426 |
|
02-Dec-2015 |
Mark Wielaard <mjw@redhat.com> |
nm: Don't leak duplicate Dwarf local names. Badly formed DWARF can have duplicate local names. In which case we do want to detect those so we don't leak the memory. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/nm.c
|
c08079a076420f67742be98d060500965eb22340 |
|
27-Jun-2015 |
Mark Wielaard <mjw@redhat.com> |
nm: First call elf_getdata, then allocate memory. This catches bogus data early before we might try to allocate giant amounts of memory. Reported-by: Hanno Böck <hanno@hboeck.de> Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/nm.c
|
9beaa94e56fb8b717f838e02905e100647138bf9 |
|
18-Jun-2015 |
Mark Wielaard <mjw@redhat.com> |
nm: Fix typo in size check to determine whether we stack allocated memory. We allocate GElf_SymX entries, which are larger than plain GElf_Sym structs. The check to see whether we could use stack allocation used the correct sizeof (GElf_SymX), but the check to see if we needed to free was using the incorrect sizeof (GElf_Sym). Which could cause us to leak memory. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/nm.c
|
a2b964c7dbbf54162b2c50931c172568fb4cfa70 |
|
08-May-2015 |
Mark Wielaard <mjw@redhat.com> |
Always call gelf_fsize with EV_CURRENT as argument. Don't trust the elf version given by the file. It could be completely bogus. In which case gelf_fsize just returns zero. Which could cause divide by zero errors. https://bugzilla.redhat.com/show_bug.cgi?id=1170810#c34 Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/nm.c
|
a3344c7a785888ecd31475efaaf456db41897423 |
|
06-May-2015 |
Mark Wielaard <mjw@redhat.com> |
nm: Handle dwarf_linesrc returning NULL. https://bugzilla.redhat.com/show_bug.cgi?id=1170810#32 Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/nm.c
|
b88bece422ec249215f3ab5e848c4991bef68c40 |
|
04-May-2015 |
Max Filippov <jcmvbkbc@gmail.com> |
Drop mtrace calls. mtrace is a GNU extension not supported by uClibc and it's believed to not be really used. Drop mtrace() calls and #include <mcheck.h>. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
/external/elfutils/src/nm.c
|
587c4b3e94c6ef877137d067d5d0f574f69b1391 |
|
14-Apr-2015 |
Mark Wielaard <mjw@redhat.com> |
src: Remove __DATE__ from internal error messages. The date didn't really add much information (it is the day on which the code happened to be compiled) and it prevents creating reproducible builds. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/nm.c
|
309e712fea93473ac9b1aa361456fce8d3867baa |
|
26-Dec-2014 |
Mark Wielaard <mjw@redhat.com> |
nm: Guard against divide by zero in error check. Also add section index number in error message. https://bugzilla.redhat.com/show_bug.cgi?id=1170810 Reported-by: Alexander Cherepanov <cherepan@mccme.ru> Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/nm.c
|
8fb260f7137a231caf250dbe4ba64fcebd33b68d |
|
26-Dec-2014 |
Mark Wielaard <mjw@redhat.com> |
nm: Handle/Skip /SYM64/ index entries. Add a testcase to show eu-nm now handles archives with 64-bit symbol table. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/nm.c
|
0b799ad9822f4866aaf1eb34564681e83bdaf9f1 |
|
26-Dec-2014 |
Mark Wielaard <mjw@redhat.com> |
nm: Stop processing ar members on first invalid offset. Otherwise we will keep looping on that same invalid entry. https://bugzilla.redhat.com/show_bug.cgi?id=1170810 Reported-by: Alexander Cherepanov <cherepan@mccme.ru> Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/nm.c
|
f48eb6b15fee66e54b488d71738979fc608f25ee |
|
23-Jan-2014 |
Mark Wielaard <mjw@redhat.com> |
Use -Wformat=2 by default for all files. This just makes sure that all format strings are given as literals to printf like functions so the compiler can see and check them. Remove all no_Wformat, add -Wformat=2 unconditionally to AM_CFLAGS. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/nm.c
|
7c6e785e6eca774080a64801f950bd61785c469e |
|
15-Jan-2014 |
Jan Kratochvil <jan.kratochvil@redhat.com> |
Fix corruption of non-C++ symbols by the demangler. Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
/external/elfutils/src/nm.c
|
03d76f4aec5e750b81198c7a24571e119e754b40 |
|
09-Nov-2013 |
Mark Wielaard <mjw@redhat.com> |
Fix some (harmless) cppcheck warnings. [dwarf_getaranges.c:149]: (warning) Ineffective statement similar to '*A++;'. Did you intend to write '(*A)++;'? There was already an XXX statement that we weren't using the result. Explicitly read the segment_size and check it is zero. And report an error if it isn't, since we aren't prepared to handle such a case. [arlib.c:62]: (error) Uninitialized variable: tmpbuf [arlib.c:124]: (error) Uninitialized variable: tmpbuf cppcheck is wrong. tmpbuf is initialized in the snprintf call whose result is use in the same memcpy call. It does make the code less readable and harder to understand. So explicitly split the snprintf and memcpy calls. [nm.c:766]: (warning) Assert statement modifies 'cnt'. The cnt variable was only used for this assert sanity check. But it is bad style to do have side effects inside an assert statement. Increase cnt after the assert. Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/nm.c
|
7df3d2cd70932cd70515dbeb75e4db66fd27f192 |
|
11-Dec-2012 |
Mark Wielaard <mjw@redhat.com> |
Add missing semicolon in show_symbols_sysv Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/nm.c
|
57bd66cabf6e6b9ecf622cdbf350804897a8df58 |
|
11-Dec-2012 |
Roland McGrath <roland@hack.frob.com> |
nm: Fix size passed to snprintf for invalid sh_name case. Signed-off-by: Roland McGrath <roland@hack.frob.com>
/external/elfutils/src/nm.c
|
fe198bc5f02e540c26be212b9cb5e6f516f700b8 |
|
30-Jul-2012 |
Petr Machata <pmachata@redhat.com> |
Reorder formatting string arguments so that there are no gaps in references It is required that formatting string that uses $-style references lists all arguments. Signed-off-by: Petr Machata <pmachata@redhat.com>
/external/elfutils/src/nm.c
|
de2ed97f33139af5c7a0811e4ec66fc896a13cf2 |
|
05-Jun-2012 |
Mark Wielaard <mjw@redhat.com> |
Update name, license and contributor policy. * Change name from "Red Hat elfutils" to "elfutils". * Update license of standalone tools and test from GPLv2 to GPLv3+. * Change license of libraries from GPLv2+exception to GPLv2/LGPLv3+. * Add Developer Certificate of Origin based contributor policy. top-level: - COPYING: Upgraded from GPLv2 to GPLv3. - CONTRIBUTING, COPYING-GPLv2, COPYING-LGPLv3: New files. - NEWS: Added note about new contribution and license policy. - Makefile.am: Updated to GPLv3, added new files to EXTRA_DIST. - configure.ac: Update to GPLv3, changed AC_INIT name to 'elfutils'. backends, lib, libasm, libcpu, libdw, libdwfl, libebl, libelf: - All files updated to GPLv2/LGPLv3+. Except some very small files (<5 lines) which didn't have any headers at all before, the linker .maps files and the libcpu/defs files which only contain data and libelf/elf.h which comes from glibc and is under LGPLv2+. config: - elfutils.spec.in: Add new License: headers and new %doc files. - Update all license headers to GPLv2/LGPLv3+ for files used by libs. src, tests: - All files updated to GPLv3+. Except for the test bz2 data files, the linker maps and script files and some very small files (<5 lines) that don't have any headers. Signed-off-by: Richard Fontana <rfontana@redhat.com> Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/nm.c
|
3a64a3087f53ab860c7de04da0e53dabef459520 |
|
22-Jan-2012 |
Ulrich Drepper <drepper@gmail.com> |
Update copyright year
/external/elfutils/src/nm.c
|
c6b3d0c27833c8e0936cb6b8973e8578e3a9421f |
|
22-Jan-2012 |
Ulrich Drepper <drepper@gmail.com> |
Color code output of nm and objdump
/external/elfutils/src/nm.c
|
66f4c37d497bdde040a33f299b12163f044b1bf2 |
|
03-Oct-2011 |
Ulrich Drepper <drepper@gmail.com> |
Fix nm output for sysv format Undefined symbols need no address and siz printed. Avoid the initial entry which is no real symbol. Avoid section symbols.
/external/elfutils/src/nm.c
|
2356ba04aeb670b90925ae88c3e579d75085a381 |
|
03-Oct-2011 |
Ulrich Drepper <drepper@gmail.com> |
Improve nm output for BSD and POSIX format The binutils version showed more information since it distinguished unique symbols, symbols in read-only and bss sections. The format is now the same. In addition handle TLS symbols correctly but differently from binutils nm since the latter drops information. Instead use a @ suffix to indicate TLS similar to * to indicate weak.
/external/elfutils/src/nm.c
|
b4a16cf0c61746e9b2414570e82e0efcfdf1e721 |
|
02-Oct-2011 |
Ulrich Drepper <drepper@gmail.com> |
Add demangling support to nm
/external/elfutils/src/nm.c
|
c8920de1429631ab53b8a388acdd3f8064305bd3 |
|
12-May-2011 |
Marek Polacek <mpolacek@redhat.com> |
nm.c: Remove unused if/else and parameters.
/external/elfutils/src/nm.c
|
f189493154d0041deced00e6a99cc5426dc9d260 |
|
14-Jun-2009 |
Ulrich Drepper <drepper@redhat.com> |
Add aliases for elf_getshnum and elf_getshstrndx. Sun in their implementation messed up the semantics of these functions. To get back to source code compatibility they asked for a solution. We simply add aliases for the two affected functions, named elf_getshdrnum and elf_getshdrstrndx. The semantics remains the same. Users of the old interfaces receive a warning for now. In future we might make it impossible to link programs which request the old interfaces (binary compatibility will of course be maintained).
/external/elfutils/src/nm.c
|
fdc93e12a77866cafd1aae4463d89cef2c01d9b1 |
|
17-Jan-2009 |
Ulrich Drepper <drepper@myware66.akkadia.org> |
Move argp_program_version_hook and argp_program_bug_address variables in all programs into the .rodata section.
/external/elfutils/src/nm.c
|
44173edad1dfd24c4d98fcf032308f7df28db652 |
|
02-Jan-2009 |
Ulrich Drepper <drepper@redhat.com> |
Unpdate copyright in messages.
/external/elfutils/src/nm.c
|
468fe4d81a3e92157f4c0446675487dc230b2ec6 |
|
12-Dec-2008 |
Roland McGrath <roland@redhat.com> |
Fix crashes on bad sh_name/st_name offsets.
/external/elfutils/src/nm.c
|
3cbdd387c752999255aea91600b5cfdefbeac7d0 |
|
02-Jan-2008 |
Ulrich Drepper <drepper@redhat.com> |
propagate from branch 'com.redhat.elfutils.disasm' (head d15b4eb794e81e477f9896fe82a74cb5ecf4514c) to branch 'com.redhat.elfutils' (head eaacbf01f8cc89d043ec6eca9b5e35cb5c4cde06)
/external/elfutils/src/nm.c
|
ad024afc93dcd0f4797b3e80bfb6b80c34da5c12 |
|
02-Jan-2008 |
Ulrich Drepper <drepper@redhat.com> |
Update copyright year.
/external/elfutils/src/nm.c
|
cb6d865011ad98a8ac2018f072f396a2268739ca |
|
23-Aug-2007 |
Roland McGrath <roland@redhat.com> |
readelf register printing sort order tweak
/external/elfutils/src/nm.c
|
b0243863149acde9e42b25688c7c2959830e69a9 |
|
06-Jun-2007 |
Ulrich Drepper <drepper@redhat.com> |
Prepare for 0.128 release. Minor fixes. Update gettext files to 0.16.1.
/external/elfutils/src/nm.c
|
b770cf9d1045bde04a1d89c63f4d7eb261ff78da |
|
10-Jan-2007 |
Ulrich Drepper <drepper@redhat.com> |
Update copyright year.
/external/elfutils/src/nm.c
|
1e9ef50681e20ef14c2ba38aef37a71ff148be08 |
|
05-Apr-2006 |
Ulrich Drepper <drepper@redhat.com> |
Fix FSF address. No exception for libdwarf.
/external/elfutils/src/nm.c
|
82c345d92531e2577f16928efe62c14d19d5fc47 |
|
05-Apr-2006 |
Ulrich Drepper <drepper@redhat.com> |
Prepare for 0.120 release.
/external/elfutils/src/nm.c
|
361df7da6dfecd817b27e62b91752ac316d7cdd4 |
|
04-Apr-2006 |
Ulrich Drepper <drepper@redhat.com> |
propagate from branch 'com.redhat.elfutils.roland.pending' (head 4f8fc821345feef58624f0aa5b470d4827577d8c) to branch 'com.redhat.elfutils' (head 76e26cb54695fd3b21ee8fb5be3036bd68200633)
/external/elfutils/src/nm.c
|
6724c90d02659f7466b67b357563042e403d154e |
|
28-Oct-2005 |
Roland McGrath <roland@redhat.com> |
NEWS updates
/external/elfutils/src/nm.c
|
d112ef86686e4f47aad5b30ee38b4618a2bea611 |
|
03-Sep-2005 |
Ulrich Drepper <drepper@redhat.com> |
Some more message unifications.
/external/elfutils/src/nm.c
|
d17fac7e89666b47811581b10b5ca0d253a3a82d |
|
23-Aug-2005 |
Roland McGrath <roland@redhat.com> |
2005-08-23 Roland McGrath <roland@redhat.com> * dwarf_attr_integrate.c (dwarf_attr_integrate): Treat DW_AT_specification the same as DW_AT_abstract_origin.
/external/elfutils/src/nm.c
|
b08d5a8fb42f4586d756068065186b5af7e48dad |
|
26-Jul-2005 |
Ulrich Drepper <drepper@redhat.com> |
Adjust for monotone.
/external/elfutils/src/nm.c
|