If you encounter the following error code:
error: data-layout for target `fledge-7879698637846445954`, `e-m:e-i64:64-f80:128-n8:16:32:64-S128`, differs from LLVM target's `x86_64-unknown-none` default layout, `e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128`
Perhaps the bootloader definition is out of that w.r.t. Rust. Edit the fledge.json file to modify the data-layout entry with the one provided in the error message. In my case:
"data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128",
This along with the other fix provided in #88 should be enough to run the code in qemu.