BaseTools: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
@@ -6,7 +6,7 @@ Root Package 1.00
|
|||||||
Intel is a trademark or registered trademark of Intel Corporation or its
|
Intel is a trademark or registered trademark of Intel Corporation or its
|
||||||
subsidiaries in the United States and other countries.
|
subsidiaries in the United States and other countries.
|
||||||
* Other names and brands may be claimed as the property of others.
|
* Other names and brands may be claimed as the property of others.
|
||||||
Copyright (c) 2007, Intel Corporation. All rights reserved.
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Quick Start
|
Quick Start
|
||||||
@@ -40,16 +40,16 @@ Tools in Python
|
|||||||
For Windows and Linux, the conversion tool package is called cx_Freeze, its
|
For Windows and Linux, the conversion tool package is called cx_Freeze, its
|
||||||
home page is:
|
home page is:
|
||||||
|
|
||||||
http://sourceforge.net/projects/cx-freeze/
|
http://sourceforge.net/projects/cx-freeze/
|
||||||
|
|
||||||
If you have installed cx_Freeze at c:\cx_Freeze-3.0.3. Use following command
|
If you have installed cx_Freeze at c:\cx_Freeze-3.0.3. Use following command
|
||||||
lines to convert MyBuild.py to MyBuild.exe (note this is an example, there is
|
lines to convert MyBuild.py to MyBuild.exe (note this is an example, there is
|
||||||
no MyBuild Python project in the BaseTools\Python tree.
|
no MyBuild Python project in the BaseTools\Python tree.
|
||||||
|
|
||||||
set PYTHONPATH=<BaseToolsDirPath>\Source\Python
|
set PYTHONPATH=<BaseToolsDirPath>\Source\Python
|
||||||
c:\cx_Freeze-3.0.3\FreezePython.exe --include-modules=encodings.cp437,encodings.gbk,encodings.utf_16,encodings.utf_16_le,encodings.utf_8 --install-dir=.\mybuild MyBuild.py
|
c:\cx_Freeze-3.0.3\FreezePython.exe --include-modules=encodings.cp437,encodings.gbk,encodings.utf_16,encodings.utf_16_le,encodings.utf_8 --install-dir=.\mybuild MyBuild.py
|
||||||
|
|
||||||
The generated .exe (and .dll) files are put in "mybuild" subdirectory.
|
The generated .exe (and .dll) files are put in "mybuild" subdirectory.
|
||||||
|
|
||||||
The following is a real example with the BuildTools/trunk/BaseTools project
|
The following is a real example with the BuildTools/trunk/BaseTools project
|
||||||
installed in: C:\Work\BaseTools
|
installed in: C:\Work\BaseTools
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
# This tool depends on DIA2Dump.exe (VS) or nm (gcc) to parse debug entry.
|
# This tool depends on DIA2Dump.exe (VS) or nm (gcc) to parse debug entry.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
|
# Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
# This program and the accompanying materials are licensed and made available under
|
# This program and the accompanying materials are licensed and made available under
|
||||||
# the terms and conditions of the BSD License that accompanies this distribution.
|
# the terms and conditions of the BSD License that accompanies this distribution.
|
||||||
# The full text of the license may be found at
|
# The full text of the license may be found at
|
||||||
@@ -21,7 +21,7 @@ import sys
|
|||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
versionNumber = "1.1"
|
versionNumber = "1.1"
|
||||||
__copyright__ = "Copyright (c) 2016, Intel Corporation. All rights reserved."
|
__copyright__ = "Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved."
|
||||||
|
|
||||||
class Symbols:
|
class Symbols:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -72,7 +72,7 @@ class Symbols:
|
|||||||
reportLines = linefile.readlines()
|
reportLines = linefile.readlines()
|
||||||
linefile.close()
|
linefile.close()
|
||||||
|
|
||||||
# 000113ca T AllocatePool c:\home\edk-ii\MdePkg\Library\UefiMemoryAllocationLib\MemoryAllocationLib.c:399
|
# 000113ca T AllocatePool c:\home\edk-ii\MdePkg\Library\UefiMemoryAllocationLib\MemoryAllocationLib.c:399
|
||||||
patchLineFileMatchString = "([0-9a-fA-F]*)\s+[T|D|t|d]\s+(\w+)\s*((?:[a-zA-Z]:)?[\w+\-./_a-zA-Z0-9\\\\]*):?([0-9]*)"
|
patchLineFileMatchString = "([0-9a-fA-F]*)\s+[T|D|t|d]\s+(\w+)\s*((?:[a-zA-Z]:)?[\w+\-./_a-zA-Z0-9\\\\]*):?([0-9]*)"
|
||||||
|
|
||||||
for reportLine in reportLines:
|
for reportLine in reportLines:
|
||||||
@@ -127,9 +127,9 @@ class Symbols:
|
|||||||
linefile.close()
|
linefile.close()
|
||||||
|
|
||||||
# ** GetDebugPrintErrorLevel
|
# ** GetDebugPrintErrorLevel
|
||||||
# line 32 at [0000C790][0001:0000B790], len = 0x3 c:\home\edk-ii\mdepkg\library\basedebugprinterrorlevellib\basedebugprinterrorlevellib.c (MD5: 687C0AE564079D35D56ED5D84A6164CC)
|
# line 32 at [0000C790][0001:0000B790], len = 0x3 c:\home\edk-ii\mdepkg\library\basedebugprinterrorlevellib\basedebugprinterrorlevellib.c (MD5: 687C0AE564079D35D56ED5D84A6164CC)
|
||||||
# line 36 at [0000C793][0001:0000B793], len = 0x5
|
# line 36 at [0000C793][0001:0000B793], len = 0x5
|
||||||
# line 37 at [0000C798][0001:0000B798], len = 0x2
|
# line 37 at [0000C798][0001:0000B798], len = 0x2
|
||||||
|
|
||||||
patchLineFileMatchString = "\s+line ([0-9]+) at \[([0-9a-fA-F]{8})\]\[[0-9a-fA-F]{4}\:[0-9a-fA-F]{8}\], len = 0x[0-9a-fA-F]+\s*([\w+\-\:./_a-zA-Z0-9\\\\]*)\s*"
|
patchLineFileMatchString = "\s+line ([0-9]+) at \[([0-9a-fA-F]{8})\]\[[0-9a-fA-F]{4}\:[0-9a-fA-F]{8}\], len = 0x[0-9a-fA-F]+\s*([\w+\-\:./_a-zA-Z0-9\\\\]*)\s*"
|
||||||
patchLineFileMatchStringFunc = "\*\*\s+(\w+)\s*"
|
patchLineFileMatchStringFunc = "\*\*\s+(\w+)\s*"
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
# must ensure that files that are required by the cx_freeze frozen binaries are
|
# must ensure that files that are required by the cx_freeze frozen binaries are
|
||||||
# present in the Bin\Win32 directory.
|
# present in the Bin\Win32 directory.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 - 2017, Intel Corporation. All rights reserved.<BR>
|
# Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
#
|
#
|
||||||
# This program and the accompanying materials are licensed and made available under
|
# This program and the accompanying materials are licensed and made available under
|
||||||
# the terms and conditions of the BSD License which accompanies this distribution.
|
# the terms and conditions of the BSD License which accompanies this distribution.
|
||||||
|
@@ -4,7 +4,7 @@ Abstract:
|
|||||||
Patch the BPB information in boot sector image file.
|
Patch the BPB information in boot sector image file.
|
||||||
Patch the MBR code in MBR image file.
|
Patch the MBR code in MBR image file.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Fat file system structure and definition.
|
Fat file system structure and definition.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
MBR Partition Entry and Table structure defintions.
|
MBR Partition Entry and Table structure defintions.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Functions to get info and load PE/COFF image.
|
Functions to get info and load PE/COFF image.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
Portions Copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>
|
Portions Copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
|
@@ -3,7 +3,7 @@ Prototypes for binder functions that allow common code to be written which then
|
|||||||
links to implementation of these functions which is appropriate for the specific
|
links to implementation of these functions which is appropriate for the specific
|
||||||
environment that they are running under.
|
environment that they are running under.
|
||||||
|
|
||||||
Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
Header file for compression routine.
|
Header file for compression routine.
|
||||||
Providing both EFI and Tiano Compress algorithms.
|
Providing both EFI and Tiano Compress algorithms.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
CalcuateCrc32 routine.
|
CalcuateCrc32 routine.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Header file for CalcuateCrc32 routine
|
Header file for CalcuateCrc32 routine
|
||||||
|
|
||||||
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
Decompressor. Algorithm Ported from OPSD code (Decomp.asm) for Efi and Tiano
|
Decompressor. Algorithm Ported from OPSD code (Decomp.asm) for Efi and Tiano
|
||||||
compress algorithm.
|
compress algorithm.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Header file for compression routine
|
Header file for compression routine
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -4,7 +4,7 @@ coding. LZ77 transforms the source data into a sequence of Original Characters
|
|||||||
and Pointers to repeated strings. This sequence is further divided into Blocks
|
and Pointers to repeated strings. This sequence is further divided into Blocks
|
||||||
and Huffman codings are applied to each Block.
|
and Huffman codings are applied to each Block.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Defines and prototypes for common EFI utility error and debug messages.
|
Defines and prototypes for common EFI utility error and debug messages.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
EFI Firmware Volume routines which work on a Fv image in buffers.
|
EFI Firmware Volume routines which work on a Fv image in buffers.
|
||||||
|
|
||||||
Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
These functions assist in parsing and manipulating a Firmware Volume.
|
These functions assist in parsing and manipulating a Firmware Volume.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
These functions assist in parsing and manipulating a Firmware Volume.
|
These functions assist in parsing and manipulating a Firmware Volume.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
This contains some useful functions for accessing files.
|
This contains some useful functions for accessing files.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Header file for helper functions useful for accessing files.
|
Header file for helper functions useful for accessing files.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
File for memory allocation tracking functions.
|
File for memory allocation tracking functions.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Header file for memory allocation tracking functions.
|
Header file for memory allocation tracking functions.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Functions useful to operate file directories by parsing file path.
|
Functions useful to operate file directories by parsing file path.
|
||||||
|
|
||||||
Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
Header file for helper functions useful to operate file directories by parsing
|
Header file for helper functions useful to operate file directories by parsing
|
||||||
file path.
|
file path.
|
||||||
|
|
||||||
Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Helper functions for parsing GuidedSectionTools.txt
|
Helper functions for parsing GuidedSectionTools.txt
|
||||||
|
|
||||||
Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Header file for helper functions for parsing GuidedSectionTools.txt
|
Header file for helper functions for parsing GuidedSectionTools.txt
|
||||||
|
|
||||||
Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
This contains some useful functions for parsing INF files.
|
This contains some useful functions for parsing INF files.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Header file for helper functions useful for parsing INF files.
|
Header file for helper functions useful for parsing INF files.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,14 +1,14 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Function prototypes and defines on Memory Only PE COFF loader
|
Function prototypes and defines on Memory Only PE COFF loader
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
@@ -73,15 +73,15 @@ typedef struct {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves information on a PE/COFF image
|
Retrieves information on a PE/COFF image
|
||||||
|
|
||||||
@param ImageContext The context of the image being loaded
|
@param ImageContext The context of the image being loaded
|
||||||
|
|
||||||
@retval EFI_SUCCESS The information on the PE/COFF image was collected.
|
@retval EFI_SUCCESS The information on the PE/COFF image was collected.
|
||||||
@retval EFI_INVALID_PARAMETER ImageContext is NULL.
|
@retval EFI_INVALID_PARAMETER ImageContext is NULL.
|
||||||
@retval EFI_UNSUPPORTED The PE/COFF image is not supported.
|
@retval EFI_UNSUPPORTED The PE/COFF image is not supported.
|
||||||
@retval Otherwise The error status from reading the PE/COFF image using the
|
@retval Otherwise The error status from reading the PE/COFF image using the
|
||||||
ImageContext->ImageRead() function
|
ImageContext->ImageRead() function
|
||||||
|
|
||||||
**/
|
**/
|
||||||
RETURN_STATUS
|
RETURN_STATUS
|
||||||
@@ -92,13 +92,13 @@ PeCoffLoaderGetImageInfo (
|
|||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Relocates a PE/COFF image in memory
|
Relocates a PE/COFF image in memory
|
||||||
|
|
||||||
@param ImageContext Contains information on the loaded image to relocate
|
@param ImageContext Contains information on the loaded image to relocate
|
||||||
|
|
||||||
@retval EFI_SUCCESS if the PE/COFF image was relocated
|
@retval EFI_SUCCESS if the PE/COFF image was relocated
|
||||||
@retval EFI_LOAD_ERROR if the image is not a valid PE/COFF image
|
@retval EFI_LOAD_ERROR if the image is not a valid PE/COFF image
|
||||||
@retval EFI_UNSUPPORTED not support
|
@retval EFI_UNSUPPORTED not support
|
||||||
|
|
||||||
**/
|
**/
|
||||||
RETURN_STATUS
|
RETURN_STATUS
|
||||||
@@ -109,14 +109,14 @@ PeCoffLoaderRelocateImage (
|
|||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Loads a PE/COFF image into memory
|
Loads a PE/COFF image into memory
|
||||||
|
|
||||||
@param ImageContext Contains information on image to load into memory
|
@param ImageContext Contains information on image to load into memory
|
||||||
|
|
||||||
@retval EFI_SUCCESS if the PE/COFF image was loaded
|
@retval EFI_SUCCESS if the PE/COFF image was loaded
|
||||||
@retval EFI_BUFFER_TOO_SMALL if the caller did not provide a large enough buffer
|
@retval EFI_BUFFER_TOO_SMALL if the caller did not provide a large enough buffer
|
||||||
@retval EFI_LOAD_ERROR if the image is a runtime driver with no relocations
|
@retval EFI_LOAD_ERROR if the image is a runtime driver with no relocations
|
||||||
@retval EFI_INVALID_PARAMETER if the image address is invalid
|
@retval EFI_INVALID_PARAMETER if the image address is invalid
|
||||||
|
|
||||||
**/
|
**/
|
||||||
RETURN_STATUS
|
RETURN_STATUS
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
IA32, X64 and IPF Specific relocation fixups
|
IA32, X64 and IPF Specific relocation fixups
|
||||||
|
|
||||||
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
Portions Copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>
|
Portions Copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Generic but simple file parsing routines.
|
Generic but simple file parsing routines.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Function prototypes and defines for the simple file parsing routines.
|
Function prototypes and defines for the simple file parsing routines.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Function prototypes and defines for string routines.
|
Function prototypes and defines for string routines.
|
||||||
|
|
||||||
Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
String routines implementation
|
String routines implementation
|
||||||
|
|
||||||
Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -4,7 +4,7 @@ coding. LZ77 transforms the source data into a sequence of Original Characters
|
|||||||
and Pointers to repeated strings. This sequence is further divided into Blocks
|
and Pointers to repeated strings. This sequence is further divided into Blocks
|
||||||
and Huffman codings are applied to each Block.
|
and Huffman codings are applied to each Block.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -6,7 +6,7 @@ FILE := EFILDR_HEADER
|
|||||||
<PeImageFileContent> +
|
<PeImageFileContent> +
|
||||||
The order of EFILDR_IMAGE is same as the order of placing PeImageFileContent.
|
The order of EFILDR_IMAGE is same as the order of placing PeImageFileContent.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Utility program to create an EFI option ROM image from binary and EFI PE32 files.
|
Utility program to create an EFI option ROM image from binary and EFI PE32 files.
|
||||||
|
|
||||||
Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
distribution. The full text of the license may be found at
|
distribution. The full text of the license may be found at
|
||||||
@@ -351,7 +351,7 @@ Returns:
|
|||||||
} else {
|
} else {
|
||||||
PciDs30->ImageLength = (UINT16) (TotalSize / 512);
|
PciDs30->ImageLength = (UINT16) (TotalSize / 512);
|
||||||
CodeType = PciDs30->CodeType;
|
CodeType = PciDs30->CodeType;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// If this is the last image, then set the LAST bit unless requested not
|
// If this is the last image, then set the LAST bit unless requested not
|
||||||
@@ -362,13 +362,13 @@ Returns:
|
|||||||
PciDs23->Indicator = INDICATOR_LAST;
|
PciDs23->Indicator = INDICATOR_LAST;
|
||||||
} else {
|
} else {
|
||||||
PciDs30->Indicator = INDICATOR_LAST;
|
PciDs30->Indicator = INDICATOR_LAST;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (mOptions.Pci23 == 1) {
|
if (mOptions.Pci23 == 1) {
|
||||||
PciDs23->Indicator = 0;
|
PciDs23->Indicator = 0;
|
||||||
} else {
|
} else {
|
||||||
PciDs30->Indicator = 0;
|
PciDs30->Indicator = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CodeType != PCI_CODE_TYPE_EFI_IMAGE) {
|
if (CodeType != PCI_CODE_TYPE_EFI_IMAGE) {
|
||||||
@@ -685,12 +685,12 @@ Returns:
|
|||||||
if ((InFile->Next == NULL) && (mOptions.NoLast == 0)) {
|
if ((InFile->Next == NULL) && (mOptions.NoLast == 0)) {
|
||||||
if (mOptions.Pci23 == 1) {
|
if (mOptions.Pci23 == 1) {
|
||||||
PciDs23.Indicator = INDICATOR_LAST;
|
PciDs23.Indicator = INDICATOR_LAST;
|
||||||
} else {
|
} else {
|
||||||
PciDs30.Indicator = INDICATOR_LAST;}
|
PciDs30.Indicator = INDICATOR_LAST;}
|
||||||
} else {
|
} else {
|
||||||
if (mOptions.Pci23 == 1) {
|
if (mOptions.Pci23 == 1) {
|
||||||
PciDs23.Indicator = 0;
|
PciDs23.Indicator = 0;
|
||||||
} else {
|
} else {
|
||||||
PciDs30.Indicator = 0;
|
PciDs30.Indicator = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1351,7 +1351,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Copyright declaration
|
// Copyright declaration
|
||||||
//
|
//
|
||||||
fprintf (stdout, "Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.\n\n");
|
fprintf (stdout, "Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.\n\n");
|
||||||
|
|
||||||
//
|
//
|
||||||
// Details Option
|
// Details Option
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
This file contains the relevant declarations required to generate Option Rom File
|
This file contains the relevant declarations required to generate Option Rom File
|
||||||
|
|
||||||
Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
distribution. The full text of the license may be found at
|
distribution. The full text of the license may be found at
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Fat file system structure and definition.
|
Fat file system structure and definition.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -4,7 +4,7 @@ Reading/writing MBR/DBR.
|
|||||||
If we write MBR to disk, we just update the MBR code and the partition table wouldn't be over written.
|
If we write MBR to disk, we just update the MBR code and the partition table wouldn't be over written.
|
||||||
If we process DBR, we will patch MBR to set first partition active if no active partition exists.
|
If we process DBR, we will patch MBR to set first partition active if no active partition exists.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@@ -431,7 +431,7 @@ ERROR_STATUS
|
|||||||
ProcessBsOrMbr (
|
ProcessBsOrMbr (
|
||||||
PATH_INFO *InputInfo,
|
PATH_INFO *InputInfo,
|
||||||
PATH_INFO *OutputInfo,
|
PATH_INFO *OutputInfo,
|
||||||
BOOL ProcessMbr
|
BOOL ProcessMbr
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
BYTE DiskPartition[0x200] = {0};
|
BYTE DiskPartition[0x200] = {0};
|
||||||
@@ -555,7 +555,7 @@ PrintUsage (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
printf ("Usage: GenBootSector [options] --cfg-file CFG_FILE\n\n\
|
printf ("Usage: GenBootSector [options] --cfg-file CFG_FILE\n\n\
|
||||||
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.\n\n\
|
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.\n\n\
|
||||||
Utility to retrieve and update the boot sector or MBR.\n\n\
|
Utility to retrieve and update the boot sector or MBR.\n\n\
|
||||||
optional arguments:\n\
|
optional arguments:\n\
|
||||||
-h, --help Show this help message and exit\n\
|
-h, --help Show this help message and exit\n\
|
||||||
@@ -628,7 +628,7 @@ GetPathInfo (
|
|||||||
return ErrorPath;
|
return ErrorPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ErrorSuccess;
|
return ErrorSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Get Drv Num offset from Fat file system.
|
Get Drv Num offset from Fat file system.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Calculate Crc32 value and Verify Crc32 value for input data.
|
Calculate Crc32 value and Verify Crc32 value for input data.
|
||||||
|
|
||||||
Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@@ -80,7 +80,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Copyright declaration
|
// Copyright declaration
|
||||||
//
|
//
|
||||||
fprintf (stdout, "Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.\n\n");
|
fprintf (stdout, "Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.\n\n");
|
||||||
|
|
||||||
//
|
//
|
||||||
// Details Option
|
// Details Option
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
This file contains functions required to generate a Firmware File System file.
|
This file contains functions required to generate a Firmware File System file.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@@ -128,7 +128,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Copyright declaration
|
// Copyright declaration
|
||||||
//
|
//
|
||||||
fprintf (stdout, "Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.\n\n");
|
fprintf (stdout, "Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.\n\n");
|
||||||
|
|
||||||
//
|
//
|
||||||
// Details Option
|
// Details Option
|
||||||
@@ -797,7 +797,7 @@ Returns:
|
|||||||
argv += 2;
|
argv += 2;
|
||||||
|
|
||||||
if (argc <= 0) {
|
if (argc <= 0) {
|
||||||
InputFileNum ++;
|
InputFileNum ++;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
can be found in the Tiano Firmware Volume Generation Utility
|
can be found in the Tiano Firmware Volume Generation Utility
|
||||||
Specification, review draft.
|
Specification, review draft.
|
||||||
|
|
||||||
Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@@ -90,7 +90,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Copyright declaration
|
// Copyright declaration
|
||||||
//
|
//
|
||||||
fprintf (stdout, "Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.\n\n");
|
fprintf (stdout, "Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.\n\n");
|
||||||
|
|
||||||
//
|
//
|
||||||
// Details Option
|
// Details Option
|
||||||
@@ -348,20 +348,20 @@ Returns:
|
|||||||
argv += 2;
|
argv += 2;
|
||||||
|
|
||||||
if (argc > 0) {
|
if (argc > 0) {
|
||||||
if ((stricmp (argv[0], "-s") == 0) || (stricmp (argv[0], "--filetakensize") == 0)) {
|
if ((stricmp (argv[0], "-s") == 0) || (stricmp (argv[0], "--filetakensize") == 0)) {
|
||||||
if (argv[1] == NULL) {
|
if (argv[1] == NULL) {
|
||||||
Error (NULL, 0, 1003, "Invalid option value", "Ffsfile Size can't be null");
|
Error (NULL, 0, 1003, "Invalid option value", "Ffsfile Size can't be null");
|
||||||
return STATUS_ERROR;
|
return STATUS_ERROR;
|
||||||
}
|
}
|
||||||
Status = AsciiStringToUint64 (argv[1], FALSE, &TempNumber);
|
Status = AsciiStringToUint64 (argv[1], FALSE, &TempNumber);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
Error (NULL, 0, 1003, "Invalid option value", "%s = %s", argv[0], argv[1]);
|
Error (NULL, 0, 1003, "Invalid option value", "%s = %s", argv[0], argv[1]);
|
||||||
return STATUS_ERROR;
|
return STATUS_ERROR;
|
||||||
}
|
}
|
||||||
mFvDataInfo.SizeofFvFiles[Index] = (UINT32) TempNumber;
|
mFvDataInfo.SizeofFvFiles[Index] = (UINT32) TempNumber;
|
||||||
DebugMsg (NULL, 0, 9, "FV component file size", "the %uth size is %s", (unsigned) Index + 1, argv[1]);
|
DebugMsg (NULL, 0, 9, "FV component file size", "the %uth size is %s", (unsigned) Index + 1, argv[1]);
|
||||||
argc -= 2;
|
argc -= 2;
|
||||||
argv += 2;
|
argv += 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Index ++;
|
Index ++;
|
||||||
|
@@ -723,12 +723,12 @@ Returns:
|
|||||||
}
|
}
|
||||||
memcpy ((UINT8 *)PadFile + CurFfsHeaderSize, ExtHeader, ExtHeader->ExtHeaderSize);
|
memcpy ((UINT8 *)PadFile + CurFfsHeaderSize, ExtHeader, ExtHeader->ExtHeaderSize);
|
||||||
((EFI_FIRMWARE_VOLUME_HEADER *) FvImage->FileImage)->ExtHeaderOffset = (UINT16) ((UINTN) ((UINT8 *)PadFile + CurFfsHeaderSize) - (UINTN) FvImage->FileImage);
|
((EFI_FIRMWARE_VOLUME_HEADER *) FvImage->FileImage)->ExtHeaderOffset = (UINT16) ((UINTN) ((UINT8 *)PadFile + CurFfsHeaderSize) - (UINTN) FvImage->FileImage);
|
||||||
//
|
//
|
||||||
// Make next file start at QWord Boundry
|
// Make next file start at QWord Boundry
|
||||||
//
|
//
|
||||||
while (((UINTN) FvImage->CurrentFilePointer & (EFI_FFS_FILE_HEADER_ALIGNMENT - 1)) != 0) {
|
while (((UINTN) FvImage->CurrentFilePointer & (EFI_FFS_FILE_HEADER_ALIGNMENT - 1)) != 0) {
|
||||||
FvImage->CurrentFilePointer++;
|
FvImage->CurrentFilePointer++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
@@ -864,21 +864,21 @@ Returns:
|
|||||||
while ((*Cptr != FILE_SEP_CHAR) && (Cptr >= PeMapFileName)) {
|
while ((*Cptr != FILE_SEP_CHAR) && (Cptr >= PeMapFileName)) {
|
||||||
Cptr --;
|
Cptr --;
|
||||||
}
|
}
|
||||||
*Cptr2 = '\0';
|
*Cptr2 = '\0';
|
||||||
if (strlen (Cptr + 1) >= MAX_LINE_LEN) {
|
if (strlen (Cptr + 1) >= MAX_LINE_LEN) {
|
||||||
return EFI_ABORTED;
|
return EFI_ABORTED;
|
||||||
}
|
}
|
||||||
strncpy (KeyWord, Cptr + 1, MAX_LINE_LEN - 1);
|
strncpy (KeyWord, Cptr + 1, MAX_LINE_LEN - 1);
|
||||||
KeyWord[MAX_LINE_LEN - 1] = 0;
|
KeyWord[MAX_LINE_LEN - 1] = 0;
|
||||||
*Cptr2 = '.';
|
*Cptr2 = '.';
|
||||||
|
|
||||||
//
|
//
|
||||||
// AddressOfEntryPoint and Offset in Image
|
// AddressOfEntryPoint and Offset in Image
|
||||||
//
|
//
|
||||||
if (!pImageContext->IsTeImage) {
|
if (!pImageContext->IsTeImage) {
|
||||||
ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *) ((UINT8 *) pImageContext->Handle + pImageContext->PeCoffHeaderOffset);
|
ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *) ((UINT8 *) pImageContext->Handle + pImageContext->PeCoffHeaderOffset);
|
||||||
AddressOfEntryPoint = ImgHdr->Pe32.OptionalHeader.AddressOfEntryPoint;
|
AddressOfEntryPoint = ImgHdr->Pe32.OptionalHeader.AddressOfEntryPoint;
|
||||||
Offset = 0;
|
Offset = 0;
|
||||||
SectionHeader = (EFI_IMAGE_SECTION_HEADER *) (
|
SectionHeader = (EFI_IMAGE_SECTION_HEADER *) (
|
||||||
(UINT8 *) ImgHdr +
|
(UINT8 *) ImgHdr +
|
||||||
sizeof (UINT32) +
|
sizeof (UINT32) +
|
||||||
@@ -887,7 +887,7 @@ Returns:
|
|||||||
);
|
);
|
||||||
Index = ImgHdr->Pe32.FileHeader.NumberOfSections;
|
Index = ImgHdr->Pe32.FileHeader.NumberOfSections;
|
||||||
} else {
|
} else {
|
||||||
TEImageHeader = (EFI_TE_IMAGE_HEADER *) pImageContext->Handle;
|
TEImageHeader = (EFI_TE_IMAGE_HEADER *) pImageContext->Handle;
|
||||||
AddressOfEntryPoint = TEImageHeader->AddressOfEntryPoint;
|
AddressOfEntryPoint = TEImageHeader->AddressOfEntryPoint;
|
||||||
Offset = TEImageHeader->StrippedSize - sizeof (EFI_TE_IMAGE_HEADER);
|
Offset = TEImageHeader->StrippedSize - sizeof (EFI_TE_IMAGE_HEADER);
|
||||||
SectionHeader = (EFI_IMAGE_SECTION_HEADER *) (TEImageHeader + 1);
|
SectionHeader = (EFI_IMAGE_SECTION_HEADER *) (TEImageHeader + 1);
|
||||||
@@ -921,12 +921,12 @@ Returns:
|
|||||||
DataVirtualAddress = 0;
|
DataVirtualAddress = 0;
|
||||||
for (; Index > 0; Index --, SectionHeader ++) {
|
for (; Index > 0; Index --, SectionHeader ++) {
|
||||||
if (stricmp ((CHAR8 *)SectionHeader->Name, ".text") == 0) {
|
if (stricmp ((CHAR8 *)SectionHeader->Name, ".text") == 0) {
|
||||||
TextVirtualAddress = SectionHeader->VirtualAddress;
|
TextVirtualAddress = SectionHeader->VirtualAddress;
|
||||||
} else if (stricmp ((CHAR8 *)SectionHeader->Name, ".data") == 0) {
|
} else if (stricmp ((CHAR8 *)SectionHeader->Name, ".data") == 0) {
|
||||||
DataVirtualAddress = SectionHeader->VirtualAddress;
|
DataVirtualAddress = SectionHeader->VirtualAddress;
|
||||||
} else if (stricmp ((CHAR8 *)SectionHeader->Name, ".sdata") == 0) {
|
} else if (stricmp ((CHAR8 *)SectionHeader->Name, ".sdata") == 0) {
|
||||||
DataVirtualAddress = SectionHeader->VirtualAddress;
|
DataVirtualAddress = SectionHeader->VirtualAddress;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fprintf (FvMapFile, " .textbaseaddress=0x%010llx", (unsigned long long) (ImageBaseAddress + TextVirtualAddress));
|
fprintf (FvMapFile, " .textbaseaddress=0x%010llx", (unsigned long long) (ImageBaseAddress + TextVirtualAddress));
|
||||||
fprintf (FvMapFile, " .databaseaddress=0x%010llx", (unsigned long long) (ImageBaseAddress + DataVirtualAddress));
|
fprintf (FvMapFile, " .databaseaddress=0x%010llx", (unsigned long long) (ImageBaseAddress + DataVirtualAddress));
|
||||||
@@ -1252,9 +1252,9 @@ Returns:
|
|||||||
if (!FvInfo->IsPiFvImage) {
|
if (!FvInfo->IsPiFvImage) {
|
||||||
memcpy (FvImage->CurrentFilePointer, FileBuffer, FileSize);
|
memcpy (FvImage->CurrentFilePointer, FileBuffer, FileSize);
|
||||||
if (FvInfo->SizeofFvFiles[Index] > FileSize) {
|
if (FvInfo->SizeofFvFiles[Index] > FileSize) {
|
||||||
FvImage->CurrentFilePointer += FvInfo->SizeofFvFiles[Index];
|
FvImage->CurrentFilePointer += FvInfo->SizeofFvFiles[Index];
|
||||||
} else {
|
} else {
|
||||||
FvImage->CurrentFilePointer += FileSize;
|
FvImage->CurrentFilePointer += FileSize;
|
||||||
}
|
}
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
@@ -1378,10 +1378,10 @@ Returns:
|
|||||||
// Rebase Bs and Rt drivers for the debug genfvmap tool.
|
// Rebase Bs and Rt drivers for the debug genfvmap tool.
|
||||||
//
|
//
|
||||||
Status = FfsRebase (FvInfo, FvInfo->FvFiles[Index], (EFI_FFS_FILE_HEADER *) FileBuffer, (UINTN) FvImage->CurrentFilePointer - (UINTN) FvImage->FileImage, FvMapFile);
|
Status = FfsRebase (FvInfo, FvInfo->FvFiles[Index], (EFI_FFS_FILE_HEADER *) FileBuffer, (UINTN) FvImage->CurrentFilePointer - (UINTN) FvImage->FileImage, FvMapFile);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
Error (NULL, 0, 3000, "Invalid", "Could not rebase %s.", FvInfo->FvFiles[Index]);
|
Error (NULL, 0, 3000, "Invalid", "Could not rebase %s.", FvInfo->FvFiles[Index]);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// Copy the file
|
// Copy the file
|
||||||
//
|
//
|
||||||
@@ -3197,22 +3197,22 @@ Returns:
|
|||||||
CurrentOffset = (CurrentOffset + FfsHeaderSize + sizeof(EFI_FFS_FILE_HEADER) + FfsAlignment - 1) & ~(FfsAlignment - 1);
|
CurrentOffset = (CurrentOffset + FfsHeaderSize + sizeof(EFI_FFS_FILE_HEADER) + FfsAlignment - 1) & ~(FfsAlignment - 1);
|
||||||
CurrentOffset -= FfsHeaderSize;
|
CurrentOffset -= FfsHeaderSize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Add ffs file size
|
// Add ffs file size
|
||||||
//
|
//
|
||||||
if (FvInfoPtr->SizeofFvFiles[Index] > FfsFileSize) {
|
if (FvInfoPtr->SizeofFvFiles[Index] > FfsFileSize) {
|
||||||
CurrentOffset += FvInfoPtr->SizeofFvFiles[Index];
|
CurrentOffset += FvInfoPtr->SizeofFvFiles[Index];
|
||||||
} else {
|
} else {
|
||||||
CurrentOffset += FfsFileSize;
|
CurrentOffset += FfsFileSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Make next ffs file start at QWord Boundry
|
// Make next ffs file start at QWord Boundry
|
||||||
//
|
//
|
||||||
if (FvInfoPtr->IsPiFvImage) {
|
if (FvInfoPtr->IsPiFvImage) {
|
||||||
CurrentOffset = (CurrentOffset + EFI_FFS_FILE_HEADER_ALIGNMENT - 1) & ~(EFI_FFS_FILE_HEADER_ALIGNMENT - 1);
|
CurrentOffset = (CurrentOffset + EFI_FFS_FILE_HEADER_ALIGNMENT - 1) & ~(EFI_FFS_FILE_HEADER_ALIGNMENT - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CurrentOffset += VtfFileSize;
|
CurrentOffset += VtfFileSize;
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
This file contains describes the public interfaces to the GenFvImage Library.
|
This file contains describes the public interfaces to the GenFvImage Library.
|
||||||
The basic purpose of the library is to create Firmware Volume images.
|
The basic purpose of the library is to create Firmware Volume images.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Header file for Elf32 Convert solution
|
Header file for Elf32 Convert solution
|
||||||
|
|
||||||
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Header file for Elf64 convert solution
|
Header file for Elf64 convert solution
|
||||||
|
|
||||||
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Converts a pe32+ image to an FW, Te image type, or other specific image.
|
Converts a pe32+ image to an FW, Te image type, or other specific image.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@@ -169,7 +169,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Copyright declaration
|
// Copyright declaration
|
||||||
//
|
//
|
||||||
fprintf (stdout, "Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.\n\n");
|
fprintf (stdout, "Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.\n\n");
|
||||||
|
|
||||||
//
|
//
|
||||||
// Details Option
|
// Details Option
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Header file for GenFw
|
Header file for GenFw
|
||||||
|
|
||||||
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -48,38 +48,38 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
* ELF definitions common to all 32-bit architectures.
|
* ELF definitions common to all 32-bit architectures.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef UINT32 Elf32_Addr;
|
typedef UINT32 Elf32_Addr;
|
||||||
typedef UINT16 Elf32_Half;
|
typedef UINT16 Elf32_Half;
|
||||||
typedef UINT32 Elf32_Off;
|
typedef UINT32 Elf32_Off;
|
||||||
typedef INT32 Elf32_Sword;
|
typedef INT32 Elf32_Sword;
|
||||||
typedef UINT32 Elf32_Word;
|
typedef UINT32 Elf32_Word;
|
||||||
typedef UINT64 Elf32_Lword;
|
typedef UINT64 Elf32_Lword;
|
||||||
|
|
||||||
typedef Elf32_Word Elf32_Hashelt;
|
typedef Elf32_Word Elf32_Hashelt;
|
||||||
|
|
||||||
/* Non-standard class-dependent datatype used for abstraction. */
|
/* Non-standard class-dependent datatype used for abstraction. */
|
||||||
typedef Elf32_Word Elf32_Size;
|
typedef Elf32_Word Elf32_Size;
|
||||||
typedef Elf32_Sword Elf32_Ssize;
|
typedef Elf32_Sword Elf32_Ssize;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ELF header.
|
* ELF header.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
unsigned char e_ident[EI_NIDENT]; /* File identification. */
|
unsigned char e_ident[EI_NIDENT]; /* File identification. */
|
||||||
Elf32_Half e_type; /* File type. */
|
Elf32_Half e_type; /* File type. */
|
||||||
Elf32_Half e_machine; /* Machine architecture. */
|
Elf32_Half e_machine; /* Machine architecture. */
|
||||||
Elf32_Word e_version; /* ELF format version. */
|
Elf32_Word e_version; /* ELF format version. */
|
||||||
Elf32_Addr e_entry; /* Entry point. */
|
Elf32_Addr e_entry; /* Entry point. */
|
||||||
Elf32_Off e_phoff; /* Program header file offset. */
|
Elf32_Off e_phoff; /* Program header file offset. */
|
||||||
Elf32_Off e_shoff; /* Section header file offset. */
|
Elf32_Off e_shoff; /* Section header file offset. */
|
||||||
Elf32_Word e_flags; /* Architecture-specific flags. */
|
Elf32_Word e_flags; /* Architecture-specific flags. */
|
||||||
Elf32_Half e_ehsize; /* Size of ELF header in bytes. */
|
Elf32_Half e_ehsize; /* Size of ELF header in bytes. */
|
||||||
Elf32_Half e_phentsize; /* Size of program header entry. */
|
Elf32_Half e_phentsize; /* Size of program header entry. */
|
||||||
Elf32_Half e_phnum; /* Number of program header entries. */
|
Elf32_Half e_phnum; /* Number of program header entries. */
|
||||||
Elf32_Half e_shentsize; /* Size of section header entry. */
|
Elf32_Half e_shentsize; /* Size of section header entry. */
|
||||||
Elf32_Half e_shnum; /* Number of section header entries. */
|
Elf32_Half e_shnum; /* Number of section header entries. */
|
||||||
Elf32_Half e_shstrndx; /* Section name strings section. */
|
Elf32_Half e_shstrndx; /* Section name strings section. */
|
||||||
} Elf32_Ehdr;
|
} Elf32_Ehdr;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -87,17 +87,17 @@ typedef struct {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf32_Word sh_name; /* Section name (index into the
|
Elf32_Word sh_name; /* Section name (index into the
|
||||||
section header string table). */
|
section header string table). */
|
||||||
Elf32_Word sh_type; /* Section type. */
|
Elf32_Word sh_type; /* Section type. */
|
||||||
Elf32_Word sh_flags; /* Section flags. */
|
Elf32_Word sh_flags; /* Section flags. */
|
||||||
Elf32_Addr sh_addr; /* Address in memory image. */
|
Elf32_Addr sh_addr; /* Address in memory image. */
|
||||||
Elf32_Off sh_offset; /* Offset in file. */
|
Elf32_Off sh_offset; /* Offset in file. */
|
||||||
Elf32_Word sh_size; /* Size in bytes. */
|
Elf32_Word sh_size; /* Size in bytes. */
|
||||||
Elf32_Word sh_link; /* Index of a related section. */
|
Elf32_Word sh_link; /* Index of a related section. */
|
||||||
Elf32_Word sh_info; /* Depends on section type. */
|
Elf32_Word sh_info; /* Depends on section type. */
|
||||||
Elf32_Word sh_addralign; /* Alignment in bytes. */
|
Elf32_Word sh_addralign; /* Alignment in bytes. */
|
||||||
Elf32_Word sh_entsize; /* Size of each entry in section. */
|
Elf32_Word sh_entsize; /* Size of each entry in section. */
|
||||||
} Elf32_Shdr;
|
} Elf32_Shdr;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -105,14 +105,14 @@ typedef struct {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf32_Word p_type; /* Entry type. */
|
Elf32_Word p_type; /* Entry type. */
|
||||||
Elf32_Off p_offset; /* File offset of contents. */
|
Elf32_Off p_offset; /* File offset of contents. */
|
||||||
Elf32_Addr p_vaddr; /* Virtual address in memory image. */
|
Elf32_Addr p_vaddr; /* Virtual address in memory image. */
|
||||||
Elf32_Addr p_paddr; /* Physical address (not used). */
|
Elf32_Addr p_paddr; /* Physical address (not used). */
|
||||||
Elf32_Word p_filesz; /* Size of contents in file. */
|
Elf32_Word p_filesz; /* Size of contents in file. */
|
||||||
Elf32_Word p_memsz; /* Size of contents in memory. */
|
Elf32_Word p_memsz; /* Size of contents in memory. */
|
||||||
Elf32_Word p_flags; /* Access permission flags. */
|
Elf32_Word p_flags; /* Access permission flags. */
|
||||||
Elf32_Word p_align; /* Alignment in memory and file. */
|
Elf32_Word p_align; /* Alignment in memory and file. */
|
||||||
} Elf32_Phdr;
|
} Elf32_Phdr;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -120,11 +120,11 @@ typedef struct {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf32_Sword d_tag; /* Entry type. */
|
Elf32_Sword d_tag; /* Entry type. */
|
||||||
union {
|
union {
|
||||||
Elf32_Word d_val; /* Integer value. */
|
Elf32_Word d_val; /* Integer value. */
|
||||||
Elf32_Addr d_ptr; /* Address value. */
|
Elf32_Addr d_ptr; /* Address value. */
|
||||||
} d_un;
|
} d_un;
|
||||||
} Elf32_Dyn;
|
} Elf32_Dyn;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -133,60 +133,60 @@ typedef struct {
|
|||||||
|
|
||||||
/* Relocations that don't need an addend field. */
|
/* Relocations that don't need an addend field. */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf32_Addr r_offset; /* Location to be relocated. */
|
Elf32_Addr r_offset; /* Location to be relocated. */
|
||||||
Elf32_Word r_info; /* Relocation type and symbol index. */
|
Elf32_Word r_info; /* Relocation type and symbol index. */
|
||||||
} Elf32_Rel;
|
} Elf32_Rel;
|
||||||
|
|
||||||
/* Relocations that need an addend field. */
|
/* Relocations that need an addend field. */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf32_Addr r_offset; /* Location to be relocated. */
|
Elf32_Addr r_offset; /* Location to be relocated. */
|
||||||
Elf32_Word r_info; /* Relocation type and symbol index. */
|
Elf32_Word r_info; /* Relocation type and symbol index. */
|
||||||
Elf32_Sword r_addend; /* Addend. */
|
Elf32_Sword r_addend; /* Addend. */
|
||||||
} Elf32_Rela;
|
} Elf32_Rela;
|
||||||
|
|
||||||
/* Macros for accessing the fields of r_info. */
|
/* Macros for accessing the fields of r_info. */
|
||||||
#define ELF32_R_SYM(info) ((info) >> 8)
|
#define ELF32_R_SYM(info) ((info) >> 8)
|
||||||
#define ELF32_R_TYPE(info) ((unsigned char)(info))
|
#define ELF32_R_TYPE(info) ((unsigned char)(info))
|
||||||
|
|
||||||
/* Macro for constructing r_info from field values. */
|
/* Macro for constructing r_info from field values. */
|
||||||
#define ELF32_R_INFO(sym, type) (((sym) << 8) + (unsigned char)(type))
|
#define ELF32_R_INFO(sym, type) (((sym) << 8) + (unsigned char)(type))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Note entry header
|
* Note entry header
|
||||||
*/
|
*/
|
||||||
typedef Elf_Note Elf32_Nhdr;
|
typedef Elf_Note Elf32_Nhdr;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Move entry
|
* Move entry
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf32_Lword m_value; /* symbol value */
|
Elf32_Lword m_value; /* symbol value */
|
||||||
Elf32_Word m_info; /* size + index */
|
Elf32_Word m_info; /* size + index */
|
||||||
Elf32_Word m_poffset; /* symbol offset */
|
Elf32_Word m_poffset; /* symbol offset */
|
||||||
Elf32_Half m_repeat; /* repeat count */
|
Elf32_Half m_repeat; /* repeat count */
|
||||||
Elf32_Half m_stride; /* stride info */
|
Elf32_Half m_stride; /* stride info */
|
||||||
} Elf32_Move;
|
} Elf32_Move;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The macros compose and decompose values for Move.r_info
|
* The macros compose and decompose values for Move.r_info
|
||||||
*
|
*
|
||||||
* sym = ELF32_M_SYM(M.m_info)
|
* sym = ELF32_M_SYM(M.m_info)
|
||||||
* size = ELF32_M_SIZE(M.m_info)
|
* size = ELF32_M_SIZE(M.m_info)
|
||||||
* M.m_info = ELF32_M_INFO(sym, size)
|
* M.m_info = ELF32_M_INFO(sym, size)
|
||||||
*/
|
*/
|
||||||
#define ELF32_M_SYM(info) ((info)>>8)
|
#define ELF32_M_SYM(info) ((info)>>8)
|
||||||
#define ELF32_M_SIZE(info) ((unsigned char)(info))
|
#define ELF32_M_SIZE(info) ((unsigned char)(info))
|
||||||
#define ELF32_M_INFO(sym, size) (((sym)<<8)+(unsigned char)(size))
|
#define ELF32_M_INFO(sym, size) (((sym)<<8)+(unsigned char)(size))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Hardware/Software capabilities entry
|
* Hardware/Software capabilities entry
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf32_Word c_tag; /* how to interpret value */
|
Elf32_Word c_tag; /* how to interpret value */
|
||||||
union {
|
union {
|
||||||
Elf32_Word c_val;
|
Elf32_Word c_val;
|
||||||
Elf32_Addr c_ptr;
|
Elf32_Addr c_ptr;
|
||||||
} c_un;
|
} c_un;
|
||||||
} Elf32_Cap;
|
} Elf32_Cap;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -194,65 +194,65 @@ typedef struct {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf32_Word st_name; /* String table index of name. */
|
Elf32_Word st_name; /* String table index of name. */
|
||||||
Elf32_Addr st_value; /* Symbol value. */
|
Elf32_Addr st_value; /* Symbol value. */
|
||||||
Elf32_Word st_size; /* Size of associated object. */
|
Elf32_Word st_size; /* Size of associated object. */
|
||||||
unsigned char st_info; /* Type and binding information. */
|
unsigned char st_info; /* Type and binding information. */
|
||||||
unsigned char st_other; /* Reserved (not used). */
|
unsigned char st_other; /* Reserved (not used). */
|
||||||
Elf32_Half st_shndx; /* Section index of symbol. */
|
Elf32_Half st_shndx; /* Section index of symbol. */
|
||||||
} Elf32_Sym;
|
} Elf32_Sym;
|
||||||
|
|
||||||
/* Macros for accessing the fields of st_info. */
|
/* Macros for accessing the fields of st_info. */
|
||||||
#define ELF32_ST_BIND(info) ((info) >> 4)
|
#define ELF32_ST_BIND(info) ((info) >> 4)
|
||||||
#define ELF32_ST_TYPE(info) ((info) & 0xf)
|
#define ELF32_ST_TYPE(info) ((info) & 0xf)
|
||||||
|
|
||||||
/* Macro for constructing st_info from field values. */
|
/* Macro for constructing st_info from field values. */
|
||||||
#define ELF32_ST_INFO(bind, type) (((bind) << 4) + ((type) & 0xf))
|
#define ELF32_ST_INFO(bind, type) (((bind) << 4) + ((type) & 0xf))
|
||||||
|
|
||||||
/* Macro for accessing the fields of st_other. */
|
/* Macro for accessing the fields of st_other. */
|
||||||
#define ELF32_ST_VISIBILITY(oth) ((oth) & 0x3)
|
#define ELF32_ST_VISIBILITY(oth) ((oth) & 0x3)
|
||||||
|
|
||||||
/* Structures used by Sun & GNU symbol versioning. */
|
/* Structures used by Sun & GNU symbol versioning. */
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
Elf32_Half vd_version;
|
Elf32_Half vd_version;
|
||||||
Elf32_Half vd_flags;
|
Elf32_Half vd_flags;
|
||||||
Elf32_Half vd_ndx;
|
Elf32_Half vd_ndx;
|
||||||
Elf32_Half vd_cnt;
|
Elf32_Half vd_cnt;
|
||||||
Elf32_Word vd_hash;
|
Elf32_Word vd_hash;
|
||||||
Elf32_Word vd_aux;
|
Elf32_Word vd_aux;
|
||||||
Elf32_Word vd_next;
|
Elf32_Word vd_next;
|
||||||
} Elf32_Verdef;
|
} Elf32_Verdef;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
Elf32_Word vda_name;
|
Elf32_Word vda_name;
|
||||||
Elf32_Word vda_next;
|
Elf32_Word vda_next;
|
||||||
} Elf32_Verdaux;
|
} Elf32_Verdaux;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
Elf32_Half vn_version;
|
Elf32_Half vn_version;
|
||||||
Elf32_Half vn_cnt;
|
Elf32_Half vn_cnt;
|
||||||
Elf32_Word vn_file;
|
Elf32_Word vn_file;
|
||||||
Elf32_Word vn_aux;
|
Elf32_Word vn_aux;
|
||||||
Elf32_Word vn_next;
|
Elf32_Word vn_next;
|
||||||
} Elf32_Verneed;
|
} Elf32_Verneed;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
Elf32_Word vna_hash;
|
Elf32_Word vna_hash;
|
||||||
Elf32_Half vna_flags;
|
Elf32_Half vna_flags;
|
||||||
Elf32_Half vna_other;
|
Elf32_Half vna_other;
|
||||||
Elf32_Word vna_name;
|
Elf32_Word vna_name;
|
||||||
Elf32_Word vna_next;
|
Elf32_Word vna_next;
|
||||||
} Elf32_Vernaux;
|
} Elf32_Vernaux;
|
||||||
|
|
||||||
typedef Elf32_Half Elf32_Versym;
|
typedef Elf32_Half Elf32_Versym;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf32_Half si_boundto; /* direct bindings - symbol bound to */
|
Elf32_Half si_boundto; /* direct bindings - symbol bound to */
|
||||||
Elf32_Half si_flags; /* per symbol flags */
|
Elf32_Half si_flags; /* per symbol flags */
|
||||||
} Elf32_Syminfo;
|
} Elf32_Syminfo;
|
||||||
|
|
||||||
#endif /* !_SYS_ELF32_H_ */
|
#endif /* !_SYS_ELF32_H_ */
|
||||||
|
@@ -47,14 +47,14 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
* ELF definitions common to all 64-bit architectures.
|
* ELF definitions common to all 64-bit architectures.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef UINT64 Elf64_Addr;
|
typedef UINT64 Elf64_Addr;
|
||||||
typedef UINT16 Elf64_Half;
|
typedef UINT16 Elf64_Half;
|
||||||
typedef UINT64 Elf64_Off;
|
typedef UINT64 Elf64_Off;
|
||||||
typedef INT32 Elf64_Sword;
|
typedef INT32 Elf64_Sword;
|
||||||
typedef INT64 Elf64_Sxword;
|
typedef INT64 Elf64_Sxword;
|
||||||
typedef UINT32 Elf64_Word;
|
typedef UINT32 Elf64_Word;
|
||||||
typedef UINT64 Elf64_Lword;
|
typedef UINT64 Elf64_Lword;
|
||||||
typedef UINT64 Elf64_Xword;
|
typedef UINT64 Elf64_Xword;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Types of dynamic symbol hash table bucket and chain elements.
|
* Types of dynamic symbol hash table bucket and chain elements.
|
||||||
@@ -63,31 +63,31 @@ typedef UINT64 Elf64_Xword;
|
|||||||
* typedef is required.
|
* typedef is required.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef Elf64_Word Elf64_Hashelt;
|
typedef Elf64_Word Elf64_Hashelt;
|
||||||
|
|
||||||
/* Non-standard class-dependent datatype used for abstraction. */
|
/* Non-standard class-dependent datatype used for abstraction. */
|
||||||
typedef Elf64_Xword Elf64_Size;
|
typedef Elf64_Xword Elf64_Size;
|
||||||
typedef Elf64_Sxword Elf64_Ssize;
|
typedef Elf64_Sxword Elf64_Ssize;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ELF header.
|
* ELF header.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
unsigned char e_ident[EI_NIDENT]; /* File identification. */
|
unsigned char e_ident[EI_NIDENT]; /* File identification. */
|
||||||
Elf64_Half e_type; /* File type. */
|
Elf64_Half e_type; /* File type. */
|
||||||
Elf64_Half e_machine; /* Machine architecture. */
|
Elf64_Half e_machine; /* Machine architecture. */
|
||||||
Elf64_Word e_version; /* ELF format version. */
|
Elf64_Word e_version; /* ELF format version. */
|
||||||
Elf64_Addr e_entry; /* Entry point. */
|
Elf64_Addr e_entry; /* Entry point. */
|
||||||
Elf64_Off e_phoff; /* Program header file offset. */
|
Elf64_Off e_phoff; /* Program header file offset. */
|
||||||
Elf64_Off e_shoff; /* Section header file offset. */
|
Elf64_Off e_shoff; /* Section header file offset. */
|
||||||
Elf64_Word e_flags; /* Architecture-specific flags. */
|
Elf64_Word e_flags; /* Architecture-specific flags. */
|
||||||
Elf64_Half e_ehsize; /* Size of ELF header in bytes. */
|
Elf64_Half e_ehsize; /* Size of ELF header in bytes. */
|
||||||
Elf64_Half e_phentsize; /* Size of program header entry. */
|
Elf64_Half e_phentsize; /* Size of program header entry. */
|
||||||
Elf64_Half e_phnum; /* Number of program header entries. */
|
Elf64_Half e_phnum; /* Number of program header entries. */
|
||||||
Elf64_Half e_shentsize; /* Size of section header entry. */
|
Elf64_Half e_shentsize; /* Size of section header entry. */
|
||||||
Elf64_Half e_shnum; /* Number of section header entries. */
|
Elf64_Half e_shnum; /* Number of section header entries. */
|
||||||
Elf64_Half e_shstrndx; /* Section name strings section. */
|
Elf64_Half e_shstrndx; /* Section name strings section. */
|
||||||
} Elf64_Ehdr;
|
} Elf64_Ehdr;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -95,17 +95,17 @@ typedef struct {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf64_Word sh_name; /* Section name (index into the
|
Elf64_Word sh_name; /* Section name (index into the
|
||||||
section header string table). */
|
section header string table). */
|
||||||
Elf64_Word sh_type; /* Section type. */
|
Elf64_Word sh_type; /* Section type. */
|
||||||
Elf64_Xword sh_flags; /* Section flags. */
|
Elf64_Xword sh_flags; /* Section flags. */
|
||||||
Elf64_Addr sh_addr; /* Address in memory image. */
|
Elf64_Addr sh_addr; /* Address in memory image. */
|
||||||
Elf64_Off sh_offset; /* Offset in file. */
|
Elf64_Off sh_offset; /* Offset in file. */
|
||||||
Elf64_Xword sh_size; /* Size in bytes. */
|
Elf64_Xword sh_size; /* Size in bytes. */
|
||||||
Elf64_Word sh_link; /* Index of a related section. */
|
Elf64_Word sh_link; /* Index of a related section. */
|
||||||
Elf64_Word sh_info; /* Depends on section type. */
|
Elf64_Word sh_info; /* Depends on section type. */
|
||||||
Elf64_Xword sh_addralign; /* Alignment in bytes. */
|
Elf64_Xword sh_addralign; /* Alignment in bytes. */
|
||||||
Elf64_Xword sh_entsize; /* Size of each entry in section. */
|
Elf64_Xword sh_entsize; /* Size of each entry in section. */
|
||||||
} Elf64_Shdr;
|
} Elf64_Shdr;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -113,14 +113,14 @@ typedef struct {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf64_Word p_type; /* Entry type. */
|
Elf64_Word p_type; /* Entry type. */
|
||||||
Elf64_Word p_flags; /* Access permission flags. */
|
Elf64_Word p_flags; /* Access permission flags. */
|
||||||
Elf64_Off p_offset; /* File offset of contents. */
|
Elf64_Off p_offset; /* File offset of contents. */
|
||||||
Elf64_Addr p_vaddr; /* Virtual address in memory image. */
|
Elf64_Addr p_vaddr; /* Virtual address in memory image. */
|
||||||
Elf64_Addr p_paddr; /* Physical address (not used). */
|
Elf64_Addr p_paddr; /* Physical address (not used). */
|
||||||
Elf64_Xword p_filesz; /* Size of contents in file. */
|
Elf64_Xword p_filesz; /* Size of contents in file. */
|
||||||
Elf64_Xword p_memsz; /* Size of contents in memory. */
|
Elf64_Xword p_memsz; /* Size of contents in memory. */
|
||||||
Elf64_Xword p_align; /* Alignment in memory and file. */
|
Elf64_Xword p_align; /* Alignment in memory and file. */
|
||||||
} Elf64_Phdr;
|
} Elf64_Phdr;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -128,11 +128,11 @@ typedef struct {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf64_Sxword d_tag; /* Entry type. */
|
Elf64_Sxword d_tag; /* Entry type. */
|
||||||
union {
|
union {
|
||||||
Elf64_Xword d_val; /* Integer value. */
|
Elf64_Xword d_val; /* Integer value. */
|
||||||
Elf64_Addr d_ptr; /* Address value. */
|
Elf64_Addr d_ptr; /* Address value. */
|
||||||
} d_un;
|
} d_un;
|
||||||
} Elf64_Dyn;
|
} Elf64_Dyn;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -141,58 +141,58 @@ typedef struct {
|
|||||||
|
|
||||||
/* Relocations that don't need an addend field. */
|
/* Relocations that don't need an addend field. */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf64_Addr r_offset; /* Location to be relocated. */
|
Elf64_Addr r_offset; /* Location to be relocated. */
|
||||||
Elf64_Xword r_info; /* Relocation type and symbol index. */
|
Elf64_Xword r_info; /* Relocation type and symbol index. */
|
||||||
} Elf64_Rel;
|
} Elf64_Rel;
|
||||||
|
|
||||||
/* Relocations that need an addend field. */
|
/* Relocations that need an addend field. */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf64_Addr r_offset; /* Location to be relocated. */
|
Elf64_Addr r_offset; /* Location to be relocated. */
|
||||||
Elf64_Xword r_info; /* Relocation type and symbol index. */
|
Elf64_Xword r_info; /* Relocation type and symbol index. */
|
||||||
Elf64_Sxword r_addend; /* Addend. */
|
Elf64_Sxword r_addend; /* Addend. */
|
||||||
} Elf64_Rela;
|
} Elf64_Rela;
|
||||||
|
|
||||||
/* Macros for accessing the fields of r_info. */
|
/* Macros for accessing the fields of r_info. */
|
||||||
#define ELF64_R_SYM(info) ((info) >> 32)
|
#define ELF64_R_SYM(info) ((info) >> 32)
|
||||||
#define ELF64_R_TYPE(info) ((info) & 0xffffffffL)
|
#define ELF64_R_TYPE(info) ((info) & 0xffffffffL)
|
||||||
|
|
||||||
/* Macro for constructing r_info from field values. */
|
/* Macro for constructing r_info from field values. */
|
||||||
#define ELF64_R_INFO(sym, type) (((sym) << 32) + ((type) & 0xffffffffL))
|
#define ELF64_R_INFO(sym, type) (((sym) << 32) + ((type) & 0xffffffffL))
|
||||||
|
|
||||||
#define ELF64_R_TYPE_DATA(info) (((Elf64_Xword)(info)<<32)>>40)
|
#define ELF64_R_TYPE_DATA(info) (((Elf64_Xword)(info)<<32)>>40)
|
||||||
#define ELF64_R_TYPE_ID(info) (((Elf64_Xword)(info)<<56)>>56)
|
#define ELF64_R_TYPE_ID(info) (((Elf64_Xword)(info)<<56)>>56)
|
||||||
#define ELF64_R_TYPE_INFO(data, type) \
|
#define ELF64_R_TYPE_INFO(data, type) \
|
||||||
(((Elf64_Xword)(data)<<8)+(Elf64_Xword)(type))
|
(((Elf64_Xword)(data)<<8)+(Elf64_Xword)(type))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Note entry header
|
* Note entry header
|
||||||
*/
|
*/
|
||||||
typedef Elf_Note Elf64_Nhdr;
|
typedef Elf_Note Elf64_Nhdr;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Move entry
|
* Move entry
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf64_Lword m_value; /* symbol value */
|
Elf64_Lword m_value; /* symbol value */
|
||||||
Elf64_Xword m_info; /* size + index */
|
Elf64_Xword m_info; /* size + index */
|
||||||
Elf64_Xword m_poffset; /* symbol offset */
|
Elf64_Xword m_poffset; /* symbol offset */
|
||||||
Elf64_Half m_repeat; /* repeat count */
|
Elf64_Half m_repeat; /* repeat count */
|
||||||
Elf64_Half m_stride; /* stride info */
|
Elf64_Half m_stride; /* stride info */
|
||||||
} Elf64_Move;
|
} Elf64_Move;
|
||||||
|
|
||||||
#define ELF64_M_SYM(info) ((info)>>8)
|
#define ELF64_M_SYM(info) ((info)>>8)
|
||||||
#define ELF64_M_SIZE(info) ((unsigned char)(info))
|
#define ELF64_M_SIZE(info) ((unsigned char)(info))
|
||||||
#define ELF64_M_INFO(sym, size) (((sym)<<8)+(unsigned char)(size))
|
#define ELF64_M_INFO(sym, size) (((sym)<<8)+(unsigned char)(size))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Hardware/Software capabilities entry
|
* Hardware/Software capabilities entry
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf64_Xword c_tag; /* how to interpret value */
|
Elf64_Xword c_tag; /* how to interpret value */
|
||||||
union {
|
union {
|
||||||
Elf64_Xword c_val;
|
Elf64_Xword c_val;
|
||||||
Elf64_Addr c_ptr;
|
Elf64_Addr c_ptr;
|
||||||
} c_un;
|
} c_un;
|
||||||
} Elf64_Cap;
|
} Elf64_Cap;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -200,61 +200,61 @@ typedef struct {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf64_Word st_name; /* String table index of name. */
|
Elf64_Word st_name; /* String table index of name. */
|
||||||
unsigned char st_info; /* Type and binding information. */
|
unsigned char st_info; /* Type and binding information. */
|
||||||
unsigned char st_other; /* Reserved (not used). */
|
unsigned char st_other; /* Reserved (not used). */
|
||||||
Elf64_Half st_shndx; /* Section index of symbol. */
|
Elf64_Half st_shndx; /* Section index of symbol. */
|
||||||
Elf64_Addr st_value; /* Symbol value. */
|
Elf64_Addr st_value; /* Symbol value. */
|
||||||
Elf64_Xword st_size; /* Size of associated object. */
|
Elf64_Xword st_size; /* Size of associated object. */
|
||||||
} Elf64_Sym;
|
} Elf64_Sym;
|
||||||
|
|
||||||
/* Macros for accessing the fields of st_info. */
|
/* Macros for accessing the fields of st_info. */
|
||||||
#define ELF64_ST_BIND(info) ((info) >> 4)
|
#define ELF64_ST_BIND(info) ((info) >> 4)
|
||||||
#define ELF64_ST_TYPE(info) ((info) & 0xf)
|
#define ELF64_ST_TYPE(info) ((info) & 0xf)
|
||||||
|
|
||||||
/* Macro for constructing st_info from field values. */
|
/* Macro for constructing st_info from field values. */
|
||||||
#define ELF64_ST_INFO(bind, type) (((bind) << 4) + ((type) & 0xf))
|
#define ELF64_ST_INFO(bind, type) (((bind) << 4) + ((type) & 0xf))
|
||||||
|
|
||||||
/* Macro for accessing the fields of st_other. */
|
/* Macro for accessing the fields of st_other. */
|
||||||
#define ELF64_ST_VISIBILITY(oth) ((oth) & 0x3)
|
#define ELF64_ST_VISIBILITY(oth) ((oth) & 0x3)
|
||||||
|
|
||||||
/* Structures used by Sun & GNU-style symbol versioning. */
|
/* Structures used by Sun & GNU-style symbol versioning. */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf64_Half vd_version;
|
Elf64_Half vd_version;
|
||||||
Elf64_Half vd_flags;
|
Elf64_Half vd_flags;
|
||||||
Elf64_Half vd_ndx;
|
Elf64_Half vd_ndx;
|
||||||
Elf64_Half vd_cnt;
|
Elf64_Half vd_cnt;
|
||||||
Elf64_Word vd_hash;
|
Elf64_Word vd_hash;
|
||||||
Elf64_Word vd_aux;
|
Elf64_Word vd_aux;
|
||||||
Elf64_Word vd_next;
|
Elf64_Word vd_next;
|
||||||
} Elf64_Verdef;
|
} Elf64_Verdef;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf64_Word vda_name;
|
Elf64_Word vda_name;
|
||||||
Elf64_Word vda_next;
|
Elf64_Word vda_next;
|
||||||
} Elf64_Verdaux;
|
} Elf64_Verdaux;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf64_Half vn_version;
|
Elf64_Half vn_version;
|
||||||
Elf64_Half vn_cnt;
|
Elf64_Half vn_cnt;
|
||||||
Elf64_Word vn_file;
|
Elf64_Word vn_file;
|
||||||
Elf64_Word vn_aux;
|
Elf64_Word vn_aux;
|
||||||
Elf64_Word vn_next;
|
Elf64_Word vn_next;
|
||||||
} Elf64_Verneed;
|
} Elf64_Verneed;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf64_Word vna_hash;
|
Elf64_Word vna_hash;
|
||||||
Elf64_Half vna_flags;
|
Elf64_Half vna_flags;
|
||||||
Elf64_Half vna_other;
|
Elf64_Half vna_other;
|
||||||
Elf64_Word vna_name;
|
Elf64_Word vna_name;
|
||||||
Elf64_Word vna_next;
|
Elf64_Word vna_next;
|
||||||
} Elf64_Vernaux;
|
} Elf64_Vernaux;
|
||||||
|
|
||||||
typedef Elf64_Half Elf64_Versym;
|
typedef Elf64_Half Elf64_Versym;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Elf64_Half si_boundto; /* direct bindings - symbol bound to */
|
Elf64_Half si_boundto; /* direct bindings - symbol bound to */
|
||||||
Elf64_Half si_flags; /* per symbol flags */
|
Elf64_Half si_flags; /* per symbol flags */
|
||||||
} Elf64_Syminfo;
|
} Elf64_Syminfo;
|
||||||
|
|
||||||
#endif /* !_SYS_ELF64_H_ */
|
#endif /* !_SYS_ELF64_H_ */
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -15,7 +15,7 @@
|
|||||||
Directory-Ptr Directory {512}
|
Directory-Ptr Directory {512}
|
||||||
) {4}
|
) {4}
|
||||||
|
|
||||||
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@@ -96,7 +96,7 @@ Usage (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
printf ("Usage: GenPage.exe [options] EfiLoaderImageName \n\n\
|
printf ("Usage: GenPage.exe [options] EfiLoaderImageName \n\n\
|
||||||
Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.\n\n\
|
Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.\n\n\
|
||||||
Utility to generate the EfiLoader image containing a page table.\n\n\
|
Utility to generate the EfiLoader image containing a page table.\n\n\
|
||||||
optional arguments:\n\
|
optional arguments:\n\
|
||||||
-h, --help Show this help message and exit\n\
|
-h, --help Show this help message and exit\n\
|
||||||
|
@@ -7,7 +7,7 @@ x64 Long Mode Virtual Memory Management Definitions
|
|||||||
3) IA-32 Intel(R) Atchitecture Software Developer's Manual Volume 3:System Programmer's Guide, Intel
|
3) IA-32 Intel(R) Atchitecture Software Developer's Manual Volume 3:System Programmer's Guide, Intel
|
||||||
4) AMD64 Architecture Programmer's Manual Volume 2: System Programming
|
4) AMD64 Architecture Programmer's Manual Volume 2: System Programming
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -155,7 +155,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Copyright declaration
|
// Copyright declaration
|
||||||
//
|
//
|
||||||
fprintf (stdout, "Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.\n\n");
|
fprintf (stdout, "Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.\n\n");
|
||||||
|
|
||||||
//
|
//
|
||||||
// Details Option
|
// Details Option
|
||||||
@@ -1765,7 +1765,7 @@ Returns:
|
|||||||
|
|
||||||
if (Status != EFI_SUCCESS || OutFileBuffer == NULL) {
|
if (Status != EFI_SUCCESS || OutFileBuffer == NULL) {
|
||||||
Error (NULL, 0, 2000, "Status is not successful", "Status value is 0x%X", (int) Status);
|
Error (NULL, 0, 2000, "Status is not successful", "Status value is 0x%X", (int) Status);
|
||||||
goto Finish;
|
goto Finish;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
This file contains functions required to generate a boot strap file (BSF) also
|
This file contains functions required to generate a boot strap file (BSF) also
|
||||||
known as the Volume Top File (VTF)
|
known as the Volume Top File (VTF)
|
||||||
|
|
||||||
Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
distribution. The full text of the license may be found at
|
distribution. The full text of the license may be found at
|
||||||
@@ -2479,7 +2479,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Copyright declaration
|
// Copyright declaration
|
||||||
//
|
//
|
||||||
fprintf (stdout, "Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.\n\n");
|
fprintf (stdout, "Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.\n\n");
|
||||||
//
|
//
|
||||||
// Details Option
|
// Details Option
|
||||||
//
|
//
|
||||||
@@ -2649,7 +2649,7 @@ Returns:
|
|||||||
FirstRoundS = FALSE;
|
FirstRoundS = FALSE;
|
||||||
} else {
|
} else {
|
||||||
Status = AsciiStringToUint64 (argv[Index + 1], FALSE, &FwVolSize2);
|
Status = AsciiStringToUint64 (argv[Index + 1], FALSE, &FwVolSize2);
|
||||||
SecondVTF = TRUE;
|
SecondVTF = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Status != EFI_SUCCESS) {
|
if (Status != EFI_SUCCESS) {
|
||||||
@@ -2660,8 +2660,8 @@ Returns:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((stricmp (argv[Index], "-v") == 0) || (stricmp (argv[Index], "--verbose") == 0)) {
|
if ((stricmp (argv[Index], "-v") == 0) || (stricmp (argv[Index], "--verbose") == 0)) {
|
||||||
VerboseMode = TRUE;
|
VerboseMode = TRUE;
|
||||||
Index--;
|
Index--;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2729,7 +2729,7 @@ Returns:
|
|||||||
if (SecondVTF == TRUE) {
|
if (SecondVTF == TRUE) {
|
||||||
OutFileName1 = VTF_OUTPUT_FILE1;
|
OutFileName1 = VTF_OUTPUT_FILE1;
|
||||||
OutFileName2 = VTF_OUTPUT_FILE2;
|
OutFileName2 = VTF_OUTPUT_FILE2;
|
||||||
} else {
|
} else {
|
||||||
OutFileName1 = VTF_OUTPUT_FILE1;
|
OutFileName1 = VTF_OUTPUT_FILE1;
|
||||||
}
|
}
|
||||||
SymFileName = VTF_SYM_FILE;
|
SymFileName = VTF_SYM_FILE;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
This file contains the relevant declarations required to generate Boot Strap File
|
This file contains the relevant declarations required to generate Boot Strap File
|
||||||
|
|
||||||
Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
distribution. The full text of the license may be found at
|
distribution. The full text of the license may be found at
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Fat file system structure and definition.
|
Fat file system structure and definition.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -4,7 +4,7 @@ Reading/writing MBR/DBR.
|
|||||||
If we write MBR to disk, we just update the MBR code and the partition table wouldn't be over written.
|
If we write MBR to disk, we just update the MBR code and the partition table wouldn't be over written.
|
||||||
If we process DBR, we will patch MBR to set first partition active if no active partition exists.
|
If we process DBR, we will patch MBR to set first partition active if no active partition exists.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Processor or Compiler specific defines and types for AArch64.
|
Processor or Compiler specific defines and types for AArch64.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||||
Portions copyright (c) 2013, ARM Ltd. All rights reserved.<BR>
|
Portions copyright (c) 2013, ARM Ltd. All rights reserved.<BR>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Processor or Compiler specific defines and types for ARM.
|
Processor or Compiler specific defines and types for ARM.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
This file is stand alone self consistent set of definitions.
|
This file is stand alone self consistent set of definitions.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
This file is for build version number auto generation
|
This file is for build version number auto generation
|
||||||
|
|
||||||
Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@@ -12,4 +12,4 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#define __BUILD_VERSION ""
|
#define __BUILD_VERSION "Developer Build based on Revision: Unknown"
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
@par Revision Reference:
|
@par Revision Reference:
|
||||||
Version 1.4.
|
Version 1.4.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
@par Revision Reference:
|
@par Revision Reference:
|
||||||
Version 1.2C
|
Version 1.2C
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Defines data types and constants introduced in UEFI.
|
Defines data types and constants introduced in UEFI.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
IFR is primarily consumed by the EFI presentation engine, and produced by EFI
|
IFR is primarily consumed by the EFI presentation engine, and produced by EFI
|
||||||
internal application and drivers as well as all add-in card option-ROM drivers
|
internal application and drivers as well as all add-in card option-ROM drivers
|
||||||
|
|
||||||
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
|
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/**@file
|
/**@file
|
||||||
Header file for EFI Variable Services.
|
Header file for EFI Variable Services.
|
||||||
|
|
||||||
Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
@par Revision Reference:
|
@par Revision Reference:
|
||||||
GUIDs defined in UEFI 2.0 spec.
|
GUIDs defined in UEFI 2.0 spec.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
@par Revision Reference:
|
@par Revision Reference:
|
||||||
Guids defined in PI Spec Volume 3
|
Guids defined in PI Spec Volume 3
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Processor or Compiler specific defines and types for x64.
|
Processor or Compiler specific defines and types for x64.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
in the PCI Firmware Specification, version 3.0 draft version 0.5.
|
in the PCI Firmware Specification, version 3.0 draft version 0.5.
|
||||||
Specification is available at http://www.pcisig.com.
|
Specification is available at http://www.pcisig.com.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
@bug Fix text - doc as defined in MSFT EFI specification.
|
@bug Fix text - doc as defined in MSFT EFI specification.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>
|
Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
@@ -475,23 +475,23 @@ typedef struct {
|
|||||||
//
|
//
|
||||||
// x64 processor relocation types.
|
// x64 processor relocation types.
|
||||||
//
|
//
|
||||||
#define IMAGE_REL_AMD64_ABSOLUTE 0x0000
|
#define IMAGE_REL_AMD64_ABSOLUTE 0x0000
|
||||||
#define IMAGE_REL_AMD64_ADDR64 0x0001
|
#define IMAGE_REL_AMD64_ADDR64 0x0001
|
||||||
#define IMAGE_REL_AMD64_ADDR32 0x0002
|
#define IMAGE_REL_AMD64_ADDR32 0x0002
|
||||||
#define IMAGE_REL_AMD64_ADDR32NB 0x0003
|
#define IMAGE_REL_AMD64_ADDR32NB 0x0003
|
||||||
#define IMAGE_REL_AMD64_REL32 0x0004
|
#define IMAGE_REL_AMD64_REL32 0x0004
|
||||||
#define IMAGE_REL_AMD64_REL32_1 0x0005
|
#define IMAGE_REL_AMD64_REL32_1 0x0005
|
||||||
#define IMAGE_REL_AMD64_REL32_2 0x0006
|
#define IMAGE_REL_AMD64_REL32_2 0x0006
|
||||||
#define IMAGE_REL_AMD64_REL32_3 0x0007
|
#define IMAGE_REL_AMD64_REL32_3 0x0007
|
||||||
#define IMAGE_REL_AMD64_REL32_4 0x0008
|
#define IMAGE_REL_AMD64_REL32_4 0x0008
|
||||||
#define IMAGE_REL_AMD64_REL32_5 0x0009
|
#define IMAGE_REL_AMD64_REL32_5 0x0009
|
||||||
#define IMAGE_REL_AMD64_SECTION 0x000A
|
#define IMAGE_REL_AMD64_SECTION 0x000A
|
||||||
#define IMAGE_REL_AMD64_SECREL 0x000B
|
#define IMAGE_REL_AMD64_SECREL 0x000B
|
||||||
#define IMAGE_REL_AMD64_SECREL7 0x000C
|
#define IMAGE_REL_AMD64_SECREL7 0x000C
|
||||||
#define IMAGE_REL_AMD64_TOKEN 0x000D
|
#define IMAGE_REL_AMD64_TOKEN 0x000D
|
||||||
#define IMAGE_REL_AMD64_SREL32 0x000E
|
#define IMAGE_REL_AMD64_SREL32 0x000E
|
||||||
#define IMAGE_REL_AMD64_PAIR 0x000F
|
#define IMAGE_REL_AMD64_PAIR 0x000F
|
||||||
#define IMAGE_REL_AMD64_SSPAN32 0x0010
|
#define IMAGE_REL_AMD64_SSPAN32 0x0010
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Based relocation format.
|
/// Based relocation format.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Support for PCI 2.2 standard.
|
Support for PCI 2.2 standard.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Abstraction of a very simple graphics device.
|
Abstraction of a very simple graphics device.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
@par Revision Reference: PI
|
@par Revision Reference: PI
|
||||||
Version 1.00.
|
Version 1.00.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
@par Revision Reference:
|
@par Revision Reference:
|
||||||
This protocol is defined in HII spec 0.92.
|
This protocol is defined in HII spec 0.92.
|
||||||
|
|
||||||
Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Abstraction of a very simple graphics device.
|
Abstraction of a very simple graphics device.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Processor or Compiler specific defines and types x64 (Intel(r) EM64T, AMD64).
|
Processor or Compiler specific defines and types x64 (Intel(r) EM64T, AMD64).
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
LzmaUtil.c -- Test application for LZMA compression
|
LzmaUtil.c -- Test application for LZMA compression
|
||||||
2016-10-04 : Igor Pavlov : Public domain
|
2016-10-04 : Igor Pavlov : Public domain
|
||||||
|
|
||||||
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@@ -50,7 +50,7 @@ static CONVERTER_TYPE mConType = NoConverter;
|
|||||||
#define UTILITY_MAJOR_VERSION 0
|
#define UTILITY_MAJOR_VERSION 0
|
||||||
#define UTILITY_MINOR_VERSION 2
|
#define UTILITY_MINOR_VERSION 2
|
||||||
#define INTEL_COPYRIGHT \
|
#define INTEL_COPYRIGHT \
|
||||||
"Copyright (c) 2009-2016, Intel Corporation. All rights reserved."
|
"Copyright (c) 2009-2018, Intel Corporation. All rights reserved."
|
||||||
void PrintHelp(char *buffer)
|
void PrintHelp(char *buffer)
|
||||||
{
|
{
|
||||||
strcat(buffer,
|
strcat(buffer,
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
@REM This script will exec LzmaCompress tool with --f86 option that enables
|
@REM This script will exec LzmaCompress tool with --f86 option that enables
|
||||||
@REM converter for x86 code.
|
@REM converter for x86 code.
|
||||||
@REM
|
@REM
|
||||||
@REM Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved.<BR>
|
@REM Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
@REM This program and the accompanying materials
|
@REM This program and the accompanying materials
|
||||||
@REM are licensed and made available under the terms and conditions of the BSD License
|
@REM are licensed and made available under the terms and conditions of the BSD License
|
||||||
@REM which accompanies this distribution. The full text of the license may be found at
|
@REM which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
@REM ## @file
|
@REM ## @file
|
||||||
@REM # Makefile
|
@REM # Makefile
|
||||||
@REM #
|
@REM #
|
||||||
@REM # Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>
|
@REM # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
@REM # This program and the accompanying materials
|
@REM # This program and the accompanying materials
|
||||||
@REM # are licensed and made available under the terms and conditions of the BSD License
|
@REM # are licensed and made available under the terms and conditions of the BSD License
|
||||||
@REM # which accompanies this distribution. The full text of the license may be found at
|
@REM # which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Efi Compressor
|
Efi Compressor
|
||||||
|
|
||||||
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
distribution. The full text of the license may be found at
|
distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Python Utility
|
Python Utility
|
||||||
|
|
||||||
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
distribution. The full text of the license may be found at
|
distribution. The full text of the license may be found at
|
||||||
|
@@ -5,7 +5,7 @@ and Pointers to repeated strings.
|
|||||||
This sequence is further divided into Blocks and Huffman codings are applied to
|
This sequence is further divided into Blocks and Huffman codings are applied to
|
||||||
each Block.
|
each Block.
|
||||||
|
|
||||||
Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@@ -1697,7 +1697,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Copyright declaration
|
// Copyright declaration
|
||||||
//
|
//
|
||||||
fprintf (stdout, "Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.\n\n");
|
fprintf (stdout, "Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.\n\n");
|
||||||
|
|
||||||
//
|
//
|
||||||
// Details Option
|
// Details Option
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Internal include file for Tiano Decompress Library.
|
Internal include file for Tiano Decompress Library.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Defines and prototypes for the UEFI VFR compiler internal use.
|
Defines and prototypes for the UEFI VFR compiler internal use.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -624,7 +624,7 @@ CVfrCompiler::PreProcess (
|
|||||||
fclose (pVfrFile);
|
fclose (pVfrFile);
|
||||||
|
|
||||||
CmdLen = strlen (mPreProcessCmd) + strlen (mPreProcessOpt) +
|
CmdLen = strlen (mPreProcessCmd) + strlen (mPreProcessOpt) +
|
||||||
strlen (mOptions.VfrFileName) + strlen (mOptions.PreprocessorOutputFileName);
|
strlen (mOptions.VfrFileName) + strlen (mOptions.PreprocessorOutputFileName);
|
||||||
if (mOptions.CPreprocessorOptions != NULL) {
|
if (mOptions.CPreprocessorOptions != NULL) {
|
||||||
CmdLen += strlen (mOptions.CPreprocessorOptions);
|
CmdLen += strlen (mOptions.CPreprocessorOptions);
|
||||||
}
|
}
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
VfrCompiler internal defintions.
|
VfrCompiler internal defintions.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
VfrCompiler error handler.
|
VfrCompiler error handler.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
VfrCompiler Error definition
|
VfrCompiler Error definition
|
||||||
|
|
||||||
Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
The definition of CFormPkg's member function
|
The definition of CFormPkg's member function
|
||||||
|
|
||||||
Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@@ -454,17 +454,17 @@ CFormPkg::GenCFile (
|
|||||||
// For framework vfr file, the extension framework header will be added.
|
// For framework vfr file, the extension framework header will be added.
|
||||||
//
|
//
|
||||||
if (VfrCompatibleMode) {
|
if (VfrCompatibleMode) {
|
||||||
fprintf (pFile, " // FRAMEWORK PACKAGE HEADER Length\n");
|
fprintf (pFile, " // FRAMEWORK PACKAGE HEADER Length\n");
|
||||||
PkgLength = PkgHdr->Length + sizeof (UINT32) + 2;
|
PkgLength = PkgHdr->Length + sizeof (UINT32) + 2;
|
||||||
_WRITE_PKG_LINE(pFile, BYTES_PRE_LINE, " ", (CHAR8 *)&PkgLength, sizeof (UINT32));
|
_WRITE_PKG_LINE(pFile, BYTES_PRE_LINE, " ", (CHAR8 *)&PkgLength, sizeof (UINT32));
|
||||||
fprintf (pFile, "\n\n // FRAMEWORK PACKAGE HEADER Type\n");
|
fprintf (pFile, "\n\n // FRAMEWORK PACKAGE HEADER Type\n");
|
||||||
PkgLength = 3;
|
PkgLength = 3;
|
||||||
_WRITE_PKG_LINE(pFile, BYTES_PRE_LINE, " ", (CHAR8 *)&PkgLength, sizeof (UINT16));
|
_WRITE_PKG_LINE(pFile, BYTES_PRE_LINE, " ", (CHAR8 *)&PkgLength, sizeof (UINT16));
|
||||||
} else {
|
} else {
|
||||||
fprintf (pFile, " // ARRAY LENGTH\n");
|
fprintf (pFile, " // ARRAY LENGTH\n");
|
||||||
PkgLength = PkgHdr->Length + sizeof (UINT32);
|
PkgLength = PkgHdr->Length + sizeof (UINT32);
|
||||||
_WRITE_PKG_LINE(pFile, BYTES_PRE_LINE, " ", (CHAR8 *)&PkgLength, sizeof (UINT32));
|
_WRITE_PKG_LINE(pFile, BYTES_PRE_LINE, " ", (CHAR8 *)&PkgLength, sizeof (UINT32));
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf (pFile, "\n\n // PACKAGE HEADER\n");
|
fprintf (pFile, "\n\n // PACKAGE HEADER\n");
|
||||||
_WRITE_PKG_LINE(pFile, BYTES_PRE_LINE, " ", (CHAR8 *)PkgHdr, sizeof (EFI_HII_PACKAGE_HEADER));
|
_WRITE_PKG_LINE(pFile, BYTES_PRE_LINE, " ", (CHAR8 *)PkgHdr, sizeof (EFI_HII_PACKAGE_HEADER));
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
The definition of CFormPkg's member function
|
The definition of CFormPkg's member function
|
||||||
|
|
||||||
Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@@ -553,7 +553,7 @@ _STR2U32 (
|
|||||||
//
|
//
|
||||||
// BUG: does not handle overflow here
|
// BUG: does not handle overflow here
|
||||||
//
|
//
|
||||||
(IsHex == TRUE) ? (Value <<= 4) : (Value *= 10);
|
(IsHex == TRUE) ? (Value <<= 4) : (Value *= 10);
|
||||||
|
|
||||||
if ((IsHex == TRUE) && (c >= 'a') && (c <= 'f')) {
|
if ((IsHex == TRUE) && (c >= 'a') && (c <= 'f')) {
|
||||||
Value += (c - 'a' + 10);
|
Value += (c - 'a' + 10);
|
||||||
@@ -983,7 +983,7 @@ CVfrVarDataTypeDB::~CVfrVarDataTypeDB (
|
|||||||
pType->mMembers = pType->mMembers->mNext;
|
pType->mMembers = pType->mMembers->mNext;
|
||||||
delete pField;
|
delete pField;
|
||||||
}
|
}
|
||||||
delete pType;
|
delete pType;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (mPackStack != NULL) {
|
while (mPackStack != NULL) {
|
||||||
@@ -1536,7 +1536,7 @@ CVfrVarDataTypeDB::ParserDB (
|
|||||||
printf ("\t\t\t%s\t%s\n", pFNode->mFieldType->mTypeName, pFNode->mFieldName);
|
printf ("\t\t\t%s\t%s\n", pFNode->mFieldType->mTypeName, pFNode->mFieldName);
|
||||||
}
|
}
|
||||||
printf ("\t\t};\n");
|
printf ("\t\t};\n");
|
||||||
printf ("---------------------------------------------------------------\n");
|
printf ("---------------------------------------------------------------\n");
|
||||||
}
|
}
|
||||||
printf ("***************************************************************\n");
|
printf ("***************************************************************\n");
|
||||||
}
|
}
|
||||||
@@ -2649,7 +2649,7 @@ EFI_VARSTORE_INFO::operator == (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
if ((mVarStoreId == Info->mVarStoreId) &&
|
if ((mVarStoreId == Info->mVarStoreId) &&
|
||||||
(mInfo.mVarName == Info->mInfo.mVarName) &&
|
(mInfo.mVarName == Info->mInfo.mVarName) &&
|
||||||
(mInfo.mVarOffset == Info->mInfo.mVarOffset) &&
|
(mInfo.mVarOffset == Info->mInfo.mVarOffset) &&
|
||||||
(mVarType == Info->mVarType) &&
|
(mVarType == Info->mVarType) &&
|
||||||
(mVarTotalSize == Info->mVarTotalSize) &&
|
(mVarTotalSize == Info->mVarTotalSize) &&
|
||||||
@@ -3432,7 +3432,7 @@ CVfrQuestionDB::GetQuestionId (
|
|||||||
if (strcmp (pNode->mVarIdStr, VarIdStr) != 0) {
|
if (strcmp (pNode->mVarIdStr, VarIdStr) != 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QuestionId = pNode->mQuestionId;
|
QuestionId = pNode->mQuestionId;
|
||||||
BitMask = pNode->mBitMask;
|
BitMask = pNode->mBitMask;
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Vfr common library functions.
|
Vfr common library functions.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@@ -270,7 +270,7 @@ struct SVfrVarStorageNode {
|
|||||||
SVfrDataType *mDataType;
|
SVfrDataType *mDataType;
|
||||||
|
|
||||||
// NameValue Storage
|
// NameValue Storage
|
||||||
struct {
|
struct {
|
||||||
EFI_STRING_ID *mNameTable;
|
EFI_STRING_ID *mNameTable;
|
||||||
UINT32 mTableSize;
|
UINT32 mTableSize;
|
||||||
} mNameSpace;
|
} mNameSpace;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
The tool dumps the contents of a firmware volume
|
The tool dumps the contents of a firmware volume
|
||||||
|
|
||||||
Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@@ -2393,7 +2393,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Copyright declaration
|
// Copyright declaration
|
||||||
//
|
//
|
||||||
fprintf (stdout, "Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.\n\n");
|
fprintf (stdout, "Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.\n\n");
|
||||||
fprintf (stdout, " Display Tiano Firmware Volume FFS image information\n\n");
|
fprintf (stdout, " Display Tiano Firmware Volume FFS image information\n\n");
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
# file of PCD layout for use during the build when the platform integrator selects to use
|
# file of PCD layout for use during the build when the platform integrator selects to use
|
||||||
# automatic offset calculation.
|
# automatic offset calculation.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>
|
# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
#
|
#
|
||||||
# This program and the accompanying materials
|
# This program and the accompanying materials
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
# are licensed and made available under the terms and conditions of the BSD License
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
## @file
|
## @file
|
||||||
# This file is used to define strings used in the BPDG tool
|
# This file is used to define strings used in the BPDG tool
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>
|
# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
# This program and the accompanying materials
|
# This program and the accompanying materials
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
# are licensed and made available under the terms and conditions of the BSD License
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
# which accompanies this distribution. The full text of the license may be found at
|
||||||
@@ -32,7 +32,7 @@ MAP_FILE_COMMENT_TEMPLATE = \
|
|||||||
#
|
#
|
||||||
# This file lists all VPD informations for a platform fixed/adjusted by BPDG tool.
|
# This file lists all VPD informations for a platform fixed/adjusted by BPDG tool.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 -2016, Intel Corporation. All rights reserved.<BR>
|
# Copyright (c) 2010 -2018, Intel Corporation. All rights reserved.<BR>
|
||||||
# This program and the accompanying materials
|
# This program and the accompanying materials
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
# are licensed and made available under the terms and conditions of the BSD License
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
# which accompanies this distribution. The full text of the license may be found at
|
||||||
@@ -50,7 +50,7 @@ LBL_BPDG_VERSION = (u"1.0")
|
|||||||
LBL_BPDG_USAGE = \
|
LBL_BPDG_USAGE = \
|
||||||
(
|
(
|
||||||
"""BPDG options -o Filename.bin -m Filename.map Filename.txt
|
"""BPDG options -o Filename.bin -m Filename.map Filename.txt
|
||||||
Copyright (c) 2010 - 2016, Intel Corporation All Rights Reserved.
|
Copyright (c) 2010 - 2018, Intel Corporation All Rights Reserved.
|
||||||
|
|
||||||
Intel(r) Binary Product Data Generation Tool (Intel(r) BPDG)
|
Intel(r) Binary Product Data Generation Tool (Intel(r) BPDG)
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# This file is for build version number auto generation
|
# This file is for build version number auto generation
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
|
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
#
|
#
|
||||||
# This program and the accompanying materials are licensed and made available
|
# This program and the accompanying materials are licensed and made available
|
||||||
# under the terms and conditions of the BSD License which accompanies this
|
# under the terms and conditions of the BSD License which accompanies this
|
||||||
@@ -13,4 +13,4 @@
|
|||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
#
|
#
|
||||||
|
|
||||||
gBUILD_VERSION = ""
|
gBUILD_VERSION = "Developer Build based on Revision: Unknown"
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user