> Is there any other workaround ? You could define TARGET_ATTRIBUTE_WEAK empty, or modify crtstuff manually. That means you always pull-in the exception handling code. As a result, you also always pull-in the thread library. Regards, Martin