aboutsummaryrefslogtreecommitdiff
path: root/elf
AgeCommit message (Collapse)Author
2026-10-29Start packing sections.Sunil Nimmagadda
2026-10-29Define some section related enums.Sunil Nimmagadda
2026-10-29Move type checks to normalize.Sunil Nimmagadda
Let validate() check for valid values.
2026-10-27Move error checks here.Sunil Nimmagadda
We already check for these missing fields with a nice source line highlighting in config with error(). Better than assert().
2026-10-27Make sure segment fields are all present.Sunil Nimmagadda
2026-10-27Make sure all fields are accounted.Sunil Nimmagadda
By the time normalize() finishes there shouldn't be a need to check for individual fields defined or not.
2026-10-25assert for valid values.Sunil Nimmagadda
Validate already checks it in respective modules, just in case anyone uses it as a standalone function not via elf module.
2026-10-24header: set ehsize to valid value at normalize.Sunil Nimmagadda
2026-10-24Segments: normalize and validate.Sunil Nimmagadda
While here mark mandatory and optional fields.
2026-10-24Refactor header configuration handling.Sunil Nimmagadda
- Mark optional fields and normalize them on load. - Validate (work in progress) required fields and their values. - Make sure that errors point to useful location in the config file.
2026-10-24Sprinkle some todo markers.Sunil Nimmagadda
2026-10-24Attach the respective metatables to loaded the config.Sunil Nimmagadda
This simplifies calling pack() on respective tables.
2026-10-23Refactor: Move to an elf module.Sunil Nimmagadda
While here, define a elf.d.lua to help author type check configuration file.