RFC: Three load segments patch (PR 30907) [version 2]
Nick Clifton
nickc@redhat.com
Thu Jun 13 14:15:32 GMT 2024
Hi Fangrui,
> Thanks for working on the size bloat issue. I haven't checked closely,
> but the proposed -z one-rosegment probably does something similar to
> --rosegment.
Exactly. I was trying to emulate what that option did.
> My feature requests remain at
> https://sourceware.org/pipermail/binutils/2024-June/134541.html
> Splitting -z separate-code into --rosegment and -z separate-code (as
> suggested in https://sourceware.org/bugzilla/show_bug.cgi?id=30907#c4)
> might be useful. Gold introduced --rosegment, which has been adopted
> by lld and mold as well.
Fair enough. So I have decided to go ahead and commit my patch, although
I have renamed the option to --rosegment instead of -z one-rosegment. I
prefer my original name for the option, but being compatible with the other
linkers is more important I feel, so I made the change.
The option is not enabled by default unless the new --enable-rosegment
configure option is used, but at least having it in the code means that
more people than just myself can experiment with it.
Cheers
Nick
More information about the Binutils
mailing list