#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <types.h>
#include <elf.h>
Go to the source code of this file.
◆ ELF_GEN_FIELD_GET_SET
| #define ELF_GEN_FIELD_GET_SET |
( |
|
__s, |
|
|
|
__field, |
|
|
|
__type |
|
) |
| |
Value: static inline __type elf_##__s##_get_##__field(
u8 class,
const void *arg) { \
return (__type) ((const struct elf32_##__s *) arg)->__field; \
else \
return (__type) ((const struct elf64_##__s *) arg)->__field; \
} \
static inline void elf_##__s##_set_##__field(
u8 class,
void *arg, __type
value) { \
((
struct elf32_##__s *) arg)->__field = (__type)
value; \
else \
((
struct elf64_##__s *) arg)->__field = (__type)
value; \
}
#define ELFCLASS32
Definition elf.h:349
static uint8_t value
Definition io.h:144
unsigned char u8
Definition types.h:33
◆ ELF_STRUCT_SIZE
| #define ELF_STRUCT_SIZE |
( |
|
__s | ) |
|
Value: static inline unsigned long elf_size_of_##__s(
u8 class) { \
return sizeof(struct elf32_##__s); \
else \
return sizeof(struct elf64_##__s); \
}
◆ elf_hdr_init_ident()
| static void elf_hdr_init_ident |
( |
struct elf32_hdr * |
hdr, |
|
|
u8 |
class |
|
) |
| |
|
inlinestatic |
◆ fw_elf_get_class()
| static u8 fw_elf_get_class |
( |
u32 |
elf_fw_addr | ) |
|
|
inlinestatic |