On a production Linux box without development tools installed (e.g. no headers, no gcc) how do you figure out if it will be able to execute stuff:
- compiled under gcc4.1.2 as opposed to gcc3.3.3 (there was a change in ELF between version 3 and 4 I think)
- compiled for 64 bit as opposed to 32 bit executables
We have some legacy libraries so we still use gcc3.3.3 but are moving to gcc4.1.2 and colleague was trying to figure out how to detect on new remote box if we can execute stuff compiled with gcc4.
Can I check for specific version of libraries or ld-linux.so or something like that instead of actually compiling test app with gcc4 and then try to run it on the new box?