[uClibc] first try of gcc 4.0.0 compiling for ppc
Wojciech Kromer
wojciech.kromer at dgt.com.pl
Mon Jun 13 08:36:22 UTC 2005
> #include "syscalls.h"
> #include <sys/timex.h>
> _syscall1(int, adjtimex, struct timex *, buf);
>
> weak_alias(adjtimex, __adjtimex);
> weak_alias(adjtimex, ntp_adjtime);
>
>
> IMHO there is something wrong with order of kernel header includes,
> _KERNEL_ define, or choosing wrong version on sys/time.h
> or maybe _syscall1 has beed changed .... do not know yet
>
here is preprocesor output...
< c u t >
# 117 "../../../../include/sys/timex.h"
extern int __adjtimex (struct timex *__ntx) ;
extern int adjtimex (struct timex *__ntx) ;
extern int ntp_gettime (struct ntptimeval *__ntv) ;
extern int ntp_adjtime (struct timex *__tntx) ;
# 12 "adjtimex.c" 2
int adjtimex(struct timex * buf); __asm__ ( ".section \".text\"\n\t"
".align 2\n\t" ".globl " "adjtimex" "\n\t" ".type " "adjtimex"
", at function\n\t" "adjtimex"":\n\tli 0," "124" "\n\t" "b "
"__uClibc_syscall at plt" "\n\t" ".Lfe1" "adjtimex" ":\n\t" ".size\t"
"adjtimex" ",.Lfe1" "adjtimex" "-" "adjtimex" "\n" );
extern __typeof (adjtimex) __adjtimex __attribute__ ((weak, alias
("adjtimex")));;
extern __typeof (adjtimex) ntp_adjtime __attribute__ ((weak, alias
("adjtimex")));;
< e n d >
What's wrong?
More information about the uClibc
mailing list