OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 9:44 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Porting Binutils
PostPosted: Wed Dec 12, 2018 4:18 pm 
Offline
Member
Member

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


Top
 Profile  
 
 Post subject: Re: Porting Binutils
PostPosted: Wed Dec 12, 2018 4:47 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
It sounds like you missed one of the steps here.

Where is your C standard library?


Top
 Profile  
 
 Post subject: Re: Porting Binutils
PostPosted: Wed Dec 12, 2018 6:09 pm 
Offline
Member
Member

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


Top
 Profile  
 
 Post subject: Re: Porting Binutils
PostPosted: Wed Dec 12, 2018 7:20 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
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.


Top
 Profile  
 
 Post subject: Re: Porting Binutils
PostPosted: Wed Dec 12, 2018 9:35 pm 
Offline
Member
Member

Joined: Sat Sep 24, 2016 12:06 am
Posts: 90
Great thanks!
Now remains realize some functions.
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Majestic-12 [Bot] and 60 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group