Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / arch / arm-raspi / boot / include / elf.h
blob4ad4e1be6174e0f7bbd441d3c332a4b0ab77d5ba
1 /*
2 Copyright © 2013, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef ELF_H_
7 #define ELF_H_
9 #include <inttypes.h>
11 struct bss_tracker {
12 void *addr;
13 unsigned int length;
16 extern struct bss_tracker tracker[];
18 int getElfSize(void *elf_file, uint32_t *size_rw, uint32_t *size_ro);
19 void initAllocator(uintptr_t addr_ro, uintptr_t addr_rw, uintptr_t virtoffset);
20 int loadElf(void *elf_file);
22 #define ELF32_R_SYM(val) ((val) >> 8)
23 #define ELF32_R_TYPE(val) ((val) & 0xff)
24 #define ELF32_R_INFO(sym, type) (((sym) << 8) + ((type) & 0xff))
26 #endif /* ELF_H_ */