diff options
author | Ammar Faizi <ammarfaizi2@gnuweeb.org> | 2022-03-29 12:17:31 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2022-04-21 02:05:46 +0200 |
commit | 1590c59836dace3a20945bad049fe8802c4e6f3f (patch) | |
tree | 31761171934d4e26a55599c4dba4ef1a79c862d3 /tools/include/nolibc/arch-arm.h | |
parent | tools/nolibc: Replace `asm` with `__asm__` (diff) | |
download | linux-1590c59836dace3a20945bad049fe8802c4e6f3f.tar.xz linux-1590c59836dace3a20945bad049fe8802c4e6f3f.zip |
tools/nolibc: Remove .global _start from the entry point code
Building with clang yields the following error:
```
<inline asm>:3:1: error: _start changed binding to STB_GLOBAL
.global _start
^
1 error generated.
```
Make sure only specify one between `.global _start` and `.weak _start`.
Remove `.global _start`.
Cc: llvm@lists.linux.dev
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
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.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/include/nolibc/arch-arm.h b/tools/include/nolibc/arch-arm.h index 55fd9439b2e2..f31be8e967d6 100644 --- a/tools/include/nolibc/arch-arm.h +++ b/tools/include/nolibc/arch-arm.h @@ -177,7 +177,6 @@ struct sys_stat_struct { /* startup code */ __asm__ (".section .text\n" ".weak _start\n" - ".global _start\n" "_start:\n" #if defined(__THUMBEB__) || defined(__THUMBEL__) /* We enter here in 32-bit mode but if some previous functions were in |