[uClibc]Re: uClibc startup initialization on m68k

James Graves jgraves at deltamobile.com
Fri Jan 12 22:23:10 UTC 2001


On Fri, 12 Jan 2001, Manuel Novoa III wrote:

> Since you seem to be working on uClibc m68k support, I was wondering if you
> might test this for me.  It is a patch to crt0.S intended to handle uClibc
> initialization.  Note that I don't have any experience with m68k though, so you
> might have to fix something.  But as the stdio code stands right now,
> __init_stdio really needs to be called if any stdio is used (to avoid
> potentially assigning the same buffer to more than one file).  If no stdio is
> used, the code isn't linked because of the weak symbol in crt0.o.
> 
> You may also want to check out the extra/gcc-uClbc stuff in the current
> uClibc cvs tree. I just sent Erik a patch that hopefully gets it working for
> m68k.  If it isn't in cvs, the patch is in the mailing list archive.

Hmmm....  That I'm not running __init_stdio could be the cause of some
of the problems I'm seeing.

I tried compiling your crt0.S, but I ran into problems:

m68k-pic-coff-gcc   -fno-builtin -nostdinc  -Dlinux -D__linux__ -I../../../include -I/opt/uClinux/lib/gcc-lib/m68k-pic-coff/2.7.2.3-pic-060999/include -I. -D__LIBC__  -Wall -g -save-temps  -D__HAS_NO_MMU__ -D__HAS_NO_FLOATS__ -D__VFORK_MACRO__ -Dconst= -D__const= -D__extension__= -c crt0.S -o crt0.o
crt0.S: Assembler messages:
crt0.S:86: Error: Unknown pseudo-op:  `.weak'
crt0.S:89: Error: Unknown pseudo-op:  `.weak'
crt0.S:92: Error: Unknown pseudo-op:  `.weak'
make[3]: *** [crt0.o] Error 1

Is there a command line option I'm missing to get it to recognize the
'.weak' keyword?

Thanks,

James Graves
Delta Mobile Software






More information about the uClibc mailing list