Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 18 Jan 2023 00:14:28 +0100
From: Hauke Mehrtens <>
To:, Rich Felker <>
Cc:, Hauke Mehrtens <>
Subject: Re: Tracking shared libraries in GDB not working?

On 1/10/23 21:02, Hauke Mehrtens wrote:
> On 1/9/22 06:14, Rich Felker wrote:
>> On Mon, Dec 20, 2021 at 09:54:40AM +0100, wrote:
>>> Thanks for your thoughts. I used them to search for further 
>>> information and found
>>> the missing piece:
>>> I applied that first 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

This is also working fine for me with recent OpenWrt master using musl 
1.2.3, gcc 12.2 and gdb 12.1.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.