Rizin
unix-like reverse engineering framework and cli tools
core_private_base.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2021 ret2libc <sirmy15@gmail.com>
2
// SPDX-License-Identifier: LGPL-3.0-only
3
4
#ifndef RZ_CORE_PRIVATE_BASE_H
5
#define RZ_CORE_PRIVATE_BASE_H
6
7
#define RZ_CORE_BASE_ADDRESS_ALIGN 0x0000000000010000ull
8
#define RZ_CORE_BASE_ADDRESS_DEFAULT 0x0000000008000000ull
9
#define RZ_CORE_BASE_ADDRESS_DEX 0x0000000000200000ull
10
11
#define rz_core_align_base_address(x) \
12
do { \
13
if ((x) & (RZ_CORE_BASE_ADDRESS_ALIGN - 1)) { \
14
(x) += RZ_CORE_BASE_ADDRESS_ALIGN; \
15
(x) &= ~(RZ_CORE_BASE_ADDRESS_ALIGN - 1); \
16
} \
17
} while (0)
18
19
#endif
/* RZ_CORE_PRIVATE_BASE_H */
librz
core
core_private_base.h
Generated by
1.9.1