From 525545c7b0b114d5b5ce907edb943ceefa82d4ef Mon Sep 17 00:00:00 2001 From: Deepika Date: Wed, 19 Sep 2018 09:34:47 -0500 Subject: [PATCH 1/2] Freescale: Fix alignment of execute region to 8-byte boundary --legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to remove deprecated flags all linker files (GCC and IAR as well to have uniformity) should strictly align to 8-byte boundary --- .../device/TOOLCHAIN_GCC_ARM/MK20D5.ld | 12 ++++---- .../device/TOOLCHAIN_GCC_ARM/MK20DX256.ld | 12 ++++---- .../device/TOOLCHAIN_GCC_ARM/MKL05Z4.ld | 10 +++---- .../device/TOOLCHAIN_GCC_ARM/MKL25Z4.ld | 12 ++++---- .../device/TOOLCHAIN_GCC_CW_EWL/MKL25Z4.ld | 24 ++++++++-------- .../device/TOOLCHAIN_GCC_CW_NEWLIB/MKL25Z4.ld | 8 +++--- .../device/TOOLCHAIN_GCC_ARM/MKL26Z4.ld | 12 ++++---- .../device/TOOLCHAIN_GCC_ARM/MKL46Z4.ld | 12 ++++---- .../TOOLCHAIN_GCC_ARM/MK66FN2M0xxx18.ld | 24 ++++++++-------- .../TOOLCHAIN_GCC_ARM/MK82FN256xxx15.ld | 28 +++++++++---------- .../device/TOOLCHAIN_GCC_ARM/MKL27Z64xxx4.ld | 24 ++++++++-------- .../device/TOOLCHAIN_GCC_ARM/MKL43Z256xxx4.ld | 24 ++++++++-------- .../device/TOOLCHAIN_GCC_ARM/MKL82Z128xxx7.ld | 28 +++++++++---------- .../device/TOOLCHAIN_GCC_ARM/MKW24D512xxx5.ld | 24 ++++++++-------- .../device/TOOLCHAIN_GCC_ARM/MKW41Z512xxx4.ld | 24 ++++++++-------- .../TOOLCHAIN_GCC_ARM/MK22FN512xxx12.ld | 24 ++++++++-------- .../TOOLCHAIN_GCC_ARM/MK24FN1M0xxx12.ld | 24 ++++++++-------- .../TOOLCHAIN_GCC_ARM/MK64FN1M0xxx12.ld | 24 ++++++++-------- 18 files changed, 175 insertions(+), 175 deletions(-) diff --git a/targets/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/device/TOOLCHAIN_GCC_ARM/MK20D5.ld b/targets/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/device/TOOLCHAIN_GCC_ARM/MK20D5.ld index 600751ca06f..36fdf5b23c2 100644 --- a/targets/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/device/TOOLCHAIN_GCC_ARM/MK20D5.ld +++ b/targets/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/device/TOOLCHAIN_GCC_ARM/MK20D5.ld @@ -46,13 +46,13 @@ SECTIONS KEEP(*(.vector_table)) *(.text.Reset_Handler) *(.text.System_Init) - . = ALIGN(4); + . = ALIGN(8); } > VECTORS .flash_protect : { KEEP(*(.kinetis_flash_config_field)) - . = ALIGN(4); + . = ALIGN(8); } > FLASH_PROTECTION .text : @@ -101,13 +101,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE_HIDDEN (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE_HIDDEN (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE_HIDDEN (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -115,14 +115,14 @@ SECTIONS PROVIDE_HIDDEN (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE_HIDDEN (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE_HIDDEN (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/device/TOOLCHAIN_GCC_ARM/MK20DX256.ld b/targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/device/TOOLCHAIN_GCC_ARM/MK20DX256.ld index 3a40be8642d..c950a5d679b 100644 --- a/targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/device/TOOLCHAIN_GCC_ARM/MK20DX256.ld +++ b/targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/device/TOOLCHAIN_GCC_ARM/MK20DX256.ld @@ -47,13 +47,13 @@ SECTIONS KEEP(*(.isr_vector)) *(.text.Reset_Handler) *(.text.SystemInit) - . = ALIGN(4); + . = ALIGN(8); } > VECTORS .flash_protect : { KEEP(*(.kinetis_flash_config_field)) - . = ALIGN(4); + . = ALIGN(8); } > FLASH_PROTECTION .text : @@ -102,13 +102,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE_HIDDEN (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE_HIDDEN (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE_HIDDEN (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -116,14 +116,14 @@ SECTIONS PROVIDE_HIDDEN (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE_HIDDEN (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE_HIDDEN (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/device/TOOLCHAIN_GCC_ARM/MKL05Z4.ld b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/device/TOOLCHAIN_GCC_ARM/MKL05Z4.ld index 65eba85be1f..92505fac8bf 100644 --- a/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/device/TOOLCHAIN_GCC_ARM/MKL05Z4.ld +++ b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/device/TOOLCHAIN_GCC_ARM/MKL05Z4.ld @@ -43,7 +43,7 @@ SECTIONS { __vector_table = .; KEEP(*(.vector_table)) - . = ALIGN(4); + . = ALIGN(8); } > VECTORS .text : @@ -92,13 +92,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE_HIDDEN (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE_HIDDEN (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE_HIDDEN (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -106,14 +106,14 @@ SECTIONS PROVIDE_HIDDEN (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE_HIDDEN (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE_HIDDEN (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_ARM/MKL25Z4.ld b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_ARM/MKL25Z4.ld index 6c8da015b96..2c9c6ec0292 100644 --- a/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_ARM/MKL25Z4.ld +++ b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_ARM/MKL25Z4.ld @@ -46,13 +46,13 @@ SECTIONS KEEP(*(.vector_table)) *(.text.Reset_Handler) *(.text.System_Init) - . = ALIGN(4); + . = ALIGN(8); } > VECTORS .flash_protect : { KEEP(*(.kinetis_flash_config_field)) - . = ALIGN(4); + . = ALIGN(8); } > FLASH_PROTECTION .text : @@ -101,13 +101,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE_HIDDEN (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE_HIDDEN (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE_HIDDEN (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -115,14 +115,14 @@ SECTIONS PROVIDE_HIDDEN (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE_HIDDEN (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE_HIDDEN (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_CW_EWL/MKL25Z4.ld b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_CW_EWL/MKL25Z4.ld index dc26b23e487..3ba122952d7 100644 --- a/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_CW_EWL/MKL25Z4.ld +++ b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_CW_EWL/MKL25Z4.ld @@ -35,22 +35,22 @@ SECTIONS .interrupts : { __vector_table = .; - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.vectortable)) /* Startup code */ - . = ALIGN(4); + . = ALIGN(8); } > m_interrupts .cfmprotect : { - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.cfmconfig)) /* Flash Configuration Field (FCF) */ - . = ALIGN(4); + . = ALIGN(8); } > m_cfmprotrom /* The program code and other data goes into Flash */ .text : { - . = ALIGN(4); + . = ALIGN(8); *(.text) /* .text sections (code) */ *(.text*) /* .text* sections (code) */ *(.rodata) /* .rodata sections (constants, strings, etc.) */ @@ -62,7 +62,7 @@ SECTIONS KEEP (*(.init)) KEEP (*(.fini)) - . = ALIGN(4); + . = ALIGN(8); _etext = .; /* define a global symbols at end of code */ } > m_text @@ -141,20 +141,20 @@ SECTIONS /* Initialized data sections goes into RAM, load LMA copy after code */ .data : AT(___ROM_AT) { - . = ALIGN(4); + . = ALIGN(8); __sinit__ = .; _sdata = .; /* create a global symbol at data start */ *(.data) /* .data sections */ *(.data*) /* .data* sections */ - . = ALIGN(4); + . = ALIGN(8); _edata = .; /* define a global symbol at data end */ } > m_data ___data_size = _edata - _sdata; /* Uninitialized data section */ - . = ALIGN(4); + . = ALIGN(8); .bss : { /* This is used by the startup in order to initialize the .bss section */ @@ -164,7 +164,7 @@ SECTIONS *(.bss*) *(COMMON) - . = ALIGN(4); + . = ALIGN(8); __END_BSS = .; PROVIDE ( __bss_end__ = __END_BSS ); } > m_data @@ -184,13 +184,13 @@ SECTIONS /* User_heap_stack section, used to check that there is enough RAM left */ ._user_heap_stack : { - . = ALIGN(4); + . = ALIGN(8); PROVIDE ( end = . ); PROVIDE ( _end = . ); __heap_addr = .; . = . + __heap_size; . = . + __stack_size; - . = ALIGN(4); + . = ALIGN(8); } > m_data .ARM.attributes 0 : { *(.ARM.attributes) } diff --git a/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_CW_NEWLIB/MKL25Z4.ld b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_CW_NEWLIB/MKL25Z4.ld index 3ea44c046cf..6a0920ade8b 100644 --- a/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_CW_NEWLIB/MKL25Z4.ld +++ b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_CW_NEWLIB/MKL25Z4.ld @@ -91,13 +91,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -105,14 +105,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/device/TOOLCHAIN_GCC_ARM/MKL26Z4.ld b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/device/TOOLCHAIN_GCC_ARM/MKL26Z4.ld index 6c8da015b96..2c9c6ec0292 100644 --- a/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/device/TOOLCHAIN_GCC_ARM/MKL26Z4.ld +++ b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/device/TOOLCHAIN_GCC_ARM/MKL26Z4.ld @@ -46,13 +46,13 @@ SECTIONS KEEP(*(.vector_table)) *(.text.Reset_Handler) *(.text.System_Init) - . = ALIGN(4); + . = ALIGN(8); } > VECTORS .flash_protect : { KEEP(*(.kinetis_flash_config_field)) - . = ALIGN(4); + . = ALIGN(8); } > FLASH_PROTECTION .text : @@ -101,13 +101,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE_HIDDEN (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE_HIDDEN (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE_HIDDEN (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -115,14 +115,14 @@ SECTIONS PROVIDE_HIDDEN (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE_HIDDEN (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE_HIDDEN (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/device/TOOLCHAIN_GCC_ARM/MKL46Z4.ld b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/device/TOOLCHAIN_GCC_ARM/MKL46Z4.ld index 6f20f321267..9131dfc02b2 100644 --- a/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/device/TOOLCHAIN_GCC_ARM/MKL46Z4.ld +++ b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/device/TOOLCHAIN_GCC_ARM/MKL46Z4.ld @@ -46,13 +46,13 @@ SECTIONS KEEP(*(.vector_table)) *(.text.Reset_Handler) *(.text.System_Init) - . = ALIGN(4); + . = ALIGN(8); } > VECTORS .flash_protect : { KEEP(*(.kinetis_flash_config_field)) - . = ALIGN(4); + . = ALIGN(8); } > FLASH_PROTECTION .text : @@ -101,13 +101,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE_HIDDEN (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE_HIDDEN (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE_HIDDEN (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -115,14 +115,14 @@ SECTIONS PROVIDE_HIDDEN (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE_HIDDEN (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE_HIDDEN (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/device/TOOLCHAIN_GCC_ARM/MK66FN2M0xxx18.ld b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/device/TOOLCHAIN_GCC_ARM/MK66FN2M0xxx18.ld index 4f569d5dd00..31e359ba35f 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/device/TOOLCHAIN_GCC_ARM/MK66FN2M0xxx18.ld +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/device/TOOLCHAIN_GCC_ARM/MK66FN2M0xxx18.ld @@ -84,22 +84,22 @@ SECTIONS .interrupts : { __VECTOR_TABLE = .; - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); + . = ALIGN(8); } > m_interrupts .flash_config : { - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.FlashConfig)) /* Flash Configuration Field (FCF) */ - . = ALIGN(4); + . = ALIGN(8); } > m_flash_config /* The program code and other data goes into internal flash */ .text : { - . = ALIGN(4); + . = ALIGN(8); *(.text) /* .text sections (code) */ *(.text*) /* .text* sections (code) */ *(.rodata) /* .rodata sections (constants, strings, etc.) */ @@ -109,7 +109,7 @@ SECTIONS *(.eh_frame) KEEP (*(.init)) KEEP (*(.fini)) - . = ALIGN(4); + . = ALIGN(8); } > m_text .ARM.extab : @@ -187,12 +187,12 @@ SECTIONS .interrupts_ram : { - . = ALIGN(4); + . = ALIGN(8); __VECTOR_RAM__ = .; __interrupts_ram_start__ = .; /* Create a global symbol at data start */ *(.m_interrupts_ram) /* This is a user defined section */ . += M_VECTOR_RAM_SIZE; - . = ALIGN(4); + . = ALIGN(8); __interrupts_ram_end__ = .; /* Define a global symbol at data end */ } > m_data @@ -201,13 +201,13 @@ SECTIONS .data : AT(__DATA_ROM) { - . = ALIGN(4); + . = ALIGN(8); __DATA_RAM = .; __data_start__ = .; /* create a global symbol at data start */ *(.data) /* .data sections */ *(.data*) /* .data* sections */ KEEP(*(.jcr*)) - . = ALIGN(4); + . = ALIGN(8); __data_end__ = .; /* define a global symbol at data end */ } > m_data @@ -219,13 +219,13 @@ SECTIONS .bss : { /* This is used by the startup in order to initialize the .bss section */ - . = ALIGN(4); + . = ALIGN(8); __START_BSS = .; __bss_start__ = .; *(.bss) *(.bss*) *(COMMON) - . = ALIGN(4); + . = ALIGN(8); __bss_end__ = .; __END_BSS = .; } > m_data_2 diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/device/TOOLCHAIN_GCC_ARM/MK82FN256xxx15.ld b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/device/TOOLCHAIN_GCC_ARM/MK82FN256xxx15.ld index 8d5a2e9ffa2..33c6bc8ffb5 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/device/TOOLCHAIN_GCC_ARM/MK82FN256xxx15.ld +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/device/TOOLCHAIN_GCC_ARM/MK82FN256xxx15.ld @@ -80,29 +80,29 @@ SECTIONS .interrupts : { __VECTOR_TABLE = .; - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); + . = ALIGN(8); } > m_interrupts .bootloader_config : { - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.BootloaderConfig)) /* Bootloader Configuration Area (BCA) */ - . = ALIGN(4); + . = ALIGN(8); } > m_bootloader_config .flash_config : { - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.FlashConfig)) /* Flash Configuration Field (FCF) */ - . = ALIGN(4); + . = ALIGN(8); } > m_flash_config /* The program code and other data goes into internal flash */ .text : { - . = ALIGN(4); + . = ALIGN(8); *(.text) /* .text sections (code) */ *(.text*) /* .text* sections (code) */ *(.rodata) /* .rodata sections (constants, strings, etc.) */ @@ -112,7 +112,7 @@ SECTIONS *(.eh_frame) KEEP (*(.init)) KEEP (*(.fini)) - . = ALIGN(4); + . = ALIGN(8); } > m_text .ARM.extab : @@ -190,12 +190,12 @@ SECTIONS .interrupts_ram : { - . = ALIGN(4); + . = ALIGN(8); __VECTOR_RAM__ = .; __interrupts_ram_start__ = .; /* Create a global symbol at data start */ *(.m_interrupts_ram) /* This is a user defined section */ . += M_VECTOR_RAM_SIZE; - . = ALIGN(4); + . = ALIGN(8); __interrupts_ram_end__ = .; /* Define a global symbol at data end */ } > m_data @@ -204,13 +204,13 @@ SECTIONS .data : AT(__DATA_ROM) { - . = ALIGN(4); + . = ALIGN(8); __DATA_RAM = .; __data_start__ = .; /* create a global symbol at data start */ *(.data) /* .data sections */ *(.data*) /* .data* sections */ KEEP(*(.jcr*)) - . = ALIGN(4); + . = ALIGN(8); __data_end__ = .; /* define a global symbol at data end */ } > m_data @@ -223,7 +223,7 @@ SECTIONS .bss : { /* This is used by the startup in order to initialize the .bss section */ - . = ALIGN(4); + . = ALIGN(8); __START_BSS = .; __bss_start__ = .; *(.bss) @@ -232,7 +232,7 @@ SECTIONS USB_RAM_START = .; . += USB_RAM_GAP; *(COMMON) - . = ALIGN(4); + . = ALIGN(8); __bss_end__ = .; __END_BSS = .; } > m_data diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL27Z/device/TOOLCHAIN_GCC_ARM/MKL27Z64xxx4.ld b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL27Z/device/TOOLCHAIN_GCC_ARM/MKL27Z64xxx4.ld index d07efd1a041..9e27cf9a8bb 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL27Z/device/TOOLCHAIN_GCC_ARM/MKL27Z64xxx4.ld +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL27Z/device/TOOLCHAIN_GCC_ARM/MKL27Z64xxx4.ld @@ -79,22 +79,22 @@ SECTIONS .interrupts : { __VECTOR_TABLE = .; - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); + . = ALIGN(8); } > m_interrupts .flash_config : { - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.FlashConfig)) /* Flash Configuration Field (FCF) */ - . = ALIGN(4); + . = ALIGN(8); } > m_flash_config /* The program code and other data goes into internal flash */ .text : { - . = ALIGN(4); + . = ALIGN(8); *(.text) /* .text sections (code) */ *(.text*) /* .text* sections (code) */ *(.rodata) /* .rodata sections (constants, strings, etc.) */ @@ -104,7 +104,7 @@ SECTIONS *(.eh_frame) KEEP (*(.init)) KEEP (*(.fini)) - . = ALIGN(4); + . = ALIGN(8); } > m_text .ARM.extab : @@ -192,12 +192,12 @@ SECTIONS .interrupts_ram : { - . = ALIGN(4); + . = ALIGN(8); __VECTOR_RAM__ = .; __interrupts_ram_start__ = .; /* Create a global symbol at data start */ *(.m_interrupts_ram) /* This is a user defined section */ . += M_VECTOR_RAM_SIZE; - . = ALIGN(4); + . = ALIGN(8); __interrupts_ram_end__ = .; /* Define a global symbol at data end */ } > m_data @@ -206,13 +206,13 @@ SECTIONS .data : AT(__DATA_ROM) { - . = ALIGN(4); + . = ALIGN(8); __DATA_RAM = .; __data_start__ = .; /* create a global symbol at data start */ *(.data) /* .data sections */ *(.data*) /* .data* sections */ KEEP(*(.jcr*)) - . = ALIGN(4); + . = ALIGN(8); __data_end__ = .; /* define a global symbol at data end */ } > m_data @@ -225,7 +225,7 @@ SECTIONS .bss : { /* This is used by the startup in order to initialize the .bss section */ - . = ALIGN(4); + . = ALIGN(8); __START_BSS = .; __bss_start__ = .; *(.bss) @@ -234,7 +234,7 @@ SECTIONS USB_RAM_START = .; . += USB_RAM_GAP; *(COMMON) - . = ALIGN(4); + . = ALIGN(8); __bss_end__ = .; __END_BSS = .; } > m_data diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL43Z/device/TOOLCHAIN_GCC_ARM/MKL43Z256xxx4.ld b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL43Z/device/TOOLCHAIN_GCC_ARM/MKL43Z256xxx4.ld index 71eff59eee9..19329969f4c 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL43Z/device/TOOLCHAIN_GCC_ARM/MKL43Z256xxx4.ld +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL43Z/device/TOOLCHAIN_GCC_ARM/MKL43Z256xxx4.ld @@ -76,22 +76,22 @@ SECTIONS .interrupts : { __VECTOR_TABLE = .; - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); + . = ALIGN(8); } > m_interrupts .flash_config : { - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.FlashConfig)) /* Flash Configuration Field (FCF) */ - . = ALIGN(4); + . = ALIGN(8); } > m_flash_config /* The program code and other data goes into internal flash */ .text : { - . = ALIGN(4); + . = ALIGN(8); *(.text) /* .text sections (code) */ *(.text*) /* .text* sections (code) */ *(.rodata) /* .rodata sections (constants, strings, etc.) */ @@ -101,7 +101,7 @@ SECTIONS *(.eh_frame) KEEP (*(.init)) KEEP (*(.fini)) - . = ALIGN(4); + . = ALIGN(8); } > m_text .ARM.extab : @@ -189,12 +189,12 @@ SECTIONS .interrupts_ram : { - . = ALIGN(4); + . = ALIGN(8); __VECTOR_RAM__ = .; __interrupts_ram_start__ = .; /* Create a global symbol at data start */ *(.m_interrupts_ram) /* This is a user defined section */ . += M_VECTOR_RAM_SIZE; - . = ALIGN(4); + . = ALIGN(8); __interrupts_ram_end__ = .; /* Define a global symbol at data end */ } > m_data @@ -203,13 +203,13 @@ SECTIONS .data : AT(__DATA_ROM) { - . = ALIGN(4); + . = ALIGN(8); __DATA_RAM = .; __data_start__ = .; /* create a global symbol at data start */ *(.data) /* .data sections */ *(.data*) /* .data* sections */ KEEP(*(.jcr*)) - . = ALIGN(4); + . = ALIGN(8); __data_end__ = .; /* define a global symbol at data end */ } > m_data @@ -222,7 +222,7 @@ SECTIONS .bss : { /* This is used by the startup in order to initialize the .bss section */ - . = ALIGN(4); + . = ALIGN(8); __START_BSS = .; __bss_start__ = .; *(.bss) @@ -231,7 +231,7 @@ SECTIONS USB_RAM_START = .; . += USB_RAM_GAP; *(COMMON) - . = ALIGN(4); + . = ALIGN(8); __bss_end__ = .; __END_BSS = .; } > m_data diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/device/TOOLCHAIN_GCC_ARM/MKL82Z128xxx7.ld b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/device/TOOLCHAIN_GCC_ARM/MKL82Z128xxx7.ld index c7dbc06eaef..b46708160e0 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/device/TOOLCHAIN_GCC_ARM/MKL82Z128xxx7.ld +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/device/TOOLCHAIN_GCC_ARM/MKL82Z128xxx7.ld @@ -81,29 +81,29 @@ SECTIONS .interrupts : { __VECTOR_TABLE = .; - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); + . = ALIGN(8); } > m_interrupts .bootloader_config : { - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.BootloaderConfig)) /* Bootloader Configuration Area (BCA) */ - . = ALIGN(4); + . = ALIGN(8); } > m_bootloader_config .flash_config : { - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.FlashConfig)) /* Flash Configuration Field (FCF) */ - . = ALIGN(4); + . = ALIGN(8); } > m_flash_config /* The program code and other data goes into internal flash */ .text : { - . = ALIGN(4); + . = ALIGN(8); *(.text) /* .text sections (code) */ *(.text*) /* .text* sections (code) */ *(.rodata) /* .rodata sections (constants, strings, etc.) */ @@ -113,7 +113,7 @@ SECTIONS *(.eh_frame) KEEP (*(.init)) KEEP (*(.fini)) - . = ALIGN(4); + . = ALIGN(8); } > m_text .ARM.extab : @@ -201,12 +201,12 @@ SECTIONS .interrupts_ram : { - . = ALIGN(4); + . = ALIGN(8); __VECTOR_RAM__ = .; __interrupts_ram_start__ = .; /* Create a global symbol at data start */ *(.m_interrupts_ram) /* This is a user defined section */ . += M_VECTOR_RAM_SIZE; - . = ALIGN(4); + . = ALIGN(8); __interrupts_ram_end__ = .; /* Define a global symbol at data end */ } > m_data @@ -215,13 +215,13 @@ SECTIONS .data : AT(__DATA_ROM) { - . = ALIGN(4); + . = ALIGN(8); __DATA_RAM = .; __data_start__ = .; /* create a global symbol at data start */ *(.data) /* .data sections */ *(.data*) /* .data* sections */ KEEP(*(.jcr*)) - . = ALIGN(4); + . = ALIGN(8); __data_end__ = .; /* define a global symbol at data end */ } > m_data @@ -234,7 +234,7 @@ SECTIONS .bss : { /* This is used by the startup in order to initialize the .bss section */ - . = ALIGN(4); + . = ALIGN(8); __START_BSS = .; __bss_start__ = .; *(.bss) @@ -243,7 +243,7 @@ SECTIONS USB_RAM_START = .; . += USB_RAM_GAP; *(COMMON) - . = ALIGN(4); + . = ALIGN(8); __bss_end__ = .; __END_BSS = .; } > m_data diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW24D/device/TOOLCHAIN_GCC_ARM/MKW24D512xxx5.ld b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW24D/device/TOOLCHAIN_GCC_ARM/MKW24D512xxx5.ld index cdbc3d8fe7c..1f54167cb38 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW24D/device/TOOLCHAIN_GCC_ARM/MKW24D512xxx5.ld +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW24D/device/TOOLCHAIN_GCC_ARM/MKW24D512xxx5.ld @@ -83,22 +83,22 @@ SECTIONS .interrupts : { __VECTOR_TABLE = .; - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); + . = ALIGN(8); } > m_interrupts .flash_config : { - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.FlashConfig)) /* Flash Configuration Field (FCF) */ - . = ALIGN(4); + . = ALIGN(8); } > m_flash_config /* The program code and other data goes into internal flash */ .text : { - . = ALIGN(4); + . = ALIGN(8); *(.text) /* .text sections (code) */ *(.text*) /* .text* sections (code) */ *(.rodata) /* .rodata sections (constants, strings, etc.) */ @@ -108,7 +108,7 @@ SECTIONS *(.eh_frame) KEEP (*(.init)) KEEP (*(.fini)) - . = ALIGN(4); + . = ALIGN(8); } > m_text .ARM.extab : @@ -186,12 +186,12 @@ SECTIONS .interrupts_ram : { - . = ALIGN(4); + . = ALIGN(8); __VECTOR_RAM__ = .; __interrupts_ram_start__ = .; /* Create a global symbol at data start */ *(.m_interrupts_ram) /* This is a user defined section */ . += M_VECTOR_RAM_SIZE; - . = ALIGN(4); + . = ALIGN(8); __interrupts_ram_end__ = .; /* Define a global symbol at data end */ } > m_data @@ -200,13 +200,13 @@ SECTIONS .data : AT(__DATA_ROM) { - . = ALIGN(4); + . = ALIGN(8); __DATA_RAM = .; __data_start__ = .; /* create a global symbol at data start */ *(.data) /* .data sections */ *(.data*) /* .data* sections */ KEEP(*(.jcr*)) - . = ALIGN(4); + . = ALIGN(8); __data_end__ = .; /* define a global symbol at data end */ } > m_data @@ -219,7 +219,7 @@ SECTIONS .bss : { /* This is used by the startup in order to initialize the .bss section */ - . = ALIGN(4); + . = ALIGN(8); __START_BSS = .; __bss_start__ = .; *(.bss) @@ -228,7 +228,7 @@ SECTIONS USB_RAM_START = .; . += USB_RAM_GAP; *(COMMON) - . = ALIGN(4); + . = ALIGN(8); __bss_end__ = .; __END_BSS = .; } > m_data diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW41Z/device/TOOLCHAIN_GCC_ARM/MKW41Z512xxx4.ld b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW41Z/device/TOOLCHAIN_GCC_ARM/MKW41Z512xxx4.ld index ef807de9e73..227cbbb0977 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW41Z/device/TOOLCHAIN_GCC_ARM/MKW41Z512xxx4.ld +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW41Z/device/TOOLCHAIN_GCC_ARM/MKW41Z512xxx4.ld @@ -74,22 +74,22 @@ SECTIONS .interrupts : { __VECTOR_TABLE = .; - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); + . = ALIGN(8); } > m_interrupts .flash_config : { - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.FlashConfig)) /* Flash Configuration Field (FCF) */ - . = ALIGN(4); + . = ALIGN(8); } > m_flash_config /* The program code and other data goes into internal flash */ .text : { - . = ALIGN(4); + . = ALIGN(8); *(.text) /* .text sections (code) */ *(.text*) /* .text* sections (code) */ *(.rodata) /* .rodata sections (constants, strings, etc.) */ @@ -99,7 +99,7 @@ SECTIONS *(.eh_frame) KEEP (*(.init)) KEEP (*(.fini)) - . = ALIGN(4); + . = ALIGN(8); } > m_text .ARM.extab : @@ -187,12 +187,12 @@ SECTIONS .interrupts_ram : { - . = ALIGN(4); + . = ALIGN(8); __VECTOR_RAM__ = .; __interrupts_ram_start__ = .; /* Create a global symbol at data start */ *(.m_interrupts_ram) /* This is a user defined section */ . += M_VECTOR_RAM_SIZE; - . = ALIGN(4); + . = ALIGN(8); __interrupts_ram_end__ = .; /* Define a global symbol at data end */ } > m_data @@ -201,13 +201,13 @@ SECTIONS .data : AT(__DATA_ROM) { - . = ALIGN(4); + . = ALIGN(8); __DATA_RAM = .; __data_start__ = .; /* create a global symbol at data start */ *(.data) /* .data sections */ *(.data*) /* .data* sections */ KEEP(*(.jcr*)) - . = ALIGN(4); + . = ALIGN(8); __data_end__ = .; /* define a global symbol at data end */ } > m_data @@ -219,13 +219,13 @@ SECTIONS .bss : { /* This is used by the startup in order to initialize the .bss section */ - . = ALIGN(4); + . = ALIGN(8); __START_BSS = .; __bss_start__ = .; *(.bss) *(.bss*) *(COMMON) - . = ALIGN(4); + . = ALIGN(8); __bss_end__ = .; __END_BSS = .; } > m_data diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K22F/TARGET_MCU_K22F512/device/TOOLCHAIN_GCC_ARM/MK22FN512xxx12.ld b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K22F/TARGET_MCU_K22F512/device/TOOLCHAIN_GCC_ARM/MK22FN512xxx12.ld index 410b3552e2b..433f8d82914 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K22F/TARGET_MCU_K22F512/device/TOOLCHAIN_GCC_ARM/MK22FN512xxx12.ld +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K22F/TARGET_MCU_K22F512/device/TOOLCHAIN_GCC_ARM/MK22FN512xxx12.ld @@ -78,22 +78,22 @@ SECTIONS .interrupts : { __VECTOR_TABLE = .; - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); + . = ALIGN(8); } > m_interrupts .flash_config : { - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.FlashConfig)) /* Flash Configuration Field (FCF) */ - . = ALIGN(4); + . = ALIGN(8); } > m_flash_config /* The program code and other data goes into internal flash */ .text : { - . = ALIGN(4); + . = ALIGN(8); *(.text) /* .text sections (code) */ *(.text*) /* .text* sections (code) */ *(.rodata) /* .rodata sections (constants, strings, etc.) */ @@ -103,7 +103,7 @@ SECTIONS *(.eh_frame) KEEP (*(.init)) KEEP (*(.fini)) - . = ALIGN(4); + . = ALIGN(8); } > m_text .ARM.extab : @@ -181,12 +181,12 @@ SECTIONS .interrupts_ram : { - . = ALIGN(4); + . = ALIGN(8); __VECTOR_RAM__ = .; __interrupts_ram_start__ = .; /* Create a global symbol at data start */ *(.m_interrupts_ram) /* This is a user defined section */ . += M_VECTOR_RAM_SIZE; - . = ALIGN(4); + . = ALIGN(8); __interrupts_ram_end__ = .; /* Define a global symbol at data end */ } > m_data @@ -195,13 +195,13 @@ SECTIONS .data : AT(__DATA_ROM) { - . = ALIGN(4); + . = ALIGN(8); __DATA_RAM = .; __data_start__ = .; /* create a global symbol at data start */ *(.data) /* .data sections */ *(.data*) /* .data* sections */ KEEP(*(.jcr*)) - . = ALIGN(4); + . = ALIGN(8); __data_end__ = .; /* define a global symbol at data end */ } > m_data @@ -214,7 +214,7 @@ SECTIONS .bss : { /* This is used by the startup in order to initialize the .bss section */ - . = ALIGN(4); + . = ALIGN(8); __START_BSS = .; __bss_start__ = .; *(.bss) @@ -223,7 +223,7 @@ SECTIONS USB_RAM_START = .; . += USB_RAM_GAP; *(COMMON) - . = ALIGN(4); + . = ALIGN(8); __bss_end__ = .; __END_BSS = .; } > m_data diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K24F/TARGET_MCU_K24F1M/device/TOOLCHAIN_GCC_ARM/MK24FN1M0xxx12.ld b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K24F/TARGET_MCU_K24F1M/device/TOOLCHAIN_GCC_ARM/MK24FN1M0xxx12.ld index 2ac1c6c677f..e227aa037ea 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K24F/TARGET_MCU_K24F1M/device/TOOLCHAIN_GCC_ARM/MK24FN1M0xxx12.ld +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K24F/TARGET_MCU_K24F1M/device/TOOLCHAIN_GCC_ARM/MK24FN1M0xxx12.ld @@ -85,22 +85,22 @@ SECTIONS .interrupts : { __VECTOR_TABLE = .; - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); + . = ALIGN(8); } > m_interrupts .flash_config : { - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.FlashConfig)) /* Flash Configuration Field (FCF) */ - . = ALIGN(4); + . = ALIGN(8); } > m_flash_config .text : { - . = ALIGN(4); + . = ALIGN(8); *(.text) /* .text sections (code) */ *(.text*) /* .text* sections (code) */ *(.rodata) /* .rodata sections (constants, strings, etc.) */ @@ -110,7 +110,7 @@ SECTIONS *(.eh_frame) KEEP (*(.init)) KEEP (*(.fini)) - . = ALIGN(4); + . = ALIGN(8); } > m_text .ARM.extab : @@ -185,12 +185,12 @@ SECTIONS .interrupts_ram : { - . = ALIGN(4); + . = ALIGN(8); __VECTOR_RAM__ = .; __interrupts_ram_start__ = .; /* Create a global symbol at data start */ *(.m_interrupts_ram) /* This is a user defined section */ . += M_VECTOR_RAM_SIZE; - . = ALIGN(4); + . = ALIGN(8); __interrupts_ram_end__ = .; /* Define a global symbol at data end */ } > m_data @@ -202,13 +202,13 @@ SECTIONS { PROVIDE(__etext = LOADADDR(.data)); /* Define a global symbol at end of code, */ PROVIDE(__DATA_ROM = LOADADDR(.data)); /* Symbol is used by startup for data initialization. */ - . = ALIGN(4); + . = ALIGN(8); __DATA_RAM = .; __data_start__ = .; /* create a global symbol at data start */ *(.data) /* .data sections */ *(.data*) /* .data* sections */ KEEP(*(.jcr*)) - . = ALIGN(4); + . = ALIGN(8); __data_end__ = .; /* define a global symbol at data end */ } > m_data_2 AT > m_text @@ -235,7 +235,7 @@ SECTIONS .bss : { /* This is used by the startup in order to initialize the .bss section */ - . = ALIGN(4); + . = ALIGN(8); __START_BSS = .; __bss_start__ = .; *(.bss) @@ -244,7 +244,7 @@ SECTIONS USB_RAM_START = .; . += USB_RAM_GAP; *(COMMON) - . = ALIGN(4); + . = ALIGN(8); __bss_end__ = .; __END_BSS = .; } > m_data_2 diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/device/TOOLCHAIN_GCC_ARM/MK64FN1M0xxx12.ld b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/device/TOOLCHAIN_GCC_ARM/MK64FN1M0xxx12.ld index 50136de6439..ab1c6a34dea 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/device/TOOLCHAIN_GCC_ARM/MK64FN1M0xxx12.ld +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/device/TOOLCHAIN_GCC_ARM/MK64FN1M0xxx12.ld @@ -88,22 +88,22 @@ SECTIONS .interrupts : { __VECTOR_TABLE = .; - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); + . = ALIGN(8); } > m_interrupts .flash_config : { - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.FlashConfig)) /* Flash Configuration Field (FCF) */ - . = ALIGN(4); + . = ALIGN(8); } > m_flash_config .text : { - . = ALIGN(4); + . = ALIGN(8); *(.text) /* .text sections (code) */ *(.text*) /* .text* sections (code) */ *(.rodata) /* .rodata sections (constants, strings, etc.) */ @@ -113,7 +113,7 @@ SECTIONS *(.eh_frame) KEEP (*(.init)) KEEP (*(.fini)) - . = ALIGN(4); + . = ALIGN(8); } > m_text .ARM.extab : @@ -188,12 +188,12 @@ SECTIONS .interrupts_ram : { - . = ALIGN(4); + . = ALIGN(8); __VECTOR_RAM__ = .; __interrupts_ram_start__ = .; /* Create a global symbol at data start */ *(.m_interrupts_ram) /* This is a user defined section */ . += M_VECTOR_RAM_SIZE; - . = ALIGN(4); + . = ALIGN(8); __interrupts_ram_end__ = .; /* Define a global symbol at data end */ } > m_data @@ -205,13 +205,13 @@ SECTIONS { PROVIDE(__etext = LOADADDR(.data)); /* Define a global symbol at end of code, */ PROVIDE(__DATA_ROM = LOADADDR(.data)); /* Symbol is used by startup for data initialization. */ - . = ALIGN(4); + . = ALIGN(8); __DATA_RAM = .; __data_start__ = .; /* create a global symbol at data start */ *(.data) /* .data sections */ *(.data*) /* .data* sections */ KEEP(*(.jcr*)) - . = ALIGN(4); + . = ALIGN(8); __data_end__ = .; /* define a global symbol at data end */ } > m_data_2 AT > m_text @@ -239,7 +239,7 @@ SECTIONS .bss : { /* This is used by the startup in order to initialize the .bss section */ - . = ALIGN(4); + . = ALIGN(8); __START_BSS = .; __bss_start__ = .; *(.bss) @@ -248,7 +248,7 @@ SECTIONS USB_RAM_START = .; . += USB_RAM_GAP; *(COMMON) - . = ALIGN(4); + . = ALIGN(8); __bss_end__ = .; __END_BSS = .; } > m_data_2 From c673d5344c66465f341d3ce12a4930a84a8f2543 Mon Sep 17 00:00:00 2001 From: Deepika Date: Wed, 19 Sep 2018 09:45:41 -0500 Subject: [PATCH 2/2] NXP: Fix alignment of execute region to 8-byte boundary --legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to remove deprecated flags all linker files (GCC and IAR as well to have uniformity) should strictly align to 8-byte boundary --- .../TARGET_LPC11U68/LPC11U68.ld | 56 ++++++------ .../TARGET_LPC11U68/LPC11U68.ld | 56 ++++++------ .../TARGET_LPC11U24_301/LPC11U24.ld | 8 +- .../TARGET_LPC11U24_401/LPC11U24.ld | 8 +- .../TARGET_LPC11U34_421/LPC11U34.ld | 8 +- .../TARGET_LPC11U35_401/LPC11U35.ld | 8 +- .../TARGET_LPC11U35_501/LPC11U35.ld | 8 +- .../TARGET_LPC11U35_Y5_MBUG/LPC11U35.ld | 8 +- .../TARGET_LPC11U37H_401/LPC11U37.ld | 8 +- .../TARGET_LPC11U37_501/LPC11U37.ld | 8 +- .../TARGET_LPCCAPPUCCINO/LPC11U37.ld | 8 +- .../TARGET_OC_MBUINO/LPC11U24.ld | 8 +- .../TARGET_LPC11U24/LPC11U24.ld | 34 ++++---- .../TARGET_LPC11U35_401/LPC11U35.ld | 34 ++++---- .../TARGET_LPC11U35_501/LPC11U35.ld | 34 ++++---- .../TARGET_LPC11U37H_401/LPC11U37.ld | 34 ++++---- .../TARGET_LPC11U37_501/LPC11U37.ld | 34 ++++---- .../device/TOOLCHAIN_GCC_CS/LPC11U24.ld | 12 +-- .../TARGET_LPC11CXX/LPC11C24.ld | 8 +- .../TARGET_LPC11XX/LPC1114.ld | 8 +- .../TARGET_LPC11XX/LPC1114.ld | 26 +++--- .../device/TOOLCHAIN_GCC_ARM/LPC1347.ld | 8 +- .../device/TOOLCHAIN_GCC_ARM/LPC1549.ld | 8 +- .../device/TOOLCHAIN_GCC_CR/LPC1549.ld | 56 ++++++------ .../device/TOOLCHAIN_GCC_ARM/LPC1768.ld | 8 +- .../TARGET_XBED_LPC1768/XBED_LPC1768.ld | 8 +- .../device/TOOLCHAIN_GCC_CR/LPC1768.ld | 38 ++++---- .../device/TOOLCHAIN_GCC_CS/LPC1768.ld | 12 +-- .../device/TOOLCHAIN_GCC_ARM/LPC4088.ld | 8 +- .../device/TOOLCHAIN_GCC_CR/LPC407x_8x.ld | 48 +++++------ .../device/TOOLCHAIN_GCC_ARM/LPC4330.ld | 8 +- .../device/TOOLCHAIN_GCC_CR/LPC43xx.ld | 86 +++++++++---------- .../device/TOOLCHAIN_GCC_ARM/LPC812.ld | 8 +- .../device/TOOLCHAIN_GCC_ARM/LPC810.ld | 8 +- .../device/TOOLCHAIN_GCC_ARM/LPC812.ld | 8 +- .../device/TOOLCHAIN_GCC_ARM/LPC824.ld | 8 +- .../device/TOOLCHAIN_GCC_CR/LPC824.ld | 34 ++++---- .../device/TOOLCHAIN_GCC_ARM/LPC824.ld | 8 +- .../LPC54114J256_cm4_flash.ld | 28 +++--- .../device/TOOLCHAIN_GCC_ARM/LPC54628J512.ld | 20 ++--- .../TOOLCHAIN_GCC_ARM/MIMXRT1052xxxxx.ld | 32 +++---- 41 files changed, 429 insertions(+), 429 deletions(-) diff --git a/targets/TARGET_NXP/TARGET_LPC11U6X/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/LPC11U68.ld b/targets/TARGET_NXP/TARGET_LPC11U6X/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/LPC11U68.ld index 873774403a4..48d17bb9dd5 100644 --- a/targets/TARGET_NXP/TARGET_LPC11U6X/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/LPC11U68.ld +++ b/targets/TARGET_NXP/TARGET_LPC11U6X/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/LPC11U68.ld @@ -30,14 +30,14 @@ SECTIONS { /* MAIN TEXT SECTION */ - .text : ALIGN(4) + .text : ALIGN(8) { FILL(0xff) __vectors_start__ = ABSOLUTE(.) ; KEEP(*(.isr_vector)) /* Global Section Table */ - . = ALIGN(4) ; + . = ALIGN(8) ; __section_table_start = .; __data_section_table = .; LONG(LOADADDR(.data)); @@ -66,18 +66,18 @@ SECTIONS *(.text*) *(.rodata .rodata.*) - . = ALIGN(4); + . = ALIGN(8); /* C++ constructors etc */ - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.init)) - . = ALIGN(4); + . = ALIGN(8); __preinit_array_start = .; KEEP (*(.preinit_array)) __preinit_array_end = .; - . = ALIGN(4); + . = ALIGN(8); __init_array_start = .; KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array)) @@ -102,13 +102,13 @@ SECTIONS * for exception handling/unwind - some Newlib functions (in common * with C++ and STDC++) use this. */ - .ARM.extab : ALIGN(4) + .ARM.extab : ALIGN(8) { *(.ARM.extab* .gnu.linkonce.armextab.*) } > MFlash256 __exidx_start = .; - .ARM.exidx : ALIGN(4) + .ARM.exidx : ALIGN(8) { *(.ARM.exidx* .gnu.linkonce.armexidx.*) } > MFlash256 @@ -124,14 +124,14 @@ SECTIONS } > Ram1_2 /* DATA section for Ram1_2 */ - .data_RAM2 : ALIGN(4) + .data_RAM2 : ALIGN(8) { FILL(0xff) *(.ramfunc.$RAM2) *(.ramfunc.$Ram1_2) *(.data.$RAM2*) *(.data.$Ram1_2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram1_2 AT>MFlash256 /* possible MTB section for Ram2USB_2 */ .mtb_buffer_RAM3 (NOLOAD) : @@ -141,14 +141,14 @@ SECTIONS } > Ram2USB_2 /* DATA section for Ram2USB_2 */ - .data_RAM3 : ALIGN(4) + .data_RAM3 : ALIGN(8) { FILL(0xff) *(.ramfunc.$RAM3) *(.ramfunc.$Ram2USB_2) *(.data.$RAM3*) *(.data.$Ram2USB_2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram2USB_2 AT>MFlash256 /* MAIN DATA SECTION */ @@ -159,74 +159,74 @@ SECTIONS KEEP(*(.mtb*)) } > Ram0_32 - .uninit_RESERVED : ALIGN(4) + .uninit_RESERVED : ALIGN(8) { KEEP(*(.bss.$RESERVED*)) - . = ALIGN(4) ; + . = ALIGN(8) ; _end_uninit_RESERVED = .; } > Ram0_32 /* Main DATA section (Ram0_32) */ - .data : ALIGN(4) + .data : ALIGN(8) { FILL(0xff) _data = . ; *(vtable) *(.ramfunc*) *(.data*) - . = ALIGN(4) ; + . = ALIGN(8) ; _edata = . ; } > Ram0_32 AT>MFlash256 /* BSS section for Ram1_2 */ - .bss_RAM2 : ALIGN(4) + .bss_RAM2 : ALIGN(8) { *(.bss.$RAM2*) *(.bss.$Ram1_2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram1_2 /* BSS section for Ram2USB_2 */ - .bss_RAM3 : ALIGN(4) + .bss_RAM3 : ALIGN(8) { *(.bss.$RAM3*) *(.bss.$Ram2USB_2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram2USB_2 /* MAIN BSS SECTION */ - .bss : ALIGN(4) + .bss : ALIGN(8) { _bss = .; *(.bss*) *(COMMON) - . = ALIGN(4) ; + . = ALIGN(8) ; _ebss = .; PROVIDE(end = .); __end__ = .; } > Ram0_32 /* NOINIT section for Ram1_2 */ - .noinit_RAM2 (NOLOAD) : ALIGN(4) + .noinit_RAM2 (NOLOAD) : ALIGN(8) { *(.noinit.$RAM2*) *(.noinit.$Ram1_2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram1_2 /* NOINIT section for Ram2USB_2 */ - .noinit_RAM3 (NOLOAD) : ALIGN(4) + .noinit_RAM3 (NOLOAD) : ALIGN(8) { *(.noinit.$RAM3*) *(.noinit.$Ram2USB_2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram2USB_2 /* DEFAULT NOINIT SECTION */ - .noinit (NOLOAD): ALIGN(4) + .noinit (NOLOAD): ALIGN(8) { _noinit = .; *(.noinit*) - . = ALIGN(4) ; + . = ALIGN(8) ; _end_noinit = .; } > Ram0_32 diff --git a/targets/TARGET_NXP/TARGET_LPC11U6X/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/LPC11U68.ld b/targets/TARGET_NXP/TARGET_LPC11U6X/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/LPC11U68.ld index a1b642df3ba..fc2e2026842 100644 --- a/targets/TARGET_NXP/TARGET_LPC11U6X/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/LPC11U68.ld +++ b/targets/TARGET_NXP/TARGET_LPC11U6X/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/LPC11U68.ld @@ -31,7 +31,7 @@ SECTIONS { /* MAIN TEXT SECTION */ - .text : ALIGN(4) + .text : ALIGN(8) { FILL(0xff) KEEP(*(.isr_vector)) @@ -39,7 +39,7 @@ SECTIONS *(.text.SystemInit) /* Global Section Table */ - . = ALIGN(4) ; + . = ALIGN(8) ; __section_table_start = .; __data_section_table = .; LONG(LOADADDR(.data)); @@ -68,18 +68,18 @@ SECTIONS *(.text*) *(.rodata .rodata.*) - . = ALIGN(4); + . = ALIGN(8); /* C++ constructors etc */ - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.init)) - . = ALIGN(4); + . = ALIGN(8); __preinit_array_start = .; KEEP (*(.preinit_array)) __preinit_array_end = .; - . = ALIGN(4); + . = ALIGN(8); __init_array_start = .; KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array)) @@ -104,13 +104,13 @@ SECTIONS * for exception handling/unwind - some Newlib functions (in common * with C++ and STDC++) use this. */ - .ARM.extab : ALIGN(4) + .ARM.extab : ALIGN(8) { *(.ARM.extab* .gnu.linkonce.armextab.*) } > MFlash256 __exidx_start = .; - .ARM.exidx : ALIGN(4) + .ARM.exidx : ALIGN(8) { *(.ARM.exidx* .gnu.linkonce.armexidx.*) } > MFlash256 @@ -126,14 +126,14 @@ SECTIONS } > Ram1_2 /* DATA section for Ram1_2 */ - .data_RAM2 : ALIGN(4) + .data_RAM2 : ALIGN(8) { FILL(0xff) *(.ramfunc.$RAM2) *(.ramfunc.$Ram1_2) *(.data.$RAM2*) *(.data.$Ram1_2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram1_2 AT>MFlash256 /* possible MTB section for Ram2USB_2 */ .mtb_buffer_RAM3 (NOLOAD) : @@ -143,14 +143,14 @@ SECTIONS } > Ram2USB_2 /* DATA section for Ram2USB_2 */ - .data_RAM3 : ALIGN(4) + .data_RAM3 : ALIGN(8) { FILL(0xff) *(.ramfunc.$RAM3) *(.ramfunc.$Ram2USB_2) *(.data.$RAM3*) *(.data.$Ram2USB_2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram2USB_2 AT>MFlash256 /* MAIN DATA SECTION */ @@ -161,74 +161,74 @@ SECTIONS KEEP(*(.mtb*)) } > Ram0_32 - .uninit_RESERVED : ALIGN(4) + .uninit_RESERVED : ALIGN(8) { KEEP(*(.bss.$RESERVED*)) - . = ALIGN(4) ; + . = ALIGN(8) ; _end_uninit_RESERVED = .; } > Ram0_32 /* Main DATA section (Ram0_32) */ - .data : ALIGN(4) + .data : ALIGN(8) { FILL(0xff) _data = . ; *(vtable) *(.ramfunc*) *(.data*) - . = ALIGN(4) ; + . = ALIGN(8) ; _edata = . ; } > Ram0_32 AT>MFlash256 /* BSS section for Ram1_2 */ - .bss_RAM2 : ALIGN(4) + .bss_RAM2 : ALIGN(8) { *(.bss.$RAM2*) *(.bss.$Ram1_2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram1_2 /* BSS section for Ram2USB_2 */ - .bss_RAM3 : ALIGN(4) + .bss_RAM3 : ALIGN(8) { *(.bss.$RAM3*) *(.bss.$Ram2USB_2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram2USB_2 /* MAIN BSS SECTION */ - .bss : ALIGN(4) + .bss : ALIGN(8) { _bss = .; *(.bss*) *(COMMON) - . = ALIGN(4) ; + . = ALIGN(8) ; _ebss = .; PROVIDE(end = .); __end__ = .; } > Ram0_32 /* NOINIT section for Ram1_2 */ - .noinit_RAM2 (NOLOAD) : ALIGN(4) + .noinit_RAM2 (NOLOAD) : ALIGN(8) { *(.noinit.$RAM2*) *(.noinit.$Ram1_2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram1_2 /* NOINIT section for Ram2USB_2 */ - .noinit_RAM3 (NOLOAD) : ALIGN(4) + .noinit_RAM3 (NOLOAD) : ALIGN(8) { *(.noinit.$RAM3*) *(.noinit.$Ram2USB_2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram2USB_2 /* DEFAULT NOINIT SECTION */ - .noinit (NOLOAD): ALIGN(4) + .noinit (NOLOAD): ALIGN(8) { _noinit = .; *(.noinit*) - . = ALIGN(4) ; + . = ALIGN(8) ; _end_noinit = .; } > Ram0_32 diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_301/LPC11U24.ld b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_301/LPC11U24.ld index 159019e2672..4163579f64e 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_301/LPC11U24.ld +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_301/LPC11U24.ld @@ -92,13 +92,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -106,14 +106,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_401/LPC11U24.ld b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_401/LPC11U24.ld index 52168576b9e..83bfca86c9a 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_401/LPC11U24.ld +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_401/LPC11U24.ld @@ -92,13 +92,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -106,14 +106,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U34_421/LPC11U34.ld b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U34_421/LPC11U34.ld index be3ac7861fe..f320538ab77 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U34_421/LPC11U34.ld +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U34_421/LPC11U34.ld @@ -89,13 +89,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -103,14 +103,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_401/LPC11U35.ld b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_401/LPC11U35.ld index a1a87cd4a8e..6788470eee3 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_401/LPC11U35.ld +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_401/LPC11U35.ld @@ -89,13 +89,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -103,14 +103,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_501/LPC11U35.ld b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_501/LPC11U35.ld index a1a87cd4a8e..6788470eee3 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_501/LPC11U35.ld +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_501/LPC11U35.ld @@ -89,13 +89,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -103,14 +103,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_Y5_MBUG/LPC11U35.ld b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_Y5_MBUG/LPC11U35.ld index a1a87cd4a8e..6788470eee3 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_Y5_MBUG/LPC11U35.ld +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_Y5_MBUG/LPC11U35.ld @@ -89,13 +89,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -103,14 +103,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U37H_401/LPC11U37.ld b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U37H_401/LPC11U37.ld index 463c4287db7..24de61af486 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U37H_401/LPC11U37.ld +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U37H_401/LPC11U37.ld @@ -90,13 +90,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -104,14 +104,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U37_501/LPC11U37.ld b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U37_501/LPC11U37.ld index c2f8e6fe594..22b881e017e 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U37_501/LPC11U37.ld +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U37_501/LPC11U37.ld @@ -89,13 +89,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -103,14 +103,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPCCAPPUCCINO/LPC11U37.ld b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPCCAPPUCCINO/LPC11U37.ld index c2f8e6fe594..22b881e017e 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPCCAPPUCCINO/LPC11U37.ld +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPCCAPPUCCINO/LPC11U37.ld @@ -89,13 +89,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -103,14 +103,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_OC_MBUINO/LPC11U24.ld b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_OC_MBUINO/LPC11U24.ld index 159019e2672..4163579f64e 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_OC_MBUINO/LPC11U24.ld +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_ARM/TARGET_OC_MBUINO/LPC11U24.ld @@ -92,13 +92,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -106,14 +106,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U24/LPC11U24.ld b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U24/LPC11U24.ld index 7a885a65e5d..8ce692ef178 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U24/LPC11U24.ld +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U24/LPC11U24.ld @@ -21,13 +21,13 @@ SECTIONS { /* MAIN TEXT SECTION */ - .text : ALIGN(4) + .text : ALIGN(8) { FILL(0xff) KEEP(*(.isr_vector)) /* Global Section Table */ - . = ALIGN(4) ; + . = ALIGN(8) ; __section_table_start = .; __data_section_table = .; LONG(LOADADDR(.data)); @@ -51,18 +51,18 @@ SECTIONS *(.text*) *(.rodata .rodata.*) - . = ALIGN(4); + . = ALIGN(8); /* C++ constructors etc */ - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.init)) - . = ALIGN(4); + . = ALIGN(8); __preinit_array_start = .; KEEP (*(.preinit_array)) __preinit_array_end = .; - . = ALIGN(4); + . = ALIGN(8); __init_array_start = .; KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array)) @@ -88,13 +88,13 @@ SECTIONS * for exception handling/unwind - some Newlib functions (in common * with C++ and STDC++) use this. */ - .ARM.extab : ALIGN(4) + .ARM.extab : ALIGN(8) { *(.ARM.extab* .gnu.linkonce.armextab.*) } > MFlash32 __exidx_start = .; - .ARM.exidx : ALIGN(4) + .ARM.exidx : ALIGN(8) { *(.ARM.exidx* .gnu.linkonce.armexidx.*) } > MFlash32 @@ -103,46 +103,46 @@ SECTIONS _etext = .; - .data_RAM2 : ALIGN(4) + .data_RAM2 : ALIGN(8) { FILL(0xff) *(.data.$RAM2*) *(.data.$RamUsb2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamUsb2 AT>MFlash32 /* MAIN DATA SECTION */ - .uninit_RESERVED : ALIGN(4) + .uninit_RESERVED : ALIGN(8) { KEEP(*(.bss.$RESERVED*)) } > RamLoc8 - .data : ALIGN(4) + .data : ALIGN(8) { FILL(0xff) _data = .; *(vtable) *(.data*) - . = ALIGN(4) ; + . = ALIGN(8) ; _edata = .; } > RamLoc8 AT>MFlash32 - .bss_RAM2 : ALIGN(4) + .bss_RAM2 : ALIGN(8) { *(.bss.$RAM2*) *(.bss.$RamUsb2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamUsb2 /* MAIN BSS SECTION */ - .bss : ALIGN(4) + .bss : ALIGN(8) { _bss = .; *(.bss*) *(COMMON) - . = ALIGN(4) ; + . = ALIGN(8) ; _ebss = .; PROVIDE(end = .); __end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U35_401/LPC11U35.ld b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U35_401/LPC11U35.ld index 2eaa866a343..c5d2784938d 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U35_401/LPC11U35.ld +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U35_401/LPC11U35.ld @@ -21,7 +21,7 @@ SECTIONS { /* MAIN TEXT SECTION */ - .text : ALIGN(4) + .text : ALIGN(8) { FILL(0xff) KEEP(*(.isr_vector)) @@ -29,7 +29,7 @@ SECTIONS . = 0x200; /* Global Section Table */ - . = ALIGN(4) ; + . = ALIGN(8) ; __section_table_start = .; __data_section_table = .; LONG(LOADADDR(.data)); @@ -53,18 +53,18 @@ SECTIONS *(.text*) *(.rodata .rodata.*) - . = ALIGN(4); + . = ALIGN(8); /* C++ constructors etc */ - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.init)) - . = ALIGN(4); + . = ALIGN(8); __preinit_array_start = .; KEEP (*(.preinit_array)) __preinit_array_end = .; - . = ALIGN(4); + . = ALIGN(8); __init_array_start = .; KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array)) @@ -90,13 +90,13 @@ SECTIONS * for exception handling/unwind - some Newlib functions (in common * with C++ and STDC++) use this. */ - .ARM.extab : ALIGN(4) + .ARM.extab : ALIGN(8) { *(.ARM.extab* .gnu.linkonce.armextab.*) } > MFlash32 __exidx_start = .; - .ARM.exidx : ALIGN(4) + .ARM.exidx : ALIGN(8) { *(.ARM.exidx* .gnu.linkonce.armexidx.*) } > MFlash32 @@ -105,46 +105,46 @@ SECTIONS _etext = .; - .data_RAM2 : ALIGN(4) + .data_RAM2 : ALIGN(8) { FILL(0xff) *(.data.$RAM2*) *(.data.$RamUsb2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamUsb2 AT>MFlash32 /* MAIN DATA SECTION */ - .uninit_RESERVED : ALIGN(4) + .uninit_RESERVED : ALIGN(8) { KEEP(*(.bss.$RESERVED*)) } > RamLoc8 - .data : ALIGN(4) + .data : ALIGN(8) { FILL(0xff) _data = .; *(vtable) *(.data*) - . = ALIGN(4) ; + . = ALIGN(8) ; _edata = .; } > RamLoc8 AT>MFlash32 - .bss_RAM2 : ALIGN(4) + .bss_RAM2 : ALIGN(8) { *(.bss.$RAM2*) *(.bss.$RamUsb2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamUsb2 /* MAIN BSS SECTION */ - .bss : ALIGN(4) + .bss : ALIGN(8) { _bss = .; *(.bss*) *(COMMON) - . = ALIGN(4) ; + . = ALIGN(8) ; _ebss = .; PROVIDE(end = .); __end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U35_501/LPC11U35.ld b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U35_501/LPC11U35.ld index 2eaa866a343..c5d2784938d 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U35_501/LPC11U35.ld +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U35_501/LPC11U35.ld @@ -21,7 +21,7 @@ SECTIONS { /* MAIN TEXT SECTION */ - .text : ALIGN(4) + .text : ALIGN(8) { FILL(0xff) KEEP(*(.isr_vector)) @@ -29,7 +29,7 @@ SECTIONS . = 0x200; /* Global Section Table */ - . = ALIGN(4) ; + . = ALIGN(8) ; __section_table_start = .; __data_section_table = .; LONG(LOADADDR(.data)); @@ -53,18 +53,18 @@ SECTIONS *(.text*) *(.rodata .rodata.*) - . = ALIGN(4); + . = ALIGN(8); /* C++ constructors etc */ - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.init)) - . = ALIGN(4); + . = ALIGN(8); __preinit_array_start = .; KEEP (*(.preinit_array)) __preinit_array_end = .; - . = ALIGN(4); + . = ALIGN(8); __init_array_start = .; KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array)) @@ -90,13 +90,13 @@ SECTIONS * for exception handling/unwind - some Newlib functions (in common * with C++ and STDC++) use this. */ - .ARM.extab : ALIGN(4) + .ARM.extab : ALIGN(8) { *(.ARM.extab* .gnu.linkonce.armextab.*) } > MFlash32 __exidx_start = .; - .ARM.exidx : ALIGN(4) + .ARM.exidx : ALIGN(8) { *(.ARM.exidx* .gnu.linkonce.armexidx.*) } > MFlash32 @@ -105,46 +105,46 @@ SECTIONS _etext = .; - .data_RAM2 : ALIGN(4) + .data_RAM2 : ALIGN(8) { FILL(0xff) *(.data.$RAM2*) *(.data.$RamUsb2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamUsb2 AT>MFlash32 /* MAIN DATA SECTION */ - .uninit_RESERVED : ALIGN(4) + .uninit_RESERVED : ALIGN(8) { KEEP(*(.bss.$RESERVED*)) } > RamLoc8 - .data : ALIGN(4) + .data : ALIGN(8) { FILL(0xff) _data = .; *(vtable) *(.data*) - . = ALIGN(4) ; + . = ALIGN(8) ; _edata = .; } > RamLoc8 AT>MFlash32 - .bss_RAM2 : ALIGN(4) + .bss_RAM2 : ALIGN(8) { *(.bss.$RAM2*) *(.bss.$RamUsb2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamUsb2 /* MAIN BSS SECTION */ - .bss : ALIGN(4) + .bss : ALIGN(8) { _bss = .; *(.bss*) *(COMMON) - . = ALIGN(4) ; + . = ALIGN(8) ; _ebss = .; PROVIDE(end = .); __end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U37H_401/LPC11U37.ld b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U37H_401/LPC11U37.ld index 55ee248fa5b..fdfcefa287a 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U37H_401/LPC11U37.ld +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U37H_401/LPC11U37.ld @@ -23,7 +23,7 @@ SECTIONS { /* MAIN TEXT SECTION */ - .text : ALIGN(4) + .text : ALIGN(8) { FILL(0xff) KEEP(*(.isr_vector)) @@ -31,7 +31,7 @@ SECTIONS . = 0x200; /* Global Section Table */ - . = ALIGN(4) ; + . = ALIGN(8) ; __section_table_start = .; __data_section_table = .; LONG(LOADADDR(.data)); @@ -55,18 +55,18 @@ SECTIONS *(.text*) *(.rodata .rodata.*) - . = ALIGN(4); + . = ALIGN(8); /* C++ constructors etc */ - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.init)) - . = ALIGN(4); + . = ALIGN(8); __preinit_array_start = .; KEEP (*(.preinit_array)) __preinit_array_end = .; - . = ALIGN(4); + . = ALIGN(8); __init_array_start = .; KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array)) @@ -92,13 +92,13 @@ SECTIONS * for exception handling/unwind - some Newlib functions (in common * with C++ and STDC++) use this. */ - .ARM.extab : ALIGN(4) + .ARM.extab : ALIGN(8) { *(.ARM.extab* .gnu.linkonce.armextab.*) } > MFlash32 __exidx_start = .; - .ARM.exidx : ALIGN(4) + .ARM.exidx : ALIGN(8) { *(.ARM.exidx* .gnu.linkonce.armexidx.*) } > MFlash32 @@ -107,46 +107,46 @@ SECTIONS _etext = .; - .data_RAM2 : ALIGN(4) + .data_RAM2 : ALIGN(8) { FILL(0xff) *(.data.$RAM2*) *(.data.$RamUsb2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamUsb2 AT>MFlash32 /* MAIN DATA SECTION */ - .uninit_RESERVED : ALIGN(4) + .uninit_RESERVED : ALIGN(8) { KEEP(*(.bss.$RESERVED*)) } > RamLoc8 - .data : ALIGN(4) + .data : ALIGN(8) { FILL(0xff) _data = .; *(vtable) *(.data*) - . = ALIGN(4) ; + . = ALIGN(8) ; _edata = .; } > RamLoc8 AT>MFlash32 - .bss_RAM2 : ALIGN(4) + .bss_RAM2 : ALIGN(8) { *(.bss.$RAM2*) *(.bss.$RamUsb2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamUsb2 /* MAIN BSS SECTION */ - .bss : ALIGN(4) + .bss : ALIGN(8) { _bss = .; *(.bss*) *(COMMON) - . = ALIGN(4) ; + . = ALIGN(8) ; _ebss = .; PROVIDE(end = .); __end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U37_501/LPC11U37.ld b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U37_501/LPC11U37.ld index 44b0354e882..ceb3822b516 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U37_501/LPC11U37.ld +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11U37_501/LPC11U37.ld @@ -21,7 +21,7 @@ SECTIONS { /* MAIN TEXT SECTION */ - .text : ALIGN(4) + .text : ALIGN(8) { FILL(0xff) KEEP(*(.isr_vector)) @@ -29,7 +29,7 @@ SECTIONS . = 0x200; /* Global Section Table */ - . = ALIGN(4) ; + . = ALIGN(8) ; __section_table_start = .; __data_section_table = .; LONG(LOADADDR(.data)); @@ -53,18 +53,18 @@ SECTIONS *(.text*) *(.rodata .rodata.*) - . = ALIGN(4); + . = ALIGN(8); /* C++ constructors etc */ - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.init)) - . = ALIGN(4); + . = ALIGN(8); __preinit_array_start = .; KEEP (*(.preinit_array)) __preinit_array_end = .; - . = ALIGN(4); + . = ALIGN(8); __init_array_start = .; KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array)) @@ -90,13 +90,13 @@ SECTIONS * for exception handling/unwind - some Newlib functions (in common * with C++ and STDC++) use this. */ - .ARM.extab : ALIGN(4) + .ARM.extab : ALIGN(8) { *(.ARM.extab* .gnu.linkonce.armextab.*) } > MFlash32 __exidx_start = .; - .ARM.exidx : ALIGN(4) + .ARM.exidx : ALIGN(8) { *(.ARM.exidx* .gnu.linkonce.armexidx.*) } > MFlash32 @@ -105,46 +105,46 @@ SECTIONS _etext = .; - .data_RAM2 : ALIGN(4) + .data_RAM2 : ALIGN(8) { FILL(0xff) *(.data.$RAM2*) *(.data.$RamUsb2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamUsb2 AT>MFlash32 /* MAIN DATA SECTION */ - .uninit_RESERVED : ALIGN(4) + .uninit_RESERVED : ALIGN(8) { KEEP(*(.bss.$RESERVED*)) } > RamLoc8 - .data : ALIGN(4) + .data : ALIGN(8) { FILL(0xff) _data = .; *(vtable) *(.data*) - . = ALIGN(4) ; + . = ALIGN(8) ; _edata = .; } > RamLoc8 AT>MFlash32 - .bss_RAM2 : ALIGN(4) + .bss_RAM2 : ALIGN(8) { *(.bss.$RAM2*) *(.bss.$RamUsb2*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamUsb2 /* MAIN BSS SECTION */ - .bss : ALIGN(4) + .bss : ALIGN(8) { _bss = .; *(.bss*) *(COMMON) - . = ALIGN(4) ; + . = ALIGN(8) ; _ebss = .; PROVIDE(end = .); __end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CS/LPC11U24.ld b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CS/LPC11U24.ld index 6cbc461f793..78639094acb 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CS/LPC11U24.ld +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/device/TOOLCHAIN_GCC_CS/LPC11U24.ld @@ -75,15 +75,15 @@ SECTIONS *(.eh_frame_hdr) *(.eh_frame) - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.init)) - . = ALIGN(4); + . = ALIGN(8); __preinit_array_start = .; KEEP (*(.preinit_array)) __preinit_array_end = .; - . = ALIGN(4); + . = ALIGN(8); __init_array_start = .; KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array)) @@ -95,10 +95,10 @@ SECTIONS KEEP (*(SORT(.ctors.*))) KEEP (*crtend.o(.ctors)) - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.fini)) - . = ALIGN(4); + . = ALIGN(8); __fini_array_start = .; KEEP (*(.fini_array)) KEEP (*(SORT(.fini_array.*))) @@ -109,7 +109,7 @@ SECTIONS KEEP (*(SORT(.dtors.*))) KEEP (*crtend.o(.dtors)) - . = ALIGN(4); + . = ALIGN(8); __cs3_regions = .; LONG (0) LONG (__cs3_region_init_ram) diff --git a/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11CXX/LPC11C24.ld b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11CXX/LPC11C24.ld index e5b873ddd40..1019dc14848 100644 --- a/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11CXX/LPC11C24.ld +++ b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11CXX/LPC11C24.ld @@ -87,13 +87,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -101,14 +101,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11XX/LPC1114.ld b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11XX/LPC1114.ld index dd2e65da501..daec21b7732 100644 --- a/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11XX/LPC1114.ld +++ b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11XX/LPC1114.ld @@ -87,13 +87,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -101,14 +101,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11XX/LPC1114.ld b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11XX/LPC1114.ld index 89576a6a22d..7e026894627 100644 --- a/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11XX/LPC1114.ld +++ b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/device/TOOLCHAIN_GCC_CR/TARGET_LPC11XX/LPC1114.ld @@ -19,7 +19,7 @@ SECTIONS { /* MAIN TEXT SECTION */ - .text : ALIGN(4) + .text : ALIGN(8) { FILL(0xff) KEEP(*(.isr_vector)) @@ -28,7 +28,7 @@ SECTIONS . = 0x200; /* Global Section Table */ - . = ALIGN(4) ; + . = ALIGN(8) ; __section_table_start = .; __data_section_table = .; LONG(LOADADDR(.data)); @@ -47,18 +47,18 @@ SECTIONS *(.text*) *(.rodata .rodata.*) - . = ALIGN(4); + . = ALIGN(8); /* C++ constructors etc */ - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.init)) - . = ALIGN(4); + . = ALIGN(8); __preinit_array_start = .; KEEP (*(.preinit_array)) __preinit_array_end = .; - . = ALIGN(4); + . = ALIGN(8); __init_array_start = .; KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array)) @@ -84,13 +84,13 @@ SECTIONS * for exception handling/unwind - some Newlib functions (in common * with C++ and STDC++) use this. */ - .ARM.extab : ALIGN(4) + .ARM.extab : ALIGN(8) { *(.ARM.extab* .gnu.linkonce.armextab.*) } > MFlash32 __exidx_start = .; - .ARM.exidx : ALIGN(4) + .ARM.exidx : ALIGN(8) { *(.ARM.exidx* .gnu.linkonce.armexidx.*) } > MFlash32 @@ -102,30 +102,30 @@ SECTIONS /* MAIN DATA SECTION */ - .uninit_RESERVED : ALIGN(4) + .uninit_RESERVED : ALIGN(8) { KEEP(*(.bss.$RESERVED*)) } > RamLoc8 - .data : ALIGN(4) + .data : ALIGN(8) { FILL(0xff) _data = .; *(vtable) *(.data*) - . = ALIGN(4) ; + . = ALIGN(8) ; _edata = .; } > RamLoc8 AT>MFlash32 /* MAIN BSS SECTION */ - .bss : ALIGN(4) + .bss : ALIGN(8) { _bss = .; *(.bss*) *(COMMON) - . = ALIGN(4) ; + . = ALIGN(8) ; _ebss = .; PROVIDE(end = .); __end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC13XX/device/TOOLCHAIN_GCC_ARM/LPC1347.ld b/targets/TARGET_NXP/TARGET_LPC13XX/device/TOOLCHAIN_GCC_ARM/LPC1347.ld index 026266613c1..49b3149bdca 100644 --- a/targets/TARGET_NXP/TARGET_LPC13XX/device/TOOLCHAIN_GCC_ARM/LPC1347.ld +++ b/targets/TARGET_NXP/TARGET_LPC13XX/device/TOOLCHAIN_GCC_ARM/LPC1347.ld @@ -87,13 +87,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -101,14 +101,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC15XX/device/TOOLCHAIN_GCC_ARM/LPC1549.ld b/targets/TARGET_NXP/TARGET_LPC15XX/device/TOOLCHAIN_GCC_ARM/LPC1549.ld index 7358b9da433..aaf665bff07 100644 --- a/targets/TARGET_NXP/TARGET_LPC15XX/device/TOOLCHAIN_GCC_ARM/LPC1549.ld +++ b/targets/TARGET_NXP/TARGET_LPC15XX/device/TOOLCHAIN_GCC_ARM/LPC1549.ld @@ -89,13 +89,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -103,14 +103,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC15XX/device/TOOLCHAIN_GCC_CR/LPC1549.ld b/targets/TARGET_NXP/TARGET_LPC15XX/device/TOOLCHAIN_GCC_CR/LPC1549.ld index 92fe9deb12c..0e048946743 100644 --- a/targets/TARGET_NXP/TARGET_LPC15XX/device/TOOLCHAIN_GCC_CR/LPC1549.ld +++ b/targets/TARGET_NXP/TARGET_LPC15XX/device/TOOLCHAIN_GCC_CR/LPC1549.ld @@ -31,13 +31,13 @@ SECTIONS { /* MAIN TEXT SECTION */ - .text : ALIGN(4) + .text : ALIGN(8) { FILL(0xff) KEEP(*(.isr_vector)) /* Global Section Table */ - . = ALIGN(4) ; + . = ALIGN(8) ; __section_table_start = .; __data_section_table = .; LONG(LOADADDR(.data)); @@ -66,18 +66,18 @@ SECTIONS *(.text*) *(.rodata .rodata.*) - . = ALIGN(4); + . = ALIGN(8); /* C++ constructors etc */ - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.init)) - . = ALIGN(4); + . = ALIGN(8); __preinit_array_start = .; KEEP (*(.preinit_array)) __preinit_array_end = .; - . = ALIGN(4); + . = ALIGN(8); __init_array_start = .; KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array)) @@ -102,13 +102,13 @@ SECTIONS * for exception handling/unwind - some Newlib functions (in common * with C++ and STDC++) use this. */ - .ARM.extab : ALIGN(4) + .ARM.extab : ALIGN(8) { *(.ARM.extab* .gnu.linkonce.armextab.*) } > MFlash256 __exidx_start = .; - .ARM.exidx : ALIGN(4) + .ARM.exidx : ALIGN(8) { *(.ARM.exidx* .gnu.linkonce.armexidx.*) } > MFlash256 @@ -117,95 +117,95 @@ SECTIONS _etext = .; /* DATA section for Ram1_16 */ - .data_RAM2 : ALIGN(4) + .data_RAM2 : ALIGN(8) { FILL(0xff) *(.ramfunc.$RAM2) *(.ramfunc.$Ram1_16) *(.data.$RAM2*) *(.data.$Ram1_16*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram1_16 AT>MFlash256 /* DATA section for Ram2_4 */ - .data_RAM3 : ALIGN(4) + .data_RAM3 : ALIGN(8) { FILL(0xff) *(.ramfunc.$RAM3) *(.ramfunc.$Ram2_4) *(.data.$RAM3*) *(.data.$Ram2_4*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram2_4 AT>MFlash256 /* MAIN DATA SECTION */ - .uninit_RESERVED : ALIGN(4) + .uninit_RESERVED : ALIGN(8) { KEEP(*(.bss.$RESERVED*)) - . = ALIGN(4) ; + . = ALIGN(8) ; _end_uninit_RESERVED = .; } > Ram0_16 /* Main DATA section (Ram0_16) */ - .data : ALIGN(4) + .data : ALIGN(8) { FILL(0xff) _data = . ; *(vtable) *(.ramfunc*) *(.data*) - . = ALIGN(4) ; + . = ALIGN(8) ; _edata = . ; } > Ram0_16 AT>MFlash256 /* BSS section for Ram1_16 */ - .bss_RAM2 : ALIGN(4) + .bss_RAM2 : ALIGN(8) { *(.bss.$RAM2*) *(.bss.$Ram1_16*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram1_16 /* BSS section for Ram2_4 */ - .bss_RAM3 : ALIGN(4) + .bss_RAM3 : ALIGN(8) { *(.bss.$RAM3*) *(.bss.$Ram2_4*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram2_4 /* MAIN BSS SECTION */ - .bss : ALIGN(4) + .bss : ALIGN(8) { _bss = .; *(.bss*) *(COMMON) - . = ALIGN(4) ; + . = ALIGN(8) ; _ebss = .; PROVIDE(end = .); __end__ = .; } > Ram0_16 /* NOINIT section for Ram1_16 */ - .noinit_RAM2 (NOLOAD) : ALIGN(4) + .noinit_RAM2 (NOLOAD) : ALIGN(8) { *(.noinit.$RAM2*) *(.noinit.$Ram1_16*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram1_16 /* NOINIT section for Ram2_4 */ - .noinit_RAM3 (NOLOAD) : ALIGN(4) + .noinit_RAM3 (NOLOAD) : ALIGN(8) { *(.noinit.$RAM3*) *(.noinit.$Ram2_4*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > Ram2_4 /* DEFAULT NOINIT SECTION */ - .noinit (NOLOAD): ALIGN(4) + .noinit (NOLOAD): ALIGN(8) { _noinit = .; *(.noinit*) - . = ALIGN(4) ; + . = ALIGN(8) ; _end_noinit = .; } > Ram0_16 diff --git a/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_ARM/LPC1768.ld b/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_ARM/LPC1768.ld index a4a05fcbfb9..d7fd60e8413 100644 --- a/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_ARM/LPC1768.ld +++ b/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_ARM/LPC1768.ld @@ -100,13 +100,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -114,14 +114,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_ARM/TARGET_XBED_LPC1768/XBED_LPC1768.ld b/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_ARM/TARGET_XBED_LPC1768/XBED_LPC1768.ld index 247bc920252..2fc036a2f55 100644 --- a/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_ARM/TARGET_XBED_LPC1768/XBED_LPC1768.ld +++ b/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_ARM/TARGET_XBED_LPC1768/XBED_LPC1768.ld @@ -88,13 +88,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -102,14 +102,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_CR/LPC1768.ld b/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_CR/LPC1768.ld index f5f0d93ef1a..b7b1a114726 100644 --- a/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_CR/LPC1768.ld +++ b/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_CR/LPC1768.ld @@ -23,13 +23,13 @@ SECTIONS { /* MAIN TEXT SECTION */ - .text : ALIGN(4) + .text : ALIGN(8) { FILL(0xff) KEEP(*(.isr_vector)) /* Global Section Table */ - . = ALIGN(4) ; + . = ALIGN(8) ; __section_table_start = .; __data_section_table = .; LONG(LOADADDR(.data)); @@ -53,18 +53,18 @@ SECTIONS *(.text*) *(.rodata .rodata.*) - . = ALIGN(4); + . = ALIGN(8); /* C++ constructors etc */ - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.init)) - . = ALIGN(4); + . = ALIGN(8); __preinit_array_start = .; KEEP (*(.preinit_array)) __preinit_array_end = .; - . = ALIGN(4); + . = ALIGN(8); __init_array_start = .; KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array)) @@ -90,13 +90,13 @@ SECTIONS * for exception handling/unwind - some Newlib functions (in common * with C++ and STDC++) use this. */ - .ARM.extab : ALIGN(4) + .ARM.extab : ALIGN(8) { *(.ARM.extab* .gnu.linkonce.armextab.*) } > MFlash512 __exidx_start = .; - .ARM.exidx : ALIGN(4) + .ARM.exidx : ALIGN(8) { *(.ARM.exidx* .gnu.linkonce.armexidx.*) } > MFlash512 @@ -105,52 +105,52 @@ SECTIONS _etext = .; - .data_RAM2 : ALIGN(4) + .data_RAM2 : ALIGN(8) { FILL(0xff) *(.data.$RAM2*) *(.data.$RamAHB32*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamAHB_USB AT>MFlash512 /* MAIN DATA SECTION */ - .uninit_RESERVED(NOLOAD) : ALIGN(4) + .uninit_RESERVED(NOLOAD) : ALIGN(8) { KEEP(*(.bss.$RESERVED*)) } > RamLoc32 - .data : ALIGN(4) + .data : ALIGN(8) { FILL(0xff) _data = .; *(vtable) *(.data*) - . = ALIGN(4) ; + . = ALIGN(8) ; _edata = .; } > RamLoc32 AT>MFlash512 - .bss_RAM2(NOLOAD) : ALIGN(4) + .bss_RAM2(NOLOAD) : ALIGN(8) { *(.bss.$RAM2*) *(.bss.$RamAHB32*) *(AHBSRAM0) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamAHB_USB - .bss_RAM3(NOLOAD) : ALIGN(4) + .bss_RAM3(NOLOAD) : ALIGN(8) { *(AHBSRAM1) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamAHB_Eth /* MAIN BSS SECTION */ - .bss(NOLOAD) : ALIGN(4) + .bss(NOLOAD) : ALIGN(8) { _bss = .; *(.bss*) *(COMMON) - . = ALIGN(4) ; + . = ALIGN(8) ; _ebss = .; PROVIDE(end = .); __end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_CS/LPC1768.ld b/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_CS/LPC1768.ld index e16eb3caf99..9110839ccd8 100644 --- a/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_CS/LPC1768.ld +++ b/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_CS/LPC1768.ld @@ -76,15 +76,15 @@ SECTIONS *(.eh_frame_hdr) *(.eh_frame) - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.init)) - . = ALIGN(4); + . = ALIGN(8); __preinit_array_start = .; KEEP (*(.preinit_array)) __preinit_array_end = .; - . = ALIGN(4); + . = ALIGN(8); __init_array_start = .; KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array)) @@ -96,10 +96,10 @@ SECTIONS KEEP (*(SORT(.ctors.*))) KEEP (*crtend.o(.ctors)) - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.fini)) - . = ALIGN(4); + . = ALIGN(8); __fini_array_start = .; KEEP (*(.fini_array)) KEEP (*(SORT(.fini_array.*))) @@ -110,7 +110,7 @@ SECTIONS KEEP (*(SORT(.dtors.*))) KEEP (*crtend.o(.dtors)) - . = ALIGN(4); + . = ALIGN(8); __cs3_regions = .; LONG (0) LONG (__cs3_region_init_ram) diff --git a/targets/TARGET_NXP/TARGET_LPC408X/device/TOOLCHAIN_GCC_ARM/LPC4088.ld b/targets/TARGET_NXP/TARGET_LPC408X/device/TOOLCHAIN_GCC_ARM/LPC4088.ld index 226e6baf46a..02cb7fc7e16 100644 --- a/targets/TARGET_NXP/TARGET_LPC408X/device/TOOLCHAIN_GCC_ARM/LPC4088.ld +++ b/targets/TARGET_NXP/TARGET_LPC408X/device/TOOLCHAIN_GCC_ARM/LPC4088.ld @@ -88,13 +88,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -102,14 +102,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC408X/device/TOOLCHAIN_GCC_CR/LPC407x_8x.ld b/targets/TARGET_NXP/TARGET_LPC408X/device/TOOLCHAIN_GCC_CR/LPC407x_8x.ld index 8da20f62aa2..1b51285a90e 100644 --- a/targets/TARGET_NXP/TARGET_LPC408X/device/TOOLCHAIN_GCC_CR/LPC407x_8x.ld +++ b/targets/TARGET_NXP/TARGET_LPC408X/device/TOOLCHAIN_GCC_CR/LPC407x_8x.ld @@ -28,13 +28,13 @@ SECTIONS { /* MAIN TEXT SECTION */ - .text : ALIGN(4) + .text : ALIGN(8) { FILL(0xff) KEEP(*(.isr_vector)) /* Global Section Table */ - . = ALIGN(4) ; + . = ALIGN(8) ; __section_table_start = .; __data_section_table = .; LONG(LOADADDR(.data)); @@ -58,18 +58,18 @@ SECTIONS *(.text*) *(.rodata .rodata.*) - . = ALIGN(4); + . = ALIGN(8); /* C++ constructors etc */ - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.init)) - . = ALIGN(4); + . = ALIGN(8); __preinit_array_start = .; KEEP (*(.preinit_array)) __preinit_array_end = .; - . = ALIGN(4); + . = ALIGN(8); __init_array_start = .; KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array)) @@ -77,13 +77,13 @@ SECTIONS KEEP(*(.fini)); - . = ALIGN(4); + . = ALIGN(8); KEEP (*crtbegin.o(.ctors)) KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors)) KEEP (*(SORT(.ctors.*))) KEEP (*crtend.o(.ctors)) - . = ALIGN(4); + . = ALIGN(8); KEEP (*crtbegin.o(.dtors)) KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors)) KEEP (*(SORT(.dtors.*))) @@ -95,13 +95,13 @@ SECTIONS * for exception handling/unwind - some Newlib functions (in common * with C++ and STDC++) use this. */ - .ARM.extab : ALIGN(4) + .ARM.extab : ALIGN(8) { *(.ARM.extab* .gnu.linkonce.armextab.*) } > MFlash512 __exidx_start = .; - .ARM.exidx : ALIGN(4) + .ARM.exidx : ALIGN(8) { *(.ARM.exidx* .gnu.linkonce.armexidx.*) } > MFlash512 @@ -111,68 +111,68 @@ SECTIONS /* DATA section for RamPeriph32 */ - .data_RAM2 : ALIGN(4) + .data_RAM2 : ALIGN(8) { FILL(0xff) *(.data.$RAM2*) *(.data.$RamPeriph32*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamPeriph32 AT>MFlash512 /* MAIN DATA SECTION */ - .uninit_RESERVED : ALIGN(4) + .uninit_RESERVED : ALIGN(8) { KEEP(*(.bss.$RESERVED*)) - . = ALIGN(4) ; + . = ALIGN(8) ; _end_uninit_RESERVED = .; } > RamLoc64 - .data : ALIGN(4) + .data : ALIGN(8) { FILL(0xff) _data = .; *(vtable) *(.data*) - . = ALIGN(4) ; + . = ALIGN(8) ; _edata = .; } > RamLoc64 AT>MFlash512 /* BSS section for RamPeriph32 */ - .bss_RAM2 : ALIGN(4) + .bss_RAM2 : ALIGN(8) { *(.bss.$RAM2*) *(.bss.$RamPeriph32*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamPeriph32 /* MAIN BSS SECTION */ - .bss : ALIGN(4) + .bss : ALIGN(8) { _bss = .; *(.bss*) *(COMMON) - . = ALIGN(4) ; + . = ALIGN(8) ; _ebss = .; PROVIDE(end = .); __end__ = .; } > RamLoc64 /* NOINIT section for RamPeriph32 */ - .noinit_RAM2 (NOLOAD) : ALIGN(4) + .noinit_RAM2 (NOLOAD) : ALIGN(8) { *(.noinit.$RAM2*) *(.noinit.$RamPeriph32*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamPeriph32 /* DEFAULT NOINIT SECTION */ - .noinit (NOLOAD): ALIGN(4) + .noinit (NOLOAD): ALIGN(8) { _noinit = .; *(.noinit*) - . = ALIGN(4) ; + . = ALIGN(8) ; _end_noinit = .; } > RamLoc64 diff --git a/targets/TARGET_NXP/TARGET_LPC43XX/device/TOOLCHAIN_GCC_ARM/LPC4330.ld b/targets/TARGET_NXP/TARGET_LPC43XX/device/TOOLCHAIN_GCC_ARM/LPC4330.ld index 42c5f60be2a..d8b3dac426a 100644 --- a/targets/TARGET_NXP/TARGET_LPC43XX/device/TOOLCHAIN_GCC_ARM/LPC4330.ld +++ b/targets/TARGET_NXP/TARGET_LPC43XX/device/TOOLCHAIN_GCC_ARM/LPC4330.ld @@ -90,13 +90,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -104,14 +104,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC43XX/device/TOOLCHAIN_GCC_CR/LPC43xx.ld b/targets/TARGET_NXP/TARGET_LPC43XX/device/TOOLCHAIN_GCC_CR/LPC43xx.ld index 12d97fa881a..9f6d3b92361 100644 --- a/targets/TARGET_NXP/TARGET_LPC43XX/device/TOOLCHAIN_GCC_CR/LPC43xx.ld +++ b/targets/TARGET_NXP/TARGET_LPC43XX/device/TOOLCHAIN_GCC_CR/LPC43xx.ld @@ -29,14 +29,14 @@ SECTIONS { /* MAIN TEXT SECTION */ - .text : ALIGN(4) + .text : ALIGN(8) { FILL(0xff) __vectors_start__ = ABSOLUTE(.) ; KEEP(*(.isr_vector)) /* Global Section Table */ - . = ALIGN(4) ; + . = ALIGN(8) ; __section_table_start = .; __data_section_table = .; LONG(LOADADDR(.data)); @@ -75,22 +75,22 @@ SECTIONS } >SPIFI - .text : ALIGN(4) + .text : ALIGN(8) { *(.text*) *(.rodata .rodata.* .constdata .constdata.*) - . = ALIGN(4); + . = ALIGN(8); /* C++ constructors etc */ - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.init)) - . = ALIGN(4); + . = ALIGN(8); __preinit_array_start = .; KEEP (*(.preinit_array)) __preinit_array_end = .; - . = ALIGN(4); + . = ALIGN(8); __init_array_start = .; KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array)) @@ -98,13 +98,13 @@ SECTIONS KEEP(*(.fini)); - . = ALIGN(4); + . = ALIGN(8); KEEP (*crtbegin.o(.ctors)) KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors)) KEEP (*(SORT(.ctors.*))) KEEP (*crtend.o(.ctors)) - . = ALIGN(4); + . = ALIGN(8); KEEP (*crtbegin.o(.dtors)) KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors)) KEEP (*(SORT(.dtors.*))) @@ -116,13 +116,13 @@ SECTIONS * for exception handling/unwind - some Newlib functions (in common * with C++ and STDC++) use this. */ - .ARM.extab : ALIGN(4) + .ARM.extab : ALIGN(8) { *(.ARM.extab* .gnu.linkonce.armextab.*) } > SPIFI __exidx_start = .; - .ARM.exidx : ALIGN(4) + .ARM.exidx : ALIGN(8) { *(.ARM.exidx* .gnu.linkonce.armexidx.*) } > SPIFI @@ -132,147 +132,147 @@ SECTIONS /* DATA section for RamLoc72 */ - .data_RAM2 : ALIGN(4) + .data_RAM2 : ALIGN(8) { FILL(0xff) *(.ramfunc.$RAM2) *(.ramfunc.$RamLoc72) *(.data.$RAM2*) *(.data.$RamLoc72*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamLoc72 AT>SPIFI /* DATA section for RamAHB32 */ - .data_RAM3 : ALIGN(4) + .data_RAM3 : ALIGN(8) { FILL(0xff) *(.ramfunc.$RAM3) *(.ramfunc.$RamAHB32) *(.data.$RAM3*) *(.data.$RamAHB32*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamAHB32 AT>SPIFI /* DATA section for RamAHB16 */ - .data_RAM4 : ALIGN(4) + .data_RAM4 : ALIGN(8) { FILL(0xff) *(.ramfunc.$RAM4) *(.ramfunc.$RamAHB16) *(.data.$RAM4*) *(.data.$RamAHB16*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamAHB16 AT>SPIFI /* DATA section for RamAHB_ETB16 */ - .data_RAM5 : ALIGN(4) + .data_RAM5 : ALIGN(8) { FILL(0xff) *(.ramfunc.$RAM5) *(.ramfunc.$RamAHB_ETB16) *(.data.$RAM5*) *(.data.$RamAHB_ETB16*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamAHB_ETB16 AT>SPIFI /* MAIN DATA SECTION */ - .uninit_RESERVED : ALIGN(4) + .uninit_RESERVED : ALIGN(8) { KEEP(*(.bss.$RESERVED*)) - . = ALIGN(4) ; + . = ALIGN(8) ; _end_uninit_RESERVED = .; } > RamLoc128 /* Main DATA section (RamLoc128) */ - .data : ALIGN(4) + .data : ALIGN(8) { FILL(0xff) _data = . ; *(vtable) *(.ramfunc*) *(.data*) - . = ALIGN(4) ; + . = ALIGN(8) ; _edata = . ; } > RamLoc128 AT>SPIFI /* BSS section for RamLoc72 */ - .bss_RAM2 : ALIGN(4) + .bss_RAM2 : ALIGN(8) { *(.bss.$RAM2*) *(.bss.$RamLoc72*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamLoc72 /* BSS section for RamAHB32 */ - .bss_RAM3 : ALIGN(4) + .bss_RAM3 : ALIGN(8) { *(.bss.$RAM3*) *(.bss.$RamAHB32*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamAHB32 /* BSS section for RamAHB16 */ - .bss_RAM4 : ALIGN(4) + .bss_RAM4 : ALIGN(8) { *(.bss.$RAM4*) *(.bss.$RamAHB16*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamAHB16 /* BSS section for RamAHB_ETB16 */ - .bss_RAM5 : ALIGN(4) + .bss_RAM5 : ALIGN(8) { *(.bss.$RAM5*) *(.bss.$RamAHB_ETB16*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamAHB_ETB16 /* MAIN BSS SECTION */ - .bss : ALIGN(4) + .bss : ALIGN(8) { _bss = .; *(.bss*) *(COMMON) - . = ALIGN(4) ; + . = ALIGN(8) ; _ebss = .; PROVIDE(end = .); } > RamLoc128 /* NOINIT section for RamLoc72 */ - .noinit_RAM2 (NOLOAD) : ALIGN(4) + .noinit_RAM2 (NOLOAD) : ALIGN(8) { *(.noinit.$RAM2*) *(.noinit.$RamLoc72*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamLoc72 /* NOINIT section for RamAHB32 */ - .noinit_RAM3 (NOLOAD) : ALIGN(4) + .noinit_RAM3 (NOLOAD) : ALIGN(8) { *(.noinit.$RAM3*) *(.noinit.$RamAHB32*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamAHB32 /* NOINIT section for RamAHB16 */ - .noinit_RAM4 (NOLOAD) : ALIGN(4) + .noinit_RAM4 (NOLOAD) : ALIGN(8) { *(.noinit.$RAM4*) *(.noinit.$RamAHB16*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamAHB16 /* NOINIT section for RamAHB_ETB16 */ - .noinit_RAM5 (NOLOAD) : ALIGN(4) + .noinit_RAM5 (NOLOAD) : ALIGN(8) { *(.noinit.$RAM5*) *(.noinit.$RamAHB_ETB16*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > RamAHB_ETB16 /* DEFAULT NOINIT SECTION */ - .noinit (NOLOAD): ALIGN(4) + .noinit (NOLOAD): ALIGN(8) { _noinit = .; *(.noinit*) - . = ALIGN(4) ; + . = ALIGN(8) ; _end_noinit = .; } > RamLoc128 diff --git a/targets/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/device/TOOLCHAIN_GCC_ARM/LPC812.ld b/targets/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/device/TOOLCHAIN_GCC_ARM/LPC812.ld index fe6269a2414..0158f680b09 100644 --- a/targets/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/device/TOOLCHAIN_GCC_ARM/LPC812.ld +++ b/targets/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/device/TOOLCHAIN_GCC_ARM/LPC812.ld @@ -89,13 +89,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -103,14 +103,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/device/TOOLCHAIN_GCC_ARM/LPC810.ld b/targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/device/TOOLCHAIN_GCC_ARM/LPC810.ld index 4607a4f0e64..57dd2f9a16f 100644 --- a/targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/device/TOOLCHAIN_GCC_ARM/LPC810.ld +++ b/targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/device/TOOLCHAIN_GCC_ARM/LPC810.ld @@ -89,13 +89,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -103,14 +103,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/device/TOOLCHAIN_GCC_ARM/LPC812.ld b/targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/device/TOOLCHAIN_GCC_ARM/LPC812.ld index fe6269a2414..0158f680b09 100644 --- a/targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/device/TOOLCHAIN_GCC_ARM/LPC812.ld +++ b/targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/device/TOOLCHAIN_GCC_ARM/LPC812.ld @@ -89,13 +89,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -103,14 +103,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/device/TOOLCHAIN_GCC_ARM/LPC824.ld b/targets/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/device/TOOLCHAIN_GCC_ARM/LPC824.ld index 8cd704d06b9..12b6df8ecf5 100644 --- a/targets/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/device/TOOLCHAIN_GCC_ARM/LPC824.ld +++ b/targets/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/device/TOOLCHAIN_GCC_ARM/LPC824.ld @@ -89,13 +89,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -103,14 +103,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/device/TOOLCHAIN_GCC_CR/LPC824.ld b/targets/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/device/TOOLCHAIN_GCC_CR/LPC824.ld index 8774dea29e2..1766789e5e3 100644 --- a/targets/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/device/TOOLCHAIN_GCC_CR/LPC824.ld +++ b/targets/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/device/TOOLCHAIN_GCC_CR/LPC824.ld @@ -54,14 +54,14 @@ SECTIONS { /* MAIN TEXT SECTION */ - .text : ALIGN(4) + .text : ALIGN(8) { FILL(0xff) __vectors_start__ = ABSOLUTE(.) ; KEEP(*(.isr_vector)) /* Global Section Table */ - . = ALIGN(4) ; + . = ALIGN(8) ; __section_table_start = .; __data_section_table = .; LONG(LOADADDR(.data)); @@ -79,23 +79,23 @@ SECTIONS *(.after_vectors*) } >MFlash32 - .text : ALIGN(4) + .text : ALIGN(8) { *(.text*) *(.rodata .rodata.* .constdata .constdata.*) - . = ALIGN(4); + . = ALIGN(8); /* C++ constructors etc */ - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.init)) - . = ALIGN(4); + . = ALIGN(8); __preinit_array_start = .; KEEP (*(.preinit_array)) __preinit_array_end = .; - . = ALIGN(4); + . = ALIGN(8); __init_array_start = .; KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array)) @@ -129,13 +129,13 @@ SECTIONS * for exception handling/unwind - some Newlib functions (in common * with C++ and STDC++) use this. */ - .ARM.extab : ALIGN(4) + .ARM.extab : ALIGN(8) { *(.ARM.extab* .gnu.linkonce.armextab.*) } > MFlash32 __exidx_start = .; - .ARM.exidx : ALIGN(4) + .ARM.exidx : ALIGN(8) { *(.ARM.exidx* .gnu.linkonce.armexidx.*) } > MFlash32 @@ -152,45 +152,45 @@ SECTIONS KEEP(*(.mtb*)) } > RamLoc8 - .uninit_RESERVED : ALIGN(4) + .uninit_RESERVED : ALIGN(8) { KEEP(*(.bss.$RESERVED*)) - . = ALIGN(4) ; + . = ALIGN(8) ; _end_uninit_RESERVED = .; } > RamLoc8 /* Main DATA section (RamLoc8) */ - .data : ALIGN(4) + .data : ALIGN(8) { FILL(0xff) _data = . ; *(vtable) *(.ramfunc*) *(.data*) - . = ALIGN(4) ; + . = ALIGN(8) ; _edata = . ; } > RamLoc8 AT>MFlash32 /* MAIN BSS SECTION */ - .bss : ALIGN(4) + .bss : ALIGN(8) { _bss = .; *(.bss*) *(COMMON) - . = ALIGN(4) ; + . = ALIGN(8) ; _ebss = .; PROVIDE(end = .); } > RamLoc8 /* DEFAULT NOINIT SECTION */ - .noinit (NOLOAD): ALIGN(4) + .noinit (NOLOAD): ALIGN(8) { _noinit = .; *(.noinit*) - . = ALIGN(4) ; + . = ALIGN(8) ; _end_noinit = .; } > RamLoc8 diff --git a/targets/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/device/TOOLCHAIN_GCC_ARM/LPC824.ld b/targets/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/device/TOOLCHAIN_GCC_ARM/LPC824.ld index be901736a73..e85a372fee0 100644 --- a/targets/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/device/TOOLCHAIN_GCC_ARM/LPC824.ld +++ b/targets/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/device/TOOLCHAIN_GCC_ARM/LPC824.ld @@ -90,13 +90,13 @@ SECTIONS *(vtable) *(.data*) - . = ALIGN(4); + . = ALIGN(8); /* preinit data */ PROVIDE (__preinit_array_start = .); KEEP(*(.preinit_array)) PROVIDE (__preinit_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* init data */ PROVIDE (__init_array_start = .); KEEP(*(SORT(.init_array.*))) @@ -104,14 +104,14 @@ SECTIONS PROVIDE (__init_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* finit data */ PROVIDE (__fini_array_start = .); KEEP(*(SORT(.fini_array.*))) KEEP(*(.fini_array)) PROVIDE (__fini_array_end = .); - . = ALIGN(4); + . = ALIGN(8); /* All data end */ __data_end__ = .; diff --git a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC54114/device/TARGET_LPC54114_M4/TOOLCHAIN_GCC_ARM/LPC54114J256_cm4_flash.ld b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC54114/device/TARGET_LPC54114_M4/TOOLCHAIN_GCC_ARM/LPC54114J256_cm4_flash.ld index a20f0b64284..6d63771bd05 100644 --- a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC54114/device/TARGET_LPC54114_M4/TOOLCHAIN_GCC_ARM/LPC54114J256_cm4_flash.ld +++ b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC54114/device/TARGET_LPC54114_M4/TOOLCHAIN_GCC_ARM/LPC54114J256_cm4_flash.ld @@ -106,32 +106,32 @@ SECTIONS /* section for storing the secondary core image */ .m0code : { - . = ALIGN(4) ; + . = ALIGN(8) ; KEEP (*(.m0code)) *(.m0code*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > m_core1_image /* NOINIT section for rpmsg_sh_mem */ - .noinit_rpmsg_sh_mem (NOLOAD) : ALIGN(4) + .noinit_rpmsg_sh_mem (NOLOAD) : ALIGN(8) { *(.noinit.$rpmsg_sh_mem*) - . = ALIGN(4) ; + . = ALIGN(8) ; } > rpmsg_sh_mem /* The startup code goes first into internal flash */ .interrupts : { __VECTOR_TABLE = .; - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); + . = ALIGN(8); } > m_interrupts /* The program code and other data goes into internal flash */ .text : { - . = ALIGN(4); + . = ALIGN(8); *(.text) /* .text sections (code) */ *(.text*) /* .text* sections (code) */ *(.rodata) /* .rodata sections (constants, strings, etc.) */ @@ -141,7 +141,7 @@ SECTIONS *(.eh_frame) KEEP (*(.init)) KEEP (*(.fini)) - . = ALIGN(4); + . = ALIGN(8); } > m_text .ARM.extab : @@ -219,12 +219,12 @@ SECTIONS .interrupts_ram : { - . = ALIGN(4); + . = ALIGN(8); __VECTOR_RAM__ = .; __interrupts_ram_start__ = .; /* Create a global symbol at data start */ *(.m_interrupts_ram) /* This is a user defined section */ . += M_VECTOR_RAM_SIZE; - . = ALIGN(4); + . = ALIGN(8); __interrupts_ram_end__ = .; /* Define a global symbol at data end */ } > m_data @@ -233,14 +233,14 @@ SECTIONS .data : AT(__DATA_ROM) { - . = ALIGN(4); + . = ALIGN(8); __DATA_RAM = .; __data_start__ = .; /* create a global symbol at data start */ *(.ramfunc*) /* for functions in ram */ *(.data) /* .data sections */ *(.data*) /* .data* sections */ KEEP(*(.jcr*)) - . = ALIGN(4); + . = ALIGN(8); __data_end__ = .; /* define a global symbol at data end */ } > m_data @@ -252,13 +252,13 @@ SECTIONS .bss : { /* This is used by the startup in order to initialize the .bss section */ - . = ALIGN(4); + . = ALIGN(8); __START_BSS = .; __bss_start__ = .; *(.bss) *(.bss*) *(COMMON) - . = ALIGN(4); + . = ALIGN(8); __bss_end__ = .; __END_BSS = .; } > m_data diff --git a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/device/TOOLCHAIN_GCC_ARM/LPC54628J512.ld b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/device/TOOLCHAIN_GCC_ARM/LPC54628J512.ld index 76428b3d598..66a5ff24282 100644 --- a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/device/TOOLCHAIN_GCC_ARM/LPC54628J512.ld +++ b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/device/TOOLCHAIN_GCC_ARM/LPC54628J512.ld @@ -73,15 +73,15 @@ SECTIONS .interrupts : { __VECTOR_TABLE = .; - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); + . = ALIGN(8); } > m_interrupts /* The program code and other data goes into internal flash */ .text : { - . = ALIGN(4); + . = ALIGN(8); *(.text) /* .text sections (code) */ *(.text*) /* .text* sections (code) */ *(.rodata) /* .rodata sections (constants, strings, etc.) */ @@ -91,7 +91,7 @@ SECTIONS *(.eh_frame) KEEP (*(.init)) KEEP (*(.fini)) - . = ALIGN(4); + . = ALIGN(8); } > m_text .ARM.extab : @@ -169,12 +169,12 @@ SECTIONS .interrupts_ram : { - . = ALIGN(4); + . = ALIGN(8); __VECTOR_RAM__ = .; __interrupts_ram_start__ = .; /* Create a global symbol at data start */ *(.m_interrupts_ram) /* This is a user defined section */ . += M_VECTOR_RAM_SIZE; - . = ALIGN(4); + . = ALIGN(8); __interrupts_ram_end__ = .; /* Define a global symbol at data end */ } > m_data @@ -183,14 +183,14 @@ SECTIONS .data : AT(__DATA_ROM) { - . = ALIGN(4); + . = ALIGN(8); __DATA_RAM = .; __data_start__ = .; /* create a global symbol at data start */ *(.ramfunc*) /* for functions in ram */ *(.data) /* .data sections */ *(.data*) /* .data* sections */ KEEP(*(.jcr*)) - . = ALIGN(4); + . = ALIGN(8); __data_end__ = .; /* define a global symbol at data end */ } > m_data @@ -202,13 +202,13 @@ SECTIONS .bss : { /* This is used by the startup in order to initialize the .bss section */ - . = ALIGN(4); + . = ALIGN(8); __START_BSS = .; __bss_start__ = .; *(.bss) *(.bss*) *(COMMON) - . = ALIGN(4); + . = ALIGN(8); __bss_end__ = .; __END_BSS = .; } > m_data diff --git a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/device/TOOLCHAIN_GCC_ARM/MIMXRT1052xxxxx.ld b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/device/TOOLCHAIN_GCC_ARM/MIMXRT1052xxxxx.ld index 6cd4cd0bced..d621c610868 100644 --- a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/device/TOOLCHAIN_GCC_ARM/MIMXRT1052xxxxx.ld +++ b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/device/TOOLCHAIN_GCC_ARM/MIMXRT1052xxxxx.ld @@ -84,36 +84,36 @@ SECTIONS { .flash_config : { - . = ALIGN(4); + . = ALIGN(8); __FLASH_BASE = .; KEEP(* (.boot_hdr.conf)) /* flash config section */ - . = ALIGN(4); + . = ALIGN(8); } > m_flash_config ivt_begin= ORIGIN(m_flash_config) + LENGTH(m_flash_config); .ivt : AT(ivt_begin) { - . = ALIGN(4); + . = ALIGN(8); KEEP(* (.boot_hdr.ivt)) /* ivt section */ KEEP(* (.boot_hdr.boot_data)) /* boot section */ KEEP(* (.boot_hdr.dcd_data)) /* dcd section */ - . = ALIGN(4); + . = ALIGN(8); } > m_ivt /* The startup code goes first into internal RAM */ .interrupts : { __VECTOR_TABLE = .; - . = ALIGN(4); + . = ALIGN(8); KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); + . = ALIGN(8); } > m_interrupts /* The program code and other data goes into internal RAM */ .text : { - . = ALIGN(4); + . = ALIGN(8); *(.text) /* .text sections (code) */ *(.text*) /* .text* sections (code) */ *(.rodata) /* .rodata sections (constants, strings, etc.) */ @@ -123,7 +123,7 @@ SECTIONS *(.eh_frame) KEEP (*(.init)) KEEP (*(.fini)) - . = ALIGN(4); + . = ALIGN(8); } > m_text .ARM.extab : @@ -201,12 +201,12 @@ SECTIONS .interrupts_ram : { - . = ALIGN(4); + . = ALIGN(8); __VECTOR_RAM__ = .; __interrupts_ram_start__ = .; /* Create a global symbol at data start */ *(.m_interrupts_ram) /* This is a user defined section */ . += M_VECTOR_RAM_SIZE; - . = ALIGN(4); + . = ALIGN(8); __interrupts_ram_end__ = .; /* Define a global symbol at data end */ } > m_data2 @@ -215,14 +215,14 @@ SECTIONS .data : AT(__DATA_ROM) { - . = ALIGN(4); + . = ALIGN(8); __DATA_RAM = .; __data_start__ = .; /* create a global symbol at data start */ *(m_usb_dma_init_data) *(.data) /* .data sections */ *(.data*) /* .data* sections */ KEEP(*(.jcr*)) - . = ALIGN(4); + . = ALIGN(8); __data_end__ = .; /* define a global symbol at data end */ } > m_data @@ -245,14 +245,14 @@ SECTIONS { __noncachedata_start__ = .; /* create a global symbol at ncache data start */ *(NonCacheable.init) - . = ALIGN(4); + . = ALIGN(8); __noncachedata_init_end__ = .; /* create a global symbol at initialized ncache data end */ } > m_ncache . = __noncachedata_init_end__; .ncache : { *(NonCacheable) - . = ALIGN(4); + . = ALIGN(8); __noncachedata_end__ = .; /* define a global symbol at ncache data end */ } > m_ncache @@ -264,14 +264,14 @@ SECTIONS .bss : { /* This is used by the startup in order to initialize the .bss section */ - . = ALIGN(4); + . = ALIGN(8); __START_BSS = .; __bss_start__ = .; *(m_usb_dma_noninit_data) *(.bss) *(.bss*) *(COMMON) - . = ALIGN(4); + . = ALIGN(8); __bss_end__ = .; __END_BSS = .; } > m_data