aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2026-10-30Indent.Sunil Nimmagadda
2026-10-30Return the correct table from loadconfig.Sunil Nimmagadda
2026-10-30Update sample config with valid sections.Sunil Nimmagadda
2026-10-30section: Normalize and have stub name to index function.Sunil Nimmagadda
2026-10-30header: Set some correct defaults.Sunil Nimmagadda
2026-10-30Don't take a detour to reach constants.Sunil Nimmagadda
2026-10-30Untangle segment vs segments.Sunil Nimmagadda
Let the elf module handle just a single segment/section while the wrapper does the iteration.
2026-10-30Type check user config for tables.Sunil Nimmagadda
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-24Provide some hover documentation.Sunil Nimmagadda
2026-10-24Too much for a simple script.Sunil Nimmagadda
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-24Stay consistent.Sunil Nimmagadda
2026-10-24Prevent defining globals in config.Sunil Nimmagadda
2026-10-24Input is optional, reads from stdin if not specified.Sunil Nimmagadda
2026-10-24Program termination handles resource cleanup.Sunil Nimmagadda
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-24Multi return values instead of a table.Sunil Nimmagadda
2026-10-23Refactor: Move to an elf module.Sunil Nimmagadda
While here, define a elf.d.lua to help author type check configuration file.
2026-10-23Quick to match die to error semantics.Sunil Nimmagadda
2026-10-23Include a project specific LuaLS configurationSunil Nimmagadda
2026-10-22Mark it as to-be-closed instead of explicit close.Sunil Nimmagadda
2026-10-18Ignore default output file.Sunil Nimmagadda
2026-10-18Disable flyspell-mode in this project.Sunil Nimmagadda
2026-10-18Limit line length to 80Sunil Nimmagadda
2026-10-18Refactor for ease of test cases later.Sunil Nimmagadda
2026-10-18Mark it binary for non POSIX.Sunil Nimmagadda
2026-10-18Make these valid values for a 64 bit elf.Sunil Nimmagadda
2026-10-18Fix a few typo.Sunil Nimmagadda
2026-10-16Iterate and pack each program header entry.Sunil Nimmagadda
2026-10-16Leave the annotation name as is but rename variable for clarity.Sunil Nimmagadda
2026-10-16Program headers are generally a list.Sunil Nimmagadda
2026-10-16Make this local to main.Sunil Nimmagadda
2026-10-16Move code around.Sunil Nimmagadda
2026-10-16Remove object style pack and just call the function.Sunil Nimmagadda
2026-10-16Pack program header.Sunil Nimmagadda
2026-10-15Annotate these functions as well.Sunil Nimmagadda
2026-10-15Make it compact, just pack once.Sunil Nimmagadda
2026-10-15Refactor to a local function, to be reused.Sunil Nimmagadda
2026-10-15Match names to that of libelf.Sunil Nimmagadda
2026-10-13All caps for constants.Sunil Nimmagadda