hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/scripts/lld-version.sh
....@@ -1,7 +1,10 @@
11 #!/bin/sh
22 # SPDX-License-Identifier: GPL-2.0
33 #
4
-# Print ld.lld's version in a 5 or 6-digit form.
4
+# Usage: $ ./scripts/lld-version.sh ld.lld
5
+#
6
+# Print the linker version of `ld.lld' in a 5 or 6-digit form
7
+# such as `100001' for ld.lld 10.0.1 etc.
58
69 set -e
710
....@@ -14,8 +17,6 @@
1417 # If the 2nd or 3rd field is missing, fill it with a zero.
1518 echo $((10000 * $1 + 100 * ${2:-0} + ${3:-0}))
1619 }
17
-
18
-orig_args="$@"
1920
2021 # Get the first line of the --version output.
2122 IFS='