I'm trying to build a 64-bit version of a driver that uses the standard makefile-engine. However, linking is failing with this error:
relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
Does anybody have an idea on how to fix this?
I've already added -mcmodel=kernel/medium and a few other options I found in our ArchitectureRules (-mno-red-zone, -fno-omit-frame-pointer, -z max-page-size=0x1000), but it didn't change anything.