mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 21:29:24 +02:00
+ report an error in case a wasm object file has a code section, without a main symbol
This commit is contained in:
parent
e1d56a9944
commit
c453bac7ad
@ -3791,6 +3791,11 @@ implementation
|
||||
for i:=low(CodeSegments) to high(CodeSegments) do
|
||||
with CodeSegments[i] do
|
||||
begin
|
||||
if SegName='' then
|
||||
begin
|
||||
InputError('Code section ' + tostr(i) + ' does not have a main symbol defined in the symbol table');
|
||||
exit;
|
||||
end;
|
||||
if SegIsExported then
|
||||
CurrSec:=ObjData.createsection(SegName,1,[oso_executable,oso_Data,oso_load,oso_keep],false)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user