SLOF/lib/libelf
Alexey Kardashevskiy 26d8ba1703 elf: Compile with -Wextra
-Wextra enables a bunch of rather useful checks which this fixes.

This changes the return value for the case when no ELF headers were found
to avoid (ugly-ish) cast of -1 to unsigned.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
---
Changes:
v2:
* cast the return value to (int)
* added missing (long)
2021-02-12 13:41:47 +11:00
..
Makefile Got rid of the ELF loader functions written in Forth, using libelf instead. 2011-10-12 08:44:23 +02:00
elf.c elf: Compile with -Wextra 2021-02-12 13:41:47 +11:00
elf32.c elf: Compile with -Wextra 2021-02-12 13:41:47 +11:00
elf64.c elf: Compile with -Wextra 2021-02-12 13:41:47 +11:00
elf_claim.c Got rid of the ELF loader functions written in Forth, using libelf instead. 2011-10-12 08:44:23 +02:00
libelf.code Reworked libelf to support relocation 2011-10-12 08:43:50 +02:00
libelf.in Reworked libelf to support relocation 2011-10-12 08:43:50 +02:00