Bug 187841
Summary: | x32 VDSO fails to build (relocation overflow) when Gold is the system default linker | ||
---|---|---|---|
Product: | Platform Specific/Hardware | Reporter: | Matt Whitlock (kernel) |
Component: | x86-64 | Assignee: | platform_x86_64 (platform_x86_64) |
Status: | NEW --- | ||
Severity: | normal | CC: | devurandom, evanjsx, ivan, markus, rion4ik, sergei.a.trusov, sophietheopossum, xaviermiller |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.8.8-gentoo | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Matt Whitlock
2016-11-16 09:40:26 UTC
same problem. same solution gentoo-sources-4.14.56 The workaround in Comment #0 is no longer sufficient as of Linux 4.19. Now I additionally must specify "LD=ld.bfd" on the 'make' command line. with 4.20 i couldn't even do that, i had to temporarily change default linker With 5.1 I am using the following hack: --- linux/Makefile.orig +++ linux/Makefile @@ -393,7 +393,7 @@ # Make variables (CC, etc...) AS = $(CROSS_COMPILE)as -LD = $(CROSS_COMPILE)ld +LD = $(CROSS_COMPILE)ld.bfd CC = $(CROSS_COMPILE)gcc CPP = $(CC) -E AR = $(CROSS_COMPILE)ar Please note this is for .config with # CONFIG_X86_X32 is not set So may be #0 is additionally needed. |