From a74caeb04b9ca22773d2f25a4bed9e2b22e7a3cc Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Thu, 5 Nov 2026 21:33:26 +0530 Subject: Sections owns the content. --- elf/section.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'elf/section.lua') diff --git a/elf/section.lua b/elf/section.lua index f2d1a1d..7849d48 100644 --- a/elf/section.lua +++ b/elf/section.lua @@ -11,6 +11,7 @@ local fmt = require("elf.fmt") ---@field info? integer ---@field addralign? integer ---@field entsize? integer +---@field content? string ---@class Section ---@field name string @@ -23,6 +24,7 @@ local fmt = require("elf.fmt") ---@field info integer ---@field addralign integer ---@field entsize integer +---@field content string local M = {} @@ -44,6 +46,7 @@ function M.normalize(secopts) info = secopts.info or 0, addralign = secopts.addralign or 0, entsize = secopts.entsize or 0, + content = secopts.content or "", } end -- cgit v1.3