Page 1 of 1

[Request] Porting the toolchain

Posted: Tue Jan 30, 2007 9:42 am
by Assembler
Hello All,

Please if anyone had reached the stage of porting the GNU toolchain, share your knoweledge with the others.

http://libosdk.berlios.de/wiki/index.php/Toolchain

Any help will be appreciated.

Thanks alot

Posted: Tue Jan 30, 2007 1:35 pm
by Brynet-Inc
spix on this forum has successfully ported binutils to his operating system (And newlib by redhat). He might have a few tips.

I've also made a few unified diff's of his modification's to binutils/newlib that show the various changes he made.
(Although he's making a fork of newlib.. It won't be patch-able against the released newlib for long..)

My advice would be to contact him more about it, I can email you those patches if you want also.

I'm fairly sure he's close to a GCC port also (Compiles.. just doesn't run... yet..)

http://www.mort-os.com/ :wink:

Posted: Tue Jan 30, 2007 5:08 pm
by Assembler
If you can provide a link to the diffs that would be great.
You know i've spix "Andrew" on my msn list, but i didn't know that he has ported the binutils, great work.

Thanks.

Posted: Tue Jan 30, 2007 8:03 pm
by Brynet-Inc
I currently have them on my home server.. Thus I'll attach them to this post.

He runs an IRC, sadly nobody joins it lol..

I managed to update his binutils port to 2.17...

I did make a diff for his newlib-1.14.0 port, Although he's since merged to 1.15.0 in his SVN repository.. And has started making a great deal of changes for his port.

(chase/mods if the attached files are too large I'll locate other suitable hosting..)

Posted: Tue Jan 30, 2007 9:39 pm
by spix
You know i've spix "Andrew" on my msn list, but i didn't know that he has ported the binutils, great work.
You do?

Are you on my list?

As for porting a toolchain, it's fairly easy to port binutils, basically I copied i386-pc-elf configuration files and modified them slightly so ld would link executables in the right place by default.

Newlib is also fairly easy to port, however it's not complete and missing a lot of functions you might see in glibc. To get started on newlib you need to provide syscall stubs, for things like read, write, open, close and so on. Check out the newlib site.

GCC I haven't figured out yet. It's quite portable, it shouldn't take many modifications at all to port it. I'm having trouble making it accept my strange filesystem layout and getting a native build to cross compile.

Hope that helps.

Andrew

Posted: Wed Jan 31, 2007 2:10 pm
by Assembler
spix wrote: You do?

Are you on my list?
Yes I'm :-D
I'm "Микоян-Гуревич МиГ"