David Edmondson 64d7027711 elf_ops: correct loading of 32 bit PVH kernel
Because sizeof(struct elf64_note) == sizeof(struct elf32_note),
attempting to use the size of the currently defined struct elf_note as
a discriminator for whether the object being loaded is 64 bit in
load_elf() fails.

Instead, take advantage of the existing glue parameter SZ, which is
defined as 32 or 64 in the respective variants of load_elf().

Fixes: 696aa04c84c6 ("elf-ops.h: Add get_elf_note_type()")
Signed-off-by: David Edmondson <david.edmondson@oracle.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20210302090315.3031492-2-david.edmondson@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-03-06 11:41:54 +01:00
..
2021-01-12 21:19:02 +00:00
2021-02-11 11:50:14 +00:00
2021-01-19 10:20:29 +11:00
2021-02-21 18:41:04 +01:00
2021-02-20 12:36:19 +01:00
2021-02-10 15:42:20 +00:00
2021-02-21 12:12:18 +00:00
2021-02-11 11:50:14 +00:00
2021-01-22 14:51:35 +01:00