On 4/3/24 10:45 AM, Andrew Pinski wrote: > On Wed, Apr 3, 2024 at 8:32 AM Peter Bergner <berg...@linux.ibm.com> wrote: > I think you misunderstood the patch/situtation. Most ifunc resolves > don't use TLS at all; what is happening here is that the profiler > (-fprofile-generate) is adding TLS usage to the ifunc resolver which > then causes issues. And the use of TLS causes a PLT call to be inside > the ifun which causes all the fun stuff. > > This is not about ifunc resolves using TLS directly in code but rather > indirectly via -fprofile-generate.
Ah, ok. Thanks to you and H.J. for clarifying. Peter