If you link in two object files with duplicate local symbol names, the link should succeed - but the "names" section is populated with duplicate names. According to binaryen, this is invalid and wasm-dis will fail.
When linking ELF files, the symbol names are "budged" to avoid the collision in the final symbol table.
I've added budging and a test for the Wasm name table.