Fix Thumb-2 PIEs
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Tue Nov 25 12:28:37 UTC 2008
On Tue, Nov 25, 2008 at 02:01:51AM +0000, Joseph S. Myers wrote:
>This patch fixes position-independent executables (PIEs) for Thumb-2. In
>Thumb assembly, instructions reading pc give a value 4 greater than the
>address of the instruction, rather than 8 greater as in ARM mode, so the
>offset to the GOT needs to have the right offset. (The Thumb-1 code
>already gets this right; it's the code shared by ARM and Thumb-2 that
>needs fixing.)
Applied to trunk and the 0_9_30 branch. Thanks!
More information about the uClibc
mailing list