Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Compiling the kernel without ld.gold
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
KWhat
l33t
l33t


Joined: 04 Sep 2005
Posts: 622
Location: Los Angeles

PostPosted: Mon Mar 23, 2020 1:32 am    Post subject: [Solved] Compiling the kernel without ld.gold Reply with quote

Hi,

I have default-gold set and I was wondering how to compile the kernel. It seems that ld.gold is not support for kernel compilation, however, I am not sure how to workaround this shortfall. Is it possible to easily switch between ld.bfd and ld.gold? binutils-config doesn't seem to support the --linker flag. I also tried CFLAGS="-fuse-ld=ld.bfd" make oldconfig but this also complains about gold.

Thanks


Last edited by KWhat on Mon Mar 23, 2020 2:35 am; edited 1 time in total
Back to top
View user's profile Send private message
Ionen
Guru
Guru


Joined: 06 Dec 2018
Posts: 539

PostPosted: Mon Mar 23, 2020 2:13 am    Post subject: Reply with quote

Code:
make LD=ld.bfd
Back to top
View user's profile Send private message
Goverp
l33t
l33t


Joined: 07 Mar 2007
Posts: 804

PostPosted: Mon Mar 23, 2020 9:25 am    Post subject: Reply with quote

I'm finding an steadily-increasing number of packages that break with the gold linker. So I've reverted to default bld, and instead use a packages.env file to enable gold on the packages that need it or there's a significant time advantage. That seems to be stuff involving LLVM.
_________________
Greybeard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum