summaryrefslogtreecommitdiffstats
path: root/tools/include/nolibc/arch-arm.h
diff options
context:
space:
mode:
authorAmmar Faizi <ammarfaizi2@gnuweeb.org>2022-03-29 12:17:31 +0200
committerPaul E. McKenney <paulmck@kernel.org>2022-04-21 02:05:46 +0200
commit1590c59836dace3a20945bad049fe8802c4e6f3f (patch)
tree31761171934d4e26a55599c4dba4ef1a79c862d3 /tools/include/nolibc/arch-arm.h
parenttools/nolibc: Replace `asm` with `__asm__` (diff)
downloadlinux-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.h1
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