bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/16017] LD creates invalid PLT instructions on CORTEX-M3


From: meadori at codesourcery dot com
Subject: [Bug ld/16017] LD creates invalid PLT instructions on CORTEX-M3
Date: Fri, 31 Jan 2014 16:57:30 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=16017

Meador Inge <meadori at codesourcery dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |meadori at codesourcery dot com

--- Comment #14 from Meador Inge <meadori at codesourcery dot com> ---
I have a need for these patches as well.  While testing them, we noticed that
the current PLT stubs have a bug:

   0x0c00f240,        /* movw    ip, #0xNNNN    */
   0x3c0cea4f,        /* lsl     ip, #12        */
   0x0c00f20f,        /* addw    ip, pc, #0xNNN */
   0xf000f8dc,        /* ldr     pc, [ip]       */

The third instructions clobbers 'ip'.  Thus for non-zero 'ip' values this will
not work.

-- 
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]