Fix bug to support Nt32Pkg source level debug.
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 27 Nov 2006 10:55:23 +0000 (10:55 +0000)
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 27 Nov 2006 10:55:23 +0000 (10:55 +0000)
MS-LINK would not generate .edata section with /SUBSYSTEM:Extensible Firmware Interface option, so NtPeCoffLoader can not retrieve driver entry by GetProcAddress().

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2020 6f19259b-4bc3-4df7-8a09-765794883524

EdkNt32Pkg/Nt32.fpd

index 8791ed4fd1a288f8a203b79ffd8b487cefdf1a4e..0669ea13fc4a592eb805e56fffc9f85abba9d4fa 100644 (file)
   </DynamicPcdBuildDefinitions>\r
   <BuildOptions>\r
     <Options>\r
-      <Option BuildTargets="DEBUG" ToolChainFamily="MSFT" SupArchList="IA32" ToolCode="DLINK">/EXPORT:InitializeDriver=_ModuleEntryPoint /ALIGN:4096</Option>\r
+      <Option BuildTargets="DEBUG" ToolChainFamily="MSFT" SupArchList="IA32" ToolCode="DLINK">/EXPORT:InitializeDriver=_ModuleEntryPoint /ALIGN:4096 /SUBSYSTEM:CONSOLE</Option>\r
       <Option BuildTargets="RELEASE" ToolChainFamily="MSFT" SupArchList="IA32" ToolCode="DLINK">/ALIGN:4096</Option>\r
     </Options>\r
     <Ffs FfsKey="APPLICATION">\r