Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- █▓▒░fran@konata░▒▓██▓▒░ ~% cat test.c
- #include <stdio.h>
- int main(void) {
- int num = 42;
- void * foo = #
- int * iptr = foo;
- short * sptr = foo;
- printf("%d = %d?\n", *iptr, *sptr);
- return 0;
- }
- █▓▒░fran@konata░▒▓██▓▒░ ~% mips-linux-gcc test.c -o test
- █▓▒░fran@konata░▒▓██▓▒░ ~% scp test root@10.71.1.34:/tmp
- test 100% 5678 5.5KB/s 00:00
- █▓▒░fran@konata░▒▓██▓▒░ ~% file test
- test: ELF 32-bit MSB executable, MIPS, MIPS32 version 1 (SYSV), dynamically linked (uses shared libs), not stripped
- █▓▒░fran@konata░▒▓██▓▒░ ~% ssh -x root@10.71.1.34 /tmp/test
- 42 = 0?
- █▓▒░fran@konata░▒▓██▓▒░ ~% gcc test.c -o test
- █▓▒░fran@konata░▒▓██▓▒░ ~% file test
- test: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, not stripped
- █▓▒░fran@konata░▒▓██▓▒░ ~% ./test
- 42 = 42?
Add Comment
Please, Sign In to add comment