mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-26 13:58:17 +02:00
* make the vectorized dead strip section symbol external for files that
don't define it git-svn-id: trunk@32534 -
This commit is contained in:
parent
4c720b8ba2
commit
ac18eb005f
@ -1341,11 +1341,17 @@ implementation
|
|||||||
|
|
||||||
|
|
||||||
class function ttai_typedconstbuilder.get_vectorized_dead_strip_section_symbol(const basename: string; st: tsymtable; define, start: boolean): tasmsymbol;
|
class function ttai_typedconstbuilder.get_vectorized_dead_strip_section_symbol(const basename: string; st: tsymtable; define, start: boolean): tasmsymbol;
|
||||||
|
var
|
||||||
|
bind: tasmsymbind;
|
||||||
begin
|
begin
|
||||||
if start then
|
if define then
|
||||||
result:=current_asmdata.DefineAsmSymbol(make_mangledname(basename,st,'START'),AB_GLOBAL,AT_DATA)
|
bind:=AB_GLOBAL
|
||||||
else
|
else
|
||||||
result:=current_asmdata.DefineAsmSymbol(make_mangledname(basename,st,'END'),AB_GLOBAL,AT_DATA);
|
bind:=AB_EXTERNAL;
|
||||||
|
if start then
|
||||||
|
result:=current_asmdata.DefineAsmSymbol(make_mangledname(basename,st,'START'),bind,AT_DATA)
|
||||||
|
else
|
||||||
|
result:=current_asmdata.DefineAsmSymbol(make_mangledname(basename,st,'END'),bind,AT_DATA);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user