You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am modifying ELF files and as part of that process I want to delete existing segments / sections. There does not seem to be any method to do this. What do you recommend?
While both the sections and the segments seem to just vectors, I am never quite sure of how the data-structures might depend on one another, so I wasn't sure that just deleting from the vectors would do it cleanly. Further, these vectors are private within class elfio, so I would have to hack the class.
I suppose I could make a new ELF and copy the parts of the old one that I want. If I do so, is there a straightforward way to clone all of the relevant headers of various kinds without missing any?
It would make a great example to show cloning an ELF and then checking a predicate for each section and segment to know whether a given section/segment should be copied to the new ELF.
The text was updated successfully, but these errors were encountered:
I am modifying ELF files and as part of that process I want to delete existing segments / sections. There does not seem to be any method to do this. What do you recommend?
While both the sections and the segments seem to just vectors, I am never quite sure of how the data-structures might depend on one another, so I wasn't sure that just deleting from the vectors would do it cleanly. Further, these vectors are private within class elfio, so I would have to hack the class.
I suppose I could make a new ELF and copy the parts of the old one that I want. If I do so, is there a straightforward way to clone all of the relevant headers of various kinds without missing any?
It would make a great example to show cloning an ELF and then checking a predicate for each section and segment to know whether a given section/segment should be copied to the new ELF.
The text was updated successfully, but these errors were encountered: