Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

libc & libgloss & _sbrk_ & M68K cross tool

1 view
Skip to first unread message

KBG

unread,
Oct 17, 2006, 9:33:34 AM10/17/06
to
Hi,

I am using Coldfire (MCF5272) and M68K Cross-Tool.

I got an error as "undefined reference" for _sbrk_.
Later i came to know through some searches & links that _sbrk_ is a
low level system call called
by malloc. This is actually defined in libc . So, i tried including
libc.
But, Libc is looking for some kind of functions present in libgloss.
So, I included libgloss.

After some searches i found the libgloss sourcecode inside newlib
package which I compiled with --target = m68K option .
(Compilation took long time - took around 40 minutes and broke finally

(some kind of pointer problem) ).
I did not get any readily available package that i can use it.

I need to find out the libgloss now for fixing this.
Tried to search in cygwin, they have one kind of libgloss for another
archetecture.
I would like to have libgloss for M68K. (MCF5272 Coldfire) which could
solve the above problems . But, i am unable to get it.

Could someone of you here share some info regarding the above problems
that i face now and other possible ways of solutions and good libraries
.

Thx in advans,
Karthik Balaguru

0 new messages