From owner-freebsd-current Mon Jun 8 11:32:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA12501 for freebsd-current-outgoing; Mon, 8 Jun 1998 11:32:01 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp03.primenet.com (daemon@smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA12386 for ; Mon, 8 Jun 1998 11:30:56 -0700 (PDT) (envelope-from tlambert@usr04.primenet.com) Received: (from daemon@localhost) by smtp03.primenet.com (8.8.8/8.8.8) id LAA20934; Mon, 8 Jun 1998 11:30:34 -0700 (MST) Received: from usr04.primenet.com(206.165.6.204) via SMTP by smtp03.primenet.com, id smtpd020902; Mon Jun 8 11:30:26 1998 Received: (from tlambert@localhost) by usr04.primenet.com (8.8.5/8.8.5) id LAA12716; Mon, 8 Jun 1998 11:30:20 -0700 (MST) From: Terry Lambert Message-Id: <199806081830.LAA12716@usr04.primenet.com> Subject: Re: XFree86 & elf To: kushn@mail.kar.net Date: Mon, 8 Jun 1998 18:30:20 +0000 (GMT) Cc: freebsd-current@FreeBSD.ORG, hasty@rah.star-gate.com In-Reply-To: from "Vladimir Kushnir" at Jun 8, 98 01:45:23 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > BTW, I'm probably just stupid, but would please some kind soul explain 2 > things: > i) Do we need underscore for elf dlsym? 'Cause I (just out of ignorance) > commented out #define PREPEND_UNDERSCORE in > xc/programs/Xserver/hw/xfree86/common/xf86Dl.c (now it's init_module > instead of _init_module and so on) - and X loads modules without > complaint, ELF changes the semantics of compiled symbols. The "_" namespace is reserved for implementation, so user defined symbols don't get a prepended underscore. This is, IMO, an error on the order of "any file without a leading / is assumed to be in the root directory", but that's the ABI definition for System V (ELF itself doesn't make this requirement, actually). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message