This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch+7.12.1 2/2] Fix TLS (such as 'errno') regression
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> And I do not think it is correct to set that offset to zero for
Jan> SHF_TLS as the thread initialization data is really located at the
Jan> section address relocated by that PIE-load-base address.
If it's useful then that makes sense.
>> On the third hand it seems strange to even try to get the "address" of a
>> TLS symbol in this way.
Jan> There could be a symbol's getter which asserts/throws on reading
Jan> address of a TLS symbol?
Yes.
Tom