From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward500b.mail.yandex.net (forward500b.mail.yandex.net [IPv6:2a02:6b8:c02:900:1:45:d181:d500]) by sourceware.org (Postfix) with ESMTPS id 0DAAB3858D32 for ; Wed, 12 Apr 2023 18:00:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0DAAB3858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru Received: from mail-nwsmtp-smtp-production-main-92.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-92.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:131b:0:640:f0f5:0]) by forward500b.mail.yandex.net (Yandex) with ESMTP id 64A845F5EF; Wed, 12 Apr 2023 21:00:22 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-92.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id K0bNx82DUKo0-1YsXHHjL; Wed, 12 Apr 2023 21:00:21 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1681322422; bh=EA07r9TwHAbilPG17UyPTf1zHE8Ubd4OGshI5OmHKLI=; h=In-Reply-To:Date:References:To:From:Subject:Message-ID; b=lY1W8uxD2CSRwGCG+PZmWDvqahYyw/py0Fwgkm1JAQS04lIShgZAsFbW4mJLyPz57 RdwOsNQFMeX5+XmK/fyTvnKQj1YQM7QRVJ2t06Cf69ULh/nXUQJ1yJtIk8S83NM8Mz IQU5LJdq/bUFPysmXKiLi0NXT1ujzBiVTunAufkg= Authentication-Results: mail-nwsmtp-smtp-production-main-92.myt.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: Date: Wed, 12 Apr 2023 23:00:19 +0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v9 0/13] implement dlmem() function Content-Language: en-US From: stsp To: Szabolcs Nagy , Adhemerval Zanella Netto , libc-alpha@sourceware.org, janderson@rice.edu, Carlos O'Donell , Rich Felker References: <2f3a10fa-4f79-7f9a-6407-d227dbf31935@yandex.ru> <298b04a6-3055-b89b-59c1-4cfbe955848e@yandex.ru> <81749d04-8cdb-de0b-b88e-24347ed535ba@yandex.ru> <729710b5-6dae-d5f2-99ee-6923be5e627d@yandex.ru> In-Reply-To: <729710b5-6dae-d5f2-99ee-6923be5e627d@yandex.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 12.04.2023 22:23, stsp пишет: > The same "lazy relocation" can even be > applied to a regular dlopen(). Of course it can't, as dlopen() is expected to call library ctors. So only with an optional dlmem() flag such behavior should be performed, in which case dlsetbase() should also do the final relocation and ctors calling.