Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: bd7c73ba7706d82a974799aac39e48e05dccd169
      
https://github.com/tianocore/edk2/commit/bd7c73ba7706d82a974799aac39e48e05dccd169
  Author: Ard Biesheuvel <[email protected]>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M StandaloneMmPkg/Core/Dispatcher.c

  Log Message:
  -----------
  StandaloneMmPkg/Core: fix bogus FV pointer in DEBUG string

FvIsBeingProcessed () emits a DEBUG print with the intent to print
the memory address of the FV that is being processed, but instead,
it prints the contents of an uninitialized stack variable.

Signed-off-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Jiewen Yao <[email protected]>
Reviewed-by: Sami Mujawar <[email protected]>
Tested-by: Ilias Apalodimas <[email protected]>


  Commit: 102da0255bab6610f24f212b295e63d6d8032ab7
      
https://github.com/tianocore/edk2/commit/102da0255bab6610f24f212b295e63d6d8032ab7
  Author: Ard Biesheuvel <[email protected]>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M StandaloneMmPkg/Core/StandaloneMmCore.inf

  Log Message:
  -----------
  StandaloneMmPkg/Core: add missing GUID reference

The Standalone core uses gEfiHobMemoryAllocModuleGuid, but failed to
declare this in its INF.

Signed-off-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Jiewen Yao <[email protected]>
Reviewed-by: Sami Mujawar <[email protected]>
Tested-by: Ilias Apalodimas <[email protected]>


  Commit: cdc686223a2d9b8c64831ffbc4b68ca16245aae0
      
https://github.com/tianocore/edk2/commit/cdc686223a2d9b8c64831ffbc4b68ca16245aae0
  Author: Ard Biesheuvel <[email protected]>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M StandaloneMmPkg/Core/StandaloneMmCore.inf
    M 
StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf

  Log Message:
  -----------
  StandaloneMmPkg: generate position independent code for StMM core

The standalone MM core runs in a restricted environment that is set
up by a higher privilege level, and which may not allow memory regions
to be writable and executable at the same time.

This means that making the StMM core self-relocatable requires that
all the targets of the relocation fixups are outside of the executable
region of the image, given that we cannot remap the executable code
writable from the executable code itself without losing those execute
permissions.

So instead, use the existing toolchain support to ensure that position
independent code is used where possible, and that all the remaining
relocated quantities are emitted into the data section. (Note that
staticallly initialized const pointers will be emitted into the
.data.rel.ro section, which gets pulled into the .data section by
our linker script)

To ensure that we don't pick up any absolute references in executable
code inadvertently (e.g., in assembler code), add the '-z text' linker
option which will force the build to fail in this case.

Signed-off-by: Ard Biesheuvel <[email protected]>
Acked-by: Jiewen Yao <[email protected]>
Tested-by: Ilias Apalodimas <[email protected]>


  Commit: 493f2c69311806a214de2b3db7fdf7bc9162ea81
      
https://github.com/tianocore/edk2/commit/493f2c69311806a214de2b3db7fdf7bc9162ea81
  Author: Ard Biesheuvel <[email protected]>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M StandaloneMmPkg/Include/Library/AArch64/StandaloneMmCoreEntryPoint.h
    M 
StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c
    M 
StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c

  Log Message:
  -----------
  StandaloneMmPkg/StandaloneMmCoreEntryPoint: relocate StMM core on the fly

Apply PE/COFF fixups when starting up the standalone MM core, so that
it can execute at any address regardless of the link time address.

Note that this requires the PE/COFF image to be emitted with its
relocation section preserved. Special care is taken to ensure that
TE images are dealt with correctly as well.

Signed-off-by: Ard Biesheuvel <[email protected]>
Acked-by: Jiewen Yao <[email protected]>
Reviewed-by: Sami Mujawar <[email protected]>
Tested-by: Ilias Apalodimas <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/a2433243fbe4...493f2c693118


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to