Common data must be included in .bss or it won't get zeroed in crt0. Fix the archos self-extractor as well to play safe.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19033 a1c6a512-1295-4272-9138-f99709370657
diff --git a/firmware/decompressor/link.lds b/firmware/decompressor/link.lds
index d0e11c1..e6abbe2 100644
--- a/firmware/decompressor/link.lds
+++ b/firmware/decompressor/link.lds
@@ -64,6 +64,7 @@
{
_edata = .;
*(.bss)
+ *(COMMON)
. = ALIGN(0x4);
_end = .;
} > DRAM
diff --git a/firmware/target/arm/as3525/boot.lds b/firmware/target/arm/as3525/boot.lds
index eb977a1..7a13d67 100644
--- a/firmware/target/arm/as3525/boot.lds
+++ b/firmware/target/arm/as3525/boot.lds
@@ -51,6 +51,7 @@
_edata = .;
*(.bss*);
*(.ibss);
+ *(COMMON)
*(.ncbss*);
_end = .;
} > IRAM
diff --git a/firmware/target/arm/ipod/boot.lds b/firmware/target/arm/ipod/boot.lds
index ae5358a..974dcb1 100644
--- a/firmware/target/arm/ipod/boot.lds
+++ b/firmware/target/arm/ipod/boot.lds
@@ -73,6 +73,7 @@
_edata = .;
*(.bss*);
*(.ibss);
+ *(COMMON)
*(.ncbss*);
_end = .;
} > DRAM
diff --git a/firmware/target/arm/iriver/boot.lds b/firmware/target/arm/iriver/boot.lds
index bf7d2b6..ccc68c0 100644
--- a/firmware/target/arm/iriver/boot.lds
+++ b/firmware/target/arm/iriver/boot.lds
@@ -57,6 +57,7 @@
_edata = .;
*(.bss*);
*(.ibss);
+ *(COMMON)
*(.ncbss*);
_end = .;
} > DRAM
diff --git a/firmware/target/arm/olympus/boot.lds b/firmware/target/arm/olympus/boot.lds
index 95a1c87..d59f117 100644
--- a/firmware/target/arm/olympus/boot.lds
+++ b/firmware/target/arm/olympus/boot.lds
@@ -57,6 +57,7 @@
_edata = .;
*(.bss*);
*(.ibss);
+ *(COMMON)
*(.ncbss*);
_end = .;
} > DRAM
diff --git a/firmware/target/arm/philips/boot.lds b/firmware/target/arm/philips/boot.lds
index d115aa5..86a635f 100644
--- a/firmware/target/arm/philips/boot.lds
+++ b/firmware/target/arm/philips/boot.lds
@@ -59,6 +59,7 @@
_edata = .;
*(.bss*);
*(.ibss);
+ *(COMMON)
*(.ncbss*);
_end = .;
} > DRAM
diff --git a/firmware/target/arm/sandisk/boot.lds b/firmware/target/arm/sandisk/boot.lds
index 4e32ab7..f217865 100644
--- a/firmware/target/arm/sandisk/boot.lds
+++ b/firmware/target/arm/sandisk/boot.lds
@@ -63,6 +63,7 @@
_edata = .;
*(.bss*);
*(.ibss);
+ *(COMMON)
*(.ncbss*);
_end = .;
} > DRAM