[lld][ELF] set ordinals for mergeAtoms and fix testcase