mirror of
https://github.com/serge1/ELFIO.git
synced 2025-01-14 03:41:22 +00:00
Updated How to modify section data (markdown)
parent
de3b32ebf0
commit
1802b3b7fc
@ -3,6 +3,6 @@ The primarily design of the library is to use 'elfio' object as a read-only read
|
||||
Saying this, there are couple of ways to alternate the section data.
|
||||
One of the ways is demonstrated in 'anonymizer' example. An external file is modified on base of the parsed information.
|
||||
|
||||
The second way is just alternating raw memory pointed by section->get_data(). An example of this can be found in generic_set_entry_rel() function in elfio_relocation.hpp file.
|
||||
The second way is just altering raw memory pointed by section->get_data(). An example of this can be found in generic_set_entry_rel() function in elfio_relocation.hpp file.
|
||||
|
||||
Please be warned: read/modify/write scenario may or may not work - there are too many cross references inside the format and it is easy to damage them. This will lead to incorrect object/executable file
|
||||
|
Loading…
Reference in New Issue
Block a user