Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Why two executables are showing different version for linux. When cross-compiled compiled under chroot enviroment.

GNU/Linux 3.6.3,
GNU/Linux 2.6.26,

Hello world program output.

ignite@ignite:~/sbox2/rootfs/rfs-raspbian/home/pi$ file abc
abc: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.6.3, not stripped

My server perogram output

/vscp/daemon/linux$ file vscpd
vscpd: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x3f673b6fdb44e8aae68e278e70f9e020d225d794, not stripped
share|improve this question
add comment

migrated from stackoverflow.com Apr 9 '13 at 6:58

This question came from our site for professional and enthusiast programmers.

1 Answer

My first guess is that they are compiled against different dynamic libraries. Issuing "readelf -l " should show you against which loader they are compiled.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.