summaryrefslogtreecommitdiffstats
path: root/tools/include/nolibc/arch-arm.h
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2022-02-07 17:23:45 +0100
committerPaul E. McKenney <paulmck@kernel.org>2022-04-20 17:05:45 -0700
commitdffeb81af5fe5eedccf5ea4a8a120d8c3accd26e (patch)
tree9e6758770f97f60a476a7c7fe7867c2bfc1afedd /tools/include/nolibc/arch-arm.h
parent07f47ea06fe9d38c5e8d9068fba2468ed8bb8b59 (diff)
downloadlinux-dffeb81af5fe5eedccf5ea4a8a120d8c3accd26e.tar.bz2
tools/nolibc/arch: mark the _start symbol as weak
By doing so we can link together multiple C files that have been compiled with nolibc and which each have a _start symbol. Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/include/nolibc/arch-arm.h')
-rw-r--r--tools/include/nolibc/arch-arm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/include/nolibc/arch-arm.h b/tools/include/nolibc/arch-arm.h
index 66f687ad987f..001a3c8c9ad5 100644
--- a/tools/include/nolibc/arch-arm.h
+++ b/tools/include/nolibc/arch-arm.h
@@ -176,6 +176,7 @@ struct sys_stat_struct {
/* startup code */
asm(".section .text\n"
+ ".weak _start\n"
".global _start\n"
"_start:\n"
#if defined(__THUMBEB__) || defined(__THUMBEL__)