Subject: Re: arm26 compiler fun
To: Simon Burge <email@example.com>
From: Ben Harris <firstname.lastname@example.org>
Date: 05/14/2000 22:43:26
On Mon, 15 May 2000, Simon Burge wrote:
> Ben Harris wrote:
> > On Mon, 8 May 2000, Richard Earnshaw wrote:
> > > In ELF the default is normally to not prefix user symbols with '_', so
> > > this would put mcount in user space. You should look at other targets and
> > > see what they do.
> > There seem to be two approaches. Most ELF ports have an assembly _mcount
> > which calls a C mcount. i386 ELF has an assembly __mcount which calls a C
> > _mcount. The former seems wrong to me, as the C function is in the user's
> > namespace, so unless people object, I shall follow i386.
> Without looking at the specifics, remember that as Richard says a.out
> prepends an _ to names, whilst ELF doesn't. While this is usually
> hidden by the _C_LABEL macro, it could be that the i386 has this
> hard-coded in the old a.out way...
It's not the i386 version I'm concerned about -- it seems to get it
right. It's all the others, which call the C function "mcount", that
Ben Harris <email@example.com>
Portmaster, NetBSD/arm26 <URL:http://www.netbsd.org/Ports/arm26/>