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>
This commit is contained in:
Christopher Zurcher 2021-07-21 06:06:44 +08:00 committed by mergify[bot]
parent 332632abf3
commit 4d28a1c2fd
1 changed files with 0 additions and 1 deletions

View File

@ -74,6 +74,5 @@ SECTIONS {
*(.dynamic) *(.dynamic)
*(.hash .gnu.hash) *(.hash .gnu.hash)
*(.comment) *(.comment)
*(COMMON)
} }
} }