18c2ecf20Sopenharmony_ci#!/usr/bin/awk -f
28c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
38c2ecf20Sopenharmony_ci# extract linker version number from stdin and turn into single number
48c2ecf20Sopenharmony_ci	{
58c2ecf20Sopenharmony_ci	gsub(".*\\)", "");
68c2ecf20Sopenharmony_ci	gsub(".*version ", "");
78c2ecf20Sopenharmony_ci	gsub("-.*", "");
88c2ecf20Sopenharmony_ci	split($1,a, ".");
98c2ecf20Sopenharmony_ci	print a[1]*100000000 + a[2]*1000000 + a[3]*10000;
108c2ecf20Sopenharmony_ci	exit
118c2ecf20Sopenharmony_ci	}
12