summaryrefslogtreecommitdiff
path: root/mkelf.lua
AgeCommit message (Collapse)Author
26 hoursSegments: normalize and validate.Sunil Nimmagadda
While here mark mandatory and optional fields.
28 hoursToo much for a simple script.Sunil Nimmagadda
29 hoursRefactor 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.
30 hoursPrevent defining globals in config.Sunil Nimmagadda
30 hoursInput is optional, reads from stdin if not specified.Sunil Nimmagadda
30 hoursProgram termination handles resource cleanup.Sunil Nimmagadda
31 hoursSprinkle some todo markers.Sunil Nimmagadda
31 hoursAttach the respective metatables to loaded the config.Sunil Nimmagadda
This simplifies calling pack() on respective tables.
33 hoursMulti return values instead of a table.Sunil Nimmagadda
44 hoursRefactor: Move to an elf module.Sunil Nimmagadda
While here, define a elf.d.lua to help author type check configuration file.
3 daysMark it as to-be-closed instead of explicit close.Sunil Nimmagadda
7 daysRefactor for ease of test cases later.Sunil Nimmagadda
7 daysMark it binary for non POSIX.Sunil Nimmagadda
7 daysMake these valid values for a 64 bit elf.Sunil Nimmagadda
7 daysFix a few typo.Sunil Nimmagadda
9 daysIterate and pack each program header entry.Sunil Nimmagadda
9 daysLeave the annotation name as is but rename variable for clarity.Sunil Nimmagadda
9 daysProgram headers are generally a list.Sunil Nimmagadda
9 daysMake this local to main.Sunil Nimmagadda
9 daysMove code around.Sunil Nimmagadda
9 daysRemove object style pack and just call the function.Sunil Nimmagadda
9 daysPack program header.Sunil Nimmagadda
10 daysAnnotate these functions as well.Sunil Nimmagadda
10 daysMake it compact, just pack once.Sunil Nimmagadda
10 daysRefactor to a local function, to be reused.Sunil Nimmagadda
10 daysMatch names to that of libelf.Sunil Nimmagadda
12 daysAll caps for constants.Sunil Nimmagadda
12 daysPopulate some Machine constants.Sunil Nimmagadda
13 daysExtract into ElfHeader_pack function.Sunil Nimmagadda
2026-10-09Fixup rest of the ElfHeader fields.Sunil Nimmagadda
2026-10-09Sprinkle some annotations.Sunil Nimmagadda
Let's define an ElfHeader type.
2026-10-09Let's begin.Sunil Nimmagadda