mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-27 07:31:35 +00:00
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:
parent
0bbb21ad98
commit
33b380d776
@ -38,7 +38,7 @@
|
||||
#include "libelfP.h"
|
||||
|
||||
|
||||
off_t
|
||||
int64_t
|
||||
elf_getaroff (Elf *elf)
|
||||
{
|
||||
/* Be gratious, the specs demand it. */
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include "libelfP.h"
|
||||
|
||||
|
||||
off_t
|
||||
int64_t
|
||||
elf_getbase (Elf *elf)
|
||||
{
|
||||
return elf == NULL ? (off_t) -1 : elf->start_offset;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user