Link dynamically sized exports correctly as well.
Merge pull request #1877 from unknownbrackets/elf-fix

Link dynamically sized exports correctly as well