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 / 2170
2169  |  2171
Subject: 
binutils problem fixed
Newsgroups: 
lugnet.robotics
Date: 
Sun, 3 Jan 1999 00:11:01 GMT
Original-From: 
John A. Tamplin <jat@Traveller.{saynotospam}COM>
Viewed: 
1146 times
  
Many thanks to those of you that sent a compiled copy of kmain, I was
able to determine where the error was.  If you are trying to run binutils
on a machine that has char as an unsigned type, you will have the same
problem.  I remember at least one person on this list saying they had
problems with binutils on SGI, and I am sure it is the same problem.  The
fix is simple (relative to binutils-2.9.1):

gas/config/tc-h8300.c lines 924 and 1110
  change (char) to (signed char)

If your C compiler doesn't support the signed keyword, either get an ANSI
compiler or you should be able to replace it with a macro like this:

#define signed_char_extend(x) ((x) & 0x80?(-1 & ~255) | (x):(x) & 255)

and then replace (char)... with signed_char_extend(...).

I will be sending the fix into the binutils maintainers, but until it is
incorporated you can make this simple change and rebuild gas.

John A. Tamplin Traveller Information Services
jat@Traveller.COM 2104 West Ferry Way
256/705-7007 - FAX 256/705-7100 Huntsville, AL 35801

--
Did you check the web site first?: http://www.crynwr.com/lego-robotics



Message has 1 Reply:
  Re: binutils problem fixed
 
(...) I am the one (or one of them anyways) who had problems on SGI machines. Your fix improved things but did not fix them completely. The disassembler was also broken, and was still broken after making your change. You did inspire me, however. (...) (25 years ago, 3-Jan-99, to lugnet.robotics)

3 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