diff options
| author | Mark Wielaard <[email protected]> | 2018-10-21 23:41:32 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2018-11-09 18:11:48 +0100 |
| commit | ecbe3120cddb1b9597a19a68c4265e4f2c530444 (patch) | |
| tree | 40f6549cda3aa5bff3df983f15ac88d0da597b72 /libdwelf/ChangeLog | |
| parent | 4b0342b85b5b1a3d3636e06e3b5320954828dfb1 (diff) | |
libdwelf: New function dwelf_elf_begin.
This introduces a new function dwelf_elf_begin which creates a (read-only)
ELF handle from a possibly compressed file handle or a file that start
with a linux kernel header. This can be used in eu-readelf to (re)open a
(pure) ELF.
eu-readelf uses libdwfl to relocate addresses in the original file in
case it is ET_REL. But to show the "raw" data it might need to (re)open
the file. Which could fail if the file was compressed. And produced an
obscure error message: "cannot create EBL handle".
This rewrites __libdw_open_file a little so that the given file handle
will never be closed (whether on success or failure) and introduces a
new internal function __libdw_open_elf that dwelf_elf_begin wraps.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libdwelf/ChangeLog')
| -rw-r--r-- | libdwelf/ChangeLog | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libdwelf/ChangeLog b/libdwelf/ChangeLog index ba921347..88be3421 100644 --- a/libdwelf/ChangeLog +++ b/libdwelf/ChangeLog @@ -1,9 +1,15 @@ +2018-10-21 Mark Wielaard <[email protected]> + + * libdwelf.h (dwelf_elf_begin): Add function declaration. + * dwelf_elf_begin.c: New file. + * Makefile.am (libdwelf_a_SOURCES): Add dwelf_elf_begin.c. + 2018-10-18 Mark Wielaard <[email protected]> * dwelf_elf_gnu_build_id.c (find_elf_build_id): Check p_align to set ELF type. -2015-10-11 Akihiko Odaki <[email protected]> +2016-10-11 Akihiko Odaki <[email protected]> * dwelf_strtab.c: Remove sys/param.h include. (MIN): Remove definition. |
