Gold is more strict about --whole-archive and will report duplicated symbols because of an Object.o in a .a and one outside. A similar problem happens for the non-shared part of libpthread.
Gold is more strict about --whole-archive and will report duplicated
symbols because of an Object.o in a .a and one outside. A similar
problem happens for the non-shared part of libpthread.

This patch moves the -whole-archive/-no-whole-archive to include just the
llvm libs.

aturon/rust,nwin/rust,P1start/rust,aepsil0n/rust,vhbit/rust,pshc/rust,andars/rust,mitsuhiko/rust,ktossell/rust,untitaker/rust,richo/rust,omasanori/rust,avdi/rust,michaelballantyne/rust-gpu,kmcallister/rust,quornian/rust,omasanori/rust,mitsuhiko/rust,l0kod/rust,ktossell/rust,AerialX/rust,michaelballantyne/rust-gpu,aidancully/rust,barosl/rust,cllns/rust,dwillmer/rust,j16r/rust,dwillmer/rust,fabricedesre/rust,miniupnp/rust,nwin/rust,Ryman/rust,bombless/rust,mdinger/rust,XMPPwocky/rust,defuz/rust,mahkoh/rust,aturon/rust,bombless/rust,nham/rust,rohitjoshi/rust,servo/rust,nham/rust,emk/rust,hauleth/rust,victorvde/rust,AerialX/rust,j16r/rust,zaeleus/rust,zachwick/rust,kimroen/rust,kwantam/rust,mdinger/rust,SiegeLord/rust,GBGamer/rust,TheNeikos/rust,hauleth/rust,nwin/rust,krzysz00/rust,jbclements/rust,avdi/rust,P1start/rust,untitaker/rust,kmcallister/rust,jroesch/rust,kimroen/rust,vhbit/rust,mvdnes/rust,l0kod/rust,krzysz00/rust,victorvde/rust,j16r/rust,jashank/rust,philyoon/rust,j16r/rust,vhbit/rust,P1start/rust,pythonesque/rust,kmcallister/rust,SiegeLord/rust,jroesch/rust,pczarn/rust,sarojaba/rust-doc-korean,gifnksm/rust,nwin/rust,mihneadb/rust,LeoTestard/rust,zubron/rust,reem/rust,rprichard/rust,aneeshusa/rust,Ryman/rust,dwillmer/rust,ejjeong/rust,aneeshusa/rust,pshc/rust,avdi/rust,XMPPwocky/rust,michaelballantyne/rust-gpu,P1start/rust,LeoTestard/rust,omasanori/rust,emk/rust,jroesch/rust,GrahamDennis/rand,fabricedesre/rust,jashank/rust,richo/rust,victorvde/rust,robertg/rust,rohitjoshi/rust,SiegeLord/rust,robertg/rust,mihneadb/rust,reem/rust,0x73/rust,sarojaba/rust-doc-korean,AerialX/rust-rt-minimal,rprichard/rust,jashank/rust,emk/rust,0x73/rust,j16r/rust,erickt/rust,nham/rust,LeoTestard/rust,ejjeong/rust,l0kod/rust,jbclements/rust,AerialX/rust-rt-minimal,dinfuehr/rust,KokaKiwi/rust,erickt/rust,vhbit/rust,pshc/rust,kwantam/rust,reem/rust,carols10cents/rust,emk/rust,sarojaba/rust-doc-korean,stepancheg/rust-ide-rust,aidancully/rust,SiegeLord/rust,nham/rust,kmcallister/rust,servo/rust,cllns/rust,richo/rust,bombless/rust,stepancheg/rust-ide-rust,barosl/rust,richo/rust,aepsil0n/rust,aturon/rust,victorvde/rust,zachwick/rust,GBGamer/rust,bhickey/rand,jashank/rust,carols10cents/rust,kimroen/rust,aneeshusa/rust,seanrivera/rust,l0kod/rust,rprichard/rust,jashank/rust,andars/rust,hauleth/rust,mitsuhiko/rust,mahkoh/rust,pythonesque/rust,ruud-v-a/rust,miniupnp/rust,ebfull/rust,SiegeLord/rust,zubron/rust,dwillmer/rust,cllns/rust,mdinger/rust,untitaker/rust,vhbit/rust,AerialX/rust-rt-minimal,ktossell/rust,rohitjoshi/rust,nwin/rust,rprichard/rust,defuz/rust,sae-bom/rust,zaeleus/rust,defuz/rust,j16r/rust,emk/rust,seanrivera/rust,pelmers/rust,GBGamer/rust,nham/rust,seanrivera/rust,pelmers/rust,aidancully/rust,andars/rust,jbclements/rust,aturon/rust,stepancheg/rust-ide-rust,pczarn/rust,bombless/rust,aidancully/rust,GBGamer/rust,LeoTestard/rust,sae-bom/rust,ktossell/rust,retep998/rand,dwillmer/rust,aneeshusa/rust,miniupnp/rust,miniupnp/rust,kimroen/rust,jroesch/rust,pelmers/rust,l0kod/rust,mvdnes/rust,barosl/rust,vhbit/rust,pythonesque/rust,rohitjoshi/rust,fabricedesre/rust,AerialX/rust-rt-minimal,j16r/rust,Ryman/rust,pshc/rust,fabricedesre/rust,ebfull/rand,mitsuhiko/rust,krzysz00/rust,graydon/rust,aepsil0n/rust,pczarn/rust,nwin/rust,TheNeikos/rust,pythonesque/rust,kwantam/rust,XMPPwocky/rust,vhbit/rust,avdi/rust,mitsuhiko/rust,defuz/rust,ebfull/rust,mahkoh/rust,SiegeLord/rust,stepancheg/rust-ide-rust,AerialX/rust,bombless/rust,hauleth/rust,zachwick/rust,bombless/rust,zaeleus/rust,carols10cents/rust,bombless/rust-docs-chinese,waynenilsen/rand,mihneadb/rust,ruud-v-a/rust,miniupnp/rust,Ryman/rust,ebfull/rust,ejjeong/rust,andars/rust,jroesch/rust,graydon/rust,mvdnes/rust,zachwick/rust,Ryman/rust,quornian/rust,quornian/rust,barosl/rust,philyoon/rust,aepsil0n/rust,barosl/rust,XMPPwocky/rust,dinfuehr/rust,defuz/rust,fabricedesre/rust,AerialX/rust-rt-minimal,cllns/rust,mdinger/rust,zubron/rust,philyoon/rust,jbclements/rust,kwantam/rust,GBGamer/rust,reem/rust,rohitjoshi/rust,zaeleus/rust,TheNeikos/rust,arthurprs/rand,servo/rust,cllns/rust,AerialX/rust-rt-minimal,mdinger/rust,KokaKiwi/rust,kmcallister/rust,pelmers/rust,mahkoh/rust,kimroen/rust,mvdnes/rust,jashank/rust,carols10cents/rust,dwillmer/rust,andars/rust,krzysz00/rust,erickt/rust,carols10cents/rust,robertg/rust,jashank/rust,dinfuehr/rust,erickt/rust,graydon/rust,aturon/rust,ktossell/rust,graydon/rust,0x73/rust,servo/rust,KokaKiwi/rust,aepsil0n/rust,cllns/rust,bluss/rand,rprichard/rust,servo/rust,l0kod/rust,miniupnp/rust,aturon/rust,jbclements/rust,quornian/rust,michaelballantyne/rust-gpu,pshc/rust,ejjeong/rust,servo/rust,jashank/rust,LeoTestard/rust,carols10cents/rust,philyoon/rust,AerialX/rust,sae-bom/rust,andars/rust,KokaKiwi/rust,nham/rust,mahkoh/rust,nham/rust,pczarn/rust,jbclements/rust,nwin/rust,vhbit/rust,mitsuhiko/rust,jroesch/rust,dwillmer/rust,barosl/rust,Ryman/rust,dinfuehr/rust,sarojaba/rust-doc-korean,emk/rust,robertg/rust,0x73/rust,shepmaster/rand,reem/rust,XMPPwocky/rust,ktossell/rust,ruud-v-a/rust,l0kod/rust,michaelballantyne/rust-gpu,gifnksm/rust,TheNeikos/rust,jbclements/rust,stepancheg/rust-ide-rust,LeoTestard/rust,kimroen/rust,omasanori/rust,0x73/rust,zubron/rust,ebfull/rust,nwin/rust,GBGamer/rust,mdinger/rust,philyoon/rust,hauleth/rust,ebfull/rust,miniupnp/rust,achanda/rand,aneeshusa/rust,sarojaba/rust-doc-korean,l0kod/rust,emk/rust,pythonesque/rust,sarojaba/rust-doc-korean,mihneadb/rust,mihneadb/rust,mvdnes/rust,pythonesque/rust,erickt/rust,0x73/rust,jbclements/rust,pshc/rust,TheNeikos/rust,gifnksm/rust,michaelballantyne/rust-gpu,ruud-v-a/rust,zubron/rust,aidancully/rust,mihneadb/rust,robertg/rust,jbclements/rust,jroesch/rust,avdi/rust,XMPPwocky/rust,quornian/rust,zachwick/rust,ejjeong/rust,TheNeikos/rust,mitsuhiko/rust,erickt/rust,defuz/rust,P1start/rust,avdi/rust,zubron/rust,sae-bom/rust,hauleth/rust,dinfuehr/rust,ktossell/rust,jroesch/rust,reem/rust,robertg/rust,sae-bom/rust,pczarn/rust,pshc/rust,richo/rust,untitaker/rust,aneeshusa/rust,miniupnp/rust,Ryman/rust,fabricedesre/rust,pythonesque/rust,kmcallister/rust,gifnksm/rust,stepancheg/rust-ide-rust,stepancheg/rust-ide-rust,mahkoh/rust,ruud-v-a/rust,krzysz00/rust,SiegeLord/rust,servo/rust,ebfull/rust,rprichard/rust,dinfuehr/rust,michaelballantyne/rust-gpu,gifnksm/rust,dwillmer/rust,ejjeong/rust,pczarn/rust,seanrivera/rust,P1start/rust,barosl/rust,huonw/rand,aepsil0n/rust,aidancully/rust,victorvde/rust,mvdnes/rust,gifnksm/rust,KokaKiwi/rust,pelmers/rust,untitaker/rust,AerialX/rust,kmcallister/rust,0x73/rust,P1start/rust,GBGamer/rust,quornian/rust,quornian/rust,zaeleus/rust,AerialX/rust,seanrivera/rust,erickt/rust,sae-bom/rust,untitaker/rust,ruud-v-a/rust,philyoon/rust,graydon/rust,zachwick/rust,LeoTestard/rust,kwantam/rust,sarojaba/rust-doc-korean,victorvde/rust,zubron/rust,omasanori/rust,kimroen/rust,pshc/rust,kwantam/rust,omasanori/rust,aturon/rust,rohitjoshi/rust,krzysz00/rust,zaeleus/rust,graydon/rust,pelmers/rust,fabricedesre/rust,seanrivera/rust,zubron/rust,GBGamer/rust,richo/rust,KokaKiwi/rust,pczarn/rust