2024-01-28 15:16:11 +00:00
|
|
|
/* SPDX-FileCopyrightText: © 2022-2024 Decompollaborate */
|
2022-09-13 17:05:42 +00:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
|
|
|
|
#ifndef RABBITIZER_LO_PAIRING_INFO_H
|
|
|
|
#define RABBITIZER_LO_PAIRING_INFO_H
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#include "common/Utils.h"
|
|
|
|
|
2022-10-04 11:31:02 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2022-09-13 17:05:42 +00:00
|
|
|
|
|
|
|
typedef struct RabbitizerLoPairingInfo {
|
|
|
|
int instrOffset;
|
2022-09-16 17:51:05 +00:00
|
|
|
int64_t value; // could be either an unsigned 32 bits number or a signed one, so use 64 bits to ensure it fits
|
2022-09-13 20:04:06 +00:00
|
|
|
bool shouldProcess;
|
2022-09-13 17:05:42 +00:00
|
|
|
bool isGpRel;
|
2022-09-13 20:04:06 +00:00
|
|
|
bool isGpGot;
|
2022-09-13 17:05:42 +00:00
|
|
|
} RabbitizerLoPairingInfo;
|
|
|
|
|
|
|
|
|
|
|
|
NON_NULL(1)
|
|
|
|
void RabbitizerLoPairingInfo_Init(RabbitizerLoPairingInfo *self);
|
|
|
|
|
|
|
|
|
2022-10-04 11:31:02 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2022-09-13 17:05:42 +00:00
|
|
|
#endif
|