This reverts commit d806618636f8a82bfc3f620e1fad83af4d2a2575.
Review: https://reviews.llvm.org/D92215
We had issues where older version of wasm-ld were crashing if object
files contains this new symbol type. Even if they correctly report the
unknown symbol type they still can't handle the object as input. We
decided that the best stratagy here is to only generate these symbol
types if refernece types is enabled. Without reference types enabled we
should never geneate a table symbol or a TABLE_NUMBER relocation.
This revert is in addition to the one already reverted in
https://reviews.llvm.org/D95005.
The plan is to re-land these in updated form after the llvm 12 branch
point.