[adtools] Re: Problems building native m68k version of binutils

  • From: Gunther Nikl <gni@xxxxxxxx>
  • To: adtools@xxxxxxxxxxxxx
  • Date: Fri, 16 Dec 2005 17:34:33 +0100

On Mon, Dec 12, 2005 at 11:10:29PM +0100, Josef Wegner wrote:
> Thanks for the patch. Sadly, it causes another problem. It looks
> familiar, though:
> 
> if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
> /home/jwegner/Documents/Dev/amiga/gcc-3.4.0-m68k-amigaoshunk-build/gcc/xgcc 
> -B/home/jwegner/Documents/Dev/amiga/gcc-3.4.0-m68k-amigaoshunk-build/gcc/ 
> -B/usr/local/amiga/m68k-amigaoshunk/bin/ 
> -B/usr/local/amiga/m68k-amigaoshunk/lib/ -isystem 
> /usr/local/amiga/m68k-amigaoshunk/include -isystem 
> /usr/local/amiga/m68k-amigaoshunk/sys-include -O2  -DIN_GCC -DCROSS_COMPILE   
> -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
> -Wold-style-definition  -isystem ./include  -mfixedstack -g  -DIN_LIBGCC2 
> -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-3.4.0/gcc 
> -I../../gcc-3.4.0/gcc/. -I../../gcc-3.4.0/gcc/../include   -DL_mulvdi3 -c 
> ../../gcc-3.4.0/gcc/libgcc2.c -o libgcc/./_mulvdi3.o
> /tmp/ccKZXDmI.s: Assembler messages:
> /tmp/ccKZXDmI.s:491: Error: value out of range
> /tmp/ccKZXDmI.s:491: Error: value of 321 too large for field of 1 bytes at 279

I think thats a different error but one I am responsible for. Apply the
attached patch. Then these errors will go away. Unfortunately reverting
that change probably results in a non-functional assembler: relative
branches to external references won't get resolved properly since that
differs for hunk and a.out.

> I got a similar error when I wrongly removed
> extern struct relax_type md_relax_table[];
> 
> Any ideas?

  No, I believe that was a different problem.

  Gunther
--- tc-m68k.c~  Mon Oct 24 10:00:15 2005
+++ tc-m68k.c   Fri Dec 16 17:15:24 2005
@@ -7292,8 +7292,6 @@
   adjust = ((fixP->fx_pcrel_adjust & 0xff) ^ 0x80) - 0x80;
   if (adjust == 64)
     adjust = -1;
-  if (OBJ_AMIGAHUNK)
-    return -adjust;
   return fixP->fx_where + fixP->fx_frag->fr_address - adjust;
 }
 

Other related posts: