Just verifying that R_X86_64_PC32 is related to the small/large code model change is good, but yes, as surmised, recompiling with the ‘large’ model by default didn’t help, and we got the same assert.
I’m happy to provide more information, but am unsure where to start. What do you need to know?