aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* dumpelf.c: add missing break when decoding SHT_GNU_LIBLISTSergei Trofimovich2020-02-161-0/+1
| | | | | | | | | | | | Detected by gcc-10 as: ``` dumpelf.c: In function 'dump_shdr': dumpelf.c:462:4: warning: this statement may fall through [-Wimplicit-fallthrough=] 462 | printf("\t */\n"); \ | ^~~~~~~~~~~~~~~~~ ``` Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* dumpelf: constify misc pointersMike Frysinger2018-06-071-7/+7
| | | | Mark all possible pointers const since we don't modify anything.
* add helper for checking memory/elf rangesMike Frysinger2017-02-111-1/+1
| | | | Less likely to screw up the logic this way.
* dumpelf: check for invalid notesMike Frysinger2017-02-011-7/+16
| | | | | | | Handle cases where the size fields would overflow the additions. URL: https://bugs.gentoo.org/607898 Reported-by: Agostino Sarubbo <ago@gentoo.org>
* dumpelf: check for invalid program headersMike Frysinger2017-02-011-4/+4
| | | | | URL: https://bugs.gentoo.org/607896 Reported-by: Agostino Sarubbo <ago@gentoo.org>
* dumpelf: check for invalid section entry sizesMike Frysinger2017-02-011-22/+28
| | | | | URL: https://bugs.gentoo.org/607894 Reported-by: Agostino Sarubbo <ago@gentoo.org>
* dumpelf: add support for prelink sectionsMike Frysinger2016-11-231-0/+34
|
* dumpelf: add support for dumping notesMike Frysinger2016-11-231-9/+76
|
* dumpelf: clean up types all over the placeMike Frysinger2016-11-171-87/+88
| | | | | | Rather than blindly cast everything to unsigned long (which doesn't work when working with 64-bit ELFs on a 32-bit host), use the proper types in all the printf statements.
* dumpelf: improve decodingMike Frysinger2016-01-031-26/+76
| | | | | | | | | - push down section header validity checks (previous one was too strict) - fix section header walking (was missing braces in for loop) - dump all of the pad bytes in the elf header - expand program header output and decode/explain more fields - use uintptr_t for doing pointer math - handle SHT_NOBITS better
* dumpelf: handle invalid section namesMike Frysinger2015-12-121-0/+7
|
* dumpelf: constify pointersMike Frysinger2015-12-121-23/+23
|
* dumpelf: handle corrupt dynamic tagsMike Frysinger2015-12-121-0/+4
| | | | | URL: https://bugs.gentoo.org/567956 Reported-by: Brian Carpenter <brian.carpenter@gmail.com>
* dumpelf: handle corrupt section headersMike Frysinger2015-12-121-1/+12
| | | | | URL: https://bugs.gentoo.org/567954 Reported-by: Brian Carpenter <brian.carpenter@gmail.com>
* dumpelf: reset dynamic phdr pointer with every elfMike Frysinger2015-12-121-1/+3
| | | | | | When dumping multiple ELFs, the dynamic phdr pointer might be left pointing to memory from the previous ELF. Make sure we clear it at the start of every run.
* security: leverage namespaces to restrict the runtime a bitMike Frysinger2015-08-201-0/+1
| | | | | | | In practice this isn't terribly useful as people aren't attacking these tools, but might as well be paranoid. It'd be nice to use mount & net namespaces too, but they're way too slow.
* migrate to gitv1.0Mike Frysinger2015-03-021-4/+2
|
* drop __DATE__ usage as the rcsid provides all the details we care aboutMike Frysinger2015-02-221-4/+4
|
* update copyright yearsMike Frysinger2012-11-041-5/+5
|
* dumpelf: add support for dumping dynamic tagsMike Frysinger2011-10-131-23/+72
|
* simplify rcsid a littleMike Frysinger2011-09-271-2/+2
|
* constify help string arrayMike Frysinger2010-12-081-3/+3
|
* change to simpler const argv0 stringMike Frysinger2010-12-081-3/+3
|
* touchup a few more ->data void points and castsMike Frysinger2010-01-151-4/+4
|
* convert core pointers to void* to avoid ugly casts and gcc alignment ↵Mike Frysinger2010-01-151-4/+5
| | | | warnings #290543
* avoid using reserved keyword "bool"Mike Frysinger2009-12-011-8/+8
|
* - mainly whitespace updatesNed Ludd2008-01-171-10/+2
|
* split xfuncs off into a sep file for all utils to use, cleanup misc things, ↵Mike Frysinger2007-08-201-4/+4
| | | | and add some more comments
* - update copyright headersNed Ludd2007-05-231-5/+5
|
* - do not output elf.h if we are doing dumpelf /dev/nullNed Ludd2007-02-031-3/+5
|
* add support for displaying em_machine via %a format flagMike Frysinger2006-12-111-3/+3
|
* just whitespaceMike Frysinger2006-11-281-3/+3
|
* delay include elf.h statement until actually neededMike Frysinger2006-11-281-3/+4
|
* - /* within quotes messes up my syntax highlighting */Ned Ludd2006-02-031-6/+6
|
* update copyright years and unify headers in porting.hMike Frysinger2006-01-051-17/+5
|
* cleanup how we dump section headers and support for SHT_DYNSYMMike Frysinger2005-12-091-12/+42
|
* - add dumping of .interp/.comment when --verboseNed Ludd2005-12-041-4/+5
|
* split common non-elf features into paxinc.[ch]Mike Frysinger2005-10-131-3/+3
|
* use smaller license headerMike Frysinger2005-09-301-2/+5
|
* tweak version output to include $PVMike Frysinger2005-06-131-5/+5
|
* fix a few warnings and update get_elfeitype() usageMike Frysinger2005-06-031-8/+9
|
* add support for dumping sectionsMike Frysinger2005-06-031-12/+45
|
* dump section header names tooMike Frysinger2005-06-031-9/+11
|
* - added initial inconsistent state detection for pax flags. update some of ↵Ned Ludd2005-05-291-3/+3
| | | | the copyright headers removing myself and assigning over to the foundation. fixed bug in pf display 5 is not 4
* make sure we verify pointers before using themMike Frysinger2005-05-101-6/+18
|
* include offset info in commentsMike Frysinger2005-05-061-4/+4
|
* move common warn/warnf/err macros to paxelf.hMike Frysinger2005-04-151-21/+10
|
* cast the values so printf() doesnt produce any warningsMike Frysinger2005-04-131-46/+46
|
* make dumpelf endian/bit neutral and pimp it out moreMike Frysinger2005-04-121-84/+139
|
* the beginning of a little elf dump progMike Frysinger2005-04-071-0/+234