diff options
| author | Sunil Nimmagadda <sunil@nimmagadda.net> | 2026-10-24 11:21:21 +0530 |
|---|---|---|
| committer | Sunil Nimmagadda <sunil@nimmagadda.net> | 2026-10-24 11:21:21 +0530 |
| commit | 3e36380874aa40932fa629fc4f53bdd50c4f2311 (patch) | |
| tree | ca18272e9d5f4143937d8dbb869290e22dea4560 /elf/section.lua | |
| parent | 4676bb3a05d89bb3c282da2ed8b2072e163093ff (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.lua | 9 |
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 |
