From owner-freebsd-current Tue Sep 22 13:15:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA20005 for freebsd-current-outgoing; Tue, 22 Sep 1998 13:15:33 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from mail.scsn.net (scsn.net [206.25.246.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA19932 for ; Tue, 22 Sep 1998 13:15:00 -0700 (PDT) (envelope-from dmaddox@scsn.net) Received: from rhiannon.scsn.net ([209.12.57.18]) by mail.scsn.net (Post.Office MTA v3.1.2 release (PO205-101c) ID# 0-41950U6000L1100S0) with ESMTP id AAA202 for ; Tue, 22 Sep 1998 16:05:51 -0400 Received: (from root@localhost) by rhiannon.scsn.net (8.9.1/8.9.1) id QAA01823 for current@FreeBSD.ORG; Tue, 22 Sep 1998 16:14:55 GMT (envelope-from root) Message-ID: <19980922161455.A1815@scsn.net> 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 Reply-To: dmaddox@scsn.net References: <19980921163048.A869@scsn.net> <19980922122710.D8838@rf900.physics.usyd.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <19980922122710.D8838@rf900.physics.usyd.edu.au>; from David Dawes on Tue, Sep 22, 1998 at 12:27:10PM +1000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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