Skip to content

Commit 73f1d4c

Browse files
author
Cruz Monrreal
authored
Merge pull request #8186 from deepikabhavnani/freescale_align_fix
Freescale/NXP: Fix alignment of execute region to 8byte boundary
2 parents be4bb9f + c673d53 commit 73f1d4c

File tree

59 files changed

+604
-604
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+604
-604
lines changed

targets/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/device/TOOLCHAIN_GCC_ARM/MK20D5.ld

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ SECTIONS
4646
KEEP(*(.vector_table))
4747
*(.text.Reset_Handler)
4848
*(.text.System_Init)
49-
. = ALIGN(4);
49+
. = ALIGN(8);
5050
} > VECTORS
5151

5252
.flash_protect :
5353
{
5454
KEEP(*(.kinetis_flash_config_field))
55-
. = ALIGN(4);
55+
. = ALIGN(8);
5656
} > FLASH_PROTECTION
5757

5858
.text :
@@ -101,28 +101,28 @@ SECTIONS
101101
*(vtable)
102102
*(.data*)
103103

104-
. = ALIGN(4);
104+
. = ALIGN(8);
105105
/* preinit data */
106106
PROVIDE_HIDDEN (__preinit_array_start = .);
107107
KEEP(*(.preinit_array))
108108
PROVIDE_HIDDEN (__preinit_array_end = .);
109109

110-
. = ALIGN(4);
110+
. = ALIGN(8);
111111
/* init data */
112112
PROVIDE_HIDDEN (__init_array_start = .);
113113
KEEP(*(SORT(.init_array.*)))
114114
KEEP(*(.init_array))
115115
PROVIDE_HIDDEN (__init_array_end = .);
116116

117117

118-
. = ALIGN(4);
118+
. = ALIGN(8);
119119
/* finit data */
120120
PROVIDE_HIDDEN (__fini_array_start = .);
121121
KEEP(*(SORT(.fini_array.*)))
122122
KEEP(*(.fini_array))
123123
PROVIDE_HIDDEN (__fini_array_end = .);
124124

125-
. = ALIGN(4);
125+
. = ALIGN(8);
126126
/* All data end */
127127
__data_end__ = .;
128128

targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/device/TOOLCHAIN_GCC_ARM/MK20DX256.ld

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ SECTIONS
4747
KEEP(*(.isr_vector))
4848
*(.text.Reset_Handler)
4949
*(.text.SystemInit)
50-
. = ALIGN(4);
50+
. = ALIGN(8);
5151
} > VECTORS
5252

5353
.flash_protect :
5454
{
5555
KEEP(*(.kinetis_flash_config_field))
56-
. = ALIGN(4);
56+
. = ALIGN(8);
5757
} > FLASH_PROTECTION
5858

5959
.text :
@@ -102,28 +102,28 @@ SECTIONS
102102
*(vtable)
103103
*(.data*)
104104

105-
. = ALIGN(4);
105+
. = ALIGN(8);
106106
/* preinit data */
107107
PROVIDE_HIDDEN (__preinit_array_start = .);
108108
KEEP(*(.preinit_array))
109109
PROVIDE_HIDDEN (__preinit_array_end = .);
110110

111-
. = ALIGN(4);
111+
. = ALIGN(8);
112112
/* init data */
113113
PROVIDE_HIDDEN (__init_array_start = .);
114114
KEEP(*(SORT(.init_array.*)))
115115
KEEP(*(.init_array))
116116
PROVIDE_HIDDEN (__init_array_end = .);
117117

118118

119-
. = ALIGN(4);
119+
. = ALIGN(8);
120120
/* finit data */
121121
PROVIDE_HIDDEN (__fini_array_start = .);
122122
KEEP(*(SORT(.fini_array.*)))
123123
KEEP(*(.fini_array))
124124
PROVIDE_HIDDEN (__fini_array_end = .);
125125

126-
. = ALIGN(4);
126+
. = ALIGN(8);
127127
/* All data end */
128128
__data_end__ = .;
129129

targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/device/TOOLCHAIN_GCC_ARM/MKL05Z4.ld

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ SECTIONS
4343
{
4444
__vector_table = .;
4545
KEEP(*(.vector_table))
46-
. = ALIGN(4);
46+
. = ALIGN(8);
4747
} > VECTORS
4848

4949
.text :
@@ -92,28 +92,28 @@ SECTIONS
9292
*(vtable)
9393
*(.data*)
9494

95-
. = ALIGN(4);
95+
. = ALIGN(8);
9696
/* preinit data */
9797
PROVIDE_HIDDEN (__preinit_array_start = .);
9898
KEEP(*(.preinit_array))
9999
PROVIDE_HIDDEN (__preinit_array_end = .);
100100

101-
. = ALIGN(4);
101+
. = ALIGN(8);
102102
/* init data */
103103
PROVIDE_HIDDEN (__init_array_start = .);
104104
KEEP(*(SORT(.init_array.*)))
105105
KEEP(*(.init_array))
106106
PROVIDE_HIDDEN (__init_array_end = .);
107107

108108

109-
. = ALIGN(4);
109+
. = ALIGN(8);
110110
/* finit data */
111111
PROVIDE_HIDDEN (__fini_array_start = .);
112112
KEEP(*(SORT(.fini_array.*)))
113113
KEEP(*(.fini_array))
114114
PROVIDE_HIDDEN (__fini_array_end = .);
115115

116-
. = ALIGN(4);
116+
. = ALIGN(8);
117117
/* All data end */
118118
__data_end__ = .;
119119

targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_ARM/MKL25Z4.ld

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ SECTIONS
4646
KEEP(*(.vector_table))
4747
*(.text.Reset_Handler)
4848
*(.text.System_Init)
49-
. = ALIGN(4);
49+
. = ALIGN(8);
5050
} > VECTORS
5151

5252
.flash_protect :
5353
{
5454
KEEP(*(.kinetis_flash_config_field))
55-
. = ALIGN(4);
55+
. = ALIGN(8);
5656
} > FLASH_PROTECTION
5757

5858
.text :
@@ -101,28 +101,28 @@ SECTIONS
101101
*(vtable)
102102
*(.data*)
103103

104-
. = ALIGN(4);
104+
. = ALIGN(8);
105105
/* preinit data */
106106
PROVIDE_HIDDEN (__preinit_array_start = .);
107107
KEEP(*(.preinit_array))
108108
PROVIDE_HIDDEN (__preinit_array_end = .);
109109

110-
. = ALIGN(4);
110+
. = ALIGN(8);
111111
/* init data */
112112
PROVIDE_HIDDEN (__init_array_start = .);
113113
KEEP(*(SORT(.init_array.*)))
114114
KEEP(*(.init_array))
115115
PROVIDE_HIDDEN (__init_array_end = .);
116116

117117

118-
. = ALIGN(4);
118+
. = ALIGN(8);
119119
/* finit data */
120120
PROVIDE_HIDDEN (__fini_array_start = .);
121121
KEEP(*(SORT(.fini_array.*)))
122122
KEEP(*(.fini_array))
123123
PROVIDE_HIDDEN (__fini_array_end = .);
124124

125-
. = ALIGN(4);
125+
. = ALIGN(8);
126126
/* All data end */
127127
__data_end__ = .;
128128

targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_CW_EWL/MKL25Z4.ld

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,22 @@ SECTIONS
3535
.interrupts :
3636
{
3737
__vector_table = .;
38-
. = ALIGN(4);
38+
. = ALIGN(8);
3939
KEEP(*(.vectortable)) /* Startup code */
40-
. = ALIGN(4);
40+
. = ALIGN(8);
4141
} > m_interrupts
4242

4343
.cfmprotect :
4444
{
45-
. = ALIGN(4);
45+
. = ALIGN(8);
4646
KEEP(*(.cfmconfig)) /* Flash Configuration Field (FCF) */
47-
. = ALIGN(4);
47+
. = ALIGN(8);
4848
} > m_cfmprotrom
4949

5050
/* The program code and other data goes into Flash */
5151
.text :
5252
{
53-
. = ALIGN(4);
53+
. = ALIGN(8);
5454
*(.text) /* .text sections (code) */
5555
*(.text*) /* .text* sections (code) */
5656
*(.rodata) /* .rodata sections (constants, strings, etc.) */
@@ -62,7 +62,7 @@ SECTIONS
6262
KEEP (*(.init))
6363
KEEP (*(.fini))
6464

65-
. = ALIGN(4);
65+
. = ALIGN(8);
6666
_etext = .; /* define a global symbols at end of code */
6767
} > m_text
6868

@@ -141,20 +141,20 @@ SECTIONS
141141
/* Initialized data sections goes into RAM, load LMA copy after code */
142142
.data : AT(___ROM_AT)
143143
{
144-
. = ALIGN(4);
144+
. = ALIGN(8);
145145
__sinit__ = .;
146146
_sdata = .; /* create a global symbol at data start */
147147
*(.data) /* .data sections */
148148
*(.data*) /* .data* sections */
149149

150-
. = ALIGN(4);
150+
. = ALIGN(8);
151151
_edata = .; /* define a global symbol at data end */
152152
} > m_data
153153

154154
___data_size = _edata - _sdata;
155155

156156
/* Uninitialized data section */
157-
. = ALIGN(4);
157+
. = ALIGN(8);
158158
.bss :
159159
{
160160
/* This is used by the startup in order to initialize the .bss section */
@@ -164,7 +164,7 @@ SECTIONS
164164
*(.bss*)
165165
*(COMMON)
166166

167-
. = ALIGN(4);
167+
. = ALIGN(8);
168168
__END_BSS = .;
169169
PROVIDE ( __bss_end__ = __END_BSS );
170170
} > m_data
@@ -184,13 +184,13 @@ SECTIONS
184184
/* User_heap_stack section, used to check that there is enough RAM left */
185185
._user_heap_stack :
186186
{
187-
. = ALIGN(4);
187+
. = ALIGN(8);
188188
PROVIDE ( end = . );
189189
PROVIDE ( _end = . );
190190
__heap_addr = .;
191191
. = . + __heap_size;
192192
. = . + __stack_size;
193-
. = ALIGN(4);
193+
. = ALIGN(8);
194194
} > m_data
195195

196196
.ARM.attributes 0 : { *(.ARM.attributes) }

targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_CW_NEWLIB/MKL25Z4.ld

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,28 +91,28 @@ SECTIONS
9191
*(vtable)
9292
*(.data*)
9393

94-
. = ALIGN(4);
94+
. = ALIGN(8);
9595
/* preinit data */
9696
PROVIDE (__preinit_array_start = .);
9797
KEEP(*(.preinit_array))
9898
PROVIDE (__preinit_array_end = .);
9999

100-
. = ALIGN(4);
100+
. = ALIGN(8);
101101
/* init data */
102102
PROVIDE (__init_array_start = .);
103103
KEEP(*(SORT(.init_array.*)))
104104
KEEP(*(.init_array))
105105
PROVIDE (__init_array_end = .);
106106

107107

108-
. = ALIGN(4);
108+
. = ALIGN(8);
109109
/* finit data */
110110
PROVIDE (__fini_array_start = .);
111111
KEEP(*(SORT(.fini_array.*)))
112112
KEEP(*(.fini_array))
113113
PROVIDE (__fini_array_end = .);
114114

115-
. = ALIGN(4);
115+
. = ALIGN(8);
116116
/* All data end */
117117
__data_end__ = .;
118118

targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/device/TOOLCHAIN_GCC_ARM/MKL26Z4.ld

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ SECTIONS
4646
KEEP(*(.vector_table))
4747
*(.text.Reset_Handler)
4848
*(.text.System_Init)
49-
. = ALIGN(4);
49+
. = ALIGN(8);
5050
} > VECTORS
5151

5252
.flash_protect :
5353
{
5454
KEEP(*(.kinetis_flash_config_field))
55-
. = ALIGN(4);
55+
. = ALIGN(8);
5656
} > FLASH_PROTECTION
5757

5858
.text :
@@ -101,28 +101,28 @@ SECTIONS
101101
*(vtable)
102102
*(.data*)
103103

104-
. = ALIGN(4);
104+
. = ALIGN(8);
105105
/* preinit data */
106106
PROVIDE_HIDDEN (__preinit_array_start = .);
107107
KEEP(*(.preinit_array))
108108
PROVIDE_HIDDEN (__preinit_array_end = .);
109109

110-
. = ALIGN(4);
110+
. = ALIGN(8);
111111
/* init data */
112112
PROVIDE_HIDDEN (__init_array_start = .);
113113
KEEP(*(SORT(.init_array.*)))
114114
KEEP(*(.init_array))
115115
PROVIDE_HIDDEN (__init_array_end = .);
116116

117117

118-
. = ALIGN(4);
118+
. = ALIGN(8);
119119
/* finit data */
120120
PROVIDE_HIDDEN (__fini_array_start = .);
121121
KEEP(*(SORT(.fini_array.*)))
122122
KEEP(*(.fini_array))
123123
PROVIDE_HIDDEN (__fini_array_end = .);
124124

125-
. = ALIGN(4);
125+
. = ALIGN(8);
126126
/* All data end */
127127
__data_end__ = .;
128128

0 commit comments

Comments
 (0)