PR ld/15762
PR ld/12761

* elflink.c (elf_link_add_object_symbols): Don't clobber
.gnu.warning.symbol sections when shared.