[ia64-tools] Function descriptor and dlopen/dlclose under ia64.
H . J . Lu
hjl@valinux.com
Mon Sep 11 23:46:00 GMT 2000
On Mon, Sep 11, 2000 at 07:32:18PM -0700, H . J . Lu wrote:
> I may know why "make check" failed in iconvdata. The failed testcase
> is tst-loading. It does 5000 iterations of random dlopen/dlclose.
> The first few iterations are ok. It fails under ia64 after a few
> hundreds of iterations.
>
> Remember the official function descriptor, which is created at the
> fly by the dynamic linker. All DSOes use the same official function
> descriptor. If an official function descriptor is created by dloepn a
> DSO, we cannot free it via dlclose if it is used by another DSO later
> on. Basically, we need a reference count on the official function
> descriptor. Otherwise, we will be in deep trouble with dlopen/dlclose.
>
Apparently, for some reason, the ia64 port in glibc 2.2 left out some
stuff in my working ia64 glibc 2.1 port. I will take a closer look at
the ia64 port in glibc 2.2 and provide a patch when I find time.
--
H.J. Lu (hjl@gnu.org)
More information about the Libc-hacker
mailing list