Code: Select all
$ nm /usr/local/cross/i386-pc-shmix/lib/libc.so | grep __init_array_start
w __init_array_start
Code: Select all
$ nm ../software/testlibc/testlibc.elf | grep __init_array_start
08001000 A __init_array_start
Another thing... I think my newlib doesn't get initialized... the _init function is just empty:
Code: Select all
$ gdb /usr/local/cross/i386-pc-shmix/lib/libc.so
(gdb) disas _init
Dump of assembler code for function _init:
0x00026588 <_init+0>: push %ebp
0x00026589 <_init+1>: mov %esp,%ebp
0x0002658b <_init+3>: leave
0x0002658c <_init+4>: ret
End of assembler dump.