To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1110
Subject: 
debugging gcc or ld
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 29 May 2000 01:24:39 GMT
Viewed: 
868 times
  
I'm trying to get started with legOS but I'm having some trouble getting
things to link because I keep getting 'relocation truncated' errors.  In
order to determine if its ld or gcc that's at fault, could someone with
a functional h8300-hitachi-hms-gcc compile the following short file and
e-mail me the resulting .o file?  That way I'll be able to compare the
relocation info from a 'good' compiler against mine.  dbaum@enteract.com

------

int foo()
{
   int i;
   for(i=0; i<10; ++i)
      ;
   return 0;
}


-------

Thanks,

Dave

--
reply to: dbaum at enteract dot com


Subject: 
Re: debugging gcc or ld
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 29 May 2000 05:57:17 GMT
Viewed: 
1190 times
  
I found the problem.  gcc hosted on LinuxPPC uses unsigned chars by
default, and one of the h8300 support files for gas assumes signed
chars.  The bug fix was easy, but rather than take a chance on other
lurking signed/unsigned errors, I just forced signed chars by adding
-fsigned-char to CFLAGS for binutils and gcc.

Dave


In article <dbaum-53B4F4.20243928052000@lugnet.com>, Dave Baum
<dbaum@spambgoneenteract.com> wrote:

I'm trying to get started with legOS but I'm having some trouble getting
things to link because I keep getting 'relocation truncated' errors.  In
order to determine if its ld or gcc that's at fault, could someone with
a functional h8300-hitachi-hms-gcc compile the following short file and
e-mail me the resulting .o file?  That way I'll be able to compare the
relocation info from a 'good' compiler against mine.  dbaum@enteract.com

------

int foo()
{
   int i;
   for(i=0; i<10; ++i)
      ;
   return 0;
}


-------

Thanks,

Dave

--
reply to: dbaum at enteract dot com


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