lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <46919FD1.2060203@googlemail.com>
Date:	Mon, 09 Jul 2007 04:39:13 +0200
From:	Gabriel C <nix.or.die@...glemail.com>
To:	Alexey Dobriyan <adobriyan@...il.com>
CC:	Jesper Juhl <jesper.juhl@...il.com>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	sam@...enborg.org
Subject: Re: [PATCH] fixup binutils printing from scripts/ver_linux

Alexey Dobriyan wrote:
> On Mon, Jul 09, 2007 at 01:47:58AM +0200, Jesper Juhl wrote:
>   
>> I just found that scripts/ver_linux does not print the binutils version 
>> properly on my Slackware 12.0 system.
>>     
>
>   
>> --- a/scripts/ver_linux
>> +++ b/scripts/ver_linux
>> @@ -21,9 +21,8 @@ gcc --version 2>&1| grep gcc | awk \
>>  make --version 2>&1 | awk -F, '{print $1}' | awk \
>>        '/GNU Make/{print "Gnu make              ",$NF}'
>>  
>> -ld -v | awk -F\) '{print $1}' | awk \
>> -'/BFD/{print "binutils              ",$NF} \
>> -/^GNU/{print "binutils              ",$4}'
>> +echo "binutils               $(ld -v | awk -F \) \
>> +{'print $2'} | tr -d ' ')"
>>     
>
> NAK. It starts reporting here empty binutils field.
> FWIW,
>
> 	$ ld -v
> 	GNU ld version 2.16.1
>
>
>   

Well the format changed so now we have :

$ ld -v
GNU ld (Linux/GNU Binutils) 2.17.50.0.16.20070511

Maybe something like this may work :

echo "binutils $(ld -v | tr -d [:alpha:] | sed 's/.*)/\//;s/\///g' | tr 
-d ' ')"


Regards,

Gabriel C




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ