Explorar el Código

Fix bug caused by wrong alignment

Philipp Oppermann hace 9 años
padre
commit
0010836c8c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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,