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
add lunaix dynamic linker as submodule
[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 634ccd6bd4cbe52355c9d5340d98eba178cb77e7..33da3a5769614c2a781b789cbbda603c7284757f 100644
(file)
--- a/
lunaix-os/includes/lunaix/exebi/elf32.h
+++ b/
lunaix-os/includes/lunaix/exebi/elf32.h
@@
-11,6
+11,7
@@
typedef unsigned int elf32_wrd_t;
#define ET_NONE 0
#define ET_EXEC 2
#define ET_NONE 0
#define ET_EXEC 2
+#define ET_DYN 3
#define PT_LOAD 1
#define PT_INTERP 3
#define PT_LOAD 1
#define PT_INTERP 3
@@
-78,7
+79,10
@@
struct elf32
struct elf32 elf = { .elf_file = elf_vfile, .pheaders = (void*)0 }
int
struct elf32 elf = { .elf_file = elf_vfile, .pheaders = (void*)0 }
int
-elf32_check_exec(const struct elf32* elf);
+elf32_check_exec(const struct elf32* elf, int type);
+
+int
+elf32_check_arch(const struct elf32* elf);
int
elf32_open(struct elf32* elf, const char* path);
int
elf32_open(struct elf32* elf, const char* path);