[PATCH] D154397: [Driver] Default to -ftls-model=initial-exec on SerenityOS
Daniel Bertalan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 5 13:47:03 PDT 2023
BertalanD added a comment.
Hi MaskRay!
Your blog post (alongside the Drepper TLS doc) proved to be a very helpful resource for our implementation of the dynamic TLS interface. I currently have a SerenityOS PR <https://github.com/SerenityOS/serenity/pull/19809> open that implements `__tls_get_addr` and TLSDESC on top of our current TLS infrastructure which only supports static TLS blocks. (Long story short, our loader passes the initial TLS image to the kernel, which automagically copies it over and sets up the thread pointer whenever a new thread is created. We need to move it to the userspace if we want to have a dynamic thread vector and separately allocated TLS blocks). I'd love it if you'd take a look at the PR.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154397/new/
https://reviews.llvm.org/D154397
More information about the cfe-commits
mailing list