_gettimeofday is not implemented

Wilkes, John John.Wilkes@amd.com
Fri Jul 15 17:02:00 GMT 2016


I have a syscalls.c file with a _gettimeofday() function, and I expected this to be used instead of the one in libnosys, but it does not. I get a warning from the linker:

warning: _gettimeofday is not implemented and will always fail

If I remove "-llibnosys" I get an undefined symbol error:

undefined reference to `gettimeofday'

My syscalls.c file has read() and write(), and I get those instead of the libnosys versions. Why not _gettimeofday()?

Thanks,
John

-- 
John Wilkes | AMD Research |  john.wilkes@amd.com | office: +1 425.586.6412 (x26412)



More information about the Newlib mailing list