Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How many shared objects can I dlopen simultanously?

0
10 Posted

How many shared objects can I dlopen simultanously?

0

This answer was provided by Basile Starynkevitch many of them. The only limitation is the process address space (which grows slowly on each dlopen, which mmap-s it text & data segments). In practice, on linux x86 with libc6, a program can dlopen 30 000 -thirty thousands- different shared objects (and probably much more). See http://starynkevitch.net/Basile/manydl.c for an example • Does dlopen-ing a shared object need a file descriptor? This answer was provided by Basile Starynkevitch not permanently (after the dlopen succeed). But internally, dlopen needs to open the shared object (but closes it after having mmap-ed it). • What are vdso and linux-gate.so? It is a virtual dynamically-linked shared object, which implements the gate used to perform system calls. Depending on the architecture and kernel version there are different ways to do it. The kernel provides a page with a version suitable for the actual setup, which can then be used by all processes. On this page you can read more

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123