> On Mar 31, 2015, at 3:49 AM, Gao, Liming <liming....@intel.com> wrote:
>
> Bruce:
> VS tool chain will generate HII package list as the resource section into
> the final EFI image. When DxeCore loads this EFI image and finds its resource
> section, DxeCore will install HiiPackageListProtocolGuid on its image handle,
> then the driver calls OpenProtocol() can success.
>
> GCC tool chain doesn’t generate HII package list as the resource section
> into the final EFI image. So, its HiiPackageListProtocolGuid is not
> installed, and can’t be found. This is a feature gap in GCC tool chain.
>
Liming,
Is this done via the [Hii-Binary-Package.UEFI_HII] rule? It looks like VS tool
chain will use rc.exe, and GCC uses objcopy.
It looks like the objcopy renames the .data section to .hii. Does this mean
GenFW is not correctly processing .hii sections when converting ELF files to
PE/COFF?
Thanks,
Andrew Fish
https://svn.code.sf.net/p/edk2/code/trunk/edk2/BaseTools/Conf/build_rule.template
[Hii-Binary-Package.UEFI_HII]
<InputFile>
*.hpk
<OutputFile.MSFT, OutputFile.INTEL, OutputFile.GCC>
$(OUTPUT_DIR)(+)$(MODULE_NAME)hii.lib
<OutputFile.XCODE, OutputFile.RVCT, OutputFile.ARMGCC>
$(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc
<Command.MSFT, Command.INTEL>
"$(GENFW)" -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID)
--hiipackage $(HII_BINARY_PACKAGES) $(GENFW_FLAGS)
"$(RC)" /Fo${dst} $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc
<Command.GCC>
"$(GENFW)" -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID)
--hiibinpackage $(HII_BINARY_PACKAGES) $(GENFW_FLAGS)
"$(RC)" $(RC_FLAGS) $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc ${dst}
<Command.XCODE, Command.RVCT, Command.ARMGCC, Command.ARMLINUXGCC>
GenFw -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID)
--hiibinpackage $(HII_BINARY_PACKAGES)
> Thanks
> Liming
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel