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 / 1111
1110  |  1112
Subject: 
Re: debugging gcc or ld
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 29 May 2000 05:57:17 GMT
Viewed: 
1592 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



Message is in Reply To:
  debugging gcc or ld
 
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 (...) (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