linux-mips
[Top] [All Lists]

[no subject]

To: "'linux-mips@oss.sgi.com'" <linux-mips@oss.sgi.com>
Subject:
From: John Van Horne <JohnVan.Horne@cosinecom.com>
Date: Wed, 3 Jan 2001 17:36:44 -0800
Cc: "'wesolows@foobazco.org'" <wesolows@foobazco.org>
Sender: owner-linux-mips@oss.sgi.com

Hello,

I downloaded cross-all-001027.tar from oss.sgi.com/pub/linux/mips/mips-linux/simple/crossdev,
built it on my ix86 Linux box, and have tried to use it on our Linux application and Linux kernel.
I'm getting errors which we didn't see when we were using binutils-mips-linux-2.8.1 and
egcs-mips-linux-1.0.3a.

First, while the kernel builds just fine, when we use objcopy to convert the elf image into a binary
image which we can download to our target, objcopy fails with warnings saying that it is writing
sections to huge (i.e. negative) file offsets. When I use objdump to analyze the kernel image,
I see that our start address of 0x80102584 has been turned into 0xffffffff80102584. I'm thinking that
I need to tell ld something to stop it from doing this. Any ideas?

Second, the way we build our application, we first create a partially linked image, with the -r flag. Then
we run ld on this (and an additional object file). When we do this with the tools from cross-all-001027
we get the following error on the second link step:

mips-linux-ld:  BFD internal error, aborting at /homes/local/mips-cross/crossdev-build/src/binutils-001027/bfd/elf32-mips.c line 6942 in _bfd_mips_elf_relocate_section

mips-linux-ld: Please report this bug.

Actually, on the application we didn't get this far using binutils-mips-linux-2.8.1 and egcs-mips-linux-1.0.3a,
so I have nothing to compare it to.  I'm not sure if this is a bug or if I should be passing some flags to gcc or ld.

Any help you can provide would be appreciated.

Thanks,
-John


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