From 79f6b161f892f621a909ce1df99b3c680f3682a2 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Fri, 23 Oct 2026 22:43:44 +0530 Subject: Refactor: Move to an elf module. While here, define a elf.d.lua to help author type check configuration file. --- elf/init.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 elf/init.lua (limited to 'elf/init.lua') diff --git a/elf/init.lua b/elf/init.lua new file mode 100644 index 0000000..6e6966a --- /dev/null +++ b/elf/init.lua @@ -0,0 +1,20 @@ +local constants = require("elf.constants") +local header = require("elf.header") +local segment = require("elf.segment") +local section = require("elf.section") + +local M = {} + +M.VERSION = constants.VERSION +M.Class = constants.Class +M.Endian = constants.Endian +M.Osabi = constants.Osabi +M.Type = constants.Type +M.Machine = constants.Machine +M.SegmentType = constants.SegmentType +M.SegmentFlags = constants.SegmentFlags +M.header = header +M.segment = segment +M.section = section + +return M -- cgit v1.3