mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 02:49:35 +02:00
* create/destroy codegen before/after generating exports, because it's
required when generating non-PIC code, and also for all Darwin platforms (required after r13801) git-svn-id: trunk@14181 -
This commit is contained in:
parent
ef66a2aec5
commit
122e5714d8
@ -59,6 +59,7 @@ uses
|
||||
aasmdata,aasmtai,aasmcpu,
|
||||
fmodule,
|
||||
cgbase,cgutils,cpubase,cgobj,
|
||||
cgcpu,
|
||||
ncgutil,
|
||||
verbose;
|
||||
|
||||
@ -135,6 +136,7 @@ var
|
||||
r : treference;
|
||||
{$endif x86}
|
||||
begin
|
||||
create_codegen;
|
||||
new_section(current_asmdata.asmlists[al_procedures],sec_code,'',0);
|
||||
hp2:=texported_item(current_module._exports.first);
|
||||
while assigned(hp2) do
|
||||
@ -180,6 +182,7 @@ begin
|
||||
end;
|
||||
hp2:=texported_item(hp2.next);
|
||||
end;
|
||||
destroy_codegen;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user