RFC: Should the linker support '--fast' and if so, what should it do ?

Nick Clifton nickc@redhat.com
Wed Mar 25 13:31:27 GMT 2026


Hi Guys,

   Attached is a proposed patch to implement "-O 0" as a command line option
   that disables merging.

   The patch does change the linker's default behaviour, albeit in a small way:
   It changes the linker's nominal default optimization level to 1 instead of 0,
   so that in order to gain the enable-heavy-optimization effect you need to link
   with "0O 2" (or higher) whereas before "-O 1" would have also done this.  (With
   the patch applied "-O 1" now restores the linker's default behaviour of neither
   optimizing nor skipping the merge stage).

   Thoughts ?

Cheers
   Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld.opt-0.patch
Type: text/x-patch
Size: 7609 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260325/985ae0c5/attachment.bin>


More information about the Binutils mailing list