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"
|
#include "libelfP.h"
|
||||||
|
|
||||||
|
|
||||||
off_t
|
int64_t
|
||||||
elf_getaroff (Elf *elf)
|
elf_getaroff (Elf *elf)
|
||||||
{
|
{
|
||||||
/* Be gratious, the specs demand it. */
|
/* Be gratious, the specs demand it. */
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#include "libelfP.h"
|
#include "libelfP.h"
|
||||||
|
|
||||||
|
|
||||||
off_t
|
int64_t
|
||||||
elf_getbase (Elf *elf)
|
elf_getbase (Elf *elf)
|
||||||
{
|
{
|
||||||
return elf == NULL ? (off_t) -1 : elf->start_offset;
|
return elf == NULL ? (off_t) -1 : elf->start_offset;
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
Elf_Data *
|
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))
|
if (unlikely (elf == NULL))
|
||||||
return 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)
|
elf_update (Elf *elf, Elf_Cmd cmd)
|
||||||
{
|
{
|
||||||
size_t shnum;
|
size_t shnum;
|
||||||
|
|
Loading…
Reference in New Issue