Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d6fa8cc authored by Yi-Yo Chiang's avatar Yi-Yo Chiang
Browse files

init_first_stage: Disable ThinLTO

Static executables + x86 target build + ThinLTO produces bug behavior.
Global variables are not constructor initialized, resulting in faulty
runtime behavior.

Bug: 169004486
Bug: 291033685
Test: Treehugger
Change-Id: I777016cceb4851f2b432a37bc4d29aed56c23804
parent 6044e8e4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -394,6 +394,10 @@ init_first_stage_cc_defaults {
    ],

    static_executable: true,
    lto: {
        // b/169004486 ThinLTO breaks x86 static executables.
        never: true,
    },
    system_shared_libs: [],

    cflags: [