funh2029
funh2029
When I set [profile. release] lto = true I also encountered the same problem under musl when linking the main program. ``` error: linking with `aarch64-linux-musl-ld` failed: exit status: 1...
> Can you try the following branch to see if it works? https://github.com/soerenmeier/gpt/tree/allow_faulty_header Yes, it's work.
Or just like this: ``` --- a/src/lib.rs +++ b/src/lib.rs @@ -157,7 +157,7 @@ impl GptConfig { // Proper GPT disk, fully inspect its layout. let h1 = header::read_primary_header(&mut device, self.lb_size)?;...