[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#220053: When is this a problem ?



Hi,

Why, when and/or how is this a problem ?  All the KDE screensavers
I've tested link to this library, and run perfectly.  

I also don't think there is conceptually anything wrong with the idea
of referencing back to application symbols from a dll.

E.g. have a look at this ld(1) flag:
       --export-dynamic
           When  creating  a  dynamically linked executable, add all
           symbols to the dynamic symbol table.  The dynamic symbol
           table is the
           set of symbols which are visible from dynamic objects at
           run time.

           If you do not use this option, the dynamic symbol table
           will normally contain only those symbols which are
           referenced  by  some
           dynamic object mentioned in the link.

           If  you use "dlopen" to load a dynamic object which needs
           to refer back to the symbols defined by the program, rather
           than some
           other dynamic object, then you will probably need to use
           this option when linking the program itself.

This flag is necessary for dlopen'd dll's to reference back to symbols
from the application, so I would think:

1 It's definitely possible for dll's to reference back to application
  symbols, even when they're dlopen'd
2 This flag may not even be necessary for dll's that aren't dlopened,
  but linked in at startup.

cheers
domi



Reply to: