How would I make a GCC cross compiler to spits out PE files instead of ELF files?
Hoozim
PE GCC Cross Compiler
Re: PE GCC Cross Compiler
Set the target to pe instead of elf.
Re: PE GCC Cross Compiler
I tried that but I couldn't run the produced executables in the output bin.
Hoozim
Hoozim
Re: PE GCC Cross Compiler
By any chance did you try to run your executables on a system that expects elf files?
Re: PE GCC Cross Compiler
How did you try ? What does 'couldn't run' mean ? What's an 'output bin' ?Hoozim wrote:I tried that but I couldn't run the produced executables in the output bin.
Hoozim
If a trainstation is where trains stop, what is a workstation ?
Re: PE GCC Cross Compiler
What I meant to say is I am creating a GCC cross-compiler to compile newlib for my OS. I want to compile newlib into a PE format since that is what my OS supports. How do I do that since isn't newlib configured to spit out an ELF executable by default?
Hoozim
Hoozim
- gravaera
- Member
- Posts: 737
- Joined: Tue Jun 02, 2009 4:35 pm
- Location: Supporting the cause: Use \tabs to indent code. NOT \x20 spaces.
Re: PE GCC Cross Compiler
Yo:
Newlib is C code -- it is not biased toward any particular executable format, and the lib can be compiled into any format. Newlib isn't biased toward ELF at all.
Newlib is C code -- it is not biased toward any particular executable format, and the lib can be compiled into any format. Newlib isn't biased toward ELF at all.
17:56 < sortie> Paging is called paging because you need to draw it on pages in your notebook to succeed at it.
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
Re: PE GCC Cross Compiler
EDIT: Removed 2015: Imageshack replaced all links with spam.Hoozim wrote:What I meant to say is I am creating a GCC cross-compiler to compile newlib for my OS. I want to compile newlib into a PE format since that is what my OS supports. How do I do that since isn't newlib configured to spit out an ELF executable by default?
Hoozim