From owner-freebsd-current Wed Sep 9 22:29:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA01876 for freebsd-current-outgoing; Wed, 9 Sep 1998 22:29:58 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA01871 for ; Wed, 9 Sep 1998 22:29:56 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id WAA27838; Wed, 9 Sep 1998 22:29:45 -0700 (PDT) (envelope-from jdp) Message-Id: <199809100529.WAA27838@austin.polstra.com> To: sprice@hiwaay.net Subject: Re: XFree86 and ELF (beating a dead horse) In-Reply-To: References: Organization: Polstra & Co., Seattle, WA Cc: current@FreeBSD.ORG Date: Wed, 09 Sep 1998 22:29:45 -0700 From: John Polstra Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article , Steve Price wrote: > > Just to followup on my own mail, all of the > "undefined reference" errors that I am seeing > seem to all be from .s files. It seems it is > looking for 'symbol' and as(1) is outputting > '_symbol'. That's because with a.out, a C variable "foo" is called "_foo" in assembler. But with ELF, it is called just plain "foo". So when you reference a C symbol from assembly language, it has to be handled differently depending on the object file format. This needs to be solved using either the CNAME/HIDENAME macros from , or using #defines as in . John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message