aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/lm3s/libopencm3_lm3s.ld2
-rw-r--r--lib/lpc13xx/libopencm3_lpc13xx.ld2
-rw-r--r--lib/stm32/f1/libopencm3_stm32f1.ld2
-rw-r--r--lib/stm32/f2/libopencm3_stm32f2.ld2
-rw-r--r--lib/stm32/f4/libopencm3_stm32f4.ld2
5 files changed, 5 insertions, 5 deletions
diff --git a/lib/lm3s/libopencm3_lm3s.ld b/lib/lm3s/libopencm3_lm3s.ld
index ca9d35f..87c940a 100644
--- a/lib/lm3s/libopencm3_lm3s.ld
+++ b/lib/lm3s/libopencm3_lm3s.ld
@@ -65,5 +65,5 @@ SECTIONS
end = .;
}
-PROVIDE(_stack = 0x20000800);
+PROVIDE(_stack = ORIGIN(ram) + LENGTH(ram));
diff --git a/lib/lpc13xx/libopencm3_lpc13xx.ld b/lib/lpc13xx/libopencm3_lpc13xx.ld
index 93c98e0..009ee2a 100644
--- a/lib/lpc13xx/libopencm3_lpc13xx.ld
+++ b/lib/lpc13xx/libopencm3_lpc13xx.ld
@@ -65,5 +65,5 @@ SECTIONS
end = .;
}
-PROVIDE(_stack = 0x10000800);
+PROVIDE(_stack = ORIGIN(ram) + LENGTH(ram));
diff --git a/lib/stm32/f1/libopencm3_stm32f1.ld b/lib/stm32/f1/libopencm3_stm32f1.ld
index b9d98ec..9fa128d 100644
--- a/lib/stm32/f1/libopencm3_stm32f1.ld
+++ b/lib/stm32/f1/libopencm3_stm32f1.ld
@@ -73,5 +73,5 @@ SECTIONS
end = .;
}
-PROVIDE(_stack = 0x20000800);
+PROVIDE(_stack = ORIGIN(ram) + LENGTH(ram));
diff --git a/lib/stm32/f2/libopencm3_stm32f2.ld b/lib/stm32/f2/libopencm3_stm32f2.ld
index b9d98ec..9fa128d 100644
--- a/lib/stm32/f2/libopencm3_stm32f2.ld
+++ b/lib/stm32/f2/libopencm3_stm32f2.ld
@@ -73,5 +73,5 @@ SECTIONS
end = .;
}
-PROVIDE(_stack = 0x20000800);
+PROVIDE(_stack = ORIGIN(ram) + LENGTH(ram));
diff --git a/lib/stm32/f4/libopencm3_stm32f4.ld b/lib/stm32/f4/libopencm3_stm32f4.ld
index b9d98ec..9fa128d 100644
--- a/lib/stm32/f4/libopencm3_stm32f4.ld
+++ b/lib/stm32/f4/libopencm3_stm32f4.ld
@@ -73,5 +73,5 @@ SECTIONS
end = .;
}
-PROVIDE(_stack = 0x20000800);
+PROVIDE(_stack = ORIGIN(ram) + LENGTH(ram));