vle-multiseg-5.ld 858 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. MEMORY
  2. {
  3. code_rom (rxw) : org = 0x00001000, len = 0x1EF000
  4. irpt_rom (rx) : org = 0x001F0000, len = 0x2000
  5. int__ram (rxw) : org = 0x40000000, len = 256K
  6. }
  7. REGION_ALIAS("INTR", irpt_rom)
  8. REGION_ALIAS("CODE", code_rom)
  9. REGION_ALIAS("RODATA", code_rom)
  10. REGION_ALIAS("RAM", int__ram)
  11. SECTIONS
  12. {
  13. .iv_handlers :
  14. {
  15. INPUT_SECTION_FLAGS (SHF_PPC_VLE) *(.iv_handlers)
  16. } > INTR
  17. .text_vle :
  18. {
  19. INPUT_SECTION_FLAGS (SHF_PPC_VLE) *(.text_vle)
  20. INPUT_SECTION_FLAGS (SHF_PPC_VLE) *(.text)
  21. INPUT_SECTION_FLAGS (SHF_PPC_VLE) *(.init)
  22. INPUT_SECTION_FLAGS (SHF_PPC_VLE) *(.init_vle)
  23. INPUT_SECTION_FLAGS (SHF_PPC_VLE) *(.fini)
  24. INPUT_SECTION_FLAGS (SHF_PPC_VLE) *(.fini_vle)
  25. } > CODE
  26. .rodata :
  27. {
  28. *(.rodata)
  29. } > RODATA
  30. .data :
  31. {
  32. *(.data)
  33. *(.data.*)
  34. *(.ctors)
  35. *(.dtors)
  36. } > RAM AT>RODATA
  37. }