* references containing a symbol must be virtually always pc relative on arm

git-svn-id: trunk@18232 -
This commit is contained in:
florian 2011-08-16 22:28:30 +00:00
parent 0cc53cc5df
commit 1e1c45c665

View File

@ -2015,7 +2015,11 @@ implementation
if (cs_create_pic in current_settings.moduleswitches) and
assigned(r.symbol) and
not assigned(r.relsymbol) and
(r.refaddr=addr_no) then
(r.refaddr=addr_no)
{$ifdef ARM}
and not(r.base=NR_R15)
{$endif ARM}
then
internalerror(200502052);
typ:=top_ref;
if assigned(add_reg_instruction_hook) then