This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.
How can I convert object file format ?
I want to convert between elf64-alpha and ecoff-littlealpha.
I saw the "objcopy" man page, and I found the method how to convert
this.
======
(on Linux-alpha, I make a cross-compiler as alpha-dec-osf-gcc)
% cat hello.c
void main(void) {
printf("hello\n");
}
%
% alpha-dec-osf-gcc -c hello.c
... (some messages)
% file hello.o
hello.o: COFF format alpha executable not stripped object - version
3.11-2
%
% objcopy -I ecoff-littlealpha -O elf64-alpha hello.o out.o
BFD: bfd assertion fail elf.c:3886
BFD: bfd assertion fail elf.c:3886
BFD: bfd assertion fail elf.c:3886
BFD: bfd assertion fail elf.c:3886
BFD: bfd assertion fail elf.c:3886
BFD: bfd assertion fail elf.c:3886
BFD: out.o: unsupported relocation type LITERAL
objcopy: out.o: Bad value
% rpm -q binutils
binutils-2.9.1.0.19a-1
%
Binutils' objcopy didn't support the conversion ? or what's wrong ?
Does anybody have an idea about this problem ? Please help me.
Thanks :-)
--
wkpark@chem.skku.ac.kr