summaryrefslogtreecommitdiffstats
path: root/libgloss/arm
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/arm')
-rw-r--r--libgloss/arm/linux-crt0.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgloss/arm/linux-crt0.c b/libgloss/arm/linux-crt0.c
index 2c1dd4af3..c313d269f 100644
--- a/libgloss/arm/linux-crt0.c
+++ b/libgloss/arm/linux-crt0.c
@@ -18,8 +18,10 @@ asm("\n"
".global _start\n"
".type _start, %function\n"
"_start:\n"
- "\tadr r0, _start_thumb+1\n"
+ "\tldr r0, .LC0\n"
"\tbx r0\n"
+ ".LC0:\n"
+ "\t.word _start_thumb\n"
".size _start, .-_start\n");
__attribute__((naked, used))