From owner-freebsd-current Tue Sep 22 15:23:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA16231 for freebsd-current-outgoing; Tue, 22 Sep 1998 15:23:20 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from mail.HiWAAY.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA16190 for ; Tue, 22 Sep 1998 15:22:59 -0700 (PDT) (envelope-from sprice@hiwaay.net) Received: from localhost (sprice@localhost) by mail.HiWAAY.net (8.9.0/8.9.0) with SMTP id RAA06561; Tue, 22 Sep 1998 17:22:23 -0500 (CDT) Date: Tue, 22 Sep 1998 17:22:23 -0500 (CDT) From: Steve Price To: "Donald J. Maddox" cc: current@FreeBSD.ORG Subject: Re: Loadable Modules in ELF XF86 In-Reply-To: <19980922161455.A1815@scsn.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 22 Sep 1998, Donald J. Maddox wrote: # 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 :-) I'm fixing to start a build with this patch. If all goes well it will be submitted later on tonight. Steve # # To Unsubscribe: send mail to majordomo@FreeBSD.org # with "unsubscribe freebsd-current" in the body of the message # To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message