aboutsummaryrefslogtreecommitdiff
path: root/elf/section.lua
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2026-11-05 23:25:40 +0530
committerSunil Nimmagadda <sunil@nimmagadda.net>2026-11-05 23:25:40 +0530
commit763930302205c61e4909dc429d61e33624d61d6b (patch)
treee5b134e786b38cc9566221b9ca33195e70821a87 /elf/section.lua
parent6f83d9020a1788b0fa1d1b1fac658f2c8d704bd9 (diff)
Move all the validations to correct place.
Diffstat (limited to 'elf/section.lua')
-rw-r--r--elf/section.lua4
1 files changed, 0 insertions, 4 deletions
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,