* elflink.c (_bfd_elf_merge_symbol): Rewrite weak symbol handling.