Process #pragma weak only after we know the linkage of the function or variable
we are looking at.