From 87b4896ae0948d6c2ec0285aa2cdb3781561d5a4 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Wed, 11 Nov 2026 12:11:42 +0530 Subject: Expose ipairs in the config environment. Let's the user specify repeated chunks succinctly. --- sample_elf.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sample_elf.lua') diff --git a/sample_elf.lua b/sample_elf.lua index 26f0a62..724a221 100644 --- a/sample_elf.lua +++ b/sample_elf.lua @@ -34,3 +34,13 @@ sections { flags = SectionFlags.alloc, }, } + +for _, s in ipairs({ ".note.netbsd.ident", ".note.netbsd.pax", }) do + sections { + { + name = s, + type = SectionType.note, + flags = SectionFlags.strings, + }, + } +end -- cgit v1.3