dynamic libraries: custom _init() without losing default _init()

matze matze@indymedia.org
Wed Mar 30 17:24:00 GMT 2005


El Wed, Mar 30, 2005 at 10:24:46AM +0400 Zagorodnev, Grigory ha dit:

> I'm actually surprised that preinit_array disallowed for DSO. 
> 
> Thus you may try to use ".init_array" section in the same manner. That
> works fine for DSO but makes your initialization routine called _after_
> C++ file-scope object constructors. Does the order really matter?

with ".init_array" it works and fits perfectly our needs

thanks a lot!

matze

-- 
              Comunicar bichos a <bug-coreutils@gnu.org>
                     (LANG=es_ES uname --help)

    ( ( ( i ) ) )  http://barcelona.indymedia.org  ( ( ( i ) ) )
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver keys.indymedia.org --recv-keys B9A88F6F           `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20050330/edb36f6e/attachment-0001.sig>


More information about the Gcc-help mailing list