[Bug c/125418] [16/17 regression] c: tls_model("initial-exec") attribute ignored for hidden symbols with -fno-pie
amonakov at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun May 24 07:47:36 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125418
--- Comment #13 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #12)
> 1. As the testcase in comment #10 shows that the alpha linker is broken
> for all versions of GCC.
The original issue is from Glibc though, which was not triggering the breakage
previously. Considering the testcase, I don't know why not, it's surprising.
> 2. X86 linker doesn't suffer from
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=34165
>
> Why should x86 GCC be penalized because of the broken alpha linker?
In this case it's not a penalization, we are aligning the behavior of '#pragma
weak' with __attribute__((weak)). As the attribute prevents TLS model upgrade,
the pragma should too.
More information about the Gcc-bugs
mailing list