Re: [RFC] Dumping load addresses - bootefi qemu gdb remote debugging

2022-03-24 Thread Alexander von Gluck IV
See "[PATCH] efi_loader: Expose relocated address for gdb debugging purposes" This actually solves the problem by exposing (previously hidden) relocated address. Now it's a *LOT* easier to debug u-boot loaded EFI binaries using the exposed address: This is helpful on pretty much every architec

Re: [RFC] Dumping load addresses - bootefi qemu gdb remote debugging

2022-03-24 Thread Bin Meng
+Heinrich Schuchardt On Thu, Mar 24, 2022 at 10:51 PM Alex wrote: > > Good morning! > > So, some time ago I wrote a short guide on how to debug EFI bootloaders > started > by u-boot in qemu. > > https://www.haiku-os.org/blog/kallisti5/2021-01-17_debugging_riscv-64_bootloader_in_qemu/ > > At the

[RFC] Dumping load addresses - bootefi qemu gdb remote debugging

2022-03-24 Thread Alex
Good morning! So, some time ago I wrote a short guide on how to debug EFI bootloaders started by u-boot in qemu. https://www.haiku-os.org/blog/kallisti5/2021-01-17_debugging_riscv-64_bootloader_in_qemu/ At the time it worked, however figuring the elf load addresses from u-boot was extremely dif