esb_ptx_gcc_nrf52.ld 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* Linker script to configure memory regions. */
  2. SEARCH_DIR(.)
  3. GROUP(-lgcc -lc -lnosys)
  4. MEMORY
  5. {
  6. FLASH (rx) : ORIGIN = 0x0, LENGTH = 0x80000
  7. RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x10000
  8. }
  9. SECTIONS
  10. {
  11. }
  12. SECTIONS
  13. {
  14. . = ALIGN(4);
  15. .mem_section_dummy_ram :
  16. {
  17. }
  18. .log_dynamic_data :
  19. {
  20. PROVIDE(__start_log_dynamic_data = .);
  21. KEEP(*(SORT(.log_dynamic_data*)))
  22. PROVIDE(__stop_log_dynamic_data = .);
  23. } > RAM
  24. .log_filter_data :
  25. {
  26. PROVIDE(__start_log_filter_data = .);
  27. KEEP(*(SORT(.log_filter_data*)))
  28. PROVIDE(__stop_log_filter_data = .);
  29. } > RAM
  30. } INSERT AFTER .data;
  31. SECTIONS
  32. {
  33. .mem_section_dummy_rom :
  34. {
  35. }
  36. .log_const_data :
  37. {
  38. PROVIDE(__start_log_const_data = .);
  39. KEEP(*(SORT(.log_const_data*)))
  40. PROVIDE(__stop_log_const_data = .);
  41. } > FLASH
  42. .log_backends :
  43. {
  44. PROVIDE(__start_log_backends = .);
  45. KEEP(*(SORT(.log_backends*)))
  46. PROVIDE(__stop_log_backends = .);
  47. } > FLASH
  48. .nrf_balloc :
  49. {
  50. PROVIDE(__start_nrf_balloc = .);
  51. KEEP(*(.nrf_balloc))
  52. PROVIDE(__stop_nrf_balloc = .);
  53. } > FLASH
  54. } INSERT AFTER .text
  55. INCLUDE "nrf_common.ld"