delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/08/18/11:08:59

Date: Mon, 18 Aug 2003 11:13:34 -0300 (BRT)
From: Fauze Valerio Polpeta <fauze AT lisha DOT ufsc DOT br>
To: djgpp AT delorie DOT com, <djgpp AT delorie DOT com>
Subject: LABEL GENERATION
Message-ID: <Pine.LNX.4.44.0308181113060.1509-100000@optimus.lisha.ufsc.br>
MIME-Version: 1.0
X-MIME-Autoconverted: from 8bit to quoted-printable by sv1.lisha.ufsc.br id h7IE4lan019806
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h7IF5gg31151

Hi everybody,

Im working in a project of a new embedded operating system for RCX and Im
using the GNU Cross Compiler! This new system is intended to be multi-
plataform and the generation of symbols by the compiler must have the same
standard to get this goal! However, by default, the GNU GCC for H8300 put
one more underscore in the symbols names, wich give some problems because
the gcc for other plataforms doesnt do that, they just put the assembling
underscore defined by USER_LOCAL_PREFIX in the target features!

I had tried to use fno-leading-underscore im my compilations, but when
using that I've got problems with libs calls, wich was, by default,
compiled with one more underscore when I installed the GCC!!!

Please, can somebody help me with that?!? What features change in
the gcc configuration or target feature files change to eliminate the
second underscore?! Follow the example of what Im trying to say:

High level symbol:

	__BEGIN_IMP
	Thread_Common * volatile Thread_Common::_running;
	__END_IMP

Low level (assembled) symbol other plataforms like i386 (THIS IS WHAT I
WANT):

	_ZN6System3Imp13Thread_Common8_runningE
	//One underscore at the beggining (from assemble macros)

Low level symbol in hitachi:

	__ZN6System3Imp13Thread_Common8_runningE
	//Two underscores at the beggining (one from assemble and other
	//from?????

Please send me something, my MSc. will brake my neck if I not find
something!!!  :)

Regards.

------------------------------------------
         Fauze Valério Polpeta
              PGCC - UFSC
        www.inf.ufsc.br/~fauze
             ICQ 44654038
------------------------------------------




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019