aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* paxelf: reject ELFs with incomplete Ehdr structuresMike Frysinger2024-01-251-0/+5
| | | | | | There's nothing useful we can parse out of these, so skip them. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fix various typos found w/codespellMike Frysinger2024-01-151-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* update copyright headersMike Frysinger2024-01-011-2/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Undo IWYU fixesSam James2023-01-291-14/+0
| | | | | | | | | | | | I wasn't paying enough attention, it's better to just fold the needed bits into porting.h. This reverts commit ffedc60fa41d307bda28fd108e6ff1b8da1fc2ee. This reverts commit f8287200aec0ca33ef07fafcdd5aef0aa6eb1306. This reverts commit aa907a42d89ddfd5a7e64d8182a1da35277f2f6e. Bug: https://github.com/gentoo/pax-utils/pull/11#issuecomment-1407566344 Signed-off-by: Sam James <sam@gentoo.org>
* *: IWYU fixes deuxSam James2023-01-291-0/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* *: IWYU fixesSam James2023-01-281-0/+13
| | | | | | | Separate from the first commit as this one was done programmatically with dev-util/include-what-you-use. Signed-off-by: Sam James <sam@gentoo.org>
* paxelf: add LoongArch to recognized ELF machine typesWANG Xuerui2022-03-241-0/+1
| | | | | Signed-off-by: WANG Xuerui <xen0n@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* Add RISC-V to the list of architectures in ELFGöktürk Yüksek2020-04-061-0/+1
| | | | | Signed-off-by: Göktürk Yüksek <gokturk@gentoo.org> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* paxelf: constify elfobj pointersMike Frysinger2018-06-071-2/+2
| | | | | | We rarely need to modify the memory from our input ELFs, so constify all the buffers. We end up having to cast away the const in the "fix" paths in scanelf (which is a bit ugly), but otherwise everything else works.
* paxelf: constify elfobj pointer in helpersMike Frysinger2018-06-071-10/+10
| | | | This helper funcs only read data, so mark elfobj as const.
* paxelf: constify misc pointersMike Frysinger2018-06-071-4/+4
| | | | Mark internal pointers as const that we don't modify anywhere.
* paxelf: constify elf_findsecbynameMike Frysinger2018-06-071-4/+4
| | | | | We need to also constify scanelf_file_get_symtabs due to cascading const markings.
* paxelf: constify pax_short_* helpersMike Frysinger2017-03-031-3/+3
|
* dumpelf: add support for dumping notesMike Frysinger2016-11-231-0/+68
|
* paxelf: use fstat instead of stat && openMike Frysinger2016-06-191-6/+6
| | | | This fixes a minor race condition.
* paxelf: add a helper for accessing e_flagsMike Frysinger2016-01-031-9/+13
|
* paxelf: switch low level elf helpers to unsigned intsMike Frysinger2016-01-031-15/+13
| | | | Avoid using signed types when working with unsigned elf fields.
* avoid using \n with warn macrosMike Frysinger2015-08-201-1/+1
| | | | These already append a newline for us, so don't want two of them.
* elf.h: sync with glibcMike Frysinger2015-03-101-29/+2
|
* migrate to gitv1.0Mike Frysinger2015-03-021-1/+0
|
* add support for symbol visibilityMike Frysinger2014-06-181-1/+14
|
* paxelf: add more DT definesMike Frysinger2014-01-111-1/+10
|
* paxelf: add more entries with latest elf.hMike Frysinger2014-01-111-3/+8
|
* sync elf.h settingsMike Frysinger2012-11-241-21/+29
|
* scanelf: drop XXX_NUM defines as those are compile-time limites, not actual ↵Mike Frysinger2012-11-241-3/+1
| | | | field values
* scanelf: drop XXX_NUM defines as those are compile-time limites, not actual ↵Mike Frysinger2012-11-241-7/+1
| | | | field values
* scanelf: skip leading OLFOSABI_ when getting the osabi field so we do not ↵Mike Frysinger2012-11-241-5/+4
| | | | skip UNKNOWN_TYPE
* scanelf/pspax: drop PT_LOAD counts since more than "normal" is not a bug and ↵Mike Frysinger2012-11-181-19/+1
| | | | is semi-common with some targets, and the warning has out lived its usefulness -- it was added as an initial sanity check to get a feel for the real world
* update copyright yearsMike Frysinger2012-11-041-4/+4
|
* drop invalid checking when looking up section headers -- e_shentsize applies ↵v0.4Mike Frysinger2012-04-291-2/+1
| | | | to the section header struct itself, not the data region that it points to (sh_offset). further, we only care about the sections name here, not the stuff it points to. this fixes a bug where the last section in the ELF which happens to be smaller than e_shentsize cannot be looked up.
* drop EI_PAX setting when modifying pax flags #411919Mike Frysinger2012-04-281-51/+1
|
* make sure the maps we scan are aligned when needed (which often does not ↵Mike Frysinger2010-01-151-1/+15
| | | | happen when reading static library archives *.a)
* unify elf->{ehdr,data} storage with a unionMike Frysinger2010-01-151-2/+1
|
* touchup a few more ->data void points and castsMike Frysinger2010-01-151-7/+7
|
* add SHT decoding and tweak undefined strings to not use spacesMike Frysinger2009-12-011-5/+23
|
* cleanup the eabi checksMike Frysinger2009-12-011-23/+21
|
* constify all the elf pairsMike Frysinger2009-12-011-2/+2
|
* split st_type and st_bind lookup functionsMike Frysinger2009-12-011-3/+12
|
* use xzallocMike Frysinger2008-12-301-3/+2
|
* drop MAP_FAILED casts as its a void*Mike Frysinger2008-12-301-2/+2
|
* touchup whitespace styleMike Frysinger2008-12-301-4/+1
|
* drop pointless casts on mmap() returnMike Frysinger2008-12-301-2/+2
|
* - add OSABI/EABI support to scanelf --osabi/--eabi to scanelf. Update elf.hNed Ludd2008-06-171-1/+47
|
* - mainly whitespace updatesNed Ludd2008-01-171-3/+1
|
* residual xfunc changeover: dont check return value of xmalloc()Mike Frysinger2007-08-251-3/+1
|
* split xfuncs off into a sep file for all utils to use, cleanup misc things, ↵Mike Frysinger2007-08-201-5/+3
| | | | and add some more comments
* - add endian scanning supportNed Ludd2007-06-291-1/+10
|
* - update copyright headersNed Ludd2007-06-091-2/+2
|
* - update copyright headersNed Ludd2007-05-231-3/+3
|
* add support for displaying em_machine via %a format flagMike Frysinger2006-12-111-3/+15
|