Merge pull request #134 from mackiea/32bit_fixes

32-bit build fixes
This commit is contained in:
Wolfgang Thaller 2021-09-19 17:58:53 +02:00 committed by GitHub
commit b3c840a3c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;