Porting Binutils

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
MrLolthe1st
Member
Member
Posts: 90
Joined: Sat Sep 24, 2016 12:06 am

Porting Binutils

Post by MrLolthe1st »

Hi, all! Today i'm building binutils with compiler, that compiled under compiler, that compiled under gcc.
So, i'm made that steps:
1. Have already built Cross GCC
2. Have already built host compiler, that targets to my os
3. Already have compiled binutils under my compiler from step 2.
4. Got a tonns of errors like '/gcc/bin_ok/intl/../../binutils-2.28/intl/l10nflist.c:326: undefined reference to `malloc'
So, what i'm need to do to get a ready-to-use-under-my-os binutils?
Thanks for all,
Aleksandr
Octocontrabass
Member
Member
Posts: 5586
Joined: Mon Mar 25, 2013 7:01 pm

Re: Porting Binutils

Post by Octocontrabass »

MrLolthe1st
Member
Member
Posts: 90
Joined: Sat Sep 24, 2016 12:06 am

Re: Porting Binutils

Post by MrLolthe1st »

i'm have only .h files in /root/myos/sysroot/usr/include.
What i'm need to do? I'm isn't native english speaker, i'm may understand something wrong.
Octocontrabass
Member
Member
Posts: 5586
Joined: Mon Mar 25, 2013 7:01 pm

Re: Porting Binutils

Post by Octocontrabass »

You need a C standard library for your OS. You can port an existing C library, or you can write your own. Read this page and come back if you have questions.
MrLolthe1st
Member
Member
Posts: 90
Joined: Sat Sep 24, 2016 12:06 am

Re: Porting Binutils

Post by MrLolthe1st »

Great thanks!
Now remains realize some functions.
Image
Post Reply