summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraozima <[email protected]>2017-10-23 20:05:24 +0800
committeraozima <[email protected]>2017-10-24 09:49:48 +0800
commit601ab358412db7de72cb4bec91c1bfefed8a2115 (patch)
treef8a89c778b7cce2f8bc1ccd070060764441d8555
parent7a36b1f918d23dd7fa6c30992ea2bec896808f20 (diff)
update gcc linker script: fixed __bss_start align error.
-rw-r--r--bsp/beaglebone/beaglebone_ram.lds2
-rw-r--r--bsp/imx6sx/cortex-a9/imx6.lds2
-rw-r--r--bsp/zynq7000/zynq7000.ld2
3 files changed, 3 insertions, 3 deletions
diff --git a/bsp/beaglebone/beaglebone_ram.lds b/bsp/beaglebone/beaglebone_ram.lds
index 52795e68ba..cf9bf6944d 100644
--- a/bsp/beaglebone/beaglebone_ram.lds
+++ b/bsp/beaglebone/beaglebone_ram.lds
@@ -67,7 +67,7 @@ SECTIONS
__data_end = .;
. = ALIGN(4);
- __bss_start = __data_end;
+ __bss_start = .;
.bss :
{
*(.bss)
diff --git a/bsp/imx6sx/cortex-a9/imx6.lds b/bsp/imx6sx/cortex-a9/imx6.lds
index d8d7480006..e05132025b 100644
--- a/bsp/imx6sx/cortex-a9/imx6.lds
+++ b/bsp/imx6sx/cortex-a9/imx6.lds
@@ -75,7 +75,7 @@ SECTIONS
__data_end = .;
. = ALIGN(4);
- __bss_start = __data_end;
+ __bss_start = .;
.bss :
{
*(.bss)
diff --git a/bsp/zynq7000/zynq7000.ld b/bsp/zynq7000/zynq7000.ld
index ae9b8ea38d..b8f2eb7690 100644
--- a/bsp/zynq7000/zynq7000.ld
+++ b/bsp/zynq7000/zynq7000.ld
@@ -92,7 +92,7 @@ SECTIONS
__data_end = .;
. = ALIGN(4);
- __bss_start = __data_end;
+ __bss_start = 0;
.bss :
{
*(.bss)