From 763930302205c61e4909dc429d61e33624d61d6b Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Thu, 5 Nov 2026 23:25:40 +0530 Subject: Move all the validations to correct place. --- elf/section.lua | 4 ---- 1 file changed, 4 deletions(-) (limited to 'elf/section.lua') diff --git a/elf/section.lua b/elf/section.lua index 7849d48..ed625c4 100644 --- a/elf/section.lua +++ b/elf/section.lua @@ -31,10 +31,6 @@ local M = {} ---@param secopts SectionOptions ---@return Section function M.normalize(secopts) - if not secopts.name then error("name is required in section", 3) end - if not secopts.type then error("type is required in section", 3) end - if not secopts.flags then error("flags required in section", 3) end - return { name = secopts.name, type = secopts.type, -- cgit v1.3