update.ld 519 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. SECTIONS
  2. {
  3. .data : ALIGN(4)
  4. {
  5. update_data_start = .;
  6. update_data_end = .;
  7. . = ALIGN(4);
  8. } > ram0
  9. .bss (NOLOAD) :ALIGN(4)
  10. {
  11. update_bss_start = .;
  12. *(.update_bss)
  13. update_bss_end = .;
  14. . = ALIGN(4);
  15. } > ram0
  16. .text : ALIGN(4)
  17. {
  18. update_code_start = .;
  19. *(.bt_updata_ram_code)
  20. *(.update_const)
  21. *(.update_code)
  22. update_code_end = .;
  23. . = ALIGN(4);
  24. } > code0
  25. UPDATE_CODE_TOTAL_SIZE = update_code_end - update_code_start;
  26. }