Implemented length storage of allocated memory
This commit is contained in:
parent
79bb606e8d
commit
3043e4e2c4
27 changed files with 134 additions and 49 deletions
|
@ -80,7 +80,7 @@ restart:
|
|||
dataStart, _ := fs.Align(c.codeStart+Address(len(c.code)), config.Align)
|
||||
|
||||
for _, pointer := range c.dataPointers {
|
||||
address := config.BaseAddress + dataStart + pointer.Resolve()
|
||||
address := config.BaseAddress + dataStart + pointer.Resolve() + 8
|
||||
slice := c.code[pointer.Position : pointer.Position+4]
|
||||
binary.LittleEndian.PutUint32(slice, uint32(address))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue