tcc: fix weak attribute handling