hidden_weak implementation
Will Newton
will.newton at gmail.com
Tue Sep 5 13:31:36 UTC 2006
Hello all,
I've been having some problems with compiling uClibc (fairly recent
snapshot). The error message is:
libc/sysdeps/linux/common/__syscall_fcntl.c:53: weak declaration of
`__EI_fcntl' must precede definition
I am using an old compiler (gcc 2.95.2). Is it possible to get rejig
the implementation of hidden_weak to make it work? I tried the
following:
# define hidden_weak(name) hidden_weak1(name,__GI_##name)
# define hidden_weak1(name, local) \
extern __typeof (name) __EI_##name __asm__(__hidden_asmname (#name)) __attr\
ibute__((weak, alias (__hidden_asmname1 (,#local))));
But I'm not sure if it is equivalent.
More information about the uClibc
mailing list