I was trying to cross compile a simple hello world program for ARM using an x86-64 PC. The board has linux kernel version 2.6.35, so kernel too old
error occurs for programs that are for GNU/Linux 3.x.x
.
When using gcc
, file a.out
shows info for GNU/Linux 2.6.32
.
While using arm-linux-gnueabi-gcc
, file a.out
shows info for GNU/Linux 3.2.0
.
Is there a way of specifying what kernel version a gcc-compiled program is for? If so, how could I achieve that? Thank you in advance.