Add a getSymbolOffset method and use it in the ELF writer.