HomePhabricator

[WebAssembly] Fix crash with LTO + relocatable + undefined symbols

Authored by sbc100 on Jan 30 2019, 10:55 AM.

Description

[WebAssembly] Fix crash with LTO + relocatable + undefined symbols

Change the way we create the symbol table to be closer to how its done
on ELF. Now the output symbol table matches the internal symtab order
and includes local and undefined symbols.

Fixes PR40204

Differential Revision: https://reviews.llvm.org/D56947

llvm-svn: 352645