summaryrefslogtreecommitdiffstats
path: root/BaseTools/Scripts
diff options
context:
space:
mode:
authorChristopher Zurcher <christopher.zurcher@microsoft.com>2021-07-21 06:06:44 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-07-26 07:30:11 +0000
commit4d28a1c2fdf3673650018cf16f76cfc9796e78af (patch)
treef7c107728539e82edfc3c22edd5b73eec0ce421a /BaseTools/Scripts
parent332632abf3eb23fe7fcb0601bc715ba829b33e79 (diff)
downloadedk2-4d28a1c2fdf3673650018cf16f76cfc9796e78af.tar.gz
edk2-4d28a1c2fdf3673650018cf16f76cfc9796e78af.tar.bz2
edk2-4d28a1c2fdf3673650018cf16f76cfc9796e78af.zip
BaseTools: Remove COMMON section from the GCC discard list
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2507 The COMMON section is used by OpenSSL assembly-optimized crypto functions. OpenSSL assembly code is auto-generated from the submodule and cannot be modified to remove dependence on the COMMON section. The default -fno-common compiler flag should still prevent variable from being emitted into the COMMON section. Cc: Ard Biesheuvel <ardb@kernel.org> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by: Christopher Zurcher <christopher.zurcher@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> Acked-by: Jiewen Yao <Jiewen.yao@intel.com>
Diffstat (limited to 'BaseTools/Scripts')
-rw-r--r--BaseTools/Scripts/GccBase.lds1
1 files changed, 0 insertions, 1 deletions
diff --git a/BaseTools/Scripts/GccBase.lds b/BaseTools/Scripts/GccBase.lds
index a9dd2138d4..83cebd29d5 100644
--- a/BaseTools/Scripts/GccBase.lds
+++ b/BaseTools/Scripts/GccBase.lds
@@ -74,6 +74,5 @@ SECTIONS {
*(.dynamic)
*(.hash .gnu.hash)
*(.comment)
- *(COMMON)
}
}