mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 05:28:07 +02:00
* Fixed linking of non-PIC code to indirect functions in shared objects.
git-svn-id: trunk@27496 -
This commit is contained in:
parent
9f2e59de3a
commit
e951887154
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user