From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D34513898535; Mon, 1 Mar 2021 13:54:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D34513898535 From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/27492] Make static linking friendly with {ld.bfd,ld.lld} -z start-stop-gc: removing unused section '__libc_atexit' Date: Mon, 01 Mar 2021 13:54:29 +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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: flagtypes.name 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: Mon, 01 Mar 2021 13:54:29 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27492 Florian Weimer changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |security- CC| |fweimer at redhat dot com --- Comment #1 from Florian Weimer --- I expect that genops.c needs __libc_atexit to flush stdio streams in the statically linked case. We could likely handle this differently, e.g. call= a weak function symbol in the process shutdown sequence if it is defined. At present, the weak symbol wouldn't matter because we have a sequence vSDO lookup =E2=86=92 dynamic linker =E2=86=92 malloc =E2=86=92 vfprintf =E2=86= =92 libio which pulls in most of libio anyway. --=20 You are receiving this mail because: You are on the CC list for the bug.=