Alex Bennée <alex.ben...@linaro.org> writes:

> Julian Andres Klode <julian.kl...@canonical.com> writes:
>
>> On Thu, Apr 25, 2024 at 06:30:52PM +0100, Alex Bennée wrote:
>>> 
>>> Continuing to debug on QEMU it seems there is an incompatibility with
>>> the images and the peloader (which overrides the normal efi loader):
>>> 
<snip>
>
>> In the error case you can see though, that one of the section
>> addresses in the Xen binary to be relocated points into the (PE)
>> header of the binary, which obviously seems wrong.
>>
>> So go check your PE sections and check which one is wrong?
>
> Is there any tooling for examining PE sections?

Nothing really jumps out from objdump:

1:08:50 [root@debian-arm64:~] # objdump -h /boot/xen

  /boot/xen:     file format pei-aarch64-little

  Sections:
  Idx Name          Size      VMA               LMA               File off  Algn
    0 .reloc        00000000  0000000000000000  0000000000000000  00000000  2**0
                    ALLOC, LOAD, READONLY, DATA
    1 .text         00107ea8  0000000000000160  0000000000000160  00000160  2**4
                    CONTENTS, ALLOC, LOAD, CODE
  21:08:53 [root@debian-arm64:~] # objdump -h /boot/vmlinuz

  /boot/vmlinuz:     file format pei-aarch64-little

  Sections:
  Idx Name          Size      VMA               LMA               File off  Algn
    0 .text         018c0000  0000000000010000  0000000000010000  00010000  2**2
                    CONTENTS, ALLOC, LOAD, READONLY, CODE
    1 .data         0090a200  00000000018d0000  00000000018d0000  018d0000  2**2
                    CONTENTS, ALLOC, LOAD, DATA


-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro

Reply via email to