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

  Changed paths:
    M ArmVirtPkg/ArmVirtQemuKernel.fdf
    M ArmVirtPkg/ArmVirtRules.fdf.inc
    M ArmVirtPkg/ArmVirtXen.fdf

  Log Message:
  -----------
  ArmVirtPkg: add FDF rule for self-relocating PrePi

In preparation for making the self-relocating PrePi use the ordinary
BasePeCoffLib routines for relocating the image in place in memory
at start, add a special FDF rule that builds SEC modules as PE32
images with the relocation metadata preserved.

Signed-off-by: Ard Biesheuvel <[email protected]>
Acked-by: Jiewen Yao <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Acked-by: Sami Mujawar <[email protected]>


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

  Changed paths:
    M ArmVirtPkg/ArmVirtQemuKernel.dsc
    M ArmVirtPkg/ArmVirtXen.dsc
    M ArmVirtPkg/PrePi/AArch64/ModuleEntryPoint.S
    M ArmVirtPkg/PrePi/Arm/ModuleEntryPoint.S
    M ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf
    M ArmVirtPkg/PrePi/PrePi.c

  Log Message:
  -----------
  ArmVirtPkg/PrePi: use standard PeCoff routines for self-relocation

Instead of having a GCC specific routine to perform self-relocation
based on ELF metadata, use the PE/COFF metadata and the existing
PeCoff library routines. This reduces the amount of bespoke assembler
code that is a burden to maintain, and is not portable across the set
of toolchains we support.

This does require some special care, as we have no control over how
the C code references global symbols, so we need to emit these
references from the calling assembler code. Otherwise, they may be
emitted as absolute references, in which case they need to be fixed
up themselves, leading to a circular dependency.

Signed-off-by: Ard Biesheuvel <[email protected]>
Acked-by: Jiewen Yao <[email protected]>
Acked-by: Laszlo Ersek <[email protected]>
Acked-by: Sami Mujawar <[email protected]>


  Commit: 9af1064995d479df92e399a682ba7e4b2fc78415
      
https://github.com/tianocore/edk2/commit/9af1064995d479df92e399a682ba7e4b2fc78415
  Author: Ard Biesheuvel <[email protected]>
  Date:   2020-06-12 (Fri, 12 Jun 2020)

  Changed paths:
    R ArmVirtPkg/Include/Platform/Hidden.h
    R ArmVirtPkg/PrePi/Scripts/PrePi-PIE.lds

  Log Message:
  -----------
  ArmVirtPkg: remove unused files

We no longer use ELF PIE executables to implement the self-relocating
PrePi so drop the custom linker script and visibility override header
file.

Signed-off-by: Ard Biesheuvel <[email protected]>
Acked-by: Jiewen Yao <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Acked-by: Sami Mujawar <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/567bc4b4ae8a...9af1064995d4


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

Reply via email to