TianoCore EDK2 master
Loading...
Searching...
No Matches
OvmfXenElfHeaderGenerator.c File Reference
#include "elf.h"
#include "fcntl.h"
#include "stdbool.h"
#include "stddef.h"
#include "stdio.h"
#include "stdlib.h"

Go to the source code of this file.

Data Structures

struct  xen_elfnote_phys32_entry
 

Macros

#define XEN_ELFNOTE_PHYS32_ENTRY   18
 
#define LICENSE_HDR   "\## @file\r\n\# FDF include file that defines a PVH ELF header.\r\n\#\r\n\# Copyright (c) 2022, Intel Corporation. All rights reserved.\r\n\#\r\n\# SPDX-License-Identifier: BSD-2-Clause-Patent\r\n\#\r\n\##\r\n\\r\n\"
 

Functions

void print_hdr (FILE *file, void *s, size_t size, bool end_delimiter)
 
int main (int argc, char *argv[])
 

Detailed Description

This program generates a hex array to be manually coppied into OvmfXen.fdf.

The purpose is for the flash device image to be recognize as an ELF.

Copyright (c) 2019, Citrix Systems, Inc.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file OvmfXenElfHeaderGenerator.c.

Macro Definition Documentation

◆ LICENSE_HDR

#define LICENSE_HDR   "\## @file\r\n\# FDF include file that defines a PVH ELF header.\r\n\#\r\n\# Copyright (c) 2022, Intel Corporation. All rights reserved.\r\n\#\r\n\# SPDX-License-Identifier: BSD-2-Clause-Patent\r\n\#\r\n\##\r\n\\r\n\"

Definition at line 51 of file OvmfXenElfHeaderGenerator.c.

◆ XEN_ELFNOTE_PHYS32_ENTRY

#define XEN_ELFNOTE_PHYS32_ENTRY   18

Definition at line 42 of file OvmfXenElfHeaderGenerator.c.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 64 of file OvmfXenElfHeaderGenerator.c.

◆ print_hdr()

void print_hdr ( FILE *  file,
void *  s,
size_t  size,
bool  end_delimiter 
)

Definition at line 20 of file OvmfXenElfHeaderGenerator.c.