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/section.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 elf/section.lua (limited to 'elf/section.lua') diff --git a/elf/section.lua b/elf/section.lua new file mode 100644 index 0000000..64a91b2 --- /dev/null +++ b/elf/section.lua @@ -0,0 +1,16 @@ +local fmt = require("elf.fmt") + +local M = {} + +---@class Section + +---@param section Section +---@param endian Endian +---@return string +---@nodiscard +function M.pack(section, endian) + -- TODO + return string.pack("B", 0x1) +end + +return M -- cgit v1.3