Skip to content

Commit 0010836

Browse files
committed
Fix bug caused by wrong alignment
1 parent a83b5db commit 0010836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/elf_sections.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
#[derive(Debug)]
3-
#[repr(C)]
3+
#[repr(packed)] // repr(C) would add unwanted padding before first_section
44
pub struct ElfSectionsTag {
55
typ: u32,
66
size: u32,

0 commit comments

Comments
 (0)