This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch+7.12.1 2/2] Fix TLS (such as 'errno') regression


>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> For the testcase it is important the variable is in objfile with non-zero base
Jan> address.

My only question about this patch is why the symbol's section has a
non-zero section offset.  Is that the reason why?

Maybe it would make sense to make a SEC_THREAD_LOCAL section always have
a zero offset.  Then touching all the users wouldn't be necessary.

On the third hand it seems strange to even try to get the "address" of a
TLS symbol in this way.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]