eh-steve / goloader

Compile, load and run Go code at runtime.
Apache License 2.0
51 stars 4 forks source link

PCREL offset of `go.string` may greater than 32 bits #9

Closed fumeboy closed 1 year ago

fumeboy commented 1 year ago

here allocating go.string on the heap may lead to R_PCREL offset greater than 32 bits

https://github.com/eh-steve/goloader/blob/9fbc78a6d5210680c45d9d54dedbaf66c1314e42/ld.go#L313

eh-steve commented 1 year ago

Yeah I know (I wrote that code), that's why we still have the relocation epilogues

eh-steve commented 1 year ago

Closing this as I don't think it's an issue