summaryrefslogtreecommitdiff
path: root/include/libelfu/generic.h
AgeCommit message (Collapse)Author
2013-06-28Annotate doxygen-styledoxygennorly
2013-06-27Relax restrictions on NOBITS sectionsnorly
2013-06-24PHDR addition. Should make x86-64 work in many cases.norly
2013-06-03Simplify includesnorly
2013-05-30Redesign data structures, make basic reladd work.newparsernorly
The memory ELF model is now a tree structure: ELF +--> PHDRs +--> PHDR +--> Section | | +--> Section | | ... | | \--> Section | | | +--> PHDR +--> Section | | ... | ... | \--> Orphaned sections +--> Section ... \--> Section This effectively introduces semantics into the binary blob we are editing, and allows us to re-layout its contents much more easily while keeping as close as possible to what is assumed to be the original semantics. As a side-effect, a first meta-function had to be introduced (elfu_mScnForall) in order to traverse all leaves of the tree. Much old code has been removed given the leaner environment available now, and automated insertion of .text and .data sections from object files into executables now works. However nothing else is inserted (such as string tables or .bss) and no relocation takes place yet.
2013-05-27Turn elfu_gPhdrContainsScn into a macronorly
2013-05-27Turn elfu_gScnSizeFile into a macronorly
2013-05-27Validate input at libelf levelnorly
This way we can just assume that stuff works later on and keep the code clean and simple. It especially establishes that the file has a sane format and is thus understandable and editable.
2013-05-24Move section-in-segment.c to generic/norly
2013-05-24Use explicit libelf/* path in includesnorly
2013-02-23Clean up ELF-related files and functionsnorly