summaryrefslogtreecommitdiff
path: root/src/elfops
AgeCommit message (Collapse)Author
2013-06-15Basic x86-64 support, not very usable in practicenorly
Turns out that x86-64 aligns LOAD segments to 0x200000 bytes. Given that the mapping starts at 0x400000, there is not much room to expand... so there will be a need to add additional LOAD headers.
2013-06-03Basic 32-bit SYMTAB and REL (not RELA) supportnorly
2013-06-03Simplify includesnorly
2013-05-30More rigorous sh_addr and sh_offset checkingnorly
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