diff --git a/bsp/allwinner_tina/link.lds b/bsp/allwinner_tina/link.lds index eb974dea0f1591aa95d95520e8974616bf2f8223..8fb0e9e84d40e39be38357b5804551d470f880fd 100644 --- a/bsp/allwinner_tina/link.lds +++ b/bsp/allwinner_tina/link.lds @@ -82,8 +82,8 @@ SECTIONS PROVIDE(__dtors_end__ = .); } + . = ALIGN(8); __data_start = .; - . = ALIGN(4); .data : { *(.data) @@ -118,7 +118,7 @@ SECTIONS } __data_end = .; - . = ALIGN(4); + . = ALIGN(8); __bss_start = .; .bss : { diff --git a/bsp/beaglebone/beaglebone_ram.lds b/bsp/beaglebone/beaglebone_ram.lds index cf9bf6944dd48c9ed9b48b769fbec8026a0f561e..5847cb08dd8d5a2dafe05b18a219f137ba855ec4 100644 --- a/bsp/beaglebone/beaglebone_ram.lds +++ b/bsp/beaglebone/beaglebone_ram.lds @@ -57,8 +57,8 @@ SECTIONS PROVIDE(__dtors_end__ = .); } + . = ALIGN(8); __data_start = .; - . = ALIGN(4); .data : { *(.data) @@ -66,7 +66,7 @@ SECTIONS } __data_end = .; - . = ALIGN(4); + . = ALIGN(8); __bss_start = .; .bss : { diff --git a/bsp/imx6sx/cortex-a9/cpu/start_gcc.S b/bsp/imx6sx/cortex-a9/cpu/start_gcc.S index 2f16d168075ccab2b00a194fb76ec3b70fcb776f..3ff5a755d5c0774cfcde993fad5681a72a7c1bb4 100644 --- a/bsp/imx6sx/cortex-a9/cpu/start_gcc.S +++ b/bsp/imx6sx/cortex-a9/cpu/start_gcc.S @@ -34,6 +34,7 @@ .globl stack_start .globl stack_top +.align 3 stack_start: .rept ISR_Stack_Size .byte 0 diff --git a/bsp/imx6sx/cortex-a9/imx6.lds b/bsp/imx6sx/cortex-a9/imx6.lds index e05132025b70d34cb40bd58e7333986c0eb00f8b..a889774f852ef0d15923d9f3e605ec85c2925857 100644 --- a/bsp/imx6sx/cortex-a9/imx6.lds +++ b/bsp/imx6sx/cortex-a9/imx6.lds @@ -65,8 +65,8 @@ SECTIONS . += 16K; } + . = ALIGN(8); __data_start = .; - . = ALIGN(4); .data : { *(.data) @@ -74,7 +74,7 @@ SECTIONS } __data_end = .; - . = ALIGN(4); + . = ALIGN(8); __bss_start = .; .bss : { diff --git a/bsp/imx6ul/imx6.lds b/bsp/imx6ul/imx6.lds index d8d7480006d3052342f8134253b3e03f47459ee1..a889774f852ef0d15923d9f3e605ec85c2925857 100644 --- a/bsp/imx6ul/imx6.lds +++ b/bsp/imx6ul/imx6.lds @@ -65,8 +65,8 @@ SECTIONS . += 16K; } + . = ALIGN(8); __data_start = .; - . = ALIGN(4); .data : { *(.data) @@ -74,8 +74,8 @@ SECTIONS } __data_end = .; - . = ALIGN(4); - __bss_start = __data_end; + . = ALIGN(8); + __bss_start = .; .bss : { *(.bss) diff --git a/bsp/lpc2478/lpc2478_ram.lds b/bsp/lpc2478/lpc2478_ram.lds index ffdada7a2a662d531144a7bdac8b2958857191e4..28e8cdd7f52a1d49530efc28195b369b1798d0db 100644 --- a/bsp/lpc2478/lpc2478_ram.lds +++ b/bsp/lpc2478/lpc2478_ram.lds @@ -19,8 +19,8 @@ SECTIONS __rodata_end = .; . = 0xa0100000; + . = ALIGN(8); __data_start = .; - . = ALIGN(4); .data : { *(.data) @@ -28,8 +28,8 @@ SECTIONS } __data_end = .; - . = ALIGN(4); - __bss_start = __data_end; + . = ALIGN(8); + __bss_start = .; .bss : { *(.bss) diff --git a/bsp/qemu-vexpress-a9/link.lds b/bsp/qemu-vexpress-a9/link.lds index 13854a2c015df93ba6600cbb1cfd348bb778a10f..797cd7e3ef8c0707525878d8665574b95186e615 100644 --- a/bsp/qemu-vexpress-a9/link.lds +++ b/bsp/qemu-vexpress-a9/link.lds @@ -67,8 +67,8 @@ SECTIONS PROVIDE(__dtors_end__ = .); } + . = ALIGN(8); __data_start = .; - . = ALIGN(4); .data : { *(.data) @@ -76,8 +76,8 @@ SECTIONS } __data_end = .; - . = ALIGN(4); - __bss_start = __data_end; + . = ALIGN(8); + __bss_start = .; .bss : { *(.bss) diff --git a/bsp/qemu-vexpress-gemini/cpu/start_gcc.S b/bsp/qemu-vexpress-gemini/cpu/start_gcc.S index ca8c1f930f0507dc16b43d97fcf70d84471e27e2..0c64d9fecfa5199040df8b761e7b1a9a7249840d 100644 --- a/bsp/qemu-vexpress-gemini/cpu/start_gcc.S +++ b/bsp/qemu-vexpress-gemini/cpu/start_gcc.S @@ -48,6 +48,7 @@ .globl stack_start .globl stack_top +.align 3 stack_start: .rept ISR_Stack_Size .byte 0 diff --git a/bsp/qemu-vexpress-gemini/vexpress.lds b/bsp/qemu-vexpress-gemini/vexpress.lds index 96863d3f89ac6e5f55907dde33739ecb05e0e4a2..2e631aa4ae489c24d1a9624ed05f57db0d56a327 100644 --- a/bsp/qemu-vexpress-gemini/vexpress.lds +++ b/bsp/qemu-vexpress-gemini/vexpress.lds @@ -57,8 +57,8 @@ SECTIONS PROVIDE(__dtors_end__ = .); } + . = ALIGN(8); __data_start = .; - . = ALIGN(4); .data : { *(.data) @@ -66,8 +66,8 @@ SECTIONS } __data_end = .; - . = ALIGN(4); - __bss_start = __data_end; + . = ALIGN(8); + __bss_start = .; .bss : { *(.bss) diff --git a/bsp/raspi2/cpu/start_gcc.S b/bsp/raspi2/cpu/start_gcc.S index e64563c91e348a3776e5ec96cd0bdca73d8eaa77..b60ad6a38f01d82ff5fb8af648500f82f6e36484 100644 --- a/bsp/raspi2/cpu/start_gcc.S +++ b/bsp/raspi2/cpu/start_gcc.S @@ -48,6 +48,7 @@ .globl stack_start .globl stack_top +.align 3 stack_start: .rept ISR_Stack_Size .byte 0 diff --git a/bsp/realview-a8/realview.lds b/bsp/realview-a8/realview.lds index ceaead6969c35012ae9785f3e21a460c435e2208..f58622884040db2a828ac6550e96e0ea76112c24 100644 --- a/bsp/realview-a8/realview.lds +++ b/bsp/realview-a8/realview.lds @@ -57,8 +57,8 @@ SECTIONS PROVIDE(__dtors_end__ = .); } + . = ALIGN(8); __data_start = .; - . = ALIGN(4); .data : { *(.data) @@ -66,8 +66,8 @@ SECTIONS } __data_end = .; - . = ALIGN(4); - __bss_start = __data_end; + . = ALIGN(8); + __bss_start = .; .bss : { *(.bss) diff --git a/libcpu/arm/am335x/start_gcc.S b/libcpu/arm/am335x/start_gcc.S index 6b76fb04a43c4f2f10ca447ccf7606cc85fb54c7..7e996e2a8004ad58499168dd5ed5dcd0ab2e09c3 100644 --- a/libcpu/arm/am335x/start_gcc.S +++ b/libcpu/arm/am335x/start_gcc.S @@ -33,6 +33,7 @@ .globl stack_start .globl stack_top +.align 3 stack_start: .rept ISR_Stack_Size .long 0 diff --git a/libcpu/arm/cortex-a/start_gcc.S b/libcpu/arm/cortex-a/start_gcc.S index 91faa0e3ff94eef6321b8709a18e5acbfa76f8b3..268cc7ef5618d2b61da732a86e2b2d4557d9bf05 100644 --- a/libcpu/arm/cortex-a/start_gcc.S +++ b/libcpu/arm/cortex-a/start_gcc.S @@ -41,6 +41,7 @@ .globl stack_start .globl stack_top +.align 3 stack_start: .rept ISR_Stack_Size .byte 0 diff --git a/libcpu/arm/cortex-r4/start_gcc.S b/libcpu/arm/cortex-r4/start_gcc.S index ab77b98781ceb34c4d4730437fb35abc48943263..a347503ec053f18f164e77135264476d690e166c 100644 --- a/libcpu/arm/cortex-r4/start_gcc.S +++ b/libcpu/arm/cortex-r4/start_gcc.S @@ -36,6 +36,7 @@ .globl stack_start .globl stack_top +.align 3 stack_start: .rept (UND_Stack_Size + SVC_Stack_Size + ABT_Stack_Size + FIQ_Stack_Size + IRQ_Stack_Size) .byte 0 diff --git a/libcpu/arm/realview-a8-vmm/start_gcc.S b/libcpu/arm/realview-a8-vmm/start_gcc.S index 2ec7fe6c865c3ef03eddb3b49a305610326b0127..879cf992a873681fcc438df2ff5614665b9fe10d 100644 --- a/libcpu/arm/realview-a8-vmm/start_gcc.S +++ b/libcpu/arm/realview-a8-vmm/start_gcc.S @@ -47,6 +47,7 @@ .globl stack_start .globl stack_top +.align 3 stack_start: .rept ISR_Stack_Size .byte 0 diff --git a/libcpu/arm/zynq7000/start_gcc.S b/libcpu/arm/zynq7000/start_gcc.S index 6904c45587106c51daf718ed63e09e964990e83f..18056f0ad92db348915d008b2c29bf9c33039c46 100644 --- a/libcpu/arm/zynq7000/start_gcc.S +++ b/libcpu/arm/zynq7000/start_gcc.S @@ -33,6 +33,7 @@ .globl stack_start .globl stack_top +.align 3 .bss stack_start: .rept ISR_Stack_Size