mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00

Patch just changes type of of linker variables to a structure, there aren't any functional changes. Converting linker to a structure will allow to extend it functionality in follow up patch adding sanity blob checks. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
29 lines
996 B
C
29 lines
996 B
C
#ifndef BIOS_LINKER_LOADER_H
|
|
#define BIOS_LINKER_LOADER_H
|
|
|
|
#include <glib.h>
|
|
|
|
typedef struct BIOSLinker {
|
|
GArray *cmd_blob;
|
|
} BIOSLinker;
|
|
|
|
BIOSLinker *bios_linker_loader_init(void);
|
|
|
|
void bios_linker_loader_alloc(BIOSLinker *linker,
|
|
const char *file,
|
|
uint32_t alloc_align,
|
|
bool alloc_fseg);
|
|
|
|
void bios_linker_loader_add_checksum(BIOSLinker *linker, const char *file,
|
|
GArray *table,
|
|
void *start, unsigned size,
|
|
uint8_t *checksum);
|
|
|
|
void bios_linker_loader_add_pointer(BIOSLinker *linker,
|
|
const char *dest_file,
|
|
const char *src_file,
|
|
GArray *table, void *pointer,
|
|
uint8_t pointer_size);
|
|
|
|
void *bios_linker_loader_cleanup(BIOSLinker *linker);
|
|
#endif
|