summaryrefslogtreecommitdiff
path: root/src/elfops
AgeCommit message (Collapse)Author
2013-05-27Abstract model more - break 'make check'norly
Sections are now sorted by file offset and sh_link dependencies between them as well as PHDR-SHDR dependencies are deduced as much as possible. The downside is that while the output should still work just fine, 'make check' fails to establish binary equivalence of input and output if the section table is reordered. Thankfully, in normal GCC binaries it is already ordered so we don't have to worry about this. Unfortunately the ELF spec is very lax in this regard so we have to draw a line ourselves.
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-24Cleaner error handling with ELFU_WARN and ELFU_WARNELFnorly
2013-05-24Use explicit libelf/* path in includesnorly
2013-02-23Clean up ELF-related files and functionsnorly
2013-02-23Merge {first,last}-section-in-segment.cnorly
2013-02-23Move ELF-related files togethernorly