123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- MEMORY {
- flash (rx) : ORIGIN = 0, LENGTH = 1024k
- sram_low (rwx) : ORIGIN = 0x1FFF0000, LENGTH = 64k
- sram_high (rwx) : ORIGIN = 0x20000000, LENGTH = 192k
- }
- SECTIONS {
- /DISCARD/ : {
- *(.gnu.*)
- *(.glue_7t)
- *(.glue_7)
- *(.ARM.*)
- *(.comment)
- *(.debug_frame)
- *(.vfp11_veneer)
- *(.v4_bx)
- *(.iplt)
- *(.rel.*)
- *(.igot.plt)
- *(rel.ARM.*)
- }
- }
- SECTIONS {
- .text : {
-
- __vectors_start = .
- KEEP (*(isr.vectors))
- __vectors_end = .
-
- LONG (-1)
- LONG (-1)
- LONG (-1)
- LONG (-2)
-
- __code_start = .
- . = ALIGN(4)
- *(.text*)
- *(.text)
- *(text)
-
- . = ALIGN (4)
- __boot_routine_array_start = .
- KEEP (*(boot.routine.array))
- . = ALIGN (4)
- __boot_routine_array_end = .
-
- . = ALIGN (4)
- __constructor_array_start = .
- KEEP (*(.init_array))
- . = ALIGN (4)
- __constructor_array_end = .
-
- . = ALIGN (4)
- __init_routine_array_start = .
- KEEP (*(init.routine.array))
- . = ALIGN (4)
- __init_routine_array_end = .
-
- . = ALIGN (4)
- __real_time_interrupt_routine_array_start = .
- KEEP (*(real.time.interrupt.routine.array))
- . = ALIGN (4)
- __real_time_interrupt_routine_array_end = .
-
- . = ALIGN(4)
- *(.rodata*)
- . = ALIGN(4)
-
- __code_end = .
- } > flash
- }
- SECTIONS {
- .bss : {
- . = ALIGN(4)
- __bss_start = .
- * (.bss*)
- . = ALIGN(4)
- * (COMMON)
- . = ALIGN(4)
- __bss_end = .
- } > sram_low
- }
- SECTIONS {
- .data : AT (__code_end) {
- . = ALIGN (4)
- __data_start = .
- * (.data*)
-
- . = ALIGN (4)
- __teensy_can0_receive_ports_array_start = .
- * (teensy.CAN0.receive.ports.section)
- . = ALIGN (4)
- __teensy_can0_receive_ports_array_end = .
-
- . = ALIGN (4)
- __teensy_can1_receive_ports_array_start = .
- * (teensy.CAN1.receive.ports.section)
- . = ALIGN (4)
- __teensy_can1_receive_ports_array_end = .
- . = ALIGN (4)
- __data_end = .
- } > sram_low
- }
- __data_load_start = LOADADDR (.data)
- __data_load_end = LOADADDR (.data) + SIZEOF (.data)
- SECTIONS {
- .system_stack :{
- . = ALIGN (8)
- __system_stack_start = .
- . += 1024
- . = ALIGN (4)
- __system_stack_end = .
- } > sram_low
- }
- __heap_start = ORIGIN (sram_high)
- __heap_end = ORIGIN(sram_high) + LENGTH(sram_high)
|