mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
0d61ed17dd
... 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 <macro@imgtec.com> Acked-by: Michal Marek <mmarek@suse.cz> Cc: Michael S. Tsirkin <mst@redhat.com> Cc: James Hogan <james.hogan@imgtec.com> Cc: linux-kbuild@vger.kernel.org Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/12537/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
11 lines
234 B
Bash
Executable File
11 lines
234 B
Bash
Executable File
#!/usr/bin/awk -f
|
|
# extract linker version number from stdin and turn into single number
|
|
{
|
|
gsub(".*\\)", "");
|
|
gsub(".*version ", "");
|
|
gsub("-.*", "");
|
|
split($1,a, ".");
|
|
print a[1]*100000000 + a[2]*1000000 + a[3]*10000;
|
|
exit
|
|
}
|