> Error: symbol `a' can not be both weak and common Actually this error happens only with an old version of my patch that prints ".weak" for both weak and extern_weak symbols (similar to gcc). Sorry for the confusion. Rafael