Date: Mon, 18 Aug 2003 11:13:34 -0300 (BRT) From: Fauze Valerio Polpeta To: djgpp AT delorie DOT com, Subject: LABEL GENERATION Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 X-MIME-Autoconverted: from 8bit to quoted-printable by sv1.lisha.ufsc.br id h7IE4lan019806 Content-Transfer-Encoding: 8bit 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 ------------------------------------------