This seems to be a bug in gcc itself. It should automatically disable PIE when -mcmodel=kernel or when __KERNEL__ is passed in a header. Attempts to compile using no PIE command line flags don't work either. It's as if it's not allowing it to be turned back off.
This seems to be a bug in gcc itself. It should automatically disable PIE when -mcmodel=kernel or when __KERNEL__ is passed in a header. Attempts to compile using no PIE command line flags don't work either. It's as if it's not allowing it to be turned back off.