9:00:54beachIt is probably overkill to use the Common Lisp library ELF to generate the SICL executable.
9:01:30beachThe executable will have a single segment, and most of the tables in the ELF file are optional for executable files.
9:02:57beachThe file will consist of the ELF header, followed by the program header (with a single entry), followed by the contents of the heap.
9:04:33beachI noticed that the linker loads the entire file, including the headers, etc, and skips those by setting the program entry point to be right after the headers.
9:05:50beachMost of the fields in the file will always be the same. Only the size of the loadable segment will vary.
9:17:34beachNext, I'll try to write a Common Lisp program that generates an ELF file that does the same as the one I wrote in assembler, i.e., call exit with a non-zero status.