Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 414cd2a4d536b444acee3fcdbe33bd0c8ef9819b
      
https://github.com/tianocore/edk2/commit/414cd2a4d536b444acee3fcdbe33bd0c8ef9819b
  Author: Huang, Li-Xia <[email protected]>
  Date:   2022-03-16 (Wed, 16 Mar 2022)

  Changed paths:
    M BaseTools/Source/C/GenFw/Elf64Convert.c
    M BaseTools/Source/C/GenFw/ElfConvert.c
    M BaseTools/Source/C/GenFw/ElfConvert.h
    M BaseTools/Source/C/GenFw/GenFw.c
    M BaseTools/Source/C/Include/IndustryStandard/PeImage.h

  Log Message:
  -----------
  BaseTools/GenFw: Enhance GenFw to support PRM GCC build

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3802

Since PRM module needs to support export table in PE-COFF, we'll
enhance GenFw tool to support this.

Add one export flag in GenFw tool. If export flag is set:
Step1: Scan ELF symbol table based on PRM module descriptor to get
descriptor offset address;
Step2: Find PRM handlers number and name in COFF file based on the
address from step1;
Step3: Write PRM info such as handler name and export RVA into COFF
export table.

PRM option currently only supports DXE RUNTIME driver and X64 arch.

Cc: Liming Gao <[email protected]>
Cc: Bob Feng <[email protected]>
Cc: Yuwei Chen <[email protected]>
Signed-off-by: Lixia Huang <[email protected]>
Reviewed-by: Bob Feng <[email protected]>




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

Reply via email to