diff options
| author | Willy Tarreau <w@1wt.eu> | 2022-02-07 17:23:45 +0100 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@kernel.org> | 2022-04-20 17:05:45 -0700 |
| commit | dffeb81af5fe5eedccf5ea4a8a120d8c3accd26e (patch) | |
| tree | 9e6758770f97f60a476a7c7fe7867c2bfc1afedd /tools/include/nolibc/arch-mips.h | |
| parent | 07f47ea06fe9d38c5e8d9068fba2468ed8bb8b59 (diff) | |
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-mips.h')
| -rw-r--r-- | tools/include/nolibc/arch-mips.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/include/nolibc/arch-mips.h b/tools/include/nolibc/arch-mips.h index e330201dde6a..c9a6aac87c6d 100644 --- a/tools/include/nolibc/arch-mips.h +++ b/tools/include/nolibc/arch-mips.h @@ -190,6 +190,7 @@ struct sys_stat_struct { /* startup code, note that it's called __start on MIPS */ asm(".section .text\n" + ".weak __start\n" ".set nomips16\n" ".global __start\n" ".set noreorder\n" |
