mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-16 04:30:35 +01:00
* write .type and .size only for target that support it
git-svn-id: trunk@1956 -
This commit is contained in:
parent
cea0af646c
commit
1e1ea0c3b6
@ -475,8 +475,10 @@ implementation
|
||||
asmwrite(#9'.globl ');
|
||||
asmwriteln(Tai_datablock(hp).sym.name);
|
||||
end;
|
||||
asmwriteln(#9'.type '+Tai_datablock(hp).sym.name+',@object');
|
||||
asmwriteln(#9'.size '+Tai_datablock(hp).sym.name+','+tostr(Tai_datablock(hp).size));
|
||||
if (tf_needs_symbol_type in target_info.flags) then
|
||||
asmwriteln(#9'.type '+Tai_datablock(hp).sym.name+',@object');
|
||||
if (tf_needs_symbol_size in target_info.flags) and (Tai_datablock(hp).sym.size > 0) then
|
||||
asmwriteln(#9'.size '+Tai_datablock(hp).sym.name+','+tostr(Tai_datablock(hp).size));
|
||||
asmwrite(Tai_datablock(hp).sym.name);
|
||||
asmwriteln(':');
|
||||
asmwriteln(#9'.zero '+tostr(Tai_datablock(hp).size));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user