Browse Source

Fix bug caused by wrong alignment

Philipp Oppermann 9 năm trước cách đây
mục cha
commit
0010836c8c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/elf_sections.rs

+ 1 - 1
src/elf_sections.rs

@@ -1,6 +1,6 @@
 
 #[derive(Debug)]
-#[repr(C)]
+#[repr(packed)] // repr(C) would add unwanted padding before first_section
 pub struct ElfSectionsTag {
     typ: u32,
     size: u32,