From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D45343858C20; Mon, 6 Mar 2023 16:17:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D45343858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678119445; bh=f2982L+l5m1LDXWlNwZazE1v9wYwLzUdtmV1sRZx+Ks=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fJYWmkvJW6xUB6KhNGLbfBjehgooZCTIE5peUBmdv9bmWHhsmyPldAkb2vONFLJqT 6qX8gJSVF2rlM8q73OSYwkcrADuFo/kTUECpfCJOQJQUV2tKHiPAlBxjfoxlQEQigh HS2dAEVei2qsso1s2qes4aJFSvA41AiUfRoHiE3U= From: "adhemerval.zanella at linaro dot org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/30186] RTLD_DEEPBIND interacts badly with LD_PRELOAD Date: Mon, 06 Mar 2023 16:17:25 +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: adhemerval.zanella at linaro dot org 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: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30186 Adhemerval Zanella changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |adhemerval.zanella at lina= ro dot o | |rg --- Comment #1 from Adhemerval Zanella --- IMHO, the main issue is not clear how LD_PRELOAD should work with RTLD_DEEPBIND: should LD_PRELOAD act as another DT_NEEDED library linked against the binary (although with high priority as it was first in static linking order) or should it be handled differently in the search namespace (where RTLD_DEEPBIND always takes it in consideration). As Florian has put on https://sourceware.org/bugzilla/show_bug.cgi?id=3D255= 33#c8 I don't think we can change LD_PRELOAD semantic without the potential break= age on a lot of RTLD_DEEPBIND usages. One possibility is to maybe another env. var to specify a different preload mode or add another flag on dlopen; both which I am not really fond of. Flo= rian might have another idea. --=20 You are receiving this mail because: You are on the CC list for the bug.=