To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 21220
21219  |  21221
Subject: 
LABEL GENERATION
Newsgroups: 
lugnet.robotics
Date: 
Fri, 22 Aug 2003 13:57:05 GMT
Original-From: 
Fauze Valerio Polpeta <FAUZE@LISHA.UFSCsaynotospam.BR>
Viewed: 
835 times
  
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 underscore more in the symbols names, wich give some problems because
the gcc for other plataforms doesnt do that, they just put the assembler
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 to 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?????

I sent this message to the gnuh8 list too, however Im trying here because
I need a answer as soon as possible!

Regards.

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



Message has 2 Replies:
  Re: LABEL GENERATION
 
(...) Rebuild the libraries using fno0-leading-underscore. Kevin (21 years ago, 22-Aug-03, to lugnet.robotics)
  Re: LABEL GENERATION
 
(...) [SNIP] Fauze Valério Polpeta, What platform(s) or OS(es) are you trying to generate the compiler for (e.g. Linux, Cygwin, DJGPP/MS-DOS)? Ed (21 years ago, 22-Aug-03, to lugnet.robotics)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
10 hours ago
Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR