From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward501c.mail.yandex.net (forward501c.mail.yandex.net [178.154.239.209]) by sourceware.org (Postfix) with ESMTPS id 698513858D33 for ; Wed, 12 Apr 2023 19:08:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 698513858D33 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-69.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-69.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:610a:0:640:be20:0]) by forward501c.mail.yandex.net (Yandex) with ESMTP id 8D0655F5A0; Wed, 12 Apr 2023 22:07:59 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-69.iva.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id v7cbga2DX0U0-eTy7tI2y; Wed, 12 Apr 2023 22:07:59 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1681326479; bh=eZt4uwvmzSowaauiJ9xdnMLdoEuLSfIYtbo2I9mWFTk=; h=From:In-Reply-To:Cc:Date:References:To:Subject:Message-ID; b=tlKf+0bLbDJx1ZYjfjXPyeou4QgmwSkQjB/ljeaTxR6s+CpEHYgx2aLbFE8XLlsdU WAkBi8QGC3AWX5PO0G9kNUZ1Fk9YP5d6oCz1mrEgDpQ3LivLdx0iDtfXTPZY9g38zk Mc5WcVL2xEHRPLWuHu6CKSkVIYiXPBnHwN6rruLM= Authentication-Results: mail-nwsmtp-smtp-production-main-69.iva.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: Date: Thu, 13 Apr 2023 00:07:56 +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 To: Rich Felker Cc: Szabolcs Nagy , Adhemerval Zanella Netto , libc-alpha@sourceware.org, janderson@rice.edu, Carlos O'Donell 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> <20230412182043.GI3298@brightrain.aerifal.cx> From: stsp In-Reply-To: <20230412182043.GI3298@brightrain.aerifal.cx> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 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_MSPIKE_H2,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 23:20, Rich Felker пишет: > On Wed, Apr 12, 2023 at 11:00:19PM +0500, stsp wrote: >> 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. > Have you not realized yet how far outside any concept of "reasonable" > this ever-expanding contract is? Would it be more consistent to always require a pair of dlmem()/dlinitialize(handle, addr) calls? Or the 2-step loading is out of any considerations?