From 3e36380874aa40932fa629fc4f53bdd50c4f2311 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Sat, 24 Oct 2026 11:21:21 +0530 Subject: Attach the respective metatables to loaded the config. This simplifies calling pack() on respective tables. --- elf/section.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'elf/section.lua') diff --git a/elf/section.lua b/elf/section.lua index 64a91b2..5e185fd 100644 --- a/elf/section.lua +++ b/elf/section.lua @@ -1,14 +1,15 @@ local fmt = require("elf.fmt") -local M = {} - ---@class Section ----@param section Section +---@class Sections +local M = {} + +---@param sections Sections ---@param endian Endian ---@return string ---@nodiscard -function M.pack(section, endian) +function M.pack(sections, endian) -- TODO return string.pack("B", 0x1) end -- cgit v1.3