alpha_foobar |
08-17-2005 06:15 PM |
cross compiler
Hey,
I know this seems a little silly. But I am interested in compiling ELF binaries on my Win32 box.
the output of my objdump -i is:
Code:
BFD header file version 2.13.90 20030111
pe-i386
(header little endian, data little endian)
i386
pei-i386
(header little endian, data little endian)
i386
elf32-i386
(header little endian, data little endian)
i386
elf32-little
(header little endian, data little endian)
i386
elf32-big
(header big endian, data big endian)
i386
srec
(header endianness unknown, data endianness unknown)
i386
symbolsrec
(header endianness unknown, data endianness unknown)
i386
tekhex
(header endianness unknown, data endianness unknown)
i386
binary
(header endianness unknown, data endianness unknown)
i386
ihex
(header endianness unknown, data endianness unknown)
i386
pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec
i386 pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec
symbolsrec tekhex binary ihex
i386 symbolsrec tekhex binary ihex
So I think it is possible to produce elf32-i386 binaries, but I can't work out how. GCC seems to be outputing PE compatible binaries and LD is complaining about it (At least thats all I can figure).
Here is my problem... I want elf32-i386... but something seems to be PE.
Code:
$ ld -o obj/out -Ttext F0100020 -nostdlib --oformat elf32-i386 obj/inputa.o obj/inputb.o libgcc.a -b binary
ld: PE operations on non PE file.
Or do I have to recompile my tools, so they can create the output I seek?
|