aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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-17/+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-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* *: IWYU fixesSam James2023-01-281-0/+17
| | | | | | | 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>
* paxldso: fix pointer styleMike Frysinger2021-04-161-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* paxldso: add support for "new" glibc cache formatMike Frysinger2021-04-161-56/+179
| | | | | | | | | | | | | Glibc has supported a "new" cache format for a while now (almost 20 years), but since it generated both, we didn't bother to implement it, only relying on the old cache format. With glibc-2.32+ though, it now only outputs the new format. Rework the code so we support the old, new, and compat cache formats (where the new format is appended to the old one). Bug: https://bugs.gentoo.org/739014 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* build: support debugging/testing object internalsMike Frysinger2021-04-161-0/+18
| | | | | | | | | Add a hack so we can build individual objects as standalone programs. This way we can more easily poke internal static funcs to aid in the overall debugging/development process. Bug: https://bugs.gentoo.org/739014 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* scanelg: add --ldcache=<arg> option to ease testingSergei Trofimovich2020-10-031-1/+3
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* paxldso: constify elf structsMike Frysinger2018-06-071-2/+2
|
* paxldso: always expose ldpaths arrayMike Frysinger2016-11-141-2/+2
| | | | | | | This fixes building when ldso config logic is unavailable since consumers (like scanelf) always attempt to walk the array. Changing the code to be an empty array by default so it won't suck up too much space when support isn't available.
* paxldso: fix building when ldso support is disabledMike Frysinger2016-11-141-0/+2
|
* paxldso: properly decode the flags bits in the cachev1.1.7Mike Frysinger2016-11-121-34/+114
| | | | | This fixes handling of multiple ABIs for a single arch like x86/x86_64/x32 or mips o32/n32/n64. It also fixes decoding of arm float libs.
* paxldso: clean up local vars & types a bitMike Frysinger2016-11-121-11/+13
| | | | | | | | Use the same types (unsigned-vs-signed) as glibc's cache code, and move relevant variables down into the scope where they're used rather than putting all of them in the top func scope. Should be no real functional changes here.
* paxldso: switch from a static sized path buffer to dynamicMike Frysinger2016-11-121-3/+21
| | | | | | We keep the buffer around to avoid the malloc overhead between calls, and we should really only need to grow it once or twice. This way we work with an sized lib path and not just the static limit.
* paxldso: delete netbsd cache logicMike Frysinger2016-11-121-28/+0
| | | | | | This doesn't actually parse the cache file, it walks the registered ld.so.conf paths. Since common code takes care of that via with the --use-ldpaths option, delete the duplicate ldpath logic.
* split out ld.so.cache & ld.so.conf parsing logicMike Frysinger2016-11-121-0/+297
These are getting a bit big & unwieldy for keeping inlined in scanelf. Split them out to a dedicated file instead.