Run init/fini functions also in static libdl

Bernd Schmidt bernds_cb1 at t-online.de
Mon Mar 19 23:05:42 UTC 2007


Joakim Tjernlund wrote:
> On Mon, 2007-03-19 at 18:02 +0100, Carmelo Amoroso wrote:
>> On 3/19/07, Bernd Schmidt <bernds_cb1 at t-online.de> wrote:
>>> Currently a static libdl.a doesn't run all the constructors or
>>> destructors of the libraries it loads.  I can't see a good reason for
>>> that, and it does cause aborts in the destructors it does run for things
>>> like libgcc.so on the Blackfin.
>>>
>> Do you have a test case showing the failure? I'm interested in testing it
>> on uClibc-nptl//sh4. You could add it into the test suite.

AFAIR just the normal dltest from uClibc was crashing on dlclose.

> Please test in mainline, I won't have time for that and
> I don't feel comfortable appying this untested in mainline.

Problem is I don't have any system that can run mainline uClibc - it 
doesn't have all the necessary patches for the Blackfin yet.


Bernd
-- 
This footer brought to you by insane German lawmakers.
Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Registergericht Muenchen HRB 40368
Geschaeftsfuehrer Thomas Wessel, Vincent Roche, Joseph E. McDonough



More information about the uClibc mailing list