From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 45CDE385782C; Tue, 9 Aug 2022 10:44:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 45CDE385782C From: "Martin.Jansa at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/29249] csu/libc-tls.c:202: undefined reference to `_startup_fatal_not_constant' Date: Tue, 09 Aug 2022 10:44:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Martin.Jansa at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: fweimer at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2022 10:44:44 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29249 Martin Jansa changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hjl.tools at gmail dot com --- Comment #9 from Martin Jansa --- H.J can you please take a look at this one as well? -O2 and higher works -O1 and -Og fails -O1 + -fexpensive-optimizations works -Og + -fexpensive-optimizations fails I'm aware of https://sourceware.org/glibc/wiki/FAQ#Why_do_I_get:.60.23error_.22glibc_can= not_be_compiled_without_optimization.22.27.2C_when_trying_to_compile_GNU_li= bc_with_GNU_CC.3F and use of -O0 is prevented with #error, but do we need to prevent using -O1/-Og as well? This seems currently the only issue (now when bug 29454 was fixed, there is separate issue bug 19444 when building with -Os, patch available since 2018= in https://patchwork.ozlabs.org/project/glibc/patch/20181217213618.29538-1-Mar= tin.Jansa@gmail.com/). As work around this commit was already reverted in OpenEmbedded and Buildro= ot: https://git.openembedded.org/openembedded-core/commit/?id=3D642348f9b4656a0= 90b5a272c18a6723c60100e08 https://github.com/buildroot/buildroot/commit/8d6e07e525617ee0c4ccc4f07345b= 1b1a70526f7 --=20 You are receiving this mail because: You are on the CC list for the bug.=