Parcourir la source

Fix bug caused by wrong alignment

Philipp Oppermann il y a 9 ans
Parent
commit
0010836c8c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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,