This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Does dladdr1 allocate heap memory?


On 11/10/2017 07:52 PM, Ponnuvel Palaniyappan wrote:
Getting the struct link_map
is one of the steps and I am wondering
if I can make use of dladdr1 for that purpose.

I double-checked the situation, and dladdr1 will not call malloc in case of an error, so you should be good.

(The code does not even install the ld.so exception handler, so it would not be able to catch errors anyway.)

Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]