mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
linux(4): Fix linker warning about undefined vdso symbols
Pointed out by: bz MFC after: 3 days
This commit is contained in:
parent
4f9fac78d4
commit
a129642ced
@ -26,6 +26,14 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#if defined(__aarch64__)
|
||||
#define __VDSO_PREFIX __kernel
|
||||
#else
|
||||
#define __VDSO_PREFIX __vdso
|
||||
#endif
|
||||
|
||||
#define __vdsoN(x) __CONCAT(__CONCAT(__VDSO_PREFIX,_),x)
|
||||
|
||||
static int
|
||||
fls(int mask)
|
||||
{
|
||||
@ -295,7 +303,7 @@ freebsd_clock_gettime(clockid_t clock_id, struct timespec *ts)
|
||||
*
|
||||
*/
|
||||
int
|
||||
__vdso_clock_gettime(clockid_t clock_id, struct l_timespec *lts)
|
||||
__vdsoN(clock_gettime)(clockid_t clock_id, struct l_timespec *lts)
|
||||
{
|
||||
struct timespec ts;
|
||||
clockid_t which;
|
||||
@ -312,7 +320,7 @@ __vdso_clock_gettime(clockid_t clock_id, struct l_timespec *lts)
|
||||
}
|
||||
|
||||
int
|
||||
__vdso_gettimeofday(l_timeval *ltv, struct timezone *tz)
|
||||
__vdsoN(gettimeofday)(l_timeval *ltv, struct timezone *tz)
|
||||
{
|
||||
struct timeval tv;
|
||||
int error;
|
||||
@ -324,7 +332,7 @@ __vdso_gettimeofday(l_timeval *ltv, struct timezone *tz)
|
||||
}
|
||||
|
||||
int
|
||||
__vdso_clock_getres(clockid_t clock_id, struct l_timespec *lts)
|
||||
__vdsoN(clock_getres)(clockid_t clock_id, struct l_timespec *lts)
|
||||
{
|
||||
|
||||
return (__vdso_clock_getres_fallback(clock_id, lts));
|
||||
|
Loading…
Reference in New Issue
Block a user