How do I compile code for a setup with older linux kernel?

帅比萌擦擦* 提交于 2019-12-13 16:33:56

问题


I am running Fedora 12 that runs on 2.6.31 linux kernel. and have to compile some code run the binary on 2.6.11 kernel(supported by FC4). Is there a way to do the same, without having to install FC4 or have a virtual machine running FC4?

Also, When you print file info of an elf image using file command, why does the part 'for GNU/Linux ', show an older kernel version? For example, for me, on 2.6.31 kernel, it says compiled for 2.6.18, on 2.6.11 it says compiled for 2.2.5. This is the kernel version its talking about I suppose.

Thanks

来源:https://stackoverflow.com/questions/10170651/how-do-i-compile-code-for-a-setup-with-older-linux-kernel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!