2020-06-06 16:46:11 +02:00
|
|
|
#pragma once
|
2021-09-23 22:40:10 +02:00
|
|
|
|
2020-06-06 16:46:11 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2022-02-04 22:24:22 +01:00
|
|
|
typedef enum RelocationTrampolineStatus {
|
|
|
|
RELOC_TRAMP_FREE = 0,
|
|
|
|
RELOC_TRAMP_FIXED = 1,
|
|
|
|
RELOC_TRAMP_IMPORT_IN_PROGRESS = 2,
|
|
|
|
RELOC_TRAMP_IMPORT_DONE = 3,
|
2022-01-27 12:21:55 +01:00
|
|
|
} RelocationTrampolineStatus;
|
2020-06-06 16:46:11 +02:00
|
|
|
|
2022-02-04 22:24:22 +01:00
|
|
|
typedef enum RelocationType {
|
|
|
|
RELOC_TYPE_FIXED = 0,
|
|
|
|
RELOC_TYPE_IMPORT = 1
|
2020-06-06 16:46:11 +02:00
|
|
|
} RelocationType;
|
|
|
|
|
2022-01-27 12:21:55 +01:00
|
|
|
typedef struct relocation_trampoline_entry_t {
|
2020-06-06 16:46:11 +02:00
|
|
|
uint32_t id;
|
2022-01-27 12:21:55 +01:00
|
|
|
uint32_t trampoline[4];
|
|
|
|
RelocationTrampolineStatus status;
|
|
|
|
} relocation_trampoline_entry_t;
|