Skip to content

Commit b796381

Browse files
committed
LPC1114 - polish linker script
1 parent 0a8b2fd commit b796381

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

TESTS/configs/baremetal.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
},
5757
"DISCO_L475VG_IOT01A": {
5858
"target.c_lib": "small"
59+
},
60+
"LPC1114": {
61+
"target.c_lib": "small"
5962
}
6063
}
6164
}

targets/TARGET_NXP/TARGET_LPC11XX_11CXX/device/TOOLCHAIN_ARM_STD/TARGET_LPC11XX/LPC1114.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LR_IROM1 0x00000000 0x8000 { ; load region size_region (32k)
1313
.ANY (+RO)
1414
}
1515
; 8_byte_aligned(48 vect * 4 bytes) = 8_byte_aligned(0xC0) = 0xC0
16-
; 8KB - 0xC0 = 0xF40
16+
; 4KB - 0xC0 = 0xF40
1717
RW_IRAM1 0x100000C0 0xF40-Stack_Size {
1818
.ANY (+RW +ZI)
1919
}

targets/TARGET_NXP/TARGET_LPC11XX_11CXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11XX/LPC1114.ld

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ SECTIONS
4646
.text :
4747
{
4848
KEEP(*(.isr_vector))
49-
*(.text.Reset_Handler)
49+
*(.text.Reset_Handler)
5050
*(.text.SystemInit)
51-
. = 0x200;
51+
. = 0x200;
5252
*(.text*)
5353

5454
KEEP(*(.init))
@@ -95,24 +95,24 @@ SECTIONS
9595

9696
. = ALIGN(8);
9797
/* preinit data */
98-
PROVIDE (__preinit_array_start = .);
98+
PROVIDE_HIDDEN (__preinit_array_start = .);
9999
KEEP(*(.preinit_array))
100-
PROVIDE (__preinit_array_end = .);
100+
PROVIDE_HIDDEN (__preinit_array_end = .);
101101

102102
. = ALIGN(8);
103103
/* init data */
104-
PROVIDE (__init_array_start = .);
104+
PROVIDE_HIDDEN (__init_array_start = .);
105105
KEEP(*(SORT(.init_array.*)))
106106
KEEP(*(.init_array))
107-
PROVIDE (__init_array_end = .);
107+
PROVIDE_HIDDEN (__init_array_end = .);
108108

109109

110110
. = ALIGN(8);
111111
/* finit data */
112-
PROVIDE (__fini_array_start = .);
112+
PROVIDE_HIDDEN (__fini_array_start = .);
113113
KEEP(*(SORT(.fini_array.*)))
114114
KEEP(*(.fini_array))
115-
PROVIDE (__fini_array_end = .);
115+
PROVIDE_HIDDEN (__fini_array_end = .);
116116

117117
. = ALIGN(8);
118118
/* All data end */
@@ -128,7 +128,7 @@ SECTIONS
128128
__bss_end__ = .;
129129
} > RAM
130130

131-
.heap :
131+
.heap (COPY):
132132
{
133133
__end__ = .;
134134
end = __end__;
@@ -140,7 +140,7 @@ SECTIONS
140140
/* .stack_dummy section doesn't contains any symbols. It is only
141141
* used for linker to calculate size of stack sections, and assign
142142
* values to stack symbols later */
143-
.stack_dummy :
143+
.stack_dummy (COPY):
144144
{
145145
*(.stack)
146146
} > RAM

targets/TARGET_NXP/TARGET_LPC11XX_11CXX/device/TOOLCHAIN_GCC_ARM/startup_LPC11xx.S

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ Reset_Handler:
181181
def_irq_default_handler PIOINT2_IRQHandler
182182
def_irq_default_handler PIOINT1_IRQHandler
183183
def_irq_default_handler PIOINT0_IRQHandler
184-
def_irq_default_handler DEF_IRQHandler
185184

186185
.end
187186

targets/targets.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
],
340340
"overrides": {
341341
"tickless-from-us-ticker": true,
342-
"boot-stack-size": "0x400"
342+
"boot-stack-size": "0x300"
343343
},
344344
"supported_c_libs": {
345345
"arm": [
@@ -354,7 +354,6 @@
354354
"std"
355355
]
356356
},
357-
"c_lib": "small",
358357
"release_versions": [
359358
"2"
360359
],

0 commit comments

Comments
 (0)