aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2022-11-30 15:18:04 +0100
committerPeter Maydell <peter.maydell@linaro.org>2022-12-16 13:45:54 +0000
commit1702168b2d58e246511800b07ae272282c6ab48d (patch)
tree0cd7b4e89bd71e6bbad433bdf2933c900440a61b
parent21e70b94f9fee0b02806af9d31aa9d7c5f838563 (diff)
tests: Correct _bss_end alignment
Fixes: arm-none-eabi/bin/ld: __bss_end alignment collect2: error: ld returned 1 exit status Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--common.ld2
1 files changed, 2 insertions, 0 deletions
diff --git a/common.ld b/common.ld
index 2108fe6..3dc2e13 100644
--- a/common.ld
+++ b/common.ld
@@ -51,6 +51,7 @@ SECTIONS
__data_start = .;
__data_load = LOADADDR(.data);
*(.data .data.* .gnu.linkonce.d.*)
+ . = ALIGN(4);
__data_end = .;
} >RAM AT>ROM
@@ -59,6 +60,7 @@ SECTIONS
__bss_start = .;
*(COMMON)
*(.bss .bss.* .gnu.linkonce.b.*)
+ . = ALIGN(4);
__bss_end = .;
} >RAM AT>ROM