This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [RFC] Fix libstdc++ test fails with emutls


On Mon, Nov 01, 2010 at 01:45:58PM +0800, Jie Zhang wrote:
> mutex:704: undefined reference to `__emutls_v._ZSt15__once_callable'
> 
> This patch should fix this error by exporting such like symbols.
> 
> Is this patch OK?

You shouldn't be exporting symbols that weren't (even by mistake) exported
earlier in older symbol versions, always add new symbols to the latest
version (GLIBCXX_3.4.15 right now).
> 
> 	* config/abi/pre/gnu.ver: Export __emutls_v._ZSt11__once_call
> 	and __emutls_v._ZSt15__once_callable.
> 
> Index: config/abi/pre/gnu.ver
> ===================================================================
> --- config/abi/pre/gnu.ver	(revision 166125)
> +++ config/abi/pre/gnu.ver	(working copy)
> @@ -992,7 +992,9 @@
>      _ZNKSt10lock_error4whatEv;
>  
>      _ZSt11__once_call;
> +    __emutls_v._ZSt11__once_call;
>      _ZSt15__once_callable;
> +    __emutls_v._ZSt15__once_callable;
>      _ZSt14__once_functor;
>      _ZSt23__get_once_functor_lockv;
>      __once_proxy;


	Jakub


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