From 4d28a1c2fdf3673650018cf16f76cfc9796e78af Mon Sep 17 00:00:00 2001 From: Christopher Zurcher Date: Wed, 21 Jul 2021 06:06:44 +0800 Subject: 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 Cc: Bob Feng Cc: Liming Gao Signed-off-by: Christopher Zurcher Reviewed-by: Liming Gao Acked-by: Jiewen Yao --- BaseTools/Scripts/GccBase.lds | 1 - 1 file changed, 1 deletion(-) (limited to 'BaseTools/Scripts') 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) } } -- cgit v1.2.3