Fixes to make libelf build in 32-bit. Tested on Debian 4.19.98-1+deb10u1. Addresses https://github.com/autc04/Retro68/issues/119.

This commit is contained in:
Andrew Mackie 2021-04-27 14:25:43 -04:00
parent 0bbb21ad98
commit 33b380d776
4 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@
#include "libelfP.h"
off_t
int64_t
elf_getaroff (Elf *elf)
{
/* Be gratious, the specs demand it. */

View File

@ -37,7 +37,7 @@
#include "libelfP.h"
off_t
int64_t
elf_getbase (Elf *elf)
{
return elf == NULL ? (off_t) -1 : elf->start_offset;

View File

@ -41,7 +41,7 @@
#include "common.h"
Elf_Data *
elf_getdata_rawchunk (Elf *elf, off_t offset, size_t size, Elf_Type type)
elf_getdata_rawchunk (Elf *elf, int64_t offset, size_t size, Elf_Type type)
{
if (unlikely (elf == NULL))
return NULL;

View File

@ -149,7 +149,7 @@ write_file (Elf *elf, off_t size, int change_bo, size_t shnum)
}
off_t
int64_t
elf_update (Elf *elf, Elf_Cmd cmd)
{
size_t shnum;