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