https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122413

--- Comment #5 from Koakuma <koachan+gccbugs at protonmail dot com> ---
(In reply to Eric Botcazou from comment #4)
> > Hmm~ if it's not going to be disabled by default, then, is there a way to
> > tell GCC - at runtime - that "I'm going to link with something that's not
> > GNU's ld, therefore don't reorder TLS sequences", at least?
> 
> No, there is not.  But you can use -fno-delayed-branch as a workaround.
> 
> > I see the `--without-gnu-ld` option in that ticket, but that requires me to
> > rebuild GCC, is it not?
> 
> Yes, it's a configure option.

I see, understood.

Though at least with mold, they end up implementing the necessary flipping on
their side:
https://github.com/rui314/mold/commit/92adbb1d61f30c848080cef91de69a4e3c43fb09

So I think linking with mold should be okay now.

Reply via email to