mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-15 09:49:14 +02:00
+ support local binding when reading data symbols in the internal wasm object reader
This commit is contained in:
parent
ee4d77b119
commit
ced7e40c43
@ -3194,7 +3194,10 @@ implementation
|
||||
else
|
||||
begin
|
||||
objsym:=ObjData.CreateSymbol(SymName);
|
||||
objsym.bind:=AB_GLOBAL;
|
||||
if (SymFlags and WASM_SYM_BINDING_LOCAL)<> 0 then
|
||||
objsym.bind:=AB_LOCAL
|
||||
else
|
||||
objsym.bind:=AB_GLOBAL;
|
||||
objsym.typ:=AT_DATA;
|
||||
objsym.objsection:=TObjSection(ObjData.ObjSectionList[SymIndex]);
|
||||
objsym.offset:=SymOffset;
|
||||
|
Loading…
Reference in New Issue
Block a user