1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2025-02-10 15:36:37 -05:00

Add types for ELF relocation table

This commit is contained in:
Alex Kotov 2020-11-25 23:34:06 +05:00
parent 8e3260cbf1
commit d9aeead3b6
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -58,10 +58,18 @@ struct KernelMQ_ELF_SectionEntry {
}
__attribute__((packed));
struct KernelMQ_ELF_RelocationEntry {
unsigned long virt_addr : 32;
unsigned long info : 32;
}
__attribute__((packed));
typedef struct KernelMQ_ELF_ProgramEntry KernelMQ_ELF_ProgramTable[];
typedef struct KernelMQ_ELF_SectionEntry KernelMQ_ELF_SectionTable[];
typedef struct KernelMQ_ELF_RelocationEntry KernelMQ_ELF_RelocationTable[];
inline static unsigned char KernelMQ_ELF_Header_is_valid(
const struct KernelMQ_ELF_Header *header
);