aboutsummaryrefslogtreecommitdiff
path: root/sample_elf.lua
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2026-11-11 12:11:42 +0530
committerSunil Nimmagadda <sunil@nimmagadda.net>2026-11-11 12:11:42 +0530
commit87b4896ae0948d6c2ec0285aa2cdb3781561d5a4 (patch)
tree7ea81a1a01d74482b2a6dd8546fbd59bee49372f /sample_elf.lua
parent7ed760fc744d0c6862dd670c8e440c75ea5b9c04 (diff)
Expose ipairs in the config environment.
Let's the user specify repeated chunks succinctly.
Diffstat (limited to 'sample_elf.lua')
-rw-r--r--sample_elf.lua10
1 files changed, 10 insertions, 0 deletions
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