I'm trying to upgrade our codebase to rust 1.59.0. It compiles fine on 1.58.0.
For linux targets, we compile using the x86_64-unknown-linux-musl target.
But with 1.59.0, I'm getting many such errors
relocation R_X86_64_32 against `.bss.internal_state.3389' can not be used when making a PIE object; recompile with -fPIE
Followed by this
final link failed: nonrepresentable section on output
I'm guessing this has to do with this change.
I tried compiling with both
-C relocation-model=pie and
relocation-model=static but it did not seem to change much.