소스 검색

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,