RFC: Should the linker support '--fast' and if so, what should it do ?
Nick Clifton
nickc@redhat.com
Wed Mar 25 11:10:52 GMT 2026
Hi Fangrui,
> We can reuse -O for this purpose...
>
> In ld.lld, -O1 is the default.
>
> -O0 disables constant merge of SHF_MERGE.
>
> -O2 enables some computation heavy size optimization:
>
> enable string suffix merge of SHF_MERGE|SHF_STRINGS. This is very slow
> and not parallel.
> --compress-debug-sections=zlib uses zlib compression with higher
> compression ratio.
I rather like this idea. I will take a look into it. Thanks.
Cheers
Nick
More information about the Binutils
mailing list