* lib: Add support for loading PE images * lib/pe: Use standard integer types * lib/pe: Fix section alignment * lib/pe: Properly iterate base relocation blocks * lib/pe: Add missing machine types * protos/limine: Add kernel format detection logic * lib/pe: Fix integer to pointer conversion errors * lib/elf: Add previously removed check * lib/pe: Fix base relocation block iteration code * lib/pe: Add missing machine types to pe_bits
13 lines
420 B
C
13 lines
420 B
C
#ifndef LIB__PE_H__
|
|
#define LIB__PE_H__
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <lib/misc.h>
|
|
|
|
int pe_bits(uint8_t *image);
|
|
|
|
bool pe64_load(uint8_t *image, uint64_t *entry_point, uint64_t *_slide, uint32_t alloc_type, bool kaslr, struct mem_range **ranges, uint64_t *ranges_count, uint64_t *physical_base, uint64_t *virtual_base, uint64_t *image_size, uint64_t *image_size_before_bss, bool *is_reloc);
|
|
|
|
#endif
|