aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2022-11-30 15:18:03 +0100
committerPeter Maydell <peter.maydell@linaro.org>2022-12-16 13:45:54 +0000
commit21e70b94f9fee0b02806af9d31aa9d7c5f838563 (patch)
treebec5e99315cee13f317b652122fb5e5406d334fc
parent046f3b65d62681a4c5d72e32b8906f3415c2f22b (diff)
test9: Declare _main_stack_top as external symbol
Fixes: arm-none-eabi/bin/ld: test9.o:/Users/philmd/source/m-profile-tests/test9.c:6: multiple definition of `_main_stack_top'; init-m-test9.o:(.bss+0x400): first defined here Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--test9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test9.c b/test9.c
index b96fbde..d3d8b09 100644
--- a/test9.c
+++ b/test9.c
@@ -3,7 +3,7 @@
#include "armv7m.h"
#include "testme.h"
-char _main_stack_top;
+extern char _main_stack_top;
/* defintion must match test-m-test9.S */
struct early_state_t {