[Solved]GCC cross compiler problem

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
drunkenfox
Member
Member
Posts: 46
Joined: Tue Mar 13, 2012 10:46 pm

[Solved]GCC cross compiler problem

Post by drunkenfox »

Hello,

I'm trying to build gcc for the i586-pe target. Binutils compiles for the target fine. But when I try to do GCC, it's always complaining about the target not being supported. I tried looking hard in the GCC docs for version that support i586-pe, but I couldn't find any. Is there a version that supports it somewhere, and can you point it to me please? (And yes, I've been following the wiki article)
Last edited by drunkenfox on Sun May 04, 2014 3:11 pm, edited 1 time in total.
;goodbye OS, hello BIOS
mov eax, FFFFFFF0h
jmp eax
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: GCC cross compiler problem

Post by Combuster »

As far as I know, that doesn't work with unmodified sources. You probably want to have something less appropriate that is more likely to build, such as i686-pc-mingw or i686-pc-cygwin.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
drunkenfox
Member
Member
Posts: 46
Joined: Tue Mar 13, 2012 10:46 pm

Re: [Solved]GCC cross compiler problem

Post by drunkenfox »

Nevermind this. I ended up configuring it for an ELF target.
;goodbye OS, hello BIOS
mov eax, FFFFFFF0h
jmp eax
Post Reply