|
@@ -2517,12 +2517,12 @@ const pemagic : array[0..3] of byte = (
|
|
i,j,k,offset : longint;
|
|
i,j,k,offset : longint;
|
|
w: word;
|
|
w: word;
|
|
begin
|
|
begin
|
|
- if not IsSharedLibrary then
|
|
|
|
|
|
+ if not RelocSection then
|
|
exit;
|
|
exit;
|
|
exesec:=FindExeSection('.reloc');
|
|
exesec:=FindExeSection('.reloc');
|
|
if exesec=nil then
|
|
if exesec=nil then
|
|
exit;
|
|
exit;
|
|
- objsec:=internalObjData.createsection('.reloc',0,exesec.SecOptions);
|
|
|
|
|
|
+ objsec:=internalObjData.createsection('.reloc',0,exesec.SecOptions+[oso_data]);
|
|
exesec.AddObjSection(objsec);
|
|
exesec.AddObjSection(objsec);
|
|
pgaddr:=-1;
|
|
pgaddr:=-1;
|
|
hdrpos:=-1;
|
|
hdrpos:=-1;
|