[openEuler-5.10 18/21] scripts/lld-version.sh: Rewrite based on upstream ld-version.sh