aboutsummaryrefslogtreecommitdiff
path: root/include/apos/elf.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-05-29 11:23:29 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-05-29 11:23:29 +0300
commite148f38dc937c34b222ba8df8612b3fa2b6bc349 (patch)
treec51f045c6632b2073cb0e3183bd9d3b559ccd228 /include/apos/elf.h
parent360c18fcbe228220e5c9799fb30b2032982c06cf (diff)
downloadkmi-e148f38dc937c34b222ba8df8612b3fa2b6bc349.tar.gz
kmi-e148f38dc937c34b222ba8df8612b3fa2b6bc349.zip
modify formatting rules
Diffstat (limited to 'include/apos/elf.h')
-rw-r--r--include/apos/elf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/apos/elf.h b/include/apos/elf.h
index 1e9a4aa..e6936a3 100644
--- a/include/apos/elf.h
+++ b/include/apos/elf.h
@@ -187,11 +187,11 @@ struct __packed section64_header {
#define section64_header(s) ((struct section64_header *)s)
#define section32_header(s) ((struct section32_header *)s)
-#define elf_header_prop(c, e, p) \
+#define elf_header_prop(c, e, p) \
(c == ELFCLASS64 ? elf64_header(e)->p : elf32_header(e)->p)
-#define program_header_prop(c, e, p) \
+#define program_header_prop(c, e, p) \
(c == ELFCLASS64 ? program64_header(e)->p : program32_header(e)->p)
-#define section_header_prop(c, e, p) \
+#define section_header_prop(c, e, p) \
(c == ELFCLASS64 ? section64_header(e)->p : section32_header(e)->p)
vm_t load_elf(struct tcb *t, vm_t binary, vm_t interp);