Shared library loading, please help me

Dominik 'Rathann' Mierzejewski D.Mierzejewski@icm.edu.pl
Thu Mar 10 17:07:00 GMT 2005


On Thu, Mar 10, 2005 at 11:02:49AM -0500, Ian Lance Taylor wrote:
[...]
> If you want to do hardware initialization in a shared library, and you
> want to do it only once, then you need to use some sort of IPC
> mechanism, such as semaphores, a server process, a file system lock,
> etc.  This is a general Unix programming question, not a binutils
> question.

Not to mention that doing hardware init automatically in a library is
a bad idea to start with.

Regards,

-- 
Dominik 'Rathann' Mierzejewski <rathann*at*icm.edu.pl>
Interdisciplinary Centre for Mathematical and Computational Modelling
Warsaw University  |  http://www.icm.edu.pl  |  tel. +48 (22) 5540810



More information about the Binutils mailing list