提交 525d3534 编写于 作者: wuyangyong's avatar wuyangyong

fixed linker script and stack align issues.

上级 c1bf9e64
......@@ -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 :
{
......
......@@ -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 :
{
......
......@@ -34,6 +34,7 @@
.globl stack_start
.globl stack_top
.align 3
stack_start:
.rept ISR_Stack_Size
.byte 0
......
......@@ -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 :
{
......
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
......@@ -48,6 +48,7 @@
.globl stack_start
.globl stack_top
.align 3
stack_start:
.rept ISR_Stack_Size
.byte 0
......
......@@ -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)
......
......@@ -48,6 +48,7 @@
.globl stack_start
.globl stack_top
.align 3
stack_start:
.rept ISR_Stack_Size
.byte 0
......
......@@ -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)
......
......@@ -33,6 +33,7 @@
.globl stack_start
.globl stack_top
.align 3
stack_start:
.rept ISR_Stack_Size
.long 0
......
......@@ -41,6 +41,7 @@
.globl stack_start
.globl stack_top
.align 3
stack_start:
.rept ISR_Stack_Size
.byte 0
......
......@@ -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
......
......@@ -47,6 +47,7 @@
.globl stack_start
.globl stack_top
.align 3
stack_start:
.rept ISR_Stack_Size
.byte 0
......
......@@ -33,6 +33,7 @@
.globl stack_start
.globl stack_top
.align 3
.bss
stack_start:
.rept ISR_Stack_Size
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册