bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/15302] Branching to linker script symbol is resolved to improper


From: pavel.kral at omsquare dot com
Subject: [Bug ld/15302] Branching to linker script symbol is resolved to improperly BLX instruction for cortex-m3
Date: Mon, 20 May 2013 21:57:34 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=15302



Pavel Král <pavel.kral at omsquare dot com> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

             Status|NEW                         |UNCONFIRMED

                 CC|                            |pavel.kral at omsquare dot

                   |                            |com

     Ever Confirmed|1                           |0



--- Comment #2 from Pavel Král <pavel.kral at omsquare dot com> 2013-0
5-20 21:57:34 UTC ---

My use case is similar. I just did smoke test and there is another issue. T
est

code is executed from RAM (0x10000000) where it try to call firmware stored
 at

flash (in this example function at 0x3779) 



BLX instruction was replaced by BL, but at immediate address is generated

thumb->ARM switch instruction "BX PC" which cause hard fault



10000a94:    f000 f898     bl    10000bc8 <___xxx_from_thumb> # ok BLX repl
aced

by BL

...

___xxx_from_thumb():

10000bc8:    4778          bx    pc              ; hard fault

10000bca:    46c0          nop            ; 

10000bcc:    e51ff004     ldr    pc, [pc, #-4]    ; 10000bd0

<_farAway_from_thumb+0x8>

10000bd0:    00003779     andeq    r3, r0, r9, ror r7



ld just generate these __from_thumb stubs which is not what we wont at Cort
ex

Ms.



-- 

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email

------- You are receiving this mail because: -------

You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]