Explorar o código

Fix bug caused by wrong alignment

Philipp Oppermann %!s(int64=9) %!d(string=hai) anos
pai
achega
0010836c8c
Modificáronse 1 ficheiros con 1 adicións e 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,