From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 117578 invoked by alias); 30 Mar 2017 20:14:17 -0000 Mailing-List: contact gnu-gabi-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: gnu-gabi-owner@sourceware.org Received: (qmail 117525 invoked by uid 89); 30 Mar 2017 20:14:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=freshly, Hx-languages-length:935, intentions X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: mail-qt0-f172.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ltYUDxAF3IJ4evXrGrnGsAT02Lm+5UggCLOHc6pK82M=; b=CWFWxQWcB/mk7otEQfbcll/UYlKLcNg3I/5JQyayq73pa7pVINEmPRmi2zAD7mrZkV CsMOIzL9HLyJrHs2aQUZPEK3TEHGWwtgCYDiGoNL3Y4CUl+BdD8KGr4H+BP71lgLsyUh oZhIp2zReawZVUoZFqHducTUab0Tdr94V6njtCn22WP1k4h/FheIGvSofjF0shGGazOK NrQzOqVsPN1jJtEUkYTT6hX0WFvGOs/OA3usXvRrThxj8F45YomOIzVFeMwE32A1GJb7 L30NgwTLGMUBBP7o6h2ckx/VVT2oFngeu7l7VgOIpSVq73rCMGLjlgwSMkpYYAyWUnGF W5nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ltYUDxAF3IJ4evXrGrnGsAT02Lm+5UggCLOHc6pK82M=; b=BIdZpHH5liXJgC9umhljhzVQg2WTpCt/M9254iNfMWpZCZF942qCSN4zLWB66ZntjD +nEpaBWqs9eyjz262LBtgYcTgLoolp1HdJQ0LaXGyJKpk5wPm0VCguj172LKSpjsN984 85xwaYhIs03sRM4Wcx1QKSDnLReejqhCGlkPJa/UdzybGdUmAI7WQbQyKMKvWtYy9YNj UV8g9124gEqtyt8RMfWtd6sZmsVodgYoUeLKub8o999Oc0i9WL5rcxT8qdu447dCTEsD V/thLtxR2Qky2Nv6Nubwhj3r5Y3jtAgpVwgGN2UIoRZoothGr1ZOiWIJICuWk6FQIeis yh4w== X-Gm-Message-State: AFeK/H170xIk8g/VvCmxo41ZMvZehzmHY/Bloe3jL8MFPP7o6MACDMAnD8+RSyWFThKhjKbsVHk/Hi35fTmEAw== X-Received: by 10.237.43.68 with SMTP id p62mr1642235qtd.207.1490904854648; Thu, 30 Mar 2017 13:14:14 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <87o9witv25.fsf@mid.deneb.enyo.de> References: <88608944-14c9-9d28-80d1-32283521683b@gmail.com> <13b95ec6-45be-b02f-bb63-bc1835ecf396@redhat.com> <87o9witv25.fsf@mid.deneb.enyo.de> From: "H.J. Lu" Date: Sun, 01 Jan 2017 00:00:00 -0000 Message-ID: Subject: Re: RFC: ABI support for special memory area To: Florian Weimer Cc: Suprateeka R Hegde , "Carlos O'Donell" , gnu-gabi@sourceware.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2017-q1/txt/msg00030.txt.bz2 On Thu, Mar 30, 2017 at 12:37 PM, Florian Weimer wrote: > > I see that you are now considering dl_iterate_phdr, which gives you > access to the program headers, from where you can walk the section > headers. This looks like a good solution. > >>> I expect that libraries such as bdwgc might want to use the >>> __gnu_mbind_setup callback as well, just to register freshly loaded shared >> >> Did you mean to mark pieces of memory garbage collectible? I guess it may >> work. > > It's more for identifying roots to scan. > >>> objects and their data sections. Can we make this work for multiple users? >>> >> >> What did you mean by "multiple users"? > > Different libraries installing different hooks with similar > intentions. Yes, my dl_iterate_phdr approach works with multiple libraries. Each of them can call dl_iterate_phdr to process relevant segments. -- H.J.