mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
This commit cleans and modernizes the code base of LIEF.
Among the changes: - It removes the ``and, or, not`` keywords - It updates the Documentation - It moves the internal structures in the ``details::`` namespace
This commit is contained in:
@@ -36,19 +36,24 @@ using setter_t = void (RelocationObject::*)(T);
|
||||
template<>
|
||||
void create<RelocationObject>(py::module& m) {
|
||||
|
||||
py::class_<RelocationObject, Relocation>(m, "RelocationObject")
|
||||
py::class_<RelocationObject, Relocation>(m, "RelocationObject",
|
||||
R"delim(
|
||||
Class that represents a relocation presents in the MachO object
|
||||
file (``.o``). Usually, this kind of relocation is found in the :class:`lief.MachO.Section`.
|
||||
)delim")
|
||||
|
||||
.def_property("value",
|
||||
static_cast<getter_t<int32_t>>(&RelocationObject::value),
|
||||
static_cast<setter_t<int32_t>>(&RelocationObject::value),
|
||||
"For **scattered** relocations, the address of the relocatable expression "
|
||||
"for the item in the file that needs to be updated if the address is changed.\n\n"
|
||||
R"delim(
|
||||
For **scattered** relocations, the address of the relocatable expression
|
||||
for the item in the file that needs to be updated if the address is changed.
|
||||
|
||||
"For relocatable expressions with the difference of two section addresses, "
|
||||
"the address from which to subtract (in mathematical terms, the minuend) "
|
||||
"is contained in the first relocation entry and the address to subtract (the subtrahend) "
|
||||
"is contained in the second relocation entry.",
|
||||
py::return_value_policy::reference_internal)
|
||||
For relocatable expressions with the difference of two section addresses,
|
||||
the address from which to subtract (in mathematical terms, the minuend)
|
||||
is contained in the first relocation entry and the address to subtract (the subtrahend)
|
||||
is contained in the second relocation entry.",
|
||||
)delim")
|
||||
|
||||
|
||||
.def_property_readonly("is_scattered",
|
||||
|
||||
Reference in New Issue
Block a user