]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Remove COMMON section from the GCC discard list
authorChristopher Zurcher <christopher.zurcher@microsoft.com>
Tue, 20 Jul 2021 22:06:44 +0000 (06:06 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 26 Jul 2021 07:30:11 +0000 (07:30 +0000)
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>
BaseTools/Scripts/GccBase.lds

index a9dd2138d4b5a8a601ded1d9ab8e860f91fcb425..83cebd29d5998b6d1a2b5b8bc98566198d398c5c 100644 (file)
@@ -74,6 +74,5 @@ SECTIONS {
     *(.dynamic)\r
     *(.hash .gnu.hash)\r
     *(.comment)\r
-    *(COMMON)\r
   }\r
 }\r