[ELF] Order weak symbols properly