Blame view

scripts/ld-version.sh 269 Bytes
ccbef1674   Andi Kleen   Kbuild, lto: add ...
1
  #!/usr/bin/awk -f
b24413180   Greg Kroah-Hartman   License cleanup: ...
2
  # SPDX-License-Identifier: GPL-2.0
ccbef1674   Andi Kleen   Kbuild, lto: add ...
3
4
  # extract linker version number from stdin and turn into single number
  	{
4b7b1ef2c   James Hogan   ld-version: Fix a...
5
  	gsub(".*\\)", "");
8083013fc   Michael S. Tsirkin   ld-version: Fix i...
6
7
  	gsub(".*version ", "");
  	gsub("-.*", "");
ccbef1674   Andi Kleen   Kbuild, lto: add ...
8
  	split($1,a, ".");
0d61ed17d   Maciej W. Rozycki   ld-version: Drop ...
9
  	print a[1]*100000000 + a[2]*1000000 + a[3]*10000;
ccbef1674   Andi Kleen   Kbuild, lto: add ...
10
11
  	exit
  	}