LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-17-2005, 07:15 PM   #1
alpha_foobar
LQ Newbie
 
Registered: May 2005
Location: New Zealand
Distribution: OpenSuse
Posts: 13

Rep: Reputation: 0
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross Compiler for H8300 FLLinux Programming 0 11-06-2005 08:24 AM
Cross compiler !!! hiteshmaisheri Linux - Laptop and Netbook 3 03-05-2005 10:51 AM
cross compiler leonora Programming 2 01-08-2005 12:13 PM
Cross compiler help please daveschile Linux - Software 1 04-09-2004 08:24 PM
Cross-compiler for x86-64 ogre7299 Linux - Software 0 10-27-2003 12:27 PM


All times are GMT -5. The time now is 09:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration