I am trying to create a simple kernel module. I am trying to print messages to dmesg but i keep getting
insmod: init_module \'hello.ko\' failed (Exec format error) i
It turns out I had to use
make CFLAGS_MODULE=-fno-pic