2022-05-07 20:42:31 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* Copyright (C) 2022 Maschell
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
****************************************************************************/
|
|
|
|
|
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-05-07 20:42:31 +02:00
|
|
|
// clang-format off
|
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 {
|
2022-05-07 20:42:31 +02:00
|
|
|
uint32_t id;
|
|
|
|
uint32_t trampoline[4];
|
|
|
|
RelocationTrampolineStatus status;
|
2022-01-27 12:21:55 +01:00
|
|
|
} relocation_trampoline_entry_t;
|
2022-05-07 20:42:31 +02:00
|
|
|
// clang-format on
|