delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/21/12:13:04

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <9E845104D918D5118EE3006008F6B7D80B875F@RIM>
From: Jason Perron <Jason AT Rachis DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Problems with objcopy and coff-sparc --> elf32-sparc conversion..
..
Date: Wed, 21 Mar 2001 11:56:54 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)

Hello,

I recently recieved a bunch of object files that were built using the cygnus
sparc-coff tools.  I need to link these objects to an application that is
being built using the latest (2.10)cygnus sparc-elf tools.  I am running
into the following error because the sparc-elf linker does not appear to be
able to deal with the older, sparc-coff object files:

	sparc-elf-ld.exe: Attempt to do relocateable link with coff-sparc
input and elf32-sparc output
	sparc-elf-ld.exe: final link failed: File in wrong format


I did some research and learned that I need to use the sparc-elf-objcopy
tool to convert between the two formats.  According to the help that
sparc-elf-objcopy provides, it supports both coff-sparc and elf32-sparc
targets.  So, I thought I was all set and typed in the following command:

	sparc-elf-objcopy coff_object_file.o -Oelf32-sparc
elf32_object_file.o

Which gave me the following error:

	BFD: elf32_object_file.o: unsupported relocation type R_SPARC_HI22
 	sparc-elf-objcopy: elf32_object_file.o: Bad value

Now I don't know what to do.  Am I using sparc-elf-objcopy incorrectly?  Is
sparc-elf-objcopy broken?  I thought this would be a common problem but I
couldn't find any info on it by searching the archives.  Can anybody out
there help?  Feel free to respond directly at: jason AT rachis DOT com as well as
the list.

Thanks in advance for any help you can provide!

Jason
  


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019