From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 02EA5385700C; Wed, 27 Jul 2022 11:23:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 02EA5385700C 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: Wed, 27 Jul 2022 11:23:18 +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: Wed, 27 Jul 2022 11:23:19 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29249 Martin Jansa changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Martin.Jansa at gmail dot = com --- Comment #7 from Martin Jansa --- It's reproducible with -O1 and not reproducible with -O2 (or -O1 + -fexpensive-optimizations): objdump -x build-x86_64-oe-linux/csu/libc-tls.o | grep _startup_fatal_not_constant doesn't show the symbol at all with -fexpensive-optimizations, while with j= ust -O1: objdump -x build-x86_64-oe-linux/csu/libc-tls.o.O1 | grep _startup_fatal_not_constant 0000000000000000 *UND* 0000000000000000 _startup_fatal_not_constant 00000000000002bb R_X86_64_PLT32=20=20=20 _startup_fatal_not_constant-0x0000000000000004 --=20 You are receiving this mail because: You are on the CC list for the bug.=