musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/env/__libc_start_main.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env/__libc_start_main.c b/src/env/__libc_start_main.c
index 2e5f9dcb..f9aa019d 100644
--- a/src/env/__libc_start_main.c
+++ b/src/env/__libc_start_main.c
@@ -80,7 +80,7 @@ int __libc_start_main(int (*main)(int,char **,char **), int argc, char **argv)
/* Barrier against hoisting application code or anything using ssp
* or thread pointer prior to its initialization above. */
int (*stage2)();
- __asm__ ( "" : "=r"(stage2) : "r"(libc_start_main_stage2) : "memory" );
+ __asm__ ( "" : "=r"(stage2) : "0"(libc_start_main_stage2) : "memory" );
return stage2(main, argc, argv);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月25日 08:02:44 +0000

AltStyle によって変換されたページ (->オリジナル) /