summaryrefslogtreecommitdiff
path: root/elf/header.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/header.lua
parent4676bb3a05d89bb3c282da2ed8b2072e163093ff (diff)
Attach the respective metatables to loaded the config.
This simplifies calling pack() on respective tables.
Diffstat (limited to 'elf/header.lua')
-rw-r--r--elf/header.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/elf/header.lua b/elf/header.lua
index 2a9ec68..6baf327 100644
--- a/elf/header.lua
+++ b/elf/header.lua
@@ -1,7 +1,5 @@
local fmt = require("elf.fmt")
-local M = {}
-
---@alias Magic [integer, integer, integer, integer]
---@class Header
@@ -24,6 +22,7 @@ local M = {}
---@field shentsize integer
---@field shnum integer
---@field shstrndx integer
+local M = {}
---@param hdr Header
---@return string