@isopodlabs/binary_libs 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/elf.js +2 -1
- package/package.json +1 -1
package/dist/elf.js
CHANGED
|
@@ -704,7 +704,8 @@ class ELFFile {
|
|
|
704
704
|
const flags = 8 /* binary.MEM.RELATIVE */ | 1 /* binary.MEM.READ */
|
|
705
705
|
| (this.sh_flags.WRITE ? 2 /* binary.MEM.WRITE */ : 0)
|
|
706
706
|
| (this.sh_flags.EXECINSTR ? 4 /* binary.MEM.EXECUTE */ : 0);
|
|
707
|
-
this.
|
|
707
|
+
const buffer = this.sh_type === 'NOBITS' ? new Uint8Array(0) : s.buffer_at(Number(this.sh_offset), Number(this.sh_size));
|
|
708
|
+
this.data = new binary.MappedMemory(buffer, Number(this.sh_addr), flags);
|
|
708
709
|
}
|
|
709
710
|
}
|
|
710
711
|
const h = binary.read(s, Ehdr);
|
package/package.json
CHANGED