Date: Tue, 22 Sep 1998 16:14:55 +0000 From: dmaddox@scsn.net (Donald J. Maddox) To: current@FreeBSD.ORG Subject: Re: Loadable Modules in ELF XF86 Message-ID: <19980922161455.A1815@scsn.net> In-Reply-To: <19980922122710.D8838@rf900.physics.usyd.edu.au>; from David Dawes on Tue, Sep 22, 1998 at 12:27:10PM %2B1000 References: <19980921163048.A869@scsn.net> <19980922122710.D8838@rf900.physics.usyd.edu.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 22, 1998 at 12:27:10PM +1000, David Dawes wrote: > These are X server modles, not kernel modules. If the X server is ELF, > then its modules should be too. > > My first guess is that the something like the following needs to be > added to FreeBSD.cf so that X server symbols get exported for use by > the modules: > > #if UseElfFormat > #define DlLibrary -rdynamic > #else > #define DlLibrary /**/ > #endif > > #if BuildDynamicLoading > #define ServerExtraSysLibs DlLibrary > #else > #define ServerExtraSysLibs /**/ > #endif > > > Another thing that probably needs to be changed is the definition of > PREPEND_UNDERSCORE in xfree86/common/xf86Dl.c, which determines whether > symbols passed to dlsym(3) include a leading underscore. I'd suggest: > > #if defined(CSRG_BASED) && !defined(__ELF__) > #define PREPEND_UNDERSCORE > #endif Yeah, Vladimir was kind enough to straighten me out on this stuff. Now that you've posted this, maybe someone with commit privs will actually put it in the port... I hope :-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980922161455.A1815>