Browse Source

* Fixed linking of non-PIC code to indirect functions in shared objects.

git-svn-id: trunk@27496 -
sergei 11 years ago
parent
commit
e951887154
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/ogelf.pas

+ 1 - 1
compiler/ogelf.pas

@@ -2521,7 +2521,7 @@ implementation
               continue;
 
             if ((exesym.ObjSymbol.refs and symref_plt)<>0) or
-              ((exesym.ObjSymbol.typ=AT_FUNCTION) and (not IsSharedLibrary)) then
+              ((exesym.ObjSymbol.typ in [AT_FUNCTION,AT_GNU_IFUNC]) and (not IsSharedLibrary)) then
               begin
                 make_dynamic_if_undefweak(exesym);