[lkml]   [2019]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC PATCH glibc 1/4] glibc: Perform rseq(2) registration at nptl init and thread creation (v4)
* Mathieu Desnoyers:

> ----- On Jan 14, 2019, at 10:55 AM, Florian Weimer wrote:
>> * Mathieu Desnoyers:
>>> Therefore, both symbols will end up in
>>> sysdeps/unix/sysv/linux/Versions.
>> I'm not sure what you mean by that. The physical location in the
>> directory tree has little effect on which shared object the symbol is
>> placed in; that will need other changes.
> I'm currently moving the symbol definitions to csu/rseq-sym.c. On Linux,
> its content is overridden by a new sysdeps/unix/sysv/linux/rseq-sym.c
> which contains both __rseq_abi and __rseq_refcount symbols. On other
> platforms, it is a stub file.

You don't need a stub file if you use the “ifeq ($(subdir),csu)”

The other question is whether this belongs into the csu subdirectory.
Since TLS is not available in, the initialization would have to
happen rather late, after relocation, but before ELF constructors are

(A side effect is that the rseq area would not be usable from IFUNC


 \ /
  Last update: 2019-01-14 20:37    [W:0.050 / U:6.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site