dietlibc on armv5tel-linux-gnueabi

Lluís Batlle <[email protected]>
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
Hello all,

using dietlibc 0.32 in armv5tel-linux-gnueabi I still find the
'segmentation fault' error, using gcc 4.3.4 in a native compilation,
unless making with DEBUG=1.

Additionally, if I use DEBUG=1, I get later problems linking with
libc. For example:
.../lib/libc.a(getsockopt.o): In function `__libc_getsockopt':
.../lib/getsockopt.c:9: undefined reference to `socketcall'
.../lib/libc.a(tzfile.o): In function `tzset':
.../libugly/tzfile.c:132: undefined reference to `time'

Looking with nm at libc.a, I get:
# nm .../lib/libc.a  | grep socketca
socketcall.o:
         U socketcall

Is that not implemented in arm? I see from syscalls.s/socketcall.S:
#include "syscalls.h"

#ifdef __NR_socketcall
syscall(socketcall,socketcall)
#endif

And in 'arm/syscalls.h':
#define __NR_socketcall                 (__NR_SYSCALL_BASE+102)

So I think the symbol it should be defined into libc.a. But I don't
know why it isn't there. Do you understand why?

Regards,
Lluís.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.