linux-mips
[Top] [All Lists]

cross Mips64-linux binutils problem

To: linux@cthulhu.engr.sgi.com
Subject: cross Mips64-linux binutils problem
From: jimix@pobox.com (Jimi X)
Date: Wed, 24 May 2000 16:34:35 -0400 (EDT)
Reply-to: jimix@watson.ibm.com
Sender: owner-linuxmips@oss.sgi.com
I hope this isn't a repeat but the archive has been down for a few days:
  http://www.linux.sgi.com/mips/archive/

I'm using binutils-19990825 patched with binutils-19991011.diff

They were obtained from:
  ftp://ftp.linux.sgi.com/pub/linux/mips/crossdev/src/mips64/

Are these the latest? If so please read on..

I have built them for cross-compiling on AIX.
Here is the configure invocation:
  ./configure --host=powerpc-ibm-aix4.3.2.0 --target=mips64-unknown-linux-gnu

All built and installed fine, however the linker halts using the .o's
because on an unknoen relocation.


The following assembler:
.text
        .align 4
.ent  _start , 0
        .globl    _start
_start:  
        dla     $sp, kernelInfoLocal
        ld      $sp, 0($sp) 
        daddu   $sp, $sp, 0x6000
        dla     $25, crtInit  
        j       $25 
 #  NOTREACHED
        j       ra       
.end   _start

on irix:
  $ as -version
  MIPSpro Compilers: Version 7.2.1

  $ as -64 -non_shared -mips3 crt0s.s -o crt0s.o

on aix:
  $ mips64-unknown-linux-gnu-objdump -r crt0s.o

  crt0s.o:     file format elf64-bigmips
...
successfully dumps the relocation information.

if I compiler the same file in aix:
  $ mips64-unknown-linux-gnu-as -64 -mips3 -non_shared crt0s.s -o crt0s.o
  $ mips64-unknown-linux-gnu-objdump -r crt0s.o

  crt0s.o:     file format elf64-bigmips

  mips64-unknown-linux-gnu-objdump: crt0s.o: File in wrong format
RELOCATION RECORDS FOR [.text]:

-Jimi X









<Prev in Thread] Current Thread [Next in Thread>