Subject: Re: __LEADING_UNDERSCORE
To: Marcus Comstedt <marcus@idonex.se>
From: Todd Vierling <tv@wasabisystems.com>
List: port-sh3
Date: 03/01/2001 18:46:03
On Fri, 2 Mar 2001, Marcus Comstedt wrote:
: In order to natively compile an ELF based kernel on my Dreamcast, I
: had to remove the #define __LEADING_UNDERSCORE in
: arch/sh3/include/asm.h. As the consensus seems to be to drop the
: underscore in ELF, is this #define still needed by anyone?
A selfhosted compiler (based on egcs 1.1.2) is adding underscores.
Fortunately, egcs 1.1.2 is going away shortly, yielding to....
A gcc 2.95.2 based compiler does not generate leading underscores, properly
following the ELF ABI.
--
-- Todd Vierling <tv@wasabisystems.com> * Wasabi NetBSD: Run with it.
-- NetBSD 1.5 now available on CD-ROM -- http://www.wasabisystems.com/