]> git.proxmox.com Git - mirror_qemu.git/commit
elf-ops.h: Add get_elf_note_type()
authorLiam Merwick <liam.merwick@oracle.com>
Tue, 15 Jan 2019 12:18:04 +0000 (12:18 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Feb 2019 15:50:16 +0000 (16:50 +0100)
commit696aa04c84c6065aa6c4b085d223a3129718d700
treeda6c1103c69e11f237095d6f8a939bce7f28ea57
parent4366e1db16a3ec7bf24171e5c7619c8ea038e43b
elf-ops.h: Add get_elf_note_type()

Introduce a routine which, given a pointer to a range of ELF Notes,
searches through them looking for a note matching the type specified
and returns a pointer to the matching ELF note.

get_elf_note_type() is used by elf_load[32|64]() to find the
specified note type required by the 'elf_note_fn' parameter
added in the previous commit.

Signed-off-by: Liam Merwick <Liam.Merwick@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Liam Merwick <liam.merwick@oracle.com>
include/hw/elf_ops.h