[PATCH] protect symbols when writing