From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from brightrain.aerifal.cx (brightrain.aerifal.cx [216.12.86.13]) by sourceware.org (Postfix) with ESMTPS id A824D3858D32 for ; Wed, 12 Apr 2023 18:20:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A824D3858D32 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=libc.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=libc.org Date: Wed, 12 Apr 2023 14:20:43 -0400 From: Rich Felker To: stsp Cc: Szabolcs Nagy , Adhemerval Zanella Netto , libc-alpha@sourceware.org, janderson@rice.edu, Carlos O'Donell Subject: Re: [PATCH v9 0/13] implement dlmem() function Message-ID: <20230412182043.GI3298@brightrain.aerifal.cx> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,BODY_8BITS,KAM_DMARC_STATUS,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: 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? Whatever happens, this whole proposal is going to be rejected, over and over, and the more effort you pour into engineering it on the belief that it will somehow eventually be accepted, the more disappointed (and maybe angry?) you're going to be at the people who have to keep rejecting it. For the sake of your time and that of the folks who have been pulled into this discussion, I think it would really, *really* be a good idea to go figure out how to solve your practical problem without trying to put new functionality in libc. Rich