Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jul 2019 22:27:25 -0700
From:      Yuri <yuri@rawbw.com>
To:        Shawn Webb <shawn.webb@hardenedbsd.org>
Cc:        Freebsd hackers list <freebsd-hackers@freebsd.org>
Subject:   Re: Question: Is there a way to get the list of all dynamic libraries needed by a given elf through API?
Message-ID:  <c04b30b9-8f1f-15dc-f93d-e3d8cd1f5fa0@rawbw.com>
In-Reply-To: <20190702031523.lhlrqnlo7pxccl42@mutt-hbsd>
References:  <dfac779f-fa4f-a292-1a76-a9e7db5e024a@rawbw.com> <20190702031523.lhlrqnlo7pxccl42@mutt-hbsd>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2019-07-01 20:15, Shawn Webb wrote:
> $ ldd -f '%p\n' /bin/ls


Hi Shawn,


ldd doesn't do what I need. It sets one specific environment variable, 
then forks and calls execl(3).

And I am looking for the API function like: char* 
find_shared_library_mapping(const char *so_lib, char *buf_out, size_t 
buf_out_sz); // or something like this.


Yuri





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c04b30b9-8f1f-15dc-f93d-e3d8cd1f5fa0>