[PATCH] libelf: Remove unused __elf_xfctstof.

2019-02-24 Thread Mark Wielaard
__elf_xfctstof is only used in case the memory size and file size of ELF data structures are different. This is never the case. Signed-off-by: Mark Wielaard --- libelf/ChangeLog| 5 + libelf/gelf_xlate.c | 4 libelf/libelfP.h| 2 -- 3 files changed, 5 insertions(+), 6 deletions(

[PATCH] libelf: Remove unused internal __elf[32|64]_msize functions.

2019-02-24 Thread Mark Wielaard
Those functions were intended for ELF versions where the memory and file sizes of data structures are different. They were never used because libelf depends on the file and memory sizes being equal (otherwise using mmap wouldn't work). Signed-off-by: Mark Wielaard --- libelf/ChangeLog | 7 +

[PATCH] libelf: There is just one ELF version.

2019-02-24 Thread Mark Wielaard
Remove (partially defined out) code and data structures dealing with multiple ELF versions. There hasn't been a new ELF version in the last 20 years. Simplify the code a bit by just assuming there will only be one version (EV_CURRENT == 1). Simplifies elf_version, gets rid of __libelf_version_init

[PATCH] libdwf: Initialize notes early in intuit_kernel_bounds.

2019-02-24 Thread Mark Wielaard
We fake initialization of notes with an empty asm statement. But it is simpler and less confusing to just initialize notes just before the fopen. Signed-off-by: Mark Wielaard --- libdwfl/ChangeLog | 6 ++ libdwfl/linux-kernel-modules.c | 7 ++- 2 files changed, 8 insertions