Emit correct linkage-name attribute based on DWARF version.