Linker hanged on m68k(coldfire).
Groleo Marius
groleo at gmail.com
Thu Mar 19 10:40:22 UTC 2009
On Thu, Mar 19, 2009 at 12:20 AM, Khem Raj <raj.khem at gmail.com> wrote:
> On Wednesday 18 March 2009 05:05:10 Groleo Marius wrote:
>> On Tue, Mar 17, 2009 at 11:55 AM, Groleo Marius <groleo at gmail.com> 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 ?
> can you try this patch from glibc
>
>
> --
> Khem Raj
>
It doesn't compile
========================
[ERROR] libc/sysdeps/linux/m68k/mmap.S:19:20: error: sysdep.h: No
such file or directory
[ALL ] libc/sysdeps/linux/m68k/mmap.S: Assembler messages:
[ALL ] libc/sysdeps/linux/m68k/mmap.S:22: Error: Unknown operator
-- statement `entry (__mmap)' ignored
[ALL ] libc/sysdeps/linux/m68k/mmap.S:24: Error: syntax error --
statement `move.l #SYS_ify(mmap),%d0' ignored
[ALL ] libc/sysdeps/linux/m68k/mmap.S:41: Error: Unknown operator
-- statement `pseudo_end (__mmap)' ignored
[ERROR] make[1]: *** [libc/sysdeps/linux/m68k/mmap.os] Error 1
========================
OTOH i have more debug infos in the attached debug.log from ldso/ldso/dl-elf.c.
The added _dl_dprintfs are included in the patch.
Is it ok that both maxvma and minvma are zero ?
--
Regards, Groleo!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.log
Type: text/x-log
Size: 2983 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20090319/ec34828e/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.patch
Type: text/x-patch
Size: 2693 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20090319/ec34828e/attachment-0003.bin>
More information about the uClibc
mailing list