Commit Graph

5 Commits

Author SHA1 Message Date
Bartosz Taudul
7974a74580 Add external_file support to libbacktrace
- Add external_file field to backtrace_state struct
- Add backtrace_create_state_for_file() function that marks
  state for external ELF files not loaded in current process
- In backtrace_initialize, use external_file flag to:
  - Pass exe=0 to elf_add for ET_DYN files (allows DWARF loading)
  - Skip dl_iterate_phdr enumeration (avoids noise from current process)

This enables symbol resolution from arbitrary ELF files on disk,
with caller responsible for address translation.
2026-03-30 19:52:12 +02:00
Bartosz Taudul
e26c34346b libbacktrace: support FDPIC (1dd5c40) 2024-08-24 18:15:52 +02:00
trodrigues
b835d73590 Add support for libbacktrace to detect new elfs have been dynamically loaded after backtrace_initialize() has been called, and consider them for symbol resolution 2023-12-05 20:09:11 -06:00
Bartosz Taudul
08d403e324 libbacktrace: support zstd decompression (c992dd8) 2023-01-05 20:27:36 +01:00
Bartosz Taudul
06c7984a16 Move all client headers and sources to public/ directory. 2022-07-17 15:47:38 +02:00