Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdio.h"
- int main()
- {
- printf("Hello World !\n");
- return 0;
- }
- gcc hello.c -o hello-x86
- arm-linux-gcc hello.c -o hello-arm
- root@debian:~/pxadev/devel# file hello-arm
- hello-arm: ELF 32-bit LSB executable, ARM, version 1, dynamically linked (uses shared libs), for GNU/Linux 2.0.0, not stripped
- root@debian:~/pxadev/devel# file hello-x86
- hello-x86: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
- ELF bedeutet Executeable and Linking Format
- Dynamically Linked: Verwendete Bibliotheken werde nicht ins Binary einkompiliert sondern mit anderen Programmen geteilt, die Bibliotheken müssen am System vorhanden sein.
- Non-stripped: Binarys die Non-stripped sind haben debugging-Informationen mit einkompiliert.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement