aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* move from const generic to iterator approachJohannes Stoelp2023-01-301-155/+276
| | | | | | | | | This implies that we parse the phdr every time when we iterator over them however it also gives the flexibility of not providing an upper bound of supported load segments during compile time. Trading flexibility vs potential repetitive work is totally fine as in use cases this crate is used, the phdrs are usually iterated once or twice.
* remove read_u8 and derive FromEndian for u8Johannes Stoelp2022-05-221-11/+3
|
* add explicit lifetime annotation to allow borrowing bytes from LoadSegment ↵Johannes Stoelp2022-04-301-3/+3
| | | | after Elf went out of scope
* add TypeConversion error and contains method on LoadSegment to check if addr ↵Johannes Stoelp2022-04-301-9/+23
| | | | is contained in segment
* minor cleanupJohannes Stoelp2022-04-291-14/+14
|
* lint: replace explicit lifetime with elided onJohannes Stoelp2022-04-291-1/+1
|
* make crate no_std compatibleJohannes Stoelp2022-04-291-19/+48
|
* check mul/add when indexing into phdrJohannes Stoelp2022-04-281-1/+2
|
* fix macro nameJohannes Stoelp2022-04-281-4/+4
|
* initial commit of elfloadJohannes Stoelp2022-04-271-0/+299