From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from albireo.enyo.de (albireo.enyo.de [37.24.231.21]) by sourceware.org (Postfix) with ESMTPS id D4D693857C75 for ; Sun, 16 Aug 2020 12:59:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D4D693857C75 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=deneb.enyo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=fw@deneb.enyo.de Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1k7IFb-0005Jr-Ap; Sun, 16 Aug 2020 12:59:03 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1k7IFb-0000bk-7X; Sun, 16 Aug 2020 14:59:03 +0200 From: Florian Weimer To: "Y.D. via Libc-help" Subject: Re: Add a new function to dlfcn.h? References: Date: Sun, 16 Aug 2020 14:59:03 +0200 In-Reply-To: (Y. D. via Libc-help's message of "Sun, 16 Aug 2020 20:52:00 +0800") Message-ID: <87y2meiw6g.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, 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-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Aug 2020 12:59:06 -0000 * Y. D. via Libc-help: > The question is, when I want to imitate the way dlopen works, I find that > the dlopen first calls functions in dlfcn/dlopen.c, and then functions in > elf/dl-open.c, which makes me very confused. > If I want to add a new function in dlfcn.h, what should I do? New dynamic linker functions should probably go into libc.so.6, and implemented under elf/. There is not much value in maintaining a separate libdl (but it's less problematic than libpthread). I expect that libdl will eventually go away.