git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: one more step towards arch-agnostic design
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
exebi
/
elf32.h
diff --git
a/lunaix-os/includes/lunaix/exebi/elf32.h
b/lunaix-os/includes/lunaix/exebi/elf32.h
index d9f4f58308201141612decf0586bc929d9ad4225..634ccd6bd4cbe52355c9d5340d98eba178cb77e7 100644
(file)
--- a/
lunaix-os/includes/lunaix/exebi/elf32.h
+++ b/
lunaix-os/includes/lunaix/exebi/elf32.h
@@
-69,7
+69,7
@@
struct elf32_phdr
struct elf32
{
struct elf32
{
- void* elf_file;
+
const
void* elf_file;
struct elf32_ehdr eheader;
struct elf32_phdr* pheaders;
};
struct elf32_ehdr eheader;
struct elf32_phdr* pheaders;
};
@@
-77,11
+77,14
@@
struct elf32
#define declare_elf32(elf, elf_vfile) \
struct elf32 elf = { .elf_file = elf_vfile, .pheaders = (void*)0 }
#define declare_elf32(elf, elf_vfile) \
struct elf32 elf = { .elf_file = elf_vfile, .pheaders = (void*)0 }
+int
+elf32_check_exec(const struct elf32* elf);
+
int
elf32_open(struct elf32* elf, const char* path);
int
int
elf32_open(struct elf32* elf, const char* path);
int
-elf32_openat(struct elf32* elf, void* elf_vfile);
+elf32_openat(struct elf32* elf,
const
void* elf_vfile);
int
elf32_static_linked(const struct elf32* elf);
int
elf32_static_linked(const struct elf32* elf);