[ELF] fix dynamic symbol table entries and update tests