Add chainloader (stage2) (need to edit more files)

This commit is contained in:
TuxSH
2018-05-07 01:02:23 +02:00
parent 2c07b5a2fb
commit 75dfcd07a9
4 changed files with 67 additions and 14 deletions

View File

@@ -0,0 +1,13 @@
#ifndef FUSEE_CHAINLOADER_H
#define FUSEE_CHAINLOADER_H
#include <stddef.h>
#include <stdint.h>
#define PAYLOAD_ARG_DATA_MAX_SIZE 0x1000
extern uint8_t g_payload_arg_data[PAYLOAD_ARG_DATA_MAX_SIZE];
void relocate_and_chainload(uintptr_t load_address, uintptr_t src_address, size_t size, int argc);
#endif