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