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
Porting Binutils
-
- Member
- Posts: 5586
- Joined: Mon Mar 25, 2013 7:01 pm
-
- Member
- Posts: 90
- Joined: Sat Sep 24, 2016 12:06 am
Re: Porting Binutils
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.
What i'm need to do? I'm isn't native english speaker, i'm may understand something wrong.
-
- Member
- Posts: 5586
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Porting Binutils
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.
-
- Member
- Posts: 90
- Joined: Sat Sep 24, 2016 12:06 am
Re: Porting Binutils
Great thanks!
Now remains realize some functions.
Now remains realize some functions.