Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #include "stdio.h"
  2.  
  3. int main()
  4. {
  5. printf("Hello World !\n");
  6. return 0;
  7. }
  8.  
  9. gcc hello.c -o hello-x86
  10.  
  11. arm-linux-gcc hello.c -o hello-arm
  12.  
  13.  
  14. root@debian:~/pxadev/devel# file hello-arm
  15. hello-arm: ELF 32-bit LSB executable, ARM, version 1, dynamically linked (uses shared libs), for GNU/Linux 2.0.0, not stripped
  16.  
  17.  
  18. root@debian:~/pxadev/devel# file hello-x86
  19. 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
  20.  
  21.  
  22. ELF bedeutet Executeable and Linking Format
  23. Dynamically Linked: Verwendete Bibliotheken werde nicht ins Binary einkompiliert sondern mit anderen Programmen geteilt, die Bibliotheken müssen am System vorhanden sein.
  24. Non-stripped: Binarys die Non-stripped sind haben debugging-Informationen mit einkompiliert.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement