From owner-freebsd-current Sat Sep 19 11:37:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA03904 for freebsd-current-outgoing; Sat, 19 Sep 1998 11:37:20 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA03898 for ; Sat, 19 Sep 1998 11:37:14 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from spinner.netplex.com.au (localhost [127.0.0.1]) by spinner.netplex.com.au (8.8.8/8.8.8/Spinner) with ESMTP id CAA14684; Sun, 20 Sep 1998 02:36:14 +0800 (WST) (envelope-from peter@spinner.netplex.com.au) Message-Id: <199809191836.CAA14684@spinner.netplex.com.au> X-Mailer: exmh version 2.0.2 2/24/98 To: John Polstra cc: joki@kuebart.stuttgart.netsurf.de, current@FreeBSD.ORG Subject: Re: Correct names for C globals in kernel In-reply-to: Your message of "Thu, 17 Sep 1998 17:01:19 MST." <199809180001.RAA13972@austin.polstra.com> Date: Sun, 20 Sep 1998 02:36:12 +0800 From: Peter Wemm Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Polstra wrote: > In article <199809171933.VAA29946@yacht.domestic.de>, > Joachim Kuebart wrote: > > Hi, > > > > this patch is interesting if it is planned to convert the kernel > > itself to ELF. With these patches, the kernel will link in an ELF > > world. > > > > Under /usr/src/sys there is an assembler macro called CNAME that > > adds an optional underscore to global symbols when needed. However, > > that macro is rarely used. The following patch remedies that: > [600 line patch] > > Gee thanks, but this is totally unnecessary. See > "src/sys/i386/include/asnames.h". Also, one could use the -munderscores flag for gcc on the kernel and skip asnames.h altogether until it's elf-only (and then convert the symbols and drop the compile flag). Yes, you can have gcc's underscore prefixing is independent of the binary format. You can have -mno-underscores with a.out or -munderscores with elf if you wish. If we're going to transition to elf as default for the 3.0 kernel, we could convert the source now, and add -mno-underscores to the a.out kernel cc flags. Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message