/* This linker script generated from xt-genldscripts.tpp for LSP c:\_ddm\audio\devices\MIMXRT685S\xtensa\gdbio */ /* Linker Script for default link */ MEMORY { dsp_core_seg : org = 0x00200000, len = 0x280000 dsp_uncached_seg : org = 0x20060000, len = 0x10000 dram0_0_seg : org = 0x24000000, len = 0x10000 iram0_0_seg : org = 0x24020000, len = 0x400 iram0_1_seg : org = 0x24020400, len = 0x17C iram0_2_seg : org = 0x2402057C, len = 0x20 iram0_3_seg : org = 0x2402059C, len = 0x20 iram0_4_seg : org = 0x240205BC, len = 0x20 iram0_5_seg : org = 0x240205DC, len = 0x20 iram0_6_seg : org = 0x240205FC, len = 0x20 iram0_7_seg : org = 0x2402061C, len = 0x20 iram0_8_seg : org = 0x2402063C, len = 0xF9C4 } PHDRS { dsp_core_phdr PT_LOAD; dsp_core_bss_phdr PT_LOAD; dsp_uncached_phdr PT_LOAD; dram0_0_phdr PT_LOAD; dram0_0_bss_phdr PT_LOAD; iram0_0_phdr PT_LOAD; iram0_1_phdr PT_LOAD; iram0_2_phdr PT_LOAD; iram0_3_phdr PT_LOAD; iram0_4_phdr PT_LOAD; iram0_5_phdr PT_LOAD; iram0_6_phdr PT_LOAD; iram0_7_phdr PT_LOAD; iram0_8_phdr PT_LOAD; } /* Default entry point: */ ENTRY(_ResetVector) /* Memory boundary addresses: */ _memmap_mem_dsp_core_start = 0x200000; _memmap_mem_dsp_core_end = 0x480000; _memmap_mem_dsp_uncached_start = 0x20000000; _memmap_mem_dsp_uncached_end = 0x20480000; _memmap_mem_dram0_start = 0x24000000; _memmap_mem_dram0_end = 0x24010000; _memmap_mem_iram0_start = 0x24020000; _memmap_mem_iram0_end = 0x24030000; /* Memory segment boundary addresses: */ _memmap_seg_dsp_core_start = 0x200000; _memmap_seg_dsp_core_max = 0x480000; _memmap_seg_dsp_uncached_start = 0x20060000; _memmap_seg_dsp_uncached_max = 0x20070000; _memmap_seg_dram0_0_start = 0x24000000; _memmap_seg_dram0_0_max = 0x24010000; _memmap_seg_iram0_0_start = 0x24020000; _memmap_seg_iram0_0_max = 0x24020400; _memmap_seg_iram0_1_start = 0x24020400; _memmap_seg_iram0_1_max = 0x2402057c; _memmap_seg_iram0_2_start = 0x2402057c; _memmap_seg_iram0_2_max = 0x2402059c; _memmap_seg_iram0_3_start = 0x2402059c; _memmap_seg_iram0_3_max = 0x240205bc; _memmap_seg_iram0_4_start = 0x240205bc; _memmap_seg_iram0_4_max = 0x240205dc; _memmap_seg_iram0_5_start = 0x240205dc; _memmap_seg_iram0_5_max = 0x240205fc; _memmap_seg_iram0_6_start = 0x240205fc; _memmap_seg_iram0_6_max = 0x2402061c; _memmap_seg_iram0_7_start = 0x2402061c; _memmap_seg_iram0_7_max = 0x2402063c; _memmap_seg_iram0_8_start = 0x2402063c; _memmap_seg_iram0_8_max = 0x24030000; _rom_store_table = 0; PROVIDE(_memmap_reset_vector = 0x24020000); PROVIDE(_memmap_vecbase_reset = 0x24020400); /* Various memory-map dependent cache attribute settings: */ _memmap_cacheattr_wb_base = 0x00000024; _memmap_cacheattr_wt_base = 0x00000021; _memmap_cacheattr_bp_base = 0x00000022; _memmap_cacheattr_unused_mask = 0xFFFFFF00; _memmap_cacheattr_wb_trapnull = 0x22222224; _memmap_cacheattr_wba_trapnull = 0x22222224; _memmap_cacheattr_wbna_trapnull = 0x22222225; _memmap_cacheattr_wt_trapnull = 0x22222221; _memmap_cacheattr_bp_trapnull = 0x22222222; _memmap_cacheattr_wb_strict = 0xFFFFFF24; _memmap_cacheattr_wt_strict = 0xFFFFFF21; _memmap_cacheattr_bp_strict = 0xFFFFFF22; _memmap_cacheattr_wb_allvalid = 0x22222224; _memmap_cacheattr_wt_allvalid = 0x22222221; _memmap_cacheattr_bp_allvalid = 0x22222222; _memmap_region_map = 0x00000003; PROVIDE(_memmap_cacheattr_reset = _memmap_cacheattr_wb_trapnull); SECTIONS { NonCacheable.init : ALIGN(4) { NonCacheable_init_start = ABSOLUTE(.); *(NonCacheable.init) . = ALIGN (4); NonCacheable_init_end = ABSOLUTE(.); } >dsp_uncached_seg :dsp_uncached_phdr NonCacheable : ALIGN(4) { NonCacheable_start = ABSOLUTE(.); *(NonCacheable) . = ALIGN (4); NonCacheable_end = ABSOLUTE(.); _memmap_seg_dsp_uncached_end = ALIGN(0x8); } >dsp_uncached_seg :dsp_uncached_phdr _memmap_mem_dsp_uncached_max = ABSOLUTE(.); .dram0.rodata : ALIGN(4) { _dram0_rodata_start = ABSOLUTE(.); *(.dram0.rodata) *(.dram.rodata) . = ALIGN (4); _dram0_rodata_end = ABSOLUTE(.); } >dram0_0_seg :dram0_0_phdr .ResetVector.literal : ALIGN(4) { _ResetVector_literal_start = ABSOLUTE(.); *(.ResetVector.literal) . = ALIGN (4); _ResetVector_literal_end = ABSOLUTE(.); } >dram0_0_seg :dram0_0_phdr .Level2InterruptVector.literal : ALIGN(4) { _Level2InterruptVector_literal_start = ABSOLUTE(.); *(.Level2InterruptVector.literal) . = ALIGN (4); _Level2InterruptVector_literal_end = ABSOLUTE(.); } >dram0_0_seg :dram0_0_phdr .Level3InterruptVector.literal : ALIGN(4) { _Level3InterruptVector_literal_start = ABSOLUTE(.); *(.Level3InterruptVector.literal) . = ALIGN (4); _Level3InterruptVector_literal_end = ABSOLUTE(.); } >dram0_0_seg :dram0_0_phdr .DebugExceptionVector.literal : ALIGN(4) { _DebugExceptionVector_literal_start = ABSOLUTE(.); *(.DebugExceptionVector.literal) . = ALIGN (4); _DebugExceptionVector_literal_end = ABSOLUTE(.); } >dram0_0_seg :dram0_0_phdr .NMIExceptionVector.literal : ALIGN(4) { _NMIExceptionVector_literal_start = ABSOLUTE(.); *(.NMIExceptionVector.literal) . = ALIGN (4); _NMIExceptionVector_literal_end = ABSOLUTE(.); } >dram0_0_seg :dram0_0_phdr .KernelExceptionVector.literal : ALIGN(4) { _KernelExceptionVector_literal_start = ABSOLUTE(.); *(.KernelExceptionVector.literal) . = ALIGN (4); _KernelExceptionVector_literal_end = ABSOLUTE(.); } >dram0_0_seg :dram0_0_phdr .UserExceptionVector.literal : ALIGN(4) { _UserExceptionVector_literal_start = ABSOLUTE(.); *(.UserExceptionVector.literal) . = ALIGN (4); _UserExceptionVector_literal_end = ABSOLUTE(.); } >dram0_0_seg :dram0_0_phdr .DoubleExceptionVector.literal : ALIGN(4) { _DoubleExceptionVector_literal_start = ABSOLUTE(.); *(.DoubleExceptionVector.literal) . = ALIGN (4); _DoubleExceptionVector_literal_end = ABSOLUTE(.); } >dram0_0_seg :dram0_0_phdr .iram0.literal : ALIGN(4) { _iram0_literal_start = ABSOLUTE(.); *(.iram0.literal) *(.iram.literal) *(.iram.text.literal) . = ALIGN (4); _iram0_literal_end = ABSOLUTE(.); } >dram0_0_seg :dram0_0_phdr .dram0.data : ALIGN(4) { _dram0_data_start = ABSOLUTE(.); *(.dram0.data) *(.dram.data) . = ALIGN (4); _dram0_data_end = ABSOLUTE(.); } >dram0_0_seg :dram0_0_phdr .dram0.bss (NOLOAD) : ALIGN(8) { . = ALIGN (8); _dram0_bss_start = ABSOLUTE(.); *(.dram0.bss) . = ALIGN (8); _dram0_bss_end = ABSOLUTE(.); _memmap_seg_dram0_0_end = ALIGN(0x8); } >dram0_0_seg :dram0_0_bss_phdr _memmap_mem_dram0_max = ABSOLUTE(.); .ResetVector.text : ALIGN(4) { _ResetVector_text_start = ABSOLUTE(.); KEEP (*(.ResetVector.text)) . = ALIGN (4); _ResetVector_text_end = ABSOLUTE(.); } >iram0_0_seg :iram0_0_phdr .ResetHandler.text : ALIGN(4) { _ResetHandler_text_start = ABSOLUTE(.); *(.ResetHandler.literal .ResetHandler.text) . = ALIGN (4); _ResetHandler_text_end = ABSOLUTE(.); _memmap_seg_iram0_0_end = ALIGN(0x8); } >iram0_0_seg :iram0_0_phdr .WindowVectors.text : ALIGN(4) { _WindowVectors_text_start = ABSOLUTE(.); KEEP (*(.WindowVectors.text)) . = ALIGN (4); _WindowVectors_text_end = ABSOLUTE(.); _memmap_seg_iram0_1_end = ALIGN(0x8); } >iram0_1_seg :iram0_1_phdr .Level2InterruptVector.text : ALIGN(4) { _Level2InterruptVector_text_start = ABSOLUTE(.); KEEP (*(.Level2InterruptVector.text)) . = ALIGN (4); _Level2InterruptVector_text_end = ABSOLUTE(.); _memmap_seg_iram0_2_end = ALIGN(0x8); } >iram0_2_seg :iram0_2_phdr .Level3InterruptVector.text : ALIGN(4) { _Level3InterruptVector_text_start = ABSOLUTE(.); KEEP (*(.Level3InterruptVector.text)) . = ALIGN (4); _Level3InterruptVector_text_end = ABSOLUTE(.); _memmap_seg_iram0_3_end = ALIGN(0x8); } >iram0_3_seg :iram0_3_phdr .DebugExceptionVector.text : ALIGN(4) { _DebugExceptionVector_text_start = ABSOLUTE(.); KEEP (*(.DebugExceptionVector.text)) . = ALIGN (4); _DebugExceptionVector_text_end = ABSOLUTE(.); _memmap_seg_iram0_4_end = ALIGN(0x8); } >iram0_4_seg :iram0_4_phdr .NMIExceptionVector.text : ALIGN(4) { _NMIExceptionVector_text_start = ABSOLUTE(.); KEEP (*(.NMIExceptionVector.text)) . = ALIGN (4); _NMIExceptionVector_text_end = ABSOLUTE(.); _memmap_seg_iram0_5_end = ALIGN(0x8); } >iram0_5_seg :iram0_5_phdr .KernelExceptionVector.text : ALIGN(4) { _KernelExceptionVector_text_start = ABSOLUTE(.); KEEP (*(.KernelExceptionVector.text)) . = ALIGN (4); _KernelExceptionVector_text_end = ABSOLUTE(.); _memmap_seg_iram0_6_end = ALIGN(0x8); } >iram0_6_seg :iram0_6_phdr .UserExceptionVector.text : ALIGN(4) { _UserExceptionVector_text_start = ABSOLUTE(.); KEEP (*(.UserExceptionVector.text)) . = ALIGN (4); _UserExceptionVector_text_end = ABSOLUTE(.); _memmap_seg_iram0_7_end = ALIGN(0x8); } >iram0_7_seg :iram0_7_phdr .DoubleExceptionVector.text : ALIGN(4) { _DoubleExceptionVector_text_start = ABSOLUTE(.); KEEP (*(.DoubleExceptionVector.text)) . = ALIGN (4); _DoubleExceptionVector_text_end = ABSOLUTE(.); } >iram0_8_seg :iram0_8_phdr .iram0.text : ALIGN(4) { _iram0_text_start = ABSOLUTE(.); *(.iram0.text) *(.iram.text) . = ALIGN (4); _iram0_text_end = ABSOLUTE(.); _memmap_seg_iram0_8_end = ALIGN(0x8); } >iram0_8_seg :iram0_8_phdr _memmap_mem_iram0_max = ABSOLUTE(.); .clib.rodata : ALIGN(4) { _clib_rodata_start = ABSOLUTE(.); *(.clib.rodata) . = ALIGN (4); _clib_rodata_end = ABSOLUTE(.); } >dsp_core_seg :dsp_core_phdr .rtos.rodata : ALIGN(4) { _rtos_rodata_start = ABSOLUTE(.); *(.rtos.rodata) . = ALIGN (4); _rtos_rodata_end = ABSOLUTE(.); } >dsp_core_seg :dsp_core_phdr .rodata : ALIGN(4) { _rodata_start = ABSOLUTE(.); *(.rodata) *(SORT(.rodata.sort.*)) KEEP (*(SORT(.rodata.keepsort.*) .rodata.keep.*)) *(.rodata.*) *(.gnu.linkonce.r.*) *(.rodata1) __XT_EXCEPTION_TABLE__ = ABSOLUTE(.); KEEP (*(.xt_except_table)) KEEP (*(.gcc_except_table)) *(.gnu.linkonce.e.*) *(.gnu.version_r) KEEP (*(.eh_frame)) /* C++ constructor and destructor tables, properly ordered: */ KEEP (*crtbegin.o(.ctors)) KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors)) KEEP (*(SORT(.ctors.*))) KEEP (*(.ctors)) KEEP (*crtbegin.o(.dtors)) KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors)) KEEP (*(SORT(.dtors.*))) KEEP (*(.dtors)) /* C++ exception handlers table: */ __XT_EXCEPTION_DESCS__ = ABSOLUTE(.); *(.xt_except_desc) *(.gnu.linkonce.h.*) __XT_EXCEPTION_DESCS_END__ = ABSOLUTE(.); *(.xt_except_desc_end) *(.dynamic) *(.gnu.version_d) . = ALIGN(4); /* this table MUST be 4-byte aligned */ _bss_table_start = ABSOLUTE(.); LONG(_dram0_bss_start) LONG(_dram0_bss_end) LONG(_bss_start) LONG(_bss_end) _bss_table_end = ABSOLUTE(.); . = ALIGN (4); _rodata_end = ABSOLUTE(.); } >dsp_core_seg :dsp_core_phdr .text : ALIGN(4) { _stext = .; _text_start = ABSOLUTE(.); *(.entry.text) *(.init.literal) KEEP(*(.init)) *(.literal.sort.* SORT(.text.sort.*)) KEEP (*(.literal.keepsort.* SORT(.text.keepsort.*) .literal.keep.* .text.keep.* .literal.*personality* .text.*personality*)) *(.literal .text .literal.* .text.* .stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*) *(.fini.literal) KEEP(*(.fini)) *(.gnu.version) . = ALIGN (4); _text_end = ABSOLUTE(.); _etext = .; } >dsp_core_seg :dsp_core_phdr .clib.text : ALIGN(4) { _clib_text_start = ABSOLUTE(.); *(.clib.literal .clib.text) . = ALIGN (4); _clib_text_end = ABSOLUTE(.); } >dsp_core_seg :dsp_core_phdr .rtos.text : ALIGN(4) { _rtos_text_start = ABSOLUTE(.); *(.rtos.literal .rtos.text) . = ALIGN (4); _rtos_text_end = ABSOLUTE(.); } >dsp_core_seg :dsp_core_phdr .clib.data : ALIGN(4) { _clib_data_start = ABSOLUTE(.); *(.clib.data) . = ALIGN (4); _clib_data_end = ABSOLUTE(.); } >dsp_core_seg :dsp_core_phdr .clib.percpu.data : ALIGN(4) { _clib_percpu_data_start = ABSOLUTE(.); *(.clib.percpu.data) . = ALIGN (4); _clib_percpu_data_end = ABSOLUTE(.); } >dsp_core_seg :dsp_core_phdr .rtos.percpu.data : ALIGN(4) { _rtos_percpu_data_start = ABSOLUTE(.); *(.rtos.percpu.data) . = ALIGN (4); _rtos_percpu_data_end = ABSOLUTE(.); } >dsp_core_seg :dsp_core_phdr .rtos.data : ALIGN(4) { _rtos_data_start = ABSOLUTE(.); *(.rtos.data) . = ALIGN (4); _rtos_data_end = ABSOLUTE(.); } >dsp_core_seg :dsp_core_phdr .data : ALIGN(4) { _data_start = ABSOLUTE(.); *(.data) *(SORT(.data.sort.*)) KEEP (*(SORT(.data.keepsort.*) .data.keep.*)) *(.data.*) *(.gnu.linkonce.d.*) KEEP(*(.gnu.linkonce.d.*personality*)) *(.data1) *(.sdata) *(.sdata.*) *(.gnu.linkonce.s.*) *(.sdata2) *(.sdata2.*) *(.gnu.linkonce.s2.*) KEEP(*(.jcr)) *(__llvm_prf_cnts) *(__llvm_prf_data) *(__llvm_prf_vnds) . = ALIGN (4); _data_end = ABSOLUTE(.); } >dsp_core_seg :dsp_core_phdr __llvm_prf_names : ALIGN(4) { __llvm_prf_names_start = ABSOLUTE(.); *(__llvm_prf_names) . = ALIGN (4); __llvm_prf_names_end = ABSOLUTE(.); } >dsp_core_seg :dsp_core_phdr .bss (NOLOAD) : ALIGN(8) { . = ALIGN (8); _bss_start = ABSOLUTE(.); *(.dynsbss) *(.sbss) *(.sbss.*) *(.gnu.linkonce.sb.*) *(.scommon) *(.sbss2) *(.sbss2.*) *(.gnu.linkonce.sb2.*) *(.dynbss) *(.bss) *(SORT(.bss.sort.*)) KEEP (*(SORT(.bss.keepsort.*) .bss.keep.*)) *(.bss.*) *(.gnu.linkonce.b.*) *(COMMON) *(.clib.bss) *(.clib.percpu.bss) *(.rtos.percpu.bss) *(.rtos.bss) . = ALIGN (8); _bss_end = ABSOLUTE(.); _end = ALIGN(0x8); PROVIDE(end = ALIGN(0x8)); _stack_sentry = ALIGN(0x8); _memmap_seg_dsp_core_end = ALIGN(0x8); } >dsp_core_seg :dsp_core_bss_phdr PROVIDE(__stack = 0x480000); _heap_sentry = 0x480000; _memmap_mem_dsp_core_max = ABSOLUTE(.); .debug 0 : { *(.debug) } .line 0 : { *(.line) } .debug_srcinfo 0 : { *(.debug_srcinfo) } .debug_sfnames 0 : { *(.debug_sfnames) } .debug_aranges 0 : { *(.debug_aranges) } .debug_pubnames 0 : { *(.debug_pubnames) } .debug_info 0 : { *(.debug_info) } .debug_abbrev 0 : { *(.debug_abbrev) } .debug_line 0 : { *(.debug_line) } .debug_frame 0 : { *(.debug_frame) } .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } .debug_typenames 0 : { *(.debug_typenames) } .debug_varnames 0 : { *(.debug_varnames) } .xt.insn 0 : { KEEP (*(.xt.insn)) KEEP (*(.gnu.linkonce.x.*)) } .xt.prop 0 : { KEEP (*(.xt.prop)) KEEP (*(.xt.prop.*)) KEEP (*(.gnu.linkonce.prop.*)) } .xt.lit 0 : { KEEP (*(.xt.lit)) KEEP (*(.xt.lit.*)) KEEP (*(.gnu.linkonce.p.*)) } .debug.xt.callgraph 0 : { KEEP (*(.debug.xt.callgraph .debug.xt.callgraph.* .gnu.linkonce.xt.callgraph.*)) } .note.gnu.build-id 0 : { KEEP(*(.note.gnu.build-id)) } }