Skip to content

Commit 9815628

Browse files
firelizzard18deadprogram
authored andcommitted
Cleanup Teensy 3.6 linker script
1 parent 05495c4 commit 9815628

File tree

1 file changed

+1
-49
lines changed

1 file changed

+1
-49
lines changed

targets/nxpmk66f18.ld

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -33,54 +33,6 @@ SECTIONS
3333
. = ALIGN(4);
3434

3535
} >FLASH_TEXT = 0xFF
36-
37-
/* Put the stack at the bottom of RAM, so that the application will
38-
* crash on stack overflow instead of silently corrupting memory.
39-
* See: http://blog.japaric.io/stack-overflow-protection/ */
40-
.stack (NOLOAD) :
41-
{
42-
. = ALIGN(4);
43-
. += _stack_size;
44-
_stack_top = .;
45-
} >RAM
46-
47-
/* Start address (in flash) of .data, used by startup code. */
48-
_sidata = LOADADDR(.data);
49-
50-
/* this is where Teensy's LD script places .usbdescriptortable .dmabuffers .usbbuffers */
51-
52-
/* Globals with initial value */
53-
.data :
54-
{
55-
. = ALIGN(4);
56-
_sdata = .; /* used by startup code */
57-
*(.data)
58-
*(.data.*)
59-
. = ALIGN(4);
60-
_edata = .; /* used by startup code */
61-
} >RAM AT>FLASH_TEXT
62-
63-
/* Zero-initialized globals */
64-
.bss :
65-
{
66-
. = ALIGN(4);
67-
_sbss = .; /* used by startup code */
68-
*(.bss)
69-
*(.bss.*)
70-
*(COMMON)
71-
. = ALIGN(4);
72-
_ebss = .; /* used by startup code */
73-
} >RAM
74-
75-
/DISCARD/ :
76-
{
77-
*(.ARM.exidx) /* causes 'no memory region specified' error in lld */
78-
*(.ARM.exidx.*) /* causes spurious 'undefined reference' errors */
79-
}
8036
}
8137

82-
/* For the memory allocator. */
83-
_heap_start = _ebss;
84-
_heap_end = ORIGIN(RAM) + LENGTH(RAM);
85-
_globals_start = _sdata;
86-
_globals_end = _ebss;
38+
INCLUDE "targets/arm.ld"

0 commit comments

Comments
 (0)