From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 069783858292; Tue, 5 Jul 2022 06:33:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 069783858292 From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/29317] dlsym with RTLD_DEFAULT causes library to be marked as NODELETE (preventing unloading) Date: Tue, 05 Jul 2022 06:33:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: WAITING 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: everconfirmed cc bug_status cf_reconfirmed_on 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, 05 Jul 2022 06:33:09 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29317 Florian Weimer changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 CC| |fweimer at redhat dot com Status|UNCONFIRMED |WAITING Last reconfirmed| |2022-07-05 --- Comment #1 from Florian Weimer --- I looked at the implementation and it looks like this is done deliberately. (It's also not a regression.) I assume it's done to mimic regular symbol binding, which records dependency information as well. Could you share more context why this is problematic for your application, please? (The log message is misleading, it should say =E2=80=9Creference FROM main = program=E2=80=9D, I'll post a patch to fix that.) --=20 You are receiving this mail because: You are on the CC list for the bug.=