Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Which GCC Built My Kernel?


Login or Register to Reply

 
Thread Tools Search this Thread
# 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?
# 3  
Quote:
Originally Posted by porter
Try nm on the binary and see what symbols it spits out.
But if the binary is stripped i.e. built with the -s flag, then I dont think nm will output anything.
# 5  
Code:
awk '{print $5,$6,$7}' /proc/version

or just
Code:
awk '{print $7}' /proc/version

to get the version number directly - 4.1.1 in my case.

Last edited by sysgate; 07-17-2007 at 10:02 AM..
# 6  
Thanks!

I've been on vacation, but the answers referring to /proc/version are exactly what I needed!Smilie
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Kernel Modules Not geting built
rupeshkp728
I installed in VM the Mandriva Linux with 2.6.27 kernel. But presently when I fire make the modules .ko does not get built. I get the following output on firing command in the kernel module folder. $ make Building first_driver.c ... make: Entering directory...... UNIX for Advanced & Expert Users
1
UNIX for Advanced & Expert Users
bash built-in
gwgreen1
Is there any command or VARIABLE in unix to display only bash builtin commands?. Some days back I worked on that, but now I do not remember. Can anyone please reply for this?...... Shell Programming and Scripting
4
Shell Programming and Scripting
Which file is read by kernel to set its default system kernel parameters values?
girish.batra
Hi gurus Could anybody tell me which file is read by kernel to set its default system kernal parameters values in solaris. Here I am not taking about /etc/system file which is used to load kernal modules or to change any default system kernal parameter value Is it /dev/kmem file or something...... Solaris
1
Solaris
How to convert Linux Kernel built-in module into a loadable module
anitemp
Hi all, I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/. I need to know if I can...... Linux
0
Linux
Installing gcc - recieve error message gcc : cannot execute
Ackers
AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) pkgadd d...... Solaris
8
Solaris

Featured Tech Videos