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] Fix TLS access for -static -pthread


Tom> This bit of code (and another like it later on) should have a longer
Tom> comment, probably at least including the link above, but also some text
Tom> about how this is a hack but why it is ok.

Jan> I have put there:
Jan> +      /* This code path handles the case of -static -pthread executables:
Jan> +	 https://sourceware.org/ml/libc-help/2014-03/msg00024.html
Jan> +	 For older GNU libc r_debug.r_map is NULL.  For GNU libc after
Jan> +	 PR libc/16831 due to GDB PR threads/16954 LOAD_MODULE is also NULL.
Jan> +	 The constant number 1 depends on GNU __libc_setup_tls
Jan> +	 initialization of l_tls_modid to 1.  */

Thanks, that looks good.

Tom


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