![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Built in ram limit for 64 bit | kermit | Linux | 2 | 05-18-2007 12:42 PM |
| ksh built-in function | solea | Shell Programming and Scripting | 1 | 09-23-2004 05:25 AM |
| built-in hex editor? | Loriel | Shell Programming and Scripting | 6 | 08-17-2004 02:16 AM |
| BUILT-IN command scripts | JSP | Shell Programming and Scripting | 2 | 03-11-2002 06:52 AM |
| awk built in variables | Reza Nazarian | UNIX for Dummies Questions & Answers | 4 | 02-17-2002 10:50 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Which GCC Built My Kernel?
I'm playing around with the kqemu accelerator for the QEMU virtualization software. I can't remember which version of gcc I used to build my kernel. I have 3.4.6 and 4.1.1 on this (Gentoo) system. I seem to remember there is some command I can run against binaries that will tell me what gcc (and linker, etc..) built them. so far my searches have only turned up:
gcc -v (Shows me what version of GCC I have) and uname -a (which shows me all the kernel info except which GCC built it) Any suggestions? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Try nm on the binary and see what symbols it spits out.
|
|
#3
|
||||
|
||||
|
But if the binary is stripped i.e. built with the -s flag, then I dont think nm will output anything.
|
|
#4
|
|||
|
|||
|
cat /proc/version | head -n1 | cut -d" " -f1-3,5-7
|
|
#5
|
||||
|
||||
|
Code:
awk '{print $5,$6,$7}' /proc/version
Code:
awk '{print $7}' /proc/version
Last edited by sysgate; 07-17-2007 at 06:02 AM. |
|
#6
|
||||
|
||||
|
Thanks!
I've been on vacation, but the answers referring to /proc/version are exactly what I needed!
|
||||
| Google The UNIX and Linux Forums |