linkers/syms: Add weak symbols to the global symbol table.
Add any weak symbols that have been linked into the base image to the global symbol table. A weak symbol is global when view viewed from a dynamically loaded module.
Closes #2704.