mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 21:29:31 +02:00
Only add indirect symbol for constants if tf_supports_packages flag is set in target_info.flags
git-svn-id: trunk@33684 -
This commit is contained in:
parent
ac1b59ef03
commit
94d8d9927d
@ -135,6 +135,8 @@ implementation
|
|||||||
current_asmdata.asmlists[al_const].concatlist(datalist);
|
current_asmdata.asmlists[al_const].concatlist(datalist);
|
||||||
{ the (empty) lists themselves are freed by tcbuilder }
|
{ the (empty) lists themselves are freed by tcbuilder }
|
||||||
|
|
||||||
|
if (tf_supports_packages in target_info.flags) then
|
||||||
|
begin
|
||||||
{ add indirect symbol }
|
{ add indirect symbol }
|
||||||
{ ToDo: do we also need this for the else part? }
|
{ ToDo: do we also need this for the else part? }
|
||||||
new_section(list,sec_rodata,lower(sym.mangledname),const_align(sym.vardef.alignment));
|
new_section(list,sec_rodata,lower(sym.mangledname),const_align(sym.vardef.alignment));
|
||||||
@ -142,6 +144,7 @@ implementation
|
|||||||
list.concat(Tai_symbol.Create_Global(symind,0));
|
list.concat(Tai_symbol.Create_Global(symind,0));
|
||||||
list.concat(Tai_const.Createname(sym.mangledname,AT_DATA,0));
|
list.concat(Tai_const.Createname(sym.mangledname,AT_DATA,0));
|
||||||
list.concat(tai_symbol_end.Create(symind));
|
list.concat(tai_symbol_end.Create(symind));
|
||||||
|
end;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user