We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MULTIBOOT2_HDR is an address of array, not an array.
MULTIBOOT2_HDR
#[used] #[no_mangle] #[link_section = ".text.multiboot2_header"] static MULTIBOOT2_HDR: &[u8; 64] = include_bytes!("mb2_hdr_dump.bin");
It should be below.
macrorules! mb2_hdr_bytes { ()=> { include_bytes!("mb2_hdr_dump.bin") }; } #[used] #[no_mangle] #[link_section = ".text.multiboot2_header"] static MULTIBOOT2_HDR: [u8; 64] = *include_bytes!("mb2_hdr_dump.bin"); // or static MULTIBOOT2_HDR: [u8; mb2_hdr_bytes!().len()] = *mb2_hdr_bytes!();
The text was updated successfully, but these errors were encountered:
Yes, looks sensible! Thanks!
Sorry, something went wrong.
I think this part of document is important, multiboot2_header was designed to generate multiboot2 header at run time not compile time.
phip1611
Successfully merging a pull request may close this issue.
MULTIBOOT2_HDR
is an address of array, not an array.It should be below.
The text was updated successfully, but these errors were encountered: