search for: dyld_enumerate_tlv_storage

Displaying 1 result from an estimated 1 matches for "dyld_enumerate_tlv_storage".

2012 Nov 20
0
[LLVMdev] Determining TLS memory ranges
...ge runtime code. Currently, the best idea I have is to: - On Linux, find out the size of the TLS segments by using dl_iterate_phdr on initialization, then add the block of this size starting at __tls_get_addr({module, 0}) on thread initialization. - On OS X, use something similar to the private dyld_enumerate_tlv_storage/dyld_register_tlv_state_change_handler functions in dyld. Is there a better way to do this? Ideally, the solution would be portable across different OSes, but right now I'm happy if I get things to work on GNU/Linux and OS X x86/x86_64. Also, it would be best if the solution could be easily ex...