|
@@ -131,6 +131,17 @@ SECTIONS
|
|
|
|
|
|
. = RESET_VECTOR_ADDRESS + 0x4;
|
|
. = RESET_VECTOR_ADDRESS + 0x4;
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * Make sure that the bss segment isn't linked at 0x0, otherwise its
|
|
|
|
+ * address won't be updated during relocation fixups. Note that
|
|
|
|
+ * this is a temporary fix. Code to dynamically the fixup the bss
|
|
|
|
+ * location will be added in the future. When the bss relocation
|
|
|
|
+ * fixup code is present this workaround should be removed.
|
|
|
|
+ */
|
|
|
|
+#if (RESET_VECTOR_ADDRESS == 0xfffffffc)
|
|
|
|
+ . |= 0x10;
|
|
|
|
+#endif
|
|
|
|
+
|
|
__bss_start = .;
|
|
__bss_start = .;
|
|
.bss (NOLOAD) :
|
|
.bss (NOLOAD) :
|
|
{
|
|
{
|