mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-06 04:17:06 +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;
|
continue;
|
||||||
|
|
||||||
if ((exesym.ObjSymbol.refs and symref_plt)<>0) or
|
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
|
begin
|
||||||
make_dynamic_if_undefweak(exesym);
|
make_dynamic_if_undefweak(exesym);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user