Skip to content

Commit

Permalink
ld-version: Drop the 4th and 5th version components
Browse files Browse the repository at this point in the history
... making upstream development binutils snapshots work as expected,
e.g.:

$ mips64el-linux-ld --version
GNU ld (GNU Binutils) 2.20.1.20100303
[...]
$

Signed-off-by: Maciej W. Rozycki <[email protected]>
Acked-by: Michal Marek <[email protected]>
Cc: Michael S. Tsirkin <[email protected]>
Cc: James Hogan <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/12537/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
Maciej W. Rozycki authored and ralfbaechle committed May 13, 2016
1 parent 69ca2b8 commit 0d61ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ld-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
gsub(".*version ", "");
gsub("-.*", "");
split($1,a, ".");
print a[1]*100000000 + a[2]*1000000 + a[3]*10000 + a[4]*100 + a[5];
print a[1]*100000000 + a[2]*1000000 + a[3]*10000;
exit
}

0 comments on commit 0d61ed1

Please sign in to comment.