Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.
Dependents: 1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB
Fork of mbed by
TARGET_SAMD21J18A/TOOLCHAIN_GCC_ARM/samd21j18a.ld@121:672067c3ada4, 2016-04-14 (annotated)
- Committer:
- elijahorr
- Date:
- Thu Apr 14 07:28:54 2016 +0000
- Revision:
- 121:672067c3ada4
- Parent:
- 111:4336505e4b1c
.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 111:4336505e4b1c | 1 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
Kojto | 111:4336505e4b1c | 2 | OUTPUT_ARCH(arm) |
Kojto | 111:4336505e4b1c | 3 | SEARCH_DIR(.) |
Kojto | 111:4336505e4b1c | 4 | |
Kojto | 111:4336505e4b1c | 5 | /* Memory Spaces Definitions */ |
Kojto | 111:4336505e4b1c | 6 | MEMORY { |
Kojto | 111:4336505e4b1c | 7 | rom (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000 |
Kojto | 111:4336505e4b1c | 8 | ram (rwx) : ORIGIN = 0x20000000 + 0xB4, LENGTH = 0x00008000 - 0xB4 |
Kojto | 111:4336505e4b1c | 9 | } |
Kojto | 111:4336505e4b1c | 10 | |
Kojto | 111:4336505e4b1c | 11 | /* The stack size used by the application. NOTE: you need to adjust according to your application. */ |
Kojto | 111:4336505e4b1c | 12 | STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : DEFINED(__stack_size__) ? __stack_size__ : 0x2000; |
Kojto | 111:4336505e4b1c | 13 | |
Kojto | 111:4336505e4b1c | 14 | /* Section Definitions */ |
Kojto | 111:4336505e4b1c | 15 | SECTIONS { |
Kojto | 111:4336505e4b1c | 16 | .text : |
Kojto | 111:4336505e4b1c | 17 | { |
Kojto | 111:4336505e4b1c | 18 | . = ALIGN(4); |
Kojto | 111:4336505e4b1c | 19 | _sfixed = .; |
Kojto | 111:4336505e4b1c | 20 | KEEP(*(.vectors .vectors.*)) |
Kojto | 111:4336505e4b1c | 21 | *(.text .text.* .gnu.linkonce.t.*) |
Kojto | 111:4336505e4b1c | 22 | *(.glue_7t) *(.glue_7) |
Kojto | 111:4336505e4b1c | 23 | *(.rodata .rodata* .gnu.linkonce.r.*) |
Kojto | 111:4336505e4b1c | 24 | *(.ARM.extab* .gnu.linkonce.armextab.*) |
Kojto | 111:4336505e4b1c | 25 | |
Kojto | 111:4336505e4b1c | 26 | /* Support C constructors, and C destructors in both user code |
Kojto | 111:4336505e4b1c | 27 | and the C library. This also provides support for C++ code. */ |
Kojto | 111:4336505e4b1c | 28 | . = ALIGN(4); |
Kojto | 111:4336505e4b1c | 29 | KEEP(*(.init)) |
Kojto | 111:4336505e4b1c | 30 | . = ALIGN(4); |
Kojto | 111:4336505e4b1c | 31 | __preinit_array_start = .; |
Kojto | 111:4336505e4b1c | 32 | KEEP (*(.preinit_array)) |
Kojto | 111:4336505e4b1c | 33 | __preinit_array_end = .; |
Kojto | 111:4336505e4b1c | 34 | |
Kojto | 111:4336505e4b1c | 35 | . = ALIGN(4); |
Kojto | 111:4336505e4b1c | 36 | __init_array_start = .; |
Kojto | 111:4336505e4b1c | 37 | KEEP (*(SORT(.init_array.*))) |
Kojto | 111:4336505e4b1c | 38 | KEEP (*(.init_array)) |
Kojto | 111:4336505e4b1c | 39 | __init_array_end = .; |
Kojto | 111:4336505e4b1c | 40 | |
Kojto | 111:4336505e4b1c | 41 | . = ALIGN(4); |
Kojto | 111:4336505e4b1c | 42 | KEEP (*crtbegin.o(.ctors)) |
Kojto | 111:4336505e4b1c | 43 | KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors)) |
Kojto | 111:4336505e4b1c | 44 | KEEP (*(SORT(.ctors.*))) |
Kojto | 111:4336505e4b1c | 45 | KEEP (*crtend.o(.ctors)) |
Kojto | 111:4336505e4b1c | 46 | |
Kojto | 111:4336505e4b1c | 47 | . = ALIGN(4); |
Kojto | 111:4336505e4b1c | 48 | KEEP(*(.fini)) |
Kojto | 111:4336505e4b1c | 49 | |
Kojto | 111:4336505e4b1c | 50 | . = ALIGN(4); |
Kojto | 111:4336505e4b1c | 51 | __fini_array_start = .; |
Kojto | 111:4336505e4b1c | 52 | KEEP (*(.fini_array)) |
Kojto | 111:4336505e4b1c | 53 | KEEP (*(SORT(.fini_array.*))) |
Kojto | 111:4336505e4b1c | 54 | __fini_array_end = .; |
Kojto | 111:4336505e4b1c | 55 | |
Kojto | 111:4336505e4b1c | 56 | KEEP (*crtbegin.o(.dtors)) |
Kojto | 111:4336505e4b1c | 57 | KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors)) |
Kojto | 111:4336505e4b1c | 58 | KEEP (*(SORT(.dtors.*))) |
Kojto | 111:4336505e4b1c | 59 | KEEP (*crtend.o(.dtors)) |
Kojto | 111:4336505e4b1c | 60 | |
Kojto | 111:4336505e4b1c | 61 | . = ALIGN(4); |
Kojto | 111:4336505e4b1c | 62 | _efixed = .; /* End of text section */ |
Kojto | 111:4336505e4b1c | 63 | } > rom |
Kojto | 111:4336505e4b1c | 64 | |
Kojto | 111:4336505e4b1c | 65 | /* .ARM.exidx is sorted, so has to go in its own output section. */ |
Kojto | 111:4336505e4b1c | 66 | PROVIDE_HIDDEN (__exidx_start = .); |
Kojto | 111:4336505e4b1c | 67 | .ARM.exidx : |
Kojto | 111:4336505e4b1c | 68 | { |
Kojto | 111:4336505e4b1c | 69 | *(.ARM.exidx* .gnu.linkonce.armexidx.*) |
Kojto | 111:4336505e4b1c | 70 | } > rom |
Kojto | 111:4336505e4b1c | 71 | PROVIDE_HIDDEN (__exidx_end = .); |
Kojto | 111:4336505e4b1c | 72 | |
Kojto | 111:4336505e4b1c | 73 | . = ALIGN(4); |
Kojto | 111:4336505e4b1c | 74 | _etext = .; |
Kojto | 111:4336505e4b1c | 75 | |
Kojto | 111:4336505e4b1c | 76 | .relocate : |
Kojto | 111:4336505e4b1c | 77 | AT (_etext) |
Kojto | 111:4336505e4b1c | 78 | { |
Kojto | 111:4336505e4b1c | 79 | . = ALIGN(4); |
Kojto | 111:4336505e4b1c | 80 | _srelocate = .; |
Kojto | 111:4336505e4b1c | 81 | *(.ramfunc .ramfunc.*); |
Kojto | 111:4336505e4b1c | 82 | *(.data .data.*); |
Kojto | 111:4336505e4b1c | 83 | . = ALIGN(4); |
Kojto | 111:4336505e4b1c | 84 | _erelocate = .; |
Kojto | 111:4336505e4b1c | 85 | } > ram |
Kojto | 111:4336505e4b1c | 86 | |
Kojto | 111:4336505e4b1c | 87 | /* .bss section which is used for uninitialized data */ |
Kojto | 111:4336505e4b1c | 88 | .bss (NOLOAD) : |
Kojto | 111:4336505e4b1c | 89 | { |
Kojto | 111:4336505e4b1c | 90 | . = ALIGN(4); |
Kojto | 111:4336505e4b1c | 91 | _sbss = . ; |
Kojto | 111:4336505e4b1c | 92 | _szero = .; |
Kojto | 111:4336505e4b1c | 93 | *(.bss .bss.*) |
Kojto | 111:4336505e4b1c | 94 | *(COMMON) |
Kojto | 111:4336505e4b1c | 95 | . = ALIGN(4); |
Kojto | 111:4336505e4b1c | 96 | _ebss = . ; |
Kojto | 111:4336505e4b1c | 97 | _ezero = .; |
Kojto | 111:4336505e4b1c | 98 | } > ram |
Kojto | 111:4336505e4b1c | 99 | |
Kojto | 111:4336505e4b1c | 100 | .heap (NOLOAD) : |
Kojto | 111:4336505e4b1c | 101 | { |
Kojto | 111:4336505e4b1c | 102 | . = ALIGN(4); |
Kojto | 111:4336505e4b1c | 103 | __end__ = . ; |
Kojto | 111:4336505e4b1c | 104 | . = ORIGIN(ram) + LENGTH(ram) - STACK_SIZE; |
Kojto | 111:4336505e4b1c | 105 | } > ram |
Kojto | 111:4336505e4b1c | 106 | |
Kojto | 111:4336505e4b1c | 107 | /* stack section */ |
Kojto | 111:4336505e4b1c | 108 | .stack (NOLOAD): |
Kojto | 111:4336505e4b1c | 109 | { |
Kojto | 111:4336505e4b1c | 110 | . = ALIGN(8); |
Kojto | 111:4336505e4b1c | 111 | _sstack = .; |
Kojto | 111:4336505e4b1c | 112 | . = . + STACK_SIZE; |
Kojto | 111:4336505e4b1c | 113 | . = ALIGN(8); |
Kojto | 111:4336505e4b1c | 114 | _estack = .; |
Kojto | 111:4336505e4b1c | 115 | } > ram |
Kojto | 111:4336505e4b1c | 116 | |
Kojto | 111:4336505e4b1c | 117 | . = ALIGN(4); |
Kojto | 111:4336505e4b1c | 118 | } |