mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-26 01:49:23 +02:00
Make sure to change BLX instructions back to BL when the target is not a Thumb function.
git-svn-id: branches/laksen/armiw@29282 -
This commit is contained in:
parent
fe0cdcfb2e
commit
b4a4dda4e5
@ -674,6 +674,11 @@ implementation
|
||||
address:=(address and $FE000000) or (((tmp-curloc) and 2) shl 23) or $F0000000
|
||||
else
|
||||
InternalError(2014092001);
|
||||
end
|
||||
else if (address and $FF000000)=$FA000000 then
|
||||
begin
|
||||
{ Change BLX to BL }
|
||||
address:=(address and $EA000000) or $01000000;
|
||||
end;
|
||||
tmp:=tmp-curloc;
|
||||
// TODO: check overflow
|
||||
|
Loading…
Reference in New Issue
Block a user