link.icf 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*###ICF### Section handled by ICF editor, don't touch! ****/
  2. /*-Editor annotation file-*/
  3. /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
  4. /*-Specials-*/
  5. define symbol __ICFEDIT_intvec_start__ = 0x00000000;
  6. /*-Memory Regions-*/
  7. define symbol __ICFEDIT_region_text_start__ = 0x10000000;
  8. define symbol __ICFEDIT_region_text_end__ = 0x1001FFFF;
  9. define symbol __ICFEDIT_region_data_start__ = 0x10030000;
  10. define symbol __ICFEDIT_region_data_end__ = 0x1003FFFF;
  11. /*-Sizes-*/
  12. define symbol __ICFEDIT_size_cstack__ = 0x400;
  13. define symbol __ICFEDIT_size_heap__ = 0x000;
  14. /**** End of ICF editor section. ###ICF###*/
  15. define memory mem with size = 4G;
  16. define region text_region = mem:[from __ICFEDIT_region_text_start__ to __ICFEDIT_region_text_end__];
  17. define region data_region = mem:[from __ICFEDIT_region_data_start__ to __ICFEDIT_region_data_end__];
  18. keep { section .resource_table };
  19. ".resource_table" : place in data_region {section .resource_table};
  20. /* Create region for OPENAMP */
  21. /* !!! These 4 lines can be commented if OPENAMP is not used !!!*/
  22. define symbol __OPENAMP_region_start__ = 0x10040000;
  23. define symbol __OPENAMP_region_size__ = 0x8000;
  24. export symbol __OPENAMP_region_start__;
  25. export symbol __OPENAMP_region_size__;
  26. define symbol __SDMMC_region_start__ = 0x10048000;
  27. define symbol __SDMMC_region_size__ = 0x1FFFF;
  28. export symbol __SDMMC_region_start__;
  29. export symbol __SDMMC_region_size__;
  30. define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
  31. define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
  32. initialize by copy { readwrite };
  33. do not initialize { section .noinit};
  34. place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
  35. place in text_region { readonly };
  36. place in data_region { readwrite,
  37. block CSTACK, block HEAP};