[uClibc]BINFMT_FLAT bad magic, elf2flt 'input file contains no relocation info' m68k

Brad Clements bkc at murkworks.com
Tue Jan 14 02:49:14 UTC 2003


On 14 Jan 2003 at 10:43, David McCullough wrote:


> > 
> > cc -Wl -elf2flt -o python Modules/python.o libpython2.3.a -lpthread
> > -lutil -lm -lc 
> 
> 
> The ',' is missing I think.


Even with the comma, I got the "lib" file is a directory error. However I think that's the 
uClibc gcc "wrapper" that's messing up.

If I call ld directly with -elf2flt then I get lots of:


<snip>

/usr/local/src/python-cvs/python/dist/src/Python/structmember.c:164: relocation truncated to fit: R_68K_PLT16 fclose
/usr/local/src/python-cvs/python/dist/src/Python/structmember.c:164: relocation truncated to fit: R_68K_PLT16 fgets
/usr/local/src/python-cvs/python/dist/src/Python/structmember.c:164: relocation truncated to fit: R_68K_PLT16 fclose
/usr/local/src/python-cvs/python/dist/src/Python/structmember.c:164: relocation truncated to fit: R_68K_PLT16 tolower
/usr/local/src/python-cvs/python/dist/src/Python/structmember.c:164: relocation truncated to fit: R_68K_PLT16 tolower
/usr/local/src/python-cvs/python/dist/src/Python/structmember.c:164: relocation truncated to fit: R_68K_PLT16 strchr
/usr/local/src/python-cvs/python/dist/src/Python/structmember.c:164: relocation truncated to fit: R_68K_PLT16 strlen
/usr/local/src/python-cvs/python/dist/src/Python/structmember.c:164: relocation truncated to fit: R_68K_PLT16 memcpy

<snip>

so, I think this gets back to the -msep-data option, somehow. 

Clearly I have to find some "back to basics" information on how no-mmu kernels work, 
and what the  -msep-data option does.

I've read all the snapgear tech notes (Thanks David), but I'm going to have to "hit the 
books" some more.  Anyone have suggestions for where I can find more detailed docs 
on this topic?  


-- 
Brad Clements,                bkc at murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
http://www.wecanstopspam.org/                   AOL-IM: BKClements




More information about the uClibc mailing list