thunker12

Untitled

Apr 16th, 2025
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | Software | 0 0
  1. Full output:
  2. sh3eb-elf-gcc -MMD -MP -MF D:/Downloads/PrizmSDK-master/PrizmSDK-master/projects/GlobalCode/build/ilram.d -ID:/Downloads/PrizmSDK-master/PrizmSDK-master/projects/GlobalCode/build -ID:\Downloads\PrizmSDK-master\PrizmSDK-master/include -mb -m4a-nofpu -mhitachi -nostdlib -Og -Wall -ffunction-sections -fdata-sections -c D:/Downloads/PrizmSDK-master/PrizmSDK-master/projects/GlobalCode/src/ilram.c -o ilram.o
  3. sh3eb-elf-gcc -MMD -MP -MF D:/Downloads/PrizmSDK-master/PrizmSDK-master/projects/GlobalCode/build/main.d -ID:/Downloads/PrizmSDK-master/PrizmSDK-master/projects/GlobalCode/build -ID:\Downloads\PrizmSDK-master\PrizmSDK-master/include -mb -m4a-nofpu -mhitachi -nostdlib -Og -Wall -ffunction-sections -fdata-sections -c D:/Downloads/PrizmSDK-master/PrizmSDK-master/projects/GlobalCode/src/main.c -o main.o
  4. python ../link_script.py sh3eb-elf-gcc ilram.o main.o -mb -m4a-nofpu -mhitachi -nostdlib -Wl,-static -Wl,-gc-sections -LD:\Downloads\PrizmSDK-master\PrizmSDK-master/lib -lc -lfxcg -lgcc -o D:/Downloads/PrizmSDK-master/PrizmSDK-master/projects/GlobalCode/GlobalCode.bin
  5. Memory region Used Size Region Size %age Used
  6. rom: 7032 B 1 MB 0.67%
  7. ram: 6400 B 64 KB 9.77%
  8. ilram: 4 B 4 KB 0.10%
  9. mkg3a -n basic:GlobalCode -i uns:../unselected.bmp -i sel:../selected.bmp D:/Downloads/PrizmSDK-master/PrizmSDK-master/projects/GlobalCode/GlobalCode.bin D:/Downloads/PrizmSDK-master/PrizmSDK-master/projects/GlobalCode/GlobalCode.g3a
  10.  
  11. link_script.x:
  12.  
  13. OUTPUT_FORMAT(binary)
  14. OUTPUT_ARCH(sh3)
  15.  
  16. /* Entry point. Not really important here, since doing binary output */
  17. ENTRY(initialize)
  18.  
  19. MEMORY
  20. {
  21. /* Loads code at 300000, skips g3a header */
  22. rom (rx) : o = 0x00300000, l = 1024k
  23. ram (rwx) : o = 0x08100004, l = 64k /* pretty safe guess */
  24. ilram (rwx) : o = 0xe5200000, l = 4k /* According to http://www.cemetech.net/forum/viewtopic.php?t=9334 */
  25. }
  26.  
  27. SECTIONS
  28. {
  29. /* Code, in ROM */
  30. .text : {
  31. *(.pretext) /* init stuff */
  32. main.o (.text)
  33. } > rom
  34.  
  35. /* VMA in ILRAM but LMA in ROM */
  36. .ilram : {
  37. _ilramld = LOADADDR(.ilram) ;
  38. _silram = . ;
  39.  
  40. /* All data in standard order */
  41. ilram.o (.text)
  42. ilram.o (.text.*)
  43. ilram.o (.rodata)
  44. ilram.o (.rodata.*)
  45. ilram.o (.data)
  46. ilram.o (.data.*)
  47. ilram.o (.bss)
  48. ilram.o (.bss*)
  49. ilram.o (COMMON)
  50.  
  51. *lib\libfxcg.a:Bdisp_PutDisp_DD.o (.text)
  52. *lib\libfxcg.a:Bdisp_PutDisp_DD.o (.text.*)
  53. *lib\libfxcg.a:Bdisp_PutDisp_DD.o (.rodata)
  54. *lib\libfxcg.a:Bdisp_PutDisp_DD.o (.rodata.*)
  55. *lib\libfxcg.a:Bdisp_PutDisp_DD.o (.data)
  56. *lib\libfxcg.a:Bdisp_PutDisp_DD.o (.data.*)
  57. *lib\libfxcg.a:Bdisp_PutDisp_DD.o (.bss)
  58. *lib\libfxcg.a:Bdisp_PutDisp_DD.o (.bss.*)
  59. *lib\libfxcg.a:Bdisp_PutDisp_DD.o (COMMON)
  60. *lib\libfxcg.a:Bdisp_SetPoint_VRAM.o (.text)
  61. *lib\libfxcg.a:Bdisp_SetPoint_VRAM.o (.text.*)
  62. *lib\libfxcg.a:Bdisp_SetPoint_VRAM.o (.rodata)
  63. *lib\libfxcg.a:Bdisp_SetPoint_VRAM.o (.rodata.*)
  64. *lib\libfxcg.a:Bdisp_SetPoint_VRAM.o (.data)
  65. *lib\libfxcg.a:Bdisp_SetPoint_VRAM.o (.data.*)
  66. *lib\libfxcg.a:Bdisp_SetPoint_VRAM.o (.bss)
  67. *lib\libfxcg.a:Bdisp_SetPoint_VRAM.o (.bss.*)
  68. *lib\libfxcg.a:Bdisp_SetPoint_VRAM.o (COMMON)
  69.  
  70. _eilram = . ;
  71. } > ilram AT> rom
  72.  
  73. /* Rest of .text section, from main.o */
  74. .text : {
  75. *(.text)
  76. *(.text.*)
  77. } > rom
  78.  
  79. /* Read-only data, in ROM */
  80. .rodata : {
  81. *(.rodata)
  82. *(.rodata.*)
  83. } > rom
  84.  
  85. .comment : {
  86. *(.comment)
  87. }
  88.  
  89. /* RW initialized data, VMA in RAM but LMA in ROM */
  90. .data : ALIGN(4) {
  91. _datald = LOADADDR(.data) ;
  92. _sdata = . ;
  93. *(.data)
  94. *(.data.*);
  95. _edata = . ;
  96. } >ram AT>rom
  97.  
  98. /* Uninitialized data (fill with 0), in RAM */
  99. .bss : ALIGN(4) {
  100. _bbss = . ;
  101. *(.bss)
  102. *(.bss*)
  103. *(COMMON)
  104. _ebss = . ;
  105. } >ram
  106. }
Advertisement
Add Comment
Please, Sign In to add comment