rust-osdev/multiboot2

Panic on load, attempting to substract with overflow when using more than the rust binary.

xacrimon opened this issue · 4 comments

Panic on load, attempting to substract with overflow when using more than the rust binary.

Could you explain in more detail what you're trying to do? What do you mean with "when using more than the rust binary"?

If you link more than 1 static .a library. For example i did one in C and one Rust and try to load the multiboot info the kernel panics

So you're linking multiple static libraries into a final kernel binary and then try to load the multiboot info somewhere in it?

Could you give us some more information where the panic happens, in which line and in which file (you can output this information in your panic handler)? A GDB backtrace would be even better (start QEMU with -s, then connect a GBD instance, and then execute backtrace).

Oops, I was using the old 1.0 version from your blog. See #40 as I will be writing some documentation soon.