mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 20:40:20 +02:00
* only set OT_SHORT if the source and target are in the same objsection
git-svn-id: trunk@2905 -
This commit is contained in:
parent
2888a21593
commit
94d9a89774
@ -1046,9 +1046,11 @@ implementation
|
||||
inc(l,InsOffset-LastInsOffset);
|
||||
{ instruction size will then always become 2 (PFV) }
|
||||
relsize:=(InsOffset+2)-l;
|
||||
if (not assigned(currsym) or
|
||||
((currsym.bind<>AB_EXTERNAL) and (currsym.address<>0))) and
|
||||
(relsize>=-128) and (relsize<=127) then
|
||||
if (relsize>=-128) and (relsize<=127) and
|
||||
(
|
||||
not assigned(currsym) or
|
||||
(currsym.objsection=objdata.currobjsec)
|
||||
) then
|
||||
ot:=OT_IMM32 or OT_SHORT
|
||||
else
|
||||
ot:=OT_IMM32 or OT_NEAR;
|
||||
|
Loading…
Reference in New Issue
Block a user