Hash and relocation sections memorized indexes of symbol table entries during the createSections phase. However, the symbol table section reordered its entries at writing phase. As a result, references in hash and relocation sections might be broken.
This patch forces dependent sections to receive information about actual indexes of symbol table entries from the symbol table section itself when this information is ready.