Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | dumpelf.c: add missing break when decoding SHT_GNU_LIBLIST | Sergei Trofimovich | 2020-02-16 | 1 | -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 pointers | Mike Frysinger | 2018-06-07 | 1 | -7/+7 |
| | | | | Mark all possible pointers const since we don't modify anything. | ||||
* | add helper for checking memory/elf ranges | Mike Frysinger | 2017-02-11 | 1 | -1/+1 |
| | | | | Less likely to screw up the logic this way. | ||||
* | dumpelf: check for invalid notes | Mike Frysinger | 2017-02-01 | 1 | -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 headers | Mike Frysinger | 2017-02-01 | 1 | -4/+4 |
| | | | | | URL: https://bugs.gentoo.org/607896 Reported-by: Agostino Sarubbo <ago@gentoo.org> | ||||
* | dumpelf: check for invalid section entry sizes | Mike Frysinger | 2017-02-01 | 1 | -22/+28 |
| | | | | | URL: https://bugs.gentoo.org/607894 Reported-by: Agostino Sarubbo <ago@gentoo.org> | ||||
* | dumpelf: add support for prelink sections | Mike Frysinger | 2016-11-23 | 1 | -0/+34 |
| | |||||
* | dumpelf: add support for dumping notes | Mike Frysinger | 2016-11-23 | 1 | -9/+76 |
| | |||||
* | dumpelf: clean up types all over the place | Mike Frysinger | 2016-11-17 | 1 | -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 decoding | Mike Frysinger | 2016-01-03 | 1 | -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 names | Mike Frysinger | 2015-12-12 | 1 | -0/+7 |
| | |||||
* | dumpelf: constify pointers | Mike Frysinger | 2015-12-12 | 1 | -23/+23 |
| | |||||
* | dumpelf: handle corrupt dynamic tags | Mike Frysinger | 2015-12-12 | 1 | -0/+4 |
| | | | | | URL: https://bugs.gentoo.org/567956 Reported-by: Brian Carpenter <brian.carpenter@gmail.com> | ||||
* | dumpelf: handle corrupt section headers | Mike Frysinger | 2015-12-12 | 1 | -1/+12 |
| | | | | | URL: https://bugs.gentoo.org/567954 Reported-by: Brian Carpenter <brian.carpenter@gmail.com> | ||||
* | dumpelf: reset dynamic phdr pointer with every elf | Mike Frysinger | 2015-12-12 | 1 | -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 bit | Mike Frysinger | 2015-08-20 | 1 | -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.0 | Mike Frysinger | 2015-03-02 | 1 | -4/+2 |
| | |||||
* | drop __DATE__ usage as the rcsid provides all the details we care about | Mike Frysinger | 2015-02-22 | 1 | -4/+4 |
| | |||||
* | update copyright years | Mike Frysinger | 2012-11-04 | 1 | -5/+5 |
| | |||||
* | dumpelf: add support for dumping dynamic tags | Mike Frysinger | 2011-10-13 | 1 | -23/+72 |
| | |||||
* | simplify rcsid a little | Mike Frysinger | 2011-09-27 | 1 | -2/+2 |
| | |||||
* | constify help string array | Mike Frysinger | 2010-12-08 | 1 | -3/+3 |
| | |||||
* | change to simpler const argv0 string | Mike Frysinger | 2010-12-08 | 1 | -3/+3 |
| | |||||
* | touchup a few more ->data void points and casts | Mike Frysinger | 2010-01-15 | 1 | -4/+4 |
| | |||||
* | convert core pointers to void* to avoid ugly casts and gcc alignment ↵ | Mike Frysinger | 2010-01-15 | 1 | -4/+5 |
| | | | | warnings #290543 | ||||
* | avoid using reserved keyword "bool" | Mike Frysinger | 2009-12-01 | 1 | -8/+8 |
| | |||||
* | - mainly whitespace updates | Ned Ludd | 2008-01-17 | 1 | -10/+2 |
| | |||||
* | split xfuncs off into a sep file for all utils to use, cleanup misc things, ↵ | Mike Frysinger | 2007-08-20 | 1 | -4/+4 |
| | | | | and add some more comments | ||||
* | - update copyright headers | Ned Ludd | 2007-05-23 | 1 | -5/+5 |
| | |||||
* | - do not output elf.h if we are doing dumpelf /dev/null | Ned Ludd | 2007-02-03 | 1 | -3/+5 |
| | |||||
* | add support for displaying em_machine via %a format flag | Mike Frysinger | 2006-12-11 | 1 | -3/+3 |
| | |||||
* | just whitespace | Mike Frysinger | 2006-11-28 | 1 | -3/+3 |
| | |||||
* | delay include elf.h statement until actually needed | Mike Frysinger | 2006-11-28 | 1 | -3/+4 |
| | |||||
* | - /* within quotes messes up my syntax highlighting */ | Ned Ludd | 2006-02-03 | 1 | -6/+6 |
| | |||||
* | update copyright years and unify headers in porting.h | Mike Frysinger | 2006-01-05 | 1 | -17/+5 |
| | |||||
* | cleanup how we dump section headers and support for SHT_DYNSYM | Mike Frysinger | 2005-12-09 | 1 | -12/+42 |
| | |||||
* | - add dumping of .interp/.comment when --verbose | Ned Ludd | 2005-12-04 | 1 | -4/+5 |
| | |||||
* | split common non-elf features into paxinc.[ch] | Mike Frysinger | 2005-10-13 | 1 | -3/+3 |
| | |||||
* | use smaller license header | Mike Frysinger | 2005-09-30 | 1 | -2/+5 |
| | |||||
* | tweak version output to include $PV | Mike Frysinger | 2005-06-13 | 1 | -5/+5 |
| | |||||
* | fix a few warnings and update get_elfeitype() usage | Mike Frysinger | 2005-06-03 | 1 | -8/+9 |
| | |||||
* | add support for dumping sections | Mike Frysinger | 2005-06-03 | 1 | -12/+45 |
| | |||||
* | dump section header names too | Mike Frysinger | 2005-06-03 | 1 | -9/+11 |
| | |||||
* | - added initial inconsistent state detection for pax flags. update some of ↵ | Ned Ludd | 2005-05-29 | 1 | -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 them | Mike Frysinger | 2005-05-10 | 1 | -6/+18 |
| | |||||
* | include offset info in comments | Mike Frysinger | 2005-05-06 | 1 | -4/+4 |
| | |||||
* | move common warn/warnf/err macros to paxelf.h | Mike Frysinger | 2005-04-15 | 1 | -21/+10 |
| | |||||
* | cast the values so printf() doesnt produce any warnings | Mike Frysinger | 2005-04-13 | 1 | -46/+46 |
| | |||||
* | make dumpelf endian/bit neutral and pimp it out more | Mike Frysinger | 2005-04-12 | 1 | -84/+139 |
| | |||||
* | the beginning of a little elf dump prog | Mike Frysinger | 2005-04-07 | 1 | -0/+234 |