ElfBuilder.updateOrAddSymtab

private void updateOrAddSymtab(ubyte[] symData, uint strtabIdx, uint firstGlobal, ulong addralign, ulong entsize)

Create or update the generated .symtab section in place.

The first build appends the section and remembers its index; subsequent builds overwrite its payload so readers (which select the first .symtab) never keep seeing a stale table, and repeated serialization does not grow the section count.