David Edmondson <david.edmond...@oracle.com> writes:
> 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.edmond...@oracle.com> Reviewed-by: Alex Bennée <alex.ben...@linaro.org> -- Alex Bennée