This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: [XFree86-4.2.0] Now that we have an improved ld, please make libXt a shared library.
- From: "Ralf Habacker" <Ralf dot Habacker at freenet dot de>
- To: <cygwin-xfree at cygwin dot com>
- Date: Tue, 29 Jul 2003 16:12:44 +0200
- Subject: RE: [XFree86-4.2.0] Now that we have an improved ld, please make libXt a shared library.
- Reply-to: cygwin-xfree at cygwin dot com
>
> > #ifdef SUNSHLIB
> > /*
> > * _XtInherit needs to be statically linked since it is compared against as
> > * well as called.
> > */
> > void _XtInherit()
> > {
> > extern void __XtInherit();
> > __XtInherit();
> > }
> > #define _XtInherit __XtInherit
> + #elif defined(CYGWIN)
> + void (_XtInherit)(void) = __XtInherit;
> + #define _XtInherit __XtInherit
> > #endif
>
> With this way we have a symbol which contains the address of the XtInherit
> function in libXt and is directly exported. This requires the pseudo-reloc
> feature of ld.
>
Why ? Does client code access _XtInherit+<offset> at any place ? Only in that
case the pseudo-reloc stuff is needed.
Ralf