mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-04 09:44:14 -05:00
To check the linker version. Used by the LTO makefile. Signed-off-by: Andi Kleen <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: H. Peter Anvin <[email protected]>
8 lines
205 B
Shell
Executable file
8 lines
205 B
Shell
Executable file
#!/usr/bin/awk -f
|
|
# extract linker version number from stdin and turn into single number
|
|
{
|
|
gsub(".*)", "");
|
|
split($1,a, ".");
|
|
print a[1]*10000000 + a[2]*100000 + a[3]*10000 + a[4]*100 + a[5];
|
|
exit
|
|
}
|