Skip to content

undefined reference to `__udivdi3' in vsyscall_gtod.c #578

@tpimh

Description

@tpimh

With GNU ld:

ld: arch/x86/entry/vsyscall/vsyscall_gtod.o: in function `update_vsyscall':
vsyscall_gtod.c:(.text+0x232): undefined reference to `__udivdi3'

With lld:

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

First pointed out by @nathanchance: #186 (comment)
Good observation by @nickdesaulniers: ClangBuiltLinux/continuous-integration#182 (comment)

base->nsec = tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift;

Metadata

Metadata

Assignees

Labels

[ARCH] x86This bug impacts ARCH=i386[BUG] linuxA bug that should be fixed in the mainline kernel.[FIXED][LINUX] 5.3This bug was fixed in Linux 5.3

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions