diff --git a/libelf/src/elf_getaroff.c b/libelf/src/elf_getaroff.c index 5b59203ff9..5c102ad6d3 100644 --- a/libelf/src/elf_getaroff.c +++ b/libelf/src/elf_getaroff.c @@ -38,7 +38,7 @@ #include "libelfP.h" -off_t +int64_t elf_getaroff (Elf *elf) { /* Be gratious, the specs demand it. */ diff --git a/libelf/src/elf_getbase.c b/libelf/src/elf_getbase.c index 8ec5f87e02..d575800275 100644 --- a/libelf/src/elf_getbase.c +++ b/libelf/src/elf_getbase.c @@ -37,7 +37,7 @@ #include "libelfP.h" -off_t +int64_t elf_getbase (Elf *elf) { return elf == NULL ? (off_t) -1 : elf->start_offset; diff --git a/libelf/src/elf_getdata_rawchunk.c b/libelf/src/elf_getdata_rawchunk.c index 31b2fe7d23..a2015430ee 100644 --- a/libelf/src/elf_getdata_rawchunk.c +++ b/libelf/src/elf_getdata_rawchunk.c @@ -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; diff --git a/libelf/src/elf_update.c b/libelf/src/elf_update.c index 063acb54d3..89ee0a0f63 100644 --- a/libelf/src/elf_update.c +++ b/libelf/src/elf_update.c @@ -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;