From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,URIBL_RED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23089 invoked from network); 10 Jan 2023 20:02:19 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 10 Jan 2023 20:02:19 -0000 Received: (qmail 25932 invoked by uid 550); 10 Jan 2023 20:02:15 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 25900 invoked from network); 10 Jan 2023 20:02:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hauke-m.de; s=MBO0001; t=1673380921; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8aXdUllzi4Z103PEDPug/OQCu/YB9QCIcsCJCCQ6p1w=; b=ej6YSQybt1x29K+kMNeLE/IN6ysCnb2fpK/Dv2lXNJcBV9N87G6LiCyEw1CmZ8TrGplj0l L6p78AQuue9zsbkYhUG+acSbATKq+3vweddgNQqp39BKgnHElKVWSJqAELk84e6oSTh1GS qElPiYc3z/mRU+6kFxvD8e5qpaXsoyyGI55Eu2CDpFm1t7LtbSWTxNxz7xZWVoFH3hnakt w8YfSJx+9gsQkXtwuXBwcPx1EM8l1BFtlyH+gm40WDRkGhINL15xnZSnSHx/UxDdv55gJJ ZW8TvTMmTwWNYXtLZ8SXeKs1jOEgLUmfJJZWc4whlSiguWcLW8z+flh9vQMuFA== Message-ID: Date: Tue, 10 Jan 2023 21:02:00 +0100 MIME-Version: 1.0 Content-Language: en-US To: musl@lists.openwall.com, Rich Felker References: <20211215152048.GJ7074@brightrain.aerifal.cx> <20220109051408.GQ7074@brightrain.aerifal.cx> Cc: d.dorau@avm.de, Hauke Mehrtens From: Hauke Mehrtens In-Reply-To: <20220109051408.GQ7074@brightrain.aerifal.cx> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Ns1tK5M6tz9slS Subject: Re: [musl] Tracking shared libraries in GDB not working? On 1/9/22 06:14, Rich Felker wrote: > On Mon, Dec 20, 2021 at 09:54:40AM +0100, d.dorau@avm.de wrote: >> Thanks for your thoughts. I used them to search for further information and found >> the missing piece: >> >> https://lists.yoctoproject.org/g/yocto/message/48584 >> >> I applied that first patch >> https://lists.yoctoproject.org/g/yocto/attachment/48584/0/0007-Teach-dynlink.c-about-DT_MIPS_RLD_MAP_REL.patch >> >> and apparently it seems to solve the issue. :-) >> >> I did a search on this mailing list and couldn't find this patch mentioned here. >> Maybe you can include this patch in a future release if you think the solution is correct. > > Thanks! This patch is not correct as-is, because the value of > DT_MIPS_RLD_MAP_REL is only meaningful on mips and could be reused on > other archs. But I've whipped up what I think is a correct version of > it here (attached), using the same approach as used for > DT_MIPS_RLD_MAP already. If you get a chance, please let me know if it > works. > > Rich Hi Rich, I tried your attached patch on a mips32 be system and it worked. With this patch gdb was able to find the shared libraries which were loaded with dlopen(). I tested this on OpenWrt 19.07 with musl 1.1.24 and gdb 8.3.1 using gdbserver. It would be nice if you could add it to upstream musl libc. Hauke