This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Problems with objcopy and coff-sparc --> elf32-sparc conversion....
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Subject: Problems with objcopy and coff-sparc --> elf32-sparc conversion....
- From: Jason Perron <Jason at Rachis dot com>
- Date: Wed, 21 Mar 2001 11:56:54 -0500
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@rachis.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