]> git.proxmox.com Git - mirror_edk2.git/commit
SourceLevelDebugPkg/SecPeiDebugAgentLib: Fix duplicate symbol
authorMichael Kinney <michael.d.kinney@intel.com>
Tue, 23 May 2017 23:21:13 +0000 (07:21 +0800)
committerLiming Gao <liming.gao@intel.com>
Fri, 8 Dec 2017 05:31:47 +0000 (13:31 +0800)
commit2b55daaef0f3f53059c5c858ca6fd53b03eb5d4c
treebec903f670fa6f88ffe8de6bdb4cb5ba4922cac9
parent01ee04c4d33ae4e982079445dd2cb53633b91d47
SourceLevelDebugPkg/SecPeiDebugAgentLib: Fix duplicate symbol

https://bugzilla.tianocore.org/show_bug.cgi?id=573
https://bugzilla.tianocore.org/show_bug.cgi?id=796

The same issue is reported again by GCC. Resend this patch again.
This patch renames the duplicated function name to fix it.

The SecPeiDebugAgentLib uses the global variable
mMemoryDiscoveredNotifyList for a PPI notification on
the Memory Discovered PPI.  This same variable name is
used in the DxeIplPeim for the same PPI notification.

The XCODE5 tool chain detects this duplicate symbol
when the OVMF platform is built with the flag
-D SOURCE_DEBUG_ENABLE.

The fix is to rename this global variable in the
SecPeiDebugAgentLib library.

Cc: Andrew Fish <afish@apple.com>
Cc: Jeff Fan <jeff.fan@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgent/SecPeiDebugAgentLib.c