https://sourceware.org/bugzilla/show_bug.cgi?id=20833
Bug ID: 20833
Summary: x32 kernel build error
Product: binutils
Version: 2.28 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: markus at trippelsdorf dot de
CC: hjl.tools at gmail dot com, ian at airs dot com
Target Milestone: ---
Created attachment 9642
--> https://sourceware.org/bugzilla/attachment.cgi?id=9642&action=edit
testcase
A Gentoo user reported an error when using gold to build Linux kernel with x32
enabled:
markus@x4 testcase % gcc -fuse-ld=bfd -nostdlib -Wl,-m,elf32_x86_64
-Wl,-T,vdsox32.lds vclock_gettime-x32.o
markus@x4 testcase % gcc -fuse-ld=gold -nostdlib -Wl,-m,elf32_x86_64
-Wl,-T,vdsox32.lds vclock_gettime-x32.o
arch/x86/entry/vdso/vclock_gettime.c:246: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:240: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:241: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:230: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:231: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:213: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:212: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:170: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:214: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:216: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:192: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:191: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:170: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:193: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:195: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:148: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:178: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:179: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:148: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:178: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:179: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:275: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:192: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:191: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:170: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:193: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:195: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:281: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:282: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:148: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:178: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:179: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
arch/x86/entry/vdso/vclock_gettime.c:297: error: relocation overflow: reference
to 'vvar_vsyscall_gtod_data'
collect2: error: ld returned 1 exit status
gold 2.26.1. was fine.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils