aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elf/test.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/elf/test.lua b/elf/test.lua
index 9da65e9..a3aeb1f 100644
--- a/elf/test.lua
+++ b/elf/test.lua
@@ -250,17 +250,17 @@ test("header.pack 64_be_x86-64", function ()
-- "I2I2I4"
"0002003e00000001",
-- string.rep(fmt.word(hdr.class), 3), where I8 is selected
- "0102030405060708",
- "1112131415161718",
- "2122232425262728",
+ "0102030405060708", -- entry
+ "1112131415161718", -- phoff
+ "2122232425262728", -- shoff
-- "I4I2I2I2I2I2I2"
- "31323334", -- flags
- "3435", -- ehsize
- "3637", -- phentsize
- "3839", -- phnum
- "3a3b", -- shentsize
- "3c3d", -- shnum
- "3e3f" -- shstrndx
+ "31323334", -- flags
+ "3435", -- ehsize
+ "3637", -- phentsize
+ "3839", -- phnum
+ "3a3b", -- shentsize
+ "3c3d", -- shnum
+ "3e3f" -- shstrndx
}))
local actual = elf_header.pack(elf_header.normalize(header))
assert(#actual == 64, "invalid ELF64 header size")