* arm/linux-crt0.c: Use ldr instead of adr to get address of
_start_thumb.
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user