aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/section.lua24
1 files changed, 8 insertions, 16 deletions
diff --git a/elf/section.lua b/elf/section.lua
index f7155ca..680ab8f 100644
--- a/elf/section.lua
+++ b/elf/section.lua
@@ -59,22 +59,14 @@ end
---@nodiscard
function M.pack(section, endian, class)
return string.pack(table.concat({
- fmt.endian(endian),
- "I4I4",
- string.rep(fmt.word(class), 4),
- "I4I4",
- string.rep(fmt.word(class), 2)
- }),
- section_index(section.name),
- section.type,
- section.flags,
- section.addr,
- section.offset,
- section.size,
- section.link,
- section.info,
- section.addralign,
- section.entsize)
+ fmt.endian(endian),
+ "I4I4",
+ string.rep(fmt.word(class), 4),
+ "I4I4",
+ string.rep(fmt.word(class), 2),
+ }), section_index(section.name), section.type, section.flags,
+ section.addr, section.offset, section.size, section.link, section.info,
+ section.addralign, section.entsize)
end
return M