ld: arch/x86/entry/vsyscall/vsyscall_gtod.o: in function `update_vsyscall':
vsyscall_gtod.c:(.text+0x232): undefined reference to `__udivdi3'
ld.lld-9: error: undefined symbol: __udivdi3
>>> referenced by vsyscall_gtod.c
>>> entry/vsyscall/vsyscall_gtod.o:(update_vsyscall) in archive arch/x86/built-in.a
With GNU ld:
With lld:
First pointed out by @nathanchance: #186 (comment)
Good observation by @nickdesaulniers: ClangBuiltLinux/continuous-integration#182 (comment)
linux/arch/x86/entry/vsyscall/vsyscall_gtod.c
Line 70 in 249155c