summaryrefslogtreecommitdiff
path: root/elf/section.lua
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2026-10-24 11:21:21 +0530
committerSunil Nimmagadda <sunil@nimmagadda.net>2026-10-24 11:21:21 +0530
commit3e36380874aa40932fa629fc4f53bdd50c4f2311 (patch)
treeca18272e9d5f4143937d8dbb869290e22dea4560 /elf/section.lua
parent4676bb3a05d89bb3c282da2ed8b2072e163093ff (diff)
Attach the respective metatables to loaded the config.
This simplifies calling pack() on respective tables.
Diffstat (limited to 'elf/section.lua')
-rw-r--r--elf/section.lua9
1 files changed, 5 insertions, 4 deletions
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