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

--- Comment #12 from Wilco <wilco at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #11)
> How can changing the constructor priority in libgcc affect anything?
> Constructor priorities are within the same shared library or within the same
> executable, not inside of the same process.  So, e.g. when using
> libgcc_s.so.1,
> it might change order with other constructors inside of that shared library
> (there are likely none), but nothing else.  For libgcc.a, it might affect
> even ctors of the other objects with which the library is linked, but still
> not between different shared libraries or binaries.

The outline atomics are linked with each .so (to avoid the PLT and GOT), so
there are multiple copies and any initialization order issues are within the
.so.

Reply via email to