diff options
| author | Mark Wielaard <[email protected]> | 2020-06-09 18:21:36 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2020-06-09 18:21:36 +0200 |
| commit | c0d643e7d91fc002c9fecd83277c62a0e56ef76f (patch) | |
| tree | 89b5cf6673baa2cb206fdf245f4e30fe884945ad /libdwelf/libdwelf.h | |
| parent | 14030673602a4f331f348decd51e5f0160719f0e (diff) | |
| parent | 5643e037cb7a38ed5d52f50421be706ea8014e3d (diff) | |
Merge tag 'elfutils-0.177' into mjw/RH-DTSdts-0.177
elfutils 0.177 release
Conflicts:
libebl/eblopenbackend.c Removed try_dlopen and csky.
tests/run-strip-reloc.sh Removed csky tests.
Diffstat (limited to 'libdwelf/libdwelf.h')
| -rw-r--r-- | libdwelf/libdwelf.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libdwelf/libdwelf.h b/libdwelf/libdwelf.h index 6d491847..dbb8f08c 100644 --- a/libdwelf/libdwelf.h +++ b/libdwelf/libdwelf.h @@ -128,11 +128,18 @@ extern void dwelf_strtab_free (Dwelf_Strtab *st) /* Creates a read-only Elf handle from the given file handle. The file may be compressed and/or contain a linux kernel image header, in which case it is eagerly decompressed in full and the Elf handle - is created as if created with elf_memory (). On error NULL is - returned. The Elf handle should be closed with elf_end (). The - file handle will not be closed. Does not return ELF_K_NONE handles. */ + is created as if created with elf_memory (). On decompression or + file errors NULL is returned (and elf_errno will be set). If there + was no error, but the file is not an ELF file, then an ELF_K_NONE + Elf handle is returned (just like with elf_begin). The Elf handle + should be closed with elf_end (). The file handle will not be + closed. */ extern Elf *dwelf_elf_begin (int fd); +/* Returns a human readable string for the given ELF header e_machine + value, or NULL if the given number isn't currently known. */ +extern const char *dwelf_elf_e_machine_string (int machine); + #ifdef __cplusplus } #endif |
