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
1109  |  1111
Subject: 
debugging gcc or ld
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 29 May 2000 01:24:39 GMT
Viewed: 
867 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



Message has 1 Reply:
  Re: debugging gcc or ld
 
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 (...) (24 years ago, 29-May-00, to lugnet.robotics.rcx.legos)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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