On Tue, Mar 17, 2009 at 11:55 AM, Groleo Marius <[email protected]> wrote: > Hi list, > I have a uClibc on a coldfire m547x board. > The kernel boots fine but the loading process halts somewhere in ld. > I've compiled uClibc with debugging so here is the output. > ------------------------------------------- > VFS: Mounted root (nfs filesystem). > ELF header=0x80004000 > First Dynamic section entry=0x80010340 > Scanning DYNAMIC section > Done scanning DYNAMIC section > About to do library loader relocations > Done relocating ldso; we can now use globals and make function calls! > Step0 > ------------------------------------------- > I added "Step0" in dl-startup.c ( see below ). > Any ideas why is this happening > or how can I debug this further ? > > > ldso/ldso/dl-startup.c > 309 SEND_STDERR_DEBUG("Step0\n"); > 310 __rtld_stack_end = (void *)(argv - 1); > 311 SEND_STDERR_DEBUG("Step1\n"); > > -- > Regards, Groleo! > It looks like the GOT table was not initialized properly. I got it to pass over that assignment but it's stucked in a mmap now. Anyone knows if there are any problem with coldfire mmap ?
=========================================== Looking up port of RPC 100005/1 on 10.32.0.120 VFS: Mounted root (nfs filesystem). ELF header=0x80004000 First Dynamic section entry=0x800102ac Scanning DYNAMIC section Done scanning DYNAMIC section About to do library loader relocations machine addr preloaded from outside Done relocating ldso; we can now use globals and make function calls! Step0 Step1 _dl_get_ready_to_run:171: Cool, ldso survived making function calls _dl_malloc:919: mmapping more memory _dl_get_ready_to_run:353: Lib Loader: (0x80004000) /lib/ld-uClibc.so.0 _dl_get_ready_to_run:291: calling mprotect on the application program status:4294967295 p_offset:45056 MAP_FLAGS:18 FLAGS:3 size:876 tryaddr:2147627008 status:4294967295 2147627008 /sbin/init:583: can't map '/lib/libgcc_s.so.2' status:4294967295 p_offset:45056 MAP_FLAGS:18 FLAGS:3 size:876 tryaddr:2147627008 status:4294967295 2147627008 /sbin/init:583: can't map '/lib/libgcc_s.so.2' status:4294967295 p_offset:45056 MAP_FLAGS:18 FLAGS:3 size:876 tryaddr:2147627008 status:4294967295 2147627008 /sbin/init:583: can't map '/usr/lib/libgcc_s.so.2' /sbin/init: can't load library 'libgcc_s.so.2' Kernel panic - not syncing: Attempted to kill init! =========================================== -- Regards, Groleo! _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
