* x86_64, use rip-relative references when taking address of local code labels, fixes test/library/tlib1a.pp for Linux and FreeBSD and passing exception address to FPC_RAISEEXCEPTION on Darwin.

git-svn-id: trunk@19616 -
This commit is contained in:
sergei 2011-11-09 05:12:59 +00:00
parent a1e0b833b2
commit ce3f850a68

View File

@ -935,7 +935,7 @@ unit cgx86;
else if (cs_create_pic in current_settings.moduleswitches)
{$ifdef x86_64}
and not((ref.symbol.bind=AB_LOCAL) and
(ref.symbol.typ=AT_DATA))
(ref.symbol.typ in [AT_DATA,AT_LABEL,AT_ADDR]))
{$endif x86_64}
then
begin