diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-01-17 10:03:40 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-01-17 10:03:40 +0000 |
commit | c3a549f6878359c9f5b950b58e16a1a2beed3290 (patch) | |
tree | 6352d41d9d9e3487c0628d55ac49116900801a8b /libgloss/arm | |
parent | d409f31ff34136f1b816526bc971136c7f7a74d0 (diff) | |
download | newlib-c3a549f6878359c9f5b950b58e16a1a2beed3290.zip newlib-c3a549f6878359c9f5b950b58e16a1a2beed3290.tar.gz newlib-c3a549f6878359c9f5b950b58e16a1a2beed3290.tar.bz2 |
* arm/linux-crt0.c: Use ldr instead of adr to get address of
_start_thumb.
Diffstat (limited to 'libgloss/arm')
-rw-r--r-- | libgloss/arm/linux-crt0.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libgloss/arm/linux-crt0.c b/libgloss/arm/linux-crt0.c index 2c1dd4a..c313d26 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)) |