Simplify the relocation calculation.

Calculation assumes that the STM is under 1MB in size and
the MSEG will always be on 1 MB boundries.

Signed-off-by: Eugene D. Myers <edmyers@tycho.nsa.gov>
This commit is contained in:
Eugene D. Myers 2020-10-15 12:12:30 -04:00
parent 41ecbfda23
commit 2a3fd2f610
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,6 @@ extern UINT64 GetMsegInfoFromMsr (
OUT UINT64 *MsegBase,
OUT UINT64 *MsegLength
);
/**
This function relocate image at ImageBase.
@ -320,6 +319,7 @@ RelocateStmImage (
//
elf_process_reloc_table(StmImage, StmImage );
AsmWbinvd ();
return ;
}