From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 39B7C1F461 for ; Wed, 10 Jul 2019 13:07:13 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; q=dns; s=default; b=weuIYrb9zDWTm0k0AxqQYJD1Jd40V 9AhkgcanCnAgWM5GWiEO8mIRFQEMRCEUhEncpUw5X2fmn98qi1v1CegWzJMAndwM brNf9qbD1wEmSUQEy9N9Awm0nXZaYGYwWXdYNCXAW81C66dJVQ3pnRH3jRZBGS5e 7sPaSfaZeZYJYk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; s=default; bh=RzPxc7x3JHrAmlcosXpryavX5T0=; b=oUD hbG/egRF1qdaOhdCgF+kTwBKjnJSNrdJQJqOy+etFY/Nxcepo9lqxfLTw6ifOfqC zz2GUcPJ5jdxLO5AbuUNbQBabMFrUu0/gmhWFqJQRqJURQCUCkwhx6kkPp1vrhAz 4IMxC3OKFnWABP455YQaKL13Tf54Cf6h4Jps71bg= Received: (qmail 76957 invoked by alias); 10 Jul 2019 13:07:09 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 76917 invoked by uid 89); 10 Jul 2019 13:07:09 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mailbackend.panix.com MIME-Version: 1.0 From: Zack Weinberg Date: Wed, 10 Jul 2019 09:06:53 -0400 Message-ID: Subject: dlinfo for the calling shared library To: GNU C Library Content-Type: text/plain; charset="UTF-8" Do we have a supported way to make dlinfo() queries for the shared library from which the call originates, without the library having to know its own soname? (If it knows its own soname, it can call dlopen on itself, but I'm looking into a scenario where that information is not available.) A library can retrieve its own "base address" using dladdr(), but it is not clear to me whether that is the same thing as the handle expected by dlsym and dlinfo. zw