瀏覽代碼

Fix bug caused by wrong alignment

Philipp Oppermann 9 年之前
父節點
當前提交
0010836c8c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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,