problem with 'time' function on ARM EABI
Yuri Kozlov <[email protected]>
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
Hello.
#include <time.h>
int main()
{
time_t t;
time(&t);
}
$bin-i386/diet arm-linux-gnueabi-gcc t0.c
/tmp/cc4PgYDH.o: In function `main':
t0.c:(.text+0x18): undefined reference to `time'
$arm-linux-gnueabi-objdump -D bin-arm/time.o
time.o: file format elf32-littlearm
Disassembly of section .ARM.attributes:
00000000 <.ARM.attributes>:
0: 00001541 andeq r1, r0, r1, asr #10
4: 61656100 cmnvs r5, r0, lsl #2
8: 01006962 tsteq r0, r2, ror #18
c: 0000000b andeq r0, r0, fp
10: 00543405 subseq r3, r4, r5, lsl #8
14: Address 0x00000014 is out of bounds.
In arm/syscalls.h:
#if defined(__ARM_EABI__) && !defined(__KERNEL__)
#undef __NR_time
#undef __NR_umount
Where the code for function 'time' on ARM EABI?
--
Regards,
Yuri Kozlov