Commit 5250aed01b for openssl.org

commit 5250aed01b3de95d56998b9cd4c901e72912b59d
Author: Cameron Gutman <aicommander@gmail.com>
Date:   Wed Nov 25 13:29:53 2026 -0600

    Configurations/10-main.conf: disable MSVC incremental linking

    Passing /debug to the linker causes it to enable incremental linking
    which introduces ILT thunks for non-static functions.  These thunks
    and the associated padding bloat OpenSSL libraries by 20-30%
    and cause the generated code to be incompatible with Control Flow Guard
    due to duplicate ILT thunks being generated for the same assembly
    functions.

    Resolves: https://github.com/openssl/openssl/issues/22554
    Reviewed-by: Richard Levitte <levitte@openssl.foundation>
    Reviewed-by: Milan Broz <gmazyland@gmail.com>
    Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
    Merge-date: Wed Dec  2 07:06:55 2026
    Merged-from: https://github.com/openssl/openssl/pull/34008

diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
index b738a35f57..b9be2737d2 100644
--- a/Configurations/10-main.conf
+++ b/Configurations/10-main.conf
@@ -1461,7 +1461,7 @@ my %targets = (
         CFLAGS           => "/W3 /wd4090 /nologo",
         coutflag         => "/Fo",
         LD               => "link",
-        LDFLAGS          => "/nologo /debug",
+        LDFLAGS          => "/nologo /debug /incremental:no",
         ldoutflag        => "/out:",
         ldpostoutflag    => "",
         ld_resp_delim    => "\n",