public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* [Q]Converting object file format
@ 1999-03-03 20:45 Won Kyu Park
  1999-03-31 23:46 ` Won Kyu Park
  0 siblings, 1 reply; 2+ messages in thread
From: Won Kyu Park @ 1999-03-03 20:45 UTC (permalink / raw)
  To: egcs

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Q]Converting object file format
  1999-03-03 20:45 [Q]Converting object file format Won Kyu Park
@ 1999-03-31 23:46 ` Won Kyu Park
  0 siblings, 0 replies; 2+ messages in thread
From: Won Kyu Park @ 1999-03-31 23:46 UTC (permalink / raw)
  To: egcs

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-03-31 23:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-03 20:45 [Q]Converting object file format Won Kyu Park
1999-03-31 23:46 ` Won Kyu Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).