more comfortable approach for exporting dbus functions on windows

Thiago Macieira thiago at kde.org
Thu Mar 4 14:26:06 PST 2010


Em Quinta-feira 4. Março 2010, às 22.51.51, Colin Walters escreveu:
> On Thu, Mar 4, 2010 at 4:33 PM, Ralf Habacker <ralf.habacker at freenet.de> 
wrote:
> > On windows the macro DBUS_EXPORT contains the required compiler directive
> > to export/import symbols, on non windows os this macro is a noop.
> 
> I haven't looked at the patch, but I'm relatively OK with this.  I'd
> suggest this text for the comment:
> 
> /*
>  * Declare the following symbol as public.  This is currently a noop on
>  * platforms other than Windows.
>  */
> 
> Related to this, one thing we should actually really investigate is
> the trick used in GLib to avoid going through the PLT for internal
> functions.  See:
> http://git.gnome.org/browse/glib/tree/glib/makegalias.pl

Link with -Bsymbolic-functions.

Tha makes the linker emit internal relocations for all function calls 
resolving into the library itself. No PLT access.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20100304/3d8d27e5/attachment.pgp>


More information about the dbus mailing list