Hi,
I am trying to write a shared library object over ODP. Our ODP library has some per thread variables. When my application invokes an API of shared object which accesses per thread variable it gives segmentation fault.
If you think that there is a bug in the toolchain, please file a bug in bugs.linaro.org with minimal set of sample code and compiler/toolchain option to reproduce this.
My concern is that when a shared object is loaded dynamically, how memory is assigned to thread specific variables defined inside shared objects. AFAIK we need to compile it with -ftls-model=global-dynamic, which is enabled by default when compiled with -fPIC flag, and library loader takes care for these issues.
I am not an expert in this area, please help me in getting to some suitable reference pointers or some steps I might have missed.
Ian has written a nice blog post about this at: http://www.airs.com/blog/archives/44
Thanks, Kugan