[Request] Porting the toolchain

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
Assembler
Member
Member
Posts: 30
Joined: Fri Oct 27, 2006 5:26 am
Contact:

[Request] Porting the toolchain

Post 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
Systems and Computer Engineering Researcher
"Do you pine for the nice days of Minix-1.1, when men were men and wrote their own device drivers?" -- Linus Torvalds
http://sce.carleton.ca/~maslan
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post 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:
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
Assembler
Member
Member
Posts: 30
Joined: Fri Oct 27, 2006 5:26 am
Contact:

Post 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.
Systems and Computer Engineering Researcher
"Do you pine for the nice days of Minix-1.1, when men were men and wrote their own device drivers?" -- Linus Torvalds
http://sce.carleton.ca/~maslan
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post 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..)
Attachments
binutils-and-newlib.tar.gz
I made these patches from an early release of mort-os against their vanilla counterparts. (spix "Andrew"'s local SVN changes might be slightly different) but the work was his.
(63.15 KiB) Downloaded 108 times
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
spix
Member
Member
Posts: 128
Joined: Mon Jun 26, 2006 8:41 am
Location: Millicent, South Australia
Contact:

Post 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
User avatar
Assembler
Member
Member
Posts: 30
Joined: Fri Oct 27, 2006 5:26 am
Contact:

Post by Assembler »

spix wrote: You do?

Are you on my list?
Yes I'm :-D
I'm "Микоян-Гуревич МиГ"
Systems and Computer Engineering Researcher
"Do you pine for the nice days of Minix-1.1, when men were men and wrote their own device drivers?" -- Linus Torvalds
http://sce.carleton.ca/~maslan
Post Reply