mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-26 01:48:23 +08:00
Uncomment TE fixup calculation.
This commit is contained in:
parent
29db1412a1
commit
eabf04cf57
@ -3911,11 +3911,10 @@ UINT8 FfsEngine::reconstructSection(const QModelIndex& index, const UINT32 base,
|
|||||||
model->subtype(index.parent()) == EFI_FV_FILETYPE_PEIM ||
|
model->subtype(index.parent()) == EFI_FV_FILETYPE_PEIM ||
|
||||||
model->subtype(index.parent()) == EFI_FV_FILETYPE_COMBINED_PEIM_DRIVER)) {
|
model->subtype(index.parent()) == EFI_FV_FILETYPE_COMBINED_PEIM_DRIVER)) {
|
||||||
UINT16 teFixup = 0;
|
UINT16 teFixup = 0;
|
||||||
//TODO: add proper handling
|
if (model->subtype(index) == EFI_SECTION_TE) {
|
||||||
/*if (model->subtype(index) == EFI_SECTION_TE) {
|
|
||||||
const EFI_IMAGE_TE_HEADER* teHeader = (const EFI_IMAGE_TE_HEADER*)model->body(index).constData();
|
const EFI_IMAGE_TE_HEADER* teHeader = (const EFI_IMAGE_TE_HEADER*)model->body(index).constData();
|
||||||
teFixup = teHeader->StrippedSize - sizeof(EFI_IMAGE_TE_HEADER);
|
teFixup = teHeader->StrippedSize - sizeof(EFI_IMAGE_TE_HEADER);
|
||||||
}*/
|
}
|
||||||
|
|
||||||
if (base) {
|
if (base) {
|
||||||
result = rebase(reconstructed, base - teFixup + header.size());
|
result = rebase(reconstructed, base - teFixup + header.size());
|
||||||
|
Loading…
Reference in New Issue
Block a user