Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 1998 02:36:12 +0800
From:      Peter Wemm <peter@netplex.com.au>
To:        John Polstra <jdp@polstra.com>
Cc:        joki@kuebart.stuttgart.netsurf.de, current@FreeBSD.ORG
Subject:   Re: Correct names for C globals in kernel 
Message-ID:  <199809191836.CAA14684@spinner.netplex.com.au>
In-Reply-To: Your message of "Thu, 17 Sep 1998 17:01:19 MST." <199809180001.RAA13972@austin.polstra.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
John Polstra wrote:
> In article <199809171933.VAA29946@yacht.domestic.de>,
> Joachim Kuebart  <joki@kuebart.stuttgart.netsurf.de> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809191836.CAA14684>