This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: dlclose not calling destructors of static variables.
On 01/02/2010 17:35, Andrew West wrote:
> But the atexit function is registered at 0x706c10f0. Changing
> AllocationBase to BaseAddress worked for my test case out of pure luck,
> with my larger libraries it still failed.
I've managed to convince myself it's right actually.
> Looking at one of the libraries in my code that fails I get ( with the
> atexit at 0x78351c9 )
>
> remove_dll_atexit;
> m.AllocationBase = 0x7820000
> m.AllocationBase + m.RegionSize = 0x7824000
>
> GDB;
> from = 0x07821000
> to = 0x079159b8
Please post the output of "objdump -h" on this library. (If there's no
problem doing so, please send me a copy of the binary off-list.)
cheers,
DaveK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple