Mike: > -----邮件原件----- > 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Michael D > Kinney > 发送时间: 2021年11月4日 7:00 > 收件人: devel@edk2.groups.io > 抄送: Bob Feng <bob.c.f...@intel.com>; Liming Gao > <gaolim...@byosoft.com.cn>; Yuwei Chen <yuwei.c...@intel.com>; Leif > Lindholm <l...@nuviainc.com>; Ard Biesheuvel <ardb+tianoc...@kernel.org> > 主题: [edk2-devel] [Patch V2 7/7] BaseTools/Conf: Fix Linux GCC ARM build > issues with HII > > Update builds_rules.template to add $(SLINK) to the GCC > steps for processing HII resources to produce a static > library instead of an object file. This improves linker > compatibility and specifically fixes a link failure seen > on Linux GCC ARM builds of the MdeModulePkg due to > mismatched ABI types between the HII resource section > and the rest of the libraries. > > Cc: Bob Feng <bob.c.f...@intel.com> > Cc: Liming Gao <gaolim...@byosoft.com.cn> > Cc: Yuwei Chen <yuwei.c...@intel.com> > Cc: Leif Lindholm <l...@nuviainc.com> > Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org> > Signed-off-by: Michael D Kinney <michael.d.kin...@intel.com> > --- > BaseTools/Conf/build_rule.template | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/BaseTools/Conf/build_rule.template > b/BaseTools/Conf/build_rule.template > index 3add1029f276..5f59044da36d 100755 > --- a/BaseTools/Conf/build_rule.template > +++ b/BaseTools/Conf/build_rule.template > @@ -668,6 +668,8 @@ > > <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} > + "$(RC)" $(RC_FLAGS) $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc > $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc.obj > + "$(SLINK)" cr ${dst} > $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc.obj > +
Here,cr is the fixed command. Do you think to add SLINK_FLAGS macro for this option? Thanks Liming > <Command.XCODE, Command.RVCT, Command.CLANGGCC> > "$(GENFW)" -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g > $(MODULE_GUID) --hiibinpackage $(HII_BINARY_PACKAGES) > $(GENFW_FLAGS) > -- > 2.32.0.windows.1 > > > > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#83319): https://edk2.groups.io/g/devel/message/83319 Mute This Topic: https://groups.io/mt/86810444/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-