bootlin / toolchains-builder

http://toolchains.free-electrons.com
89 stars 27 forks source link

gold linker from binutils #55

Open abrisco opened 1 year ago

abrisco commented 1 year ago

I'm not sure if this is the right place to ask but would it be possible to start including the gold linker in artifacts?

wdlkmpx commented 1 year ago

The configure opt is --enable-gold I think

They say it was added by google and has been in maintenance mode for years

abrisco commented 1 year ago

The configure option to include it in artifacts? Is there a pull request I could make to enable that?

wdlkmpx commented 1 year ago

You have to wait until the next release

If you want directly edit buildroot https://github.com/buildroot/buildroot/tree/master/package/binutils

But I guess something like this can be added to the local config in this repo BR2_BINUTILS_EXTRA_CONFIG_OPTIONS = --enable-gold

wdlkmpx commented 1 year ago

I agree the gold linker should be included in the tarballs

abrisco commented 1 year ago

It's just not clear to me how to accomplish that. Happy to help if I can.

wdlkmpx commented 1 year ago

Perhaps adding this line: BR2_BINUTILS_EXTRA_CONFIG_OPTIONS=--enable-gold to this file https://github.com/bootlin/toolchains-builder/blob/93f88ed30a4fd13ada7e2debf0d035855a690585/configs/optionals/*.config

I'm not sure, but you can build it yourself (./build.sh as root) and see if the gold linker appears, this project builds for many architectures, so basically that change has to be tested in all supported architectures I guess...