koute / polkavm

A fast and secure RISC-V based virtual machine
Apache License 2.0
244 stars 52 forks source link

Bug/Linker: Tentative definitions are zero-initialized #122

Closed xermicus closed 4 months ago

xermicus commented 4 months ago

In the YUL compiler I use undefined byte array of 1mb in contracts. However after linking it with PolkaVM to resulting blob contains this array zero initialized. To me it wasn't obvious what changes to the linker would be required to fix this.

Example SO before linking with polkavm, it's not a zip file I just had to renimed it otherwise github doesn't allow to upload it: out.zip