summaryrefslogtreecommitdiffstats
path: root/src/shared/elf-util.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tree-wide: use ASSERT_PTR moreDavid Tardon2022-09-131-6/+3
|
* shared: Add more dlopen() testsDaan De Meyer2022-03-011-2/+2
| | | | | | Add dlopen_dw(), dlopen_elf() and dlopen_pcre2() to the dlopen test. To enable adding dlopen_pcre2(), we move pcre2-dlopen.h/c from src/journal to src/shared.
* elf-util: add missing assertionYu Watanabe2022-01-031-0/+2
|
* elf-util: reduce variable scopeYu Watanabe2022-01-031-3/+3
|
* elf-util: executable argument for parse_elf() may be NULLYu Watanabe2022-01-031-3/+5
| | | | Fixes assertion triggered by parse_package_metadata() and json_build().
* elf-util: reduce variable scope and indentationYu Watanabe2022-01-031-40/+42
|
* elf-util: reduce variable scope and indentationYu Watanabe2022-01-031-20/+22
|
* Merge pull request #21454 from bluca/inspect_elfZbigniew Jędrzejewski-Szmek2021-12-061-5/+136
|\ | | | | analyze: add inspect-elf verb to parse package metadata
| * elf-util: add function to parse metadata out of ELF objectsLuca Boccassi2021-12-011-5/+136
| | | | | | | | | | | | Parse the packaging metadata from an ELF object, if any, and print a pretty table following the spec defined at: https://systemd.io/COREDUMP_PACKAGE_METADATA/
* | elf-util: do not ignore prctl() errorsLuca Boccassi2021-12-011-2/+5
|/ | | | | | | We want to avoid loops, so fail and return if we can't disable core dumping CID#1467004
* elf-util: switch libelf/libdw to dlopen()Luca Boccassi2021-11-301-54/+176
| | | | | | In order to avoid inflating the dependency list for the core library, use dlopen when inspecting elfs, since it's only used in two non-core executables.
* elf-util: split out helper to parse build-idLuca Boccassi2021-11-301-27/+47
|
* coredump: move elf parsing utilities to src/shared/elf-utilLuca Boccassi2021-11-301-0/+535