Advertisement
GeeckoDev

exit without include

Mar 31st, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.10 KB | None | 0 0
  1. __asm__ (
  2. "    .set push\n"
  3. "    .section .lib.ent.top, \"a\", @progbits\n"
  4. "    .align 2\n"
  5. "    .word 0\n"
  6. "__lib_ent_top:\n"
  7. "    .section .lib.ent.btm, \"a\", @progbits\n"
  8. "    .align 2\n"
  9. "__lib_ent_bottom:\n"
  10. "    .word 0\n"
  11. "    .section .lib.stub.top, \"a\", @progbits\n"
  12. "    .align 2\n"
  13. "    .word 0\n"
  14. "__lib_stub_top:\n"
  15. "    .section .lib.stub.btm, \"a\", @progbits\n"
  16. "    .align 2\n"
  17. "__lib_stub_bottom:\n"
  18. "    .word 0\n"
  19. "    .set pop\n"
  20. "    .text\n"
  21. );
  22.  
  23. typedef struct
  24. {
  25.     unsigned short modattribute;
  26.     unsigned char modversion[2];
  27.     char modname [27];
  28.     char terminal;
  29.     void* gp_value;
  30.     void* ent_top;
  31.     void* ent_end;
  32.     void* stub_top;
  33.     void* stub_end;
  34. } SceModuleInfo;
  35.  
  36. extern char _gp[];
  37. extern char __lib_ent_top[], __lib_ent_bottom[];
  38. extern char __lib_stub_top[], __lib_stub_bottom[];
  39. const SceModuleInfo module_info
  40.     __attribute__((section(".rodata.sceModuleInfo"), aligned(16), unused)) =
  41. {
  42.     0, { 0, 0 }, "", 0, _gp,
  43.     __lib_ent_top, __lib_ent_bottom,
  44.     __lib_stub_top, __lib_stub_bottom
  45. };
  46.  
  47. main(){sceKernelExitGame();}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement