From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DF9A83858C60; Tue, 2 Nov 2021 10:48:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF9A83858C60 From: "drvignesh1992 at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/28499] Couldn't export variable to sub process Date: Tue, 02 Nov 2021 10:48:28 +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.32 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: drvignesh1992 at gmail dot com X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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, 02 Nov 2021 10:48:29 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28499 --- Comment #6 from Vignesh --- Hi, I hope we need to pass --enable-initfini-array configure option to either binutils or gcc I have tried with gcc 9.3 binutils 2.25.1 and glibc 2.32 without --enable-initfini-array configure option passed to binutils and failed in the same build passed --enable-initfini-array to binutils and could print 5,5 the same configure option works with gcc too Is your binutils/gcc configured with --enable-initfini-array by default, if= so it will work. check my below build matrix glibc 2.32 bin 2.25.1 gcc 9.3 - without config option - FAIL glibc 2.32 bin 2.25.2 gcc 9.3 - with config option to binutils - PASS glibc 2.32 bin 2.25.2 gcc 9.3 - with config option to gcc - PASS glibc 2.32 bin 2.26 gcc 6.5 - without config option - FAIL glibc 2.32 bin 2.27 gcc 6.5 - without config option - PASS --=20 You are receiving this mail because: You are on the CC list for the bug.=