MrRockchip

64bit gcc compilation - big files

Feb 5th, 2021 (edited)
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. old:
  2. gcc -D_FILE_OFFSET_BITS=64 -o apollo_64bit_alpha_ver apollo_64bit_alpha_ver.c
  3. new:
  4. gcc -o -m32 memtest_regrw memtest_regrw.c -D_LARGEFILE64_SOURCE
  5.  
  6. [user@work-vm bin]$ ./mips-mti-elf-objdump -b binary -mmips:isa32 -EL -D ~/br_rotate.bin
  7.  
  8. /home/user/br_rotate.bin: file format binary
  9.  
  10.  
  11. Disassembly of section .data:
  12.  
  13. 00000000 <.data>:
  14. 0: 00000000 nop
  15. 4: 3c091234 lui t1,0x1234
  16. 8: 35295678 ori t1,t1,0x5678
  17. c: 3c0ae100 lui t2,0xe100
  18. 10: 354a0008 ori t2,t2,0x8
  19. 14: ad490000 sw t1,0(t2)
  20. 18: 00000000 nop
  21. 1c: 8d4b0000 lw t3,0(t2)
  22. 20: 112b0004 beq t1,t3,0x34
  23. 24: 00000000 nop
  24. 28: 00000000 nop
  25. 2c: 0bf0000a j 0xfc00028
  26. 30: 00000000 nop
  27. 34: 00000000 nop
  28. 38: 0bf0000a j 0xfc00028
  29. 3c: 00000000 nop
  30.  
Add Comment
Please, Sign In to add comment