From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by sourceware.org (Postfix) with ESMTPS id 43F1C3892448 for ; Mon, 24 May 2021 18:25:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 43F1C3892448 Received: by mail-qk1-x72c.google.com with SMTP id h20so12406148qko.11 for ; Mon, 24 May 2021 11:25:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VSkJGnhp472v9FnqSLOthYra5Gl01Zlwe9BKQ5invXw=; b=ZJF33tcJyFEeJROKixa5it1dF6kZrpa2w9Jn9Wm3akNONG9LAGsoC5quzAItL05Y4y rAiU1gDcrrz5GunNxy1i+KKwKEocq1NdYAnYSX2thhGpfzN2CJhqJt8ZcFoQ7QXig2ym MWnUkDekfB6i/IpolDhYag9R3ZeIqs8TDqTM0t9t42vJjkEQD1NKJaFl5j+tzZnsNlAE yvjiEkQ9kcziHDnIvAJPJTFZ3x6LhY8TCuh3QwSE7EoTiNk+QxAJXPuEdoos3xngd5IG /vG491JTQ93tS5hd9RlWr809TlFAEqKLaY6ssFQ/wQ9Fr4fMroIq12f56+ZdZun+TpX/ ileA== X-Gm-Message-State: AOAM533jUnONdQ1wLVKCx5R1+66tXs339w/VjY69i6q+bj5nRek1kL+L DgJ+infDPoWJrf5mSQ+DupX6UybgOoQUkg== X-Google-Smtp-Source: ABdhPJz2IVMLd7JULVLpX9Xnq5qSSQgKuymsSHt3R/XiO4DUCkQiZfDatqtSlxUBCF8OdarMahmAUA== X-Received: by 2002:a37:6444:: with SMTP id y65mr27976032qkb.433.1621880746713; Mon, 24 May 2021 11:25:46 -0700 (PDT) Received: from [192.168.1.4] ([177.194.37.86]) by smtp.gmail.com with ESMTPSA id h2sm11912658qkf.106.2021.05.24.11.25.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 May 2021 11:25:46 -0700 (PDT) Subject: Re: [PATCH 09/10] elf: Add facility to create stub DSOs in elf/stub-dsos From: Adhemerval Zanella To: Florian Weimer , libc-alpha@sourceware.org References: <4ea2bdaebef66c6646aa0f8df13b4108d7933b7d.1621347402.git.fweimer@redhat.com> <4fade004-5748-525c-e0e4-6f63c2837f5d@linaro.org> Message-ID: <9ab5520e-c5f1-fa51-9c16-d3029216ddca@linaro.org> Date: Mon, 24 May 2021 15:25:44 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <4fade004-5748-525c-e0e4-6f63c2837f5d@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2021 18:25:48 -0000 On 24/05/2021 15:24, Adhemerval Zanella wrote: > > > On 18/05/2021 11:25, Florian Weimer via Libc-alpha wrote: >> And reference the elf/stub-dsos directory when linking installed >> programs. > > So if I understood correctly, this is to trigger an invalid runtime > to avoid linking against system GLIBC_PRIVATE symbols, right? > > I am not sure I fully understand the lib-stub trick here, how > exactly the lib-stub is preventing the wrong linkage here? And why > is this required for the libpthread move (my feeling this is orthogonal > to the project). Nevermind, I am not sure why I replied to the older version of the patchset.